:root {
    --navy: #0A1A2F;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --off-white: #F9F7F2;
    --text-gray: #555555;
    --header-height: 90px;
    --transition: all 0.5s ease;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body {
    background: var(--off-white);
    font-family: 'Montserrat', sans-serif;
    color: var(--navy);
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

/* --- HEADER PADRONIZADO --- */
.header-global {
    position: fixed;
    top: 0; 
    width: 100%; 
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: transparent;
    transition: var(--transition);
}

.header-global.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.hero-pattern-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-size: cover;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text { 
    text-decoration: none; 
    display: inline-block;
    padding: 5px 0;
}

.main-logo { 
    font-family: 'Cormorant Garamond', serif; 
    font-size: 1.8rem; 
    letter-spacing: 5px; 
    color: var(--navy); 
    display: block; 
    line-height: 1; 
}

.logo-subtitle { 
    font-size: 0.6rem; 
    letter-spacing: 3px; 
    color: var(--gold); 
    display: block; 
    margin-top: 5px; 
}

.nav-wrapper { 
    display: flex; 
    align-items: center; 
    gap: 40px; 
}

.nav-menu { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
}

.nav-link { 
    text-decoration: none; 
    color: var(--navy); 
    font-size: 0.75rem; 
    letter-spacing: 2px; 
    font-weight: 500; 
    text-transform: uppercase; 
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 5px;
}

.nav-link-cta {
    text-decoration: none; 
    color: var(--gold); 
    border: 1px solid var(--gold);
    padding: 10px 22px; 
    font-size: 0.7rem; 
    letter-spacing: 2px; 
    transition: 0.3s;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    box-sizing: border-box;
}

.nav-link-cta:hover { 
    background: var(--gold); 
    color: var(--white); 
}

/* --- CONTEÚDO --- */
.page-header {
    padding: calc(var(--header-height) + 60px) 5% 40px;
    text-align: center;
}

.page-header span { 
    color: var(--gold); 
    letter-spacing: 5px; 
    font-size: 0.7rem; 
    text-transform: uppercase; 
}

.page-header h1 { 
    font-family: 'Cormorant Garamond', serif; 
    font-size: 3rem; 
    margin-top: 10px; 
    font-weight: 400; 
}

.services-section { 
    padding: 40px 5% 100px; 
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
}

.category-block { 
    margin-bottom: 80px; 
}

.category-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--navy);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 15px;
    margin-bottom: 40px;
    font-weight: 400;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 20px;
    border-left: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    border-left: 1px solid var(--gold);
    background: rgba(255, 255, 255, 0.5);
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--navy);
    transition: transform 0.3s ease;
}

.service-card::after {
    content: '+ Detalhes';
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
    margin-top: 5px;
}

.service-card:hover h3 {
    transform: translateY(-2px);
}

.service-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Oculta as descrições da grade principal (elas alimentam o modal via JS) */
.service-card p {
    display: none;
}

/* --- POPUP MODAL ESTILIZADO --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 26, 47, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-left: 3px solid var(--gold);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--navy);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--gold);
}

#modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--navy);
}

.modal-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 15px 0;
}

#modal-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.7;
    font-weight: 300;
}

/* --- FOOTER INOVADOR --- */
.footer-innovative {
    position: relative;
    background-color: var(--navy);
    padding: 80px 5% 30px;
    color: var(--white);
    overflow: hidden;
}

.footer-blur-effect {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    letter-spacing: 8px;
    display: block;
    margin-bottom: 15px;
    color: var(--gold);
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-group h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 25px;
}

.link-group a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 12px;
    transition: 0.3s;
    font-weight: 300;
    min-height: 20px;
    display: block;
    align-items: center;
}

.link-group a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tech-line {
    width: 50px;
    height: 2px;
    background: var(--gold);
    margin: 20px auto 0;
    position: relative;
}

.tech-line::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
    left: -50px;
    top: 0;
}

/* --- RESPONSIVIDADE (MEDIA QUERIES) --- */
@media (max-width: 768px) {
    /* Ajuste para evitar que o topo da página suma sob o header fixo */
    .page-header {
        padding-top: 140px;
    }

    /* --- Botão Hambúrguer Estilizado --- */
    .menu-toggle {
        display: block;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
        width: 30px;
        height: 24px;
        z-index: 1100;
    }

    .hamburger {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--navy);
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        transition: background-color 0.3s ease;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--navy);
        transition: transform 0.3s ease, top 0.3s ease;
    }

    .hamburger::before { top: -8px; }
    .hamburger::after { top: 8px; }

    /* Transformação do botão em "X" (Classe active via JS) */
    .menu-toggle.active .hamburger {
        background-color: transparent;
    }

    .menu-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-toggle.active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* --- Menu Lateral Fluido (Mobile) --- */
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        padding: 40px;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1050;
    }

    /* Menu ativo desliza para dentro da tela */
    .nav-wrapper.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-link {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }

    .nav-link-cta {
        width: 100%;
        max-width: 240px;
        min-height: 48px;
    }

    /* Ajustes de Elementos Internos da Página */
    .page-header h1 { 
        font-size: 2.2rem; 
    }
    
    .category-title { 
        font-size: 1.6rem; 
    }
    
    .modal-content { 
        padding: 30px 20px; 
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand { 
        margin: 0 auto; 
    }
    
    .footer-brand p { 
        margin: 0 auto; 
    }
    
    .footer-links { 
        flex-direction: column; 
        gap: 40px; 
        margin: 0 auto;
    }
}