/* =============================================
   print3x - Estilos Personalizados
   ============================================= */

:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary: #7209b7;
    --accent: #f72585;
    --success: #06d6a0;
    --dark: #1a1a2e;
    --darker: #16213e;
    --light-bg: #f8f9fc;
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    --gradient-accent: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

/* ---- Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, .brand-text {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.min-vh-75 {
    min-height: 75vh;
}

/* ---- Navbar ---- */
.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: rgba(26, 26, 46, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 0;
    min-height: 100px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-navbar.scrolled {
    background-color: rgba(26, 26, 46, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    min-height: 85px;
}

.site-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    padding: 0.5rem 0;
}

.site-navbar .navbar-brand:hover {
    color: #fff;
}

.site-navbar .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
    margin: 0 0.2rem;
}

.site-navbar .nav-link:hover {
    color: #fff !important;
    background-color: rgba(67, 97, 238, 0.15);
}

.site-navbar .nav-link.active {
    color: #fff !important;
    background-color: var(--primary);
}

.site-navbar .navbar-collapse {
    background-color: rgba(26, 26, 46, 0.99);
    border-radius: 0 0 12px 12px;
}

@media (min-width: 992px) {
    .site-navbar .navbar-collapse {
        background-color: transparent;
        border-radius: 0;
    }
}

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        padding: 1rem;
        margin-top: 0.5rem;
    }
}

.site-navbar .navbar-toggler {
    border: none;
    padding: 0.4rem;
    color: #fff;
}

.site-navbar .navbar-toggler:focus {
    box-shadow: none;
}

.navbar-spacer {
    height: 100px;
    transition: height 0.3s ease;
}

.site-navbar.scrolled ~ .navbar-spacer {
    height: 85px;
}

.brand-logo {
    width: 70px;
    height: 70px;
    border-radius: 0;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 12px rgba(255, 107, 53, 0.4));
}

.site-navbar.scrolled .brand-logo {
    width: 60px;
    height: 60px;
}

.site-navbar .navbar-brand:hover .brand-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 16px rgba(255, 107, 53, 0.6));
}

.brand-text {
    font-size: 1.6rem;
    letter-spacing: -1px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #d63031 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.site-navbar.scrolled .brand-text {
    font-size: 1.4rem;
}

.site-navbar .navbar-brand:hover .brand-text {
    transform: scale(1.05);
}

/* ---- Buttons ---- */
.btn-primary {
    background-image: var(--gradient-primary);
    background-color: var(--primary);
    border: 1px solid transparent;
    font-weight: 600;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-image: var(--gradient-primary);
    background-color: var(--primary-dark);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.btn-primary:active {
    background-image: var(--gradient-primary);
    background-color: var(--primary-dark);
    border-color: transparent;
}

/* Somente botões FORA da navbar fazem o efeito de elevar */
main .btn-primary:hover,
footer .btn-primary:hover {
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--gradient-accent);
    border: 1px solid transparent;
    color: #fff;
    font-weight: 600;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.4);
    color: #fff;
}

