@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700;800&family=Playfair+Display:ital,wght@1,400;1,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

:root {
    --navy-blue: #0A1128; /* Azul Marinho Profundo */
    --accent-red: #D62828; /* Vermelho para Detalhes */
    --text-dark: #001219;
    --white: #FFFFFF;
    --bg-sand: #F7F7F4;
    --radius-pill: 60px;
    --font-main: 'Inter Tight', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

html, body { 
    font-family: var(--font-main); 
    background: var(--bg-sand); 
    padding: 0; 
    margin: 0;
    width: 100%;
    overflow-x: hidden; 
    color: var(--text-dark);
}

main {
    margin-bottom: 0; /* Gap global entre conteúdo e rodapé removido */
}

.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
}

/* NAVEGAÇÃO ESTILO ADAPTΔ (PREMIUM DARK) */
header {
    width: 100%;
    height: 80px;
    background: var(--bg-header); /* Dinâmico do EJS */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--text-header); 
    text-decoration: none; 
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}

.logo img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 48px;
    object-fit: contain;
}

header nav { 
    margin-left: 80px; 
    flex: 1; 
}
header nav ul { 
    display: flex; 
    list-style: none; 
    gap: 35px; 
    margin: 0; 
    padding: 0; 
}

.menu-item-link { 
    text-decoration: none; 
    color: var(--text-header); 
    opacity: 0.7;
    font-weight: 600; 
    font-size: 0.9rem; 
    display: block;
    height: 1.3em; /* Máscara rigorosa */
    overflow: hidden !important; 
    line-height: 1.3em;
    transition: color 0.3s, opacity 0.3s;
}

.menu-item-link:hover, .menu-item-link.active {
    opacity: 1;
    color: var(--text-header);
}

.menu-item-link.active .roll-btn {
    transform: translateY(-50%);
}

.menu-item-link.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent-red);
    margin-top: 2px;
    border-radius: 2px;
}

/* EFEITO ROLLING MENU */
.roll-btn {
    display: block;
    pointer-events: none;
}

.roll-text {
    display: block;
    height: 1.3em;
    line-height: 1.3em;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto; /* Empurra Login e botão para o canto direito */
}



.btn-cta-header {
    background: var(--accent-red); /* Detalhe em Vermelho */
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-cta-header:hover {
    background: #b52020;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 40, 40, 0.3);
}

.icon-blue-circle { display: none; } /* Removendo estilo antigo se não usado no novo header */

/* HERO SECTION - RETO E COM ALTURA REDUZIDA (75vh) */
.hero {
    position: relative;
    height: 75vh; 
    margin: 0; 
    border-radius: 0; 
    background: var(--navy-blue);
    display: flex;
    align-items: center;
    padding-left: 8%;
    color: white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media {
    z-index: 0;
    display: block;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    z-index: 1;
    pointer-events: none;
}

.hero-content { max-width: 800px; z-index: 2; margin-top: 50px; }

.hero-content h1 {
    font-size: 4rem; /* Diminuído de 4.8rem */
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -2px;
}

h1 em, h2 em, h3 em {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 580px;
    opacity: 0.85;
    margin-bottom: 3rem;
}

.hero-title-adjustable {
    transform: translateY(var(--hero-title-offset-y, 0px));
}

.hero-button-adjustable {
    transform: translateY(var(--hero-button-offset-y, 0px));
}

/* BOTÕES PILL */
.btn-pill-large {
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    padding: 14px 35px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
    transition: 0.4s;
}

.btn-pill-large .icon-blue-circle { width: 44px; height: 44px; font-size: 1.3rem; }

/* CARD FLUTUANTE */
.floating-card {
    position: absolute;
    bottom: 50px;
    right: 5%;
    background: white;
    padding: 2.2rem;
    border-radius: 24px;
    max-width: 300px;
    color: var(--text-dark);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    z-index: 3;
}

@media (max-width: 768px) {
    .floating-card { display: none !important; }
}

/* SEÇÕES GERAIS */
section { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-red); font-weight: 700; margin-bottom: 1.2rem; display: block; }

/* PAGE HERO - CABEÇALHO DAS PÁGINAS INTERNAS */
.page-hero {
    height: 45vh;
    min-height: 350px;
    background: var(--navy-blue);
    display: flex;
    align-items: flex-end; /* Abaixando o conteúdo */
    justify-content: center;
    text-align: center;
    color: white;
    padding-bottom: 60px; /* Ajustando o gap inferior */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.page-hero-content {
    max-width: 900px;
}

.page-hero-content h1 {
    font-size: 3.2rem; 
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
}

.page-hero-content h1 em {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
}

.hero-content h1 {
    font-size: var(--title-hero-size, 4rem) !important;
}

.page-hero-content h1 {
    font-size: var(--title-page-size, 3.2rem) !important;
}

main section h2,
.story-narrative h2 {
    font-size: var(--title-section-size, 3rem) !important;
}

main section h3,
.service-item-card h3,
.beneficio-item h3,
.floating-card h4 {
    font-size: var(--title-card-size, 1.5rem) !important;
}

.responsive-bg {
    background-image: var(--responsive-bg-desktop) !important;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (max-width: 1024px) {
    .responsive-bg {
        background-image: var(--responsive-bg-tablet, var(--responsive-bg-desktop)) !important;
    }
}

@media (max-width: 640px) {
    .responsive-bg {
        background-image: var(--responsive-bg-mobile, var(--responsive-bg-tablet, var(--responsive-bg-desktop))) !important;
    }
}

/* FOOTER PREMIUM - DARK MODE */
footer {
    background: var(--bg-footer);
    padding: 80px 0 40px 0;
    color: var(--text-footer);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap; /* Para responsividade */
    gap: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-footer);
    letter-spacing: 2px;
}

.footer-column h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--text-footer);
    opacity: 0.4;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-footer);
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-red);
}

.social-links {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
}

.social-links a {
    color: var(--text-footer);
    opacity: 0.7;
    transition: 0.3s;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-red);
}

.safe-site-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #25d366; /* Verde para segurança */
    margin-top: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
    color: var(--text-footer);
    opacity: 0.4;
    font-weight: 600;
}

/* LGPD BAR */
.lgpd-bar {
    position: fixed;
    bottom: -100px; /* Escondido inicialmente */
    left: 0;
    width: 100%;
    background: white;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    z-index: 3000;
    transition: bottom 0.5s ease;
}

.lgpd-bar.show {
    bottom: 0;
}

.lgpd-text {
    font-size: 0.85rem;
    color: var(--text-dark);
    max-width: 70%;
}

.lgpd-btn {
    background: var(--navy-blue);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.lgpd-btn:hover {
    background: var(--accent-red);
}

.lgpd-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    padding: 18px 10px;
    border: none;
    border-radius: 18px 0 0 18px;
    background: var(--navy-blue);
    color: white;
    font-weight: 900;
    letter-spacing: 0.04em;
    writing-mode: vertical-rl;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
    z-index: 3990;
    cursor: pointer;
}

.lgpd-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 17, 40, 0.58);
    z-index: 10000;
}

.lgpd-modal.show {
    display: flex;
}

.lgpd-modal-card {
    width: min(92vw, 420px);
    background: white;
    color: var(--text-dark);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}

.lgpd-modal-card h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    color: var(--navy-blue);
}

.lgpd-modal-card p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.lgpd-modal-card a {
    color: var(--navy-blue);
    font-weight: 800;
}

.lgpd-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.lgpd-secondary-btn {
    background: transparent;
    color: var(--navy-blue);
    border: 1px solid rgba(10, 17, 40, 0.16);
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
}

.whatsapp-float-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 55px;
    height: 55px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 3500;
    animation: pulse-whats 2s infinite;
    text-decoration: none;
}

@keyframes pulse-whats {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
    header { padding: 0 5%; gap: 30px; }
    .hero-content h1 { font-size: 3.5rem; }
    .container { padding: 0 30px; }
    .hero { padding-left: 5%; }
}