/* ---- Hero Section ---- */
.hero-section {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(114, 9, 183, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(67, 97, 238, 0.15);
    border: 1px solid rgba(67, 97, 238, 0.3);
    color: #89a0f4;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #fff;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #9ca3af;
    max-width: 520px;
    line-height: 1.7;
}

/* ---- 3D Object Animation ---- */
.hero-3d-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-3d {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 12s linear infinite;
}

@keyframes rotateCube {
    from { transform: rotateX(-30deg) rotateY(0deg); }
    to   { transform: rotateX(-30deg) rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 2px solid rgba(67, 97, 238, 0.4);
    background: rgba(67, 97, 238, 0.05);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.cube-face.front  { transform: translateZ(125px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(125px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(125px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(125px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(125px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(125px); }

/* ---- Sections ---- */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Cards ---- */
.service-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-card .icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ---- Services Page Visual Blocks ---- */
.service-visual-box {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-visual-icon {
    font-size: clamp(3.2rem, 8vw, 5rem);
    line-height: 1;
}

.service-visual-media {
    max-height: 250px;
    object-fit: contain;
}

.portfolio-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-sm);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #000;
}

.portfolio-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-single {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.portfolio-single .portfolio-img {
    height: 100%;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    opacity: 0;
}

.portfolio-single:hover .portfolio-overlay {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

.gif-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.gif-badge i {
    font-size: 0.9rem;
}

/* Galeria com múltiplas imagens */
.portfolio-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.gallery-main .portfolio-img {
    height: 100%;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    opacity: 0;
}

.portfolio-gallery:hover .gallery-overlay {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.gallery-counter {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.gallery-prev,
.gallery-next {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: #fff;
    transform: scale(1.1);
}

.gallery-expand {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.gallery-expand:hover {
    background: #fff;
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: #f8f9fa;
    overflow-x: auto;
    scrollbar-width: thin;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.thumbnail-item {
    position: relative;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    border-color: var(--primary);
    transform: scale(1.1);
}

.thumbnail-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gif-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.portfolio-placeholder {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 3rem;
}

/* Lightbox */
#portfolioLightbox .modal-body {
    min-height: 100vh;
}

#portfolioLightbox img {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-prev,
.lightbox-next {
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #fff;
    transform: scale(1.1);
}

/* ---- Stats ---- */
.stats-section {
    background: var(--gradient-dark);
    color: #fff;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* ---- CTA Section ---- */
.cta-section {
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* ---- Process Steps ---- */
.process-step {
    text-align: center;
    position: relative;
}

.process-step .step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
}

/* ---- Client Dashboard ---- */
.dashboard-card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
}

.dashboard-stat {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.dashboard-stat .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.dashboard-stat .label {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ---- Sidebar Cliente ---- */
.sidebar-client {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
}

.sidebar-client .nav-link {
    color: #4b5563;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.2s;
}

.sidebar-client .nav-link:hover,
.sidebar-client .nav-link.active {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.sidebar-client .nav-link.active {
    background: var(--primary);
    color: #fff;
}

.sidebar-client .nav-link i {
    width: 24px;
}

/* ---- Pedido Status Timeline ---- */
.status-badge {
    font-size: 0.8rem;
    padding: 0.35em 0.75em;
    border-radius: 50px;
    font-weight: 600;
}

/* ---- Forms ---- */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 0.65rem 1rem;
    border-color: #d1d5db;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #fff;
}

/* ---- Contact Form ---- */
.contact-info-card {
    background: var(--gradient-dark);
    color: #fff;
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-info-card .info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-card .info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(67, 97, 238, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ---- Page Header ---- */
.page-header {
    background: var(--gradient-dark);
    color: #fff;
    padding: 3.5rem 0 3rem;
    margin-bottom: 0;
}

.page-header h1 {
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -1px;
}

.page-header .breadcrumb {
    margin-bottom: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: #9ca3af;
    font-size: 0.85rem;
}

.page-header .breadcrumb-item.active {
    color: #d1d5db;
}

/* ---- Hover utilities ---- */
.hover-primary:hover {
    color: var(--primary) !important;
}

/* ---- Animations ---- */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .site-navbar {
        padding: 1rem 0;
        min-height: 85px;
    }
    
    .site-navbar.scrolled {
        padding: 0.85rem 0;
        min-height: 75px;
    }
    
    .navbar-spacer {
        height: 85px;
    }
    
    .site-navbar.scrolled ~ .navbar-spacer {
        height: 75px;
    }
    
    .brand-logo {
        width: 55px;
        height: 55px;
    }
    
    .site-navbar.scrolled .brand-logo {
        width: 50px;
        height: 50px;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
    
    .site-navbar.scrolled .brand-text {
        font-size: 1.2rem;
    }
    
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto;
    }
    
    .hero-3d-visual {
        display: none;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .cta-section {
        padding: 2.5rem 1.5rem;
    }
}

/* ---- File Upload ---- */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.03);
}

.file-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.08);
}

/* ---- Table ---- */
.table-pedidos th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 600;
    border-bottom-width: 1px;
}

.table-pedidos td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}