@media (max-width: 1024px) {
    .topbar { display: none !important; }
    header { 
        height: 70px;
        padding: 0 15px;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    header nav { display: none; } 
    .header-right .login-link { display: none; }
    .header-right { margin-left: 0 !important; gap: 10px; }
    header .btn-cta-header { 
        padding: 8px 12px; 
        font-size: 0.7rem; 
        white-space: nowrap;
        min-width: fit-content;
    }
    .logo img {
        max-width: 130px;
        max-height: 38px;
    }
    
    .hero { height: auto; min-height: 85vh; padding: 100px 5% 40px 5%; margin-top: 0; display: flex; flex-direction: column; justify-content: center; } 
    .hero-content { margin-top: 20px; width: 100%; }
    .hero-content h1 { font-size: 2.2rem; margin-bottom: 1.5rem; letter-spacing: -1px; }
    .lgpd-bar,
    .lgpd-bar.show {
        display: none;
    }
    .lgpd-tab.show {
        display: flex;
        top: auto;
        bottom: 185px;
        right: 0;
        min-height: 92px;
        padding: 14px 8px;
        border-radius: 14px 0 0 14px;
        font-size: 0.72rem;
        z-index: 3900;
    }
    .lgpd-modal {
        align-items: flex-end;
        padding: 20px 18px 105px;
    }
    .lgpd-modal-card {
        width: 100%;
        max-height: calc(100vh - 145px);
        overflow-y: auto;
        border-radius: 20px;
        padding: 24px;
    }
    .lgpd-modal-actions {
        flex-direction: column;
    }
    .lgpd-modal-actions .lgpd-btn,
    .lgpd-secondary-btn {
        width: 100%;
    }

    /* NAVEGAÇÃO MOBILE/TABLET HUD */
    .desktop-only { display: none !important; }
    .desktop-only-flex { display: none !important; }

    .header-mobile-icons {
        display: flex;
        align-items: center;
        gap: 18px;
        margin-left: auto;
        margin-right: 15px;
    }

    .m-icon-link {
        font-size: 1.4rem;
        color: var(--text-header, var(--navy-blue));
        text-decoration: none;
        opacity: 1;
    }

    .m-floating-nav {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        background: rgba(10, 17, 40, 0.98);
        backdrop-filter: blur(15px);
        height: 65px;
        border-radius: 18px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 4000;
        box-shadow: 0 15px 35px rgba(0,0,0,0.4);
        border: 1px solid rgba(255,255,255,0.08);
    }

    /* PREVENIR SOBREPOSIÇÃO NO RODAPÉ */
    footer { padding-bottom: 100px !important; }
    .footer-main { flex-direction: column; gap: 40px; }
    .footer-bottom { margin-bottom: 80px !important; }

    .m-nav-item {
        color: rgba(255,255,255,0.6);
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        transition: 0.3s;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .about-image-wrapper { 
        order: 2 !important; 
    }
    .about-grid > div:first-child { 
        order: 1 !important; 
    }
    .about-image-wrapper img { height: 400px !important; }

    .benefits-header-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .benefits-header-grid h2 { font-size: 2.2rem !important; }

    .whatsapp-float-btn {
        bottom: 105px;
        right: 25px;
    }

    .services-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .blog-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .blog-featured-card { grid-template-columns: 1fr !important; }
    .blog-featured-card > div:first-child { height: 200px !important; }
    .contact-grid-main { grid-template-columns: 1fr !important; gap: 50px !important; }
    .contact-form-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    
    .newsletter-form { flex-direction: column !important; width: 100% !important; border-radius: 20px !important; background: transparent !important; padding: 0 !important; }
    .newsletter-form input { border-radius: 50px !important; background: rgba(255,255,255,0.1) !important; padding: 15px !important; margin-bottom: 10px !important; }
    
    .hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
    .hero-content div { justify-content: center !important; }
}

/* Responsive Grids (Desktop) */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-featured-card { background: white; color: var(--navy-blue); border-radius: 20px; display: grid; grid-template-columns: 1fr 1.5fr; overflow: hidden; margin-bottom: 30px; }
.contact-grid-main { display: grid; grid-template-columns: 1fr 1.5fr; gap: 100px; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }


/* ESTILOS DE DESK (OCULTAR ELEMENTOS MOBILE NO DESKTOP) */
@media (min-width: 1025px) {
    .header-mobile-icons { display: none !important; }
    .m-floating-nav { display: none !important; }
}
/* GLOBAL PRINT STYLES (PDF QUALITY) */
@media print {
    * { 
        -webkit-print-color-adjust: exact !important; 
        print-color-adjust: exact !important; 
        color-adjust: exact !important;
    }
    body { background: white !important; }
    header, footer, .no-print, .btn-cta-header, .lgpd-bar, .lgpd-tab, .lgpd-modal { display: none !important; }
    .container { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 30px !important; }
    h1, h2, h3 { page-break-after: avoid; }
    img { page-break-inside: avoid; }
}
