@import url('style_vfinal.css');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --red: #9b1c17;
    --dark: #17181a;
    --bg: #f5f8fc;
    --heading: #111827;
    --body: #4b5563;
    --border: #e2e8f0;
    --sh-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sh-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--body);
    background: #fff;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--heading);
}

/* ============================================
   HEADER — override ALL base styles from vfinal
   ============================================ */
.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
    height: auto !important;
    padding: 12px 0 !important; /* Espaçamento mais natural no topo */
}

.header.scrolled {
    background: rgba(15, 17, 21, 0.98) !important; /* Fundo escuro p/ logo branca */
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    padding: 8px 0 !important; /* Espaçamento natural na rolagem */
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px !important;
    display: flex;
    align-items: center;
}

/* Logo — branca no topo e na rolagem */
.header .logo-img {
    content: url('logo_branca.png') !important;
    height: 80px !important; /* Bem maior no topo */
    max-height: 80px !important;
    transition: height 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    filter: none !important;
    display: block;
}

.header.scrolled .logo-img {
    content: url('logo_branca.png') !important;
    height: 45px !important; /* Maior na rolagem também */
    max-height: 45px !important;
}

/* Links da nav — SEMPRE brancos, já que a rolagem também é escura */
.header .nav-links a {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    transition: color 0.3s;
    text-decoration: none;
    margin: 0 14px;
}

.header .nav-links a:hover {
    color: #fff !important;
}

.header.scrolled .nav-links a {
    color: rgba(255,255,255,0.9) !important;
}

.header.scrolled .nav-links a:hover {
    color: var(--red) !important;
}

/* Botão do header */
.header .btn-global-primary {
    padding: 10px 22px !important;
    font-size: 13px !important;
}

/* ============================================
   HERO PRINCIPAL E SUBPÁGINAS
   ============================================ */
.premium-hero, .page-hero, .hero-section {
    position: relative !important;
    background-color: var(--dark) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: #fff !important;
    width: 100% !important;
}

.premium-hero {
    padding: 160px 0 100px;
}

.page-hero, .hero-section {
    min-height: 60vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding-top: 100px !important;
    padding-bottom: 60px !important;
}

/* Pseudo-elemento para fundo escuro transparente */
.premium-hero::before, .page-hero::before, .hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15,17,21,0.85) 0%, rgba(155,28,23,0.65) 100%);
    z-index: 1;
}

/* Garantir que o container dentro do hero fique acima da camada escura */
.premium-hero .container, .page-hero .container, .hero-section .container {
    position: relative !important;
    z-index: 10 !important;
}

/* Forçar texto branco DENTRO das heroes */
.premium-hero h1, .premium-hero h2, .premium-hero h3, .premium-hero h4,
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4,
.hero-section h1, .hero-section h2, .hero-section h3, .hero-section h4 {
    color: #ffffff !important;
}

.premium-hero p, .page-hero p, .hero-section p {
    color: #cbd5e1 !important;
}

/* ============================================
   SEÇÃO DE AVALIAÇÕES / DEPOIMENTOS
   ============================================ */
.testimonials-section {
    position: relative;
    background: linear-gradient(135deg, #17181a 0%, #2b1111 100%);
    padding: 100px 0;
    overflow: hidden;
}

.testimonials-section h2 {
    color: #ffffff !important;
}

.testimonial-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 32px;
}

.testimonial-card .stars {
    color: #F59E0B;
    margin-bottom: 16px;
    font-size: 20px;
    letter-spacing: 3px;
}

.testimonial-card p {
    color: #cbd5e1 !important;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-card .author {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
}

/* ============================================
   CTA ESCURO — forçar textos brancos
   ============================================ */
.cta-dark-section h2,
.cta-dark-section h3 {
    color: #ffffff !important;
}

.cta-dark-section p {
    color: #94a3b8 !important;
}

/* ============================================
   BOTÃO GLOBAL
   ============================================ */
.btn-global-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    border-radius: 9999px;
    background: var(--red) !important;
    color: #FFFFFF !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    box-shadow: 0 4px 14px rgba(155, 28, 23, 0.4);
}

.btn-global-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 28, 23, 0.6);
    background: #b52520 !important;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--sh-lg);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-4px);
}

/* ============================================
   INPUTS
   ============================================ */
.premium-input {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.premium-input:focus {
    border-color: var(--red) !important;
}

/* ============================================
   SEÇÃO TÍTULOS — garantir visibilidade
   ============================================ */
.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: var(--heading) !important;
}

/* ============================================
   FAQ
   ============================================ */
details > summary::-webkit-details-marker {
    display: none;
}
details > summary {
    list-style: none;
}
details[open] summary span {
    transform: rotate(45deg);
    transition: transform 0.3s;
}
details summary span {
    transition: transform 0.3s;
}

/* ============================================
   FOOTER ESCURO PADRÃO - TODAS AS PÁGINAS
   ============================================ */
.footer-dark-master {
    background: #0f1115 !important;
    padding: 80px 0 20px !important;
    border-top: 4px solid var(--red) !important;
    color: #94a3b8 !important;
}

/* Logo do rodapé: tamanho maior, branca, sem espaçamento excessivo */
.footer-dark-master img[alt="Consulta Marca"] {
    height: 80px !important;
    margin-bottom: 24px !important;
    filter: brightness(0) invert(1) !important;
    display: block !important;
}

.footer-dark-master h4 {
    color: #ffffff !important;
}

.footer-dark-master p {
    color: #cbd5e1 !important;
}

.footer-dark-master li,
.footer-dark-master span {
    color: #94a3b8 !important;
}

.footer-dark-master .container[style*="border-top"] {
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    color: #94a3b8 !important;
}

/* ============================================
   MENU DROPDOWN (SERVIÇOS)
   ============================================ */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 260px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 12px 0;
    z-index: 2000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid var(--border);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDropdown 0.3s ease forwards;
}

/* Aumentando especificidade para sobrescrever as cores brancas do menu principal */
.header .nav-links .dropdown-content a,
.dropdown-content a {
    color: #111827 !important;
    padding: 12px 24px !important;
    display: block !important;
    text-decoration: none !important;
    font-size: 14px !important;
    margin: 0 !important;
    font-weight: 600 !important;
    transition: all 0.2s;
}

.header .nav-links .dropdown-content a:hover,
.dropdown-content a:hover {
    background-color: #f8fafc !important;
    color: #b81414 !important;
    padding-left: 28px !important;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================
   ANIMAÇÕES E ÍCONES DINÂMICOS
   ============================================ */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--sh-lg);
    border-color: var(--red) !important;
}

.icon-float {
    animation: floatIcon 3s ease-in-out infinite;
    display: inline-block;
}
@keyframes floatIcon {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

.icon-box-premium {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(155,28,23,0.1) 0%, rgba(155,28,23,0.05) 100%);
    color: var(--red);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    margin-bottom: 24px;
}
.footer-dark-master a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
}
.footer-dark-master a:hover {
    color: var(--red) !important;
}


/* ============================================
   HAMBURGER BUTTON (oculto no desktop)
   ============================================ */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    flex-shrink: 0;
    padding: 0;
}
.hamburger-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================================
   MOBILE NAV OVERLAY (oculto por padrão)
   ============================================ */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px; /* logo/header height approx */
    left: 0;
    right: 0;
    bottom: auto;
    background: #0f1115;
    z-index: 9999;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow-y: auto;
    max-height: calc(100vh - 70px);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 16px 24px !important;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: block !important;
    box-sizing: border-box;
}
.mobile-nav a:hover { color: var(--red) !important; }
.mobile-nav a:last-of-type { border-bottom: none !important; }

/* Submenu de serviços */
.mobile-nav-services {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav-services summary {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 16px 24px !important;
    list-style: none;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-nav-services summary::-webkit-details-marker { display: none; }
.mobile-nav-services[open] summary { color: var(--red) !important; }
.mobile-nav-services a {
    font-size: 14px !important;
    color: rgba(255,255,255,0.7) !important;
    padding: 12px 24px 12px 40px !important;
    border-bottom: 1px solid rgba(255,255,255,0.03) !important;
}

/* Esconde botão fechar pois o menu não cobre a tela toda mais */
.mobile-nav-close {
    display: none !important;
}

/* ============================================
   RESPONSIVO MOBILE — max 768px
   ============================================ */
@media (max-width: 768px) {

    /* Previne scroll horizontal */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* ── HEADER ─────────────────────── */
    .header .nav-links { display: none !important; }
    .header .btn-global-primary { display: none !important; }
    .hamburger-btn { display: flex !important; }
    .header-inner {
        padding: 0 20px !important;
        justify-content: space-between !important;
    }
    .header .logo-img {
        height: 60px !important;
        max-height: 60px !important;
        transition: height 0.3s ease, max-height 0.3s ease !important;
    }
    .header.scrolled .logo-img {
        height: 35px !important;
        max-height: 35px !important;
    }

    /* ── CONTAINERS ─────────────────── */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* ── SECTION PADDING ────────────── */
    section, .section, div[style*="padding: 100px"], div[style*="padding: 120px"] {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    /* ── GRIDS (classes) ────────────── */
    .grid-2, .grid-3, .grid-4, .hero-content, .hero-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* ── GRIDS INLINE E FLEX ────────── */
    div[style*="display: grid"],
    div[style*="display:grid"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    /* Muitas divs flex com 2 colunas */
    div[style*="display: flex; gap: 60px"],
    div[style*="display: flex; gap: 40px"],
    div[style*="display:flex; gap:60px"] {
        flex-direction: column !important;
        gap: 24px !important;
    }

    /* ── HERO PRINCIPAL (homepage) ──── */
    .premium-hero {
        padding-top: 110px !important;
        padding-bottom: 50px !important;
    }
    .premium-hero .container,
    .premium-hero .container > div {
        grid-template-columns: 1fr !important;
    }
    .premium-hero h1 {
        font-size: clamp(40px, 10.5vw, 50px) !important;
        line-height: 1.08 !important;
    }
    .premium-hero p { font-size: 16px !important; }
    .hero-visual, .hero-badge-stack { display: none !important; }
    
    div[style*="display: flex"][style*="gap: 16px"] {
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* ── PAGE HERO (subpáginas) ─────── */
    .page-hero, .hero-section {
        min-height: auto !important;
        padding-top: 110px !important;
        padding-bottom: 50px !important;
    }
    .page-hero h1 { font-size: 28px !important; line-height: 1.3 !important; }
    .page-hero p { font-size: 15px !important; }

    /* ── SECTION TITLES ─────────────── */
    .section-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    h2[style] { font-size: 22px !important; }
    h3[style] { font-size: 18px !important; }

    /* ── BADGES FLUTUANTES EM IMAGENS (Empresa) ── */
    div[style*="position: absolute"][style*="bottom: -20px"] {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin-top: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        justify-content: center !important;
        border-radius: 12px !important;
    }

    /* ── CARDS ──────────────────────── */
    .card { padding: 20px !important; }
    /* Cards com padding inline */
    div[style*="padding: 48px 40px"],
    div[style*="padding: 40px"],
    div[style*="padding: 56px 48px"],
    div[style*="padding: 48px"] {
        padding: 24px 20px !important;
    }

    /* ── IMAGENS ────────────────────── */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    /* Badge flutuante sobre imagens */
    div[style*="position: absolute"][style*="bottom: -20px"],
    div[style*="position: absolute"][style*="bottom:-20px"] {
        bottom: 8px !important;
        right: 8px !important;
        padding: 10px 14px !important;
        font-size: 12px !important;
    }

    /* ── CTA SECTIONS ───────────────── */
    section[style*="padding: 120px"] {
        padding-top: 72px !important;
        padding-bottom: 72px !important;
    }
    .cta-dark-section { padding: 72px 0 !important; }
    .cta-dark-section h2 { font-size: 22px !important; }

    /* ── COUNTER ROW ────────────────── */
    .counter-row, div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* ── TESTIMONIALS ───────────────── */
    .testimonials-section { padding: 60px 0 !important; }
    .testimonials-section .grid-3 { grid-template-columns: 1fr !important; }

    /* ── CONTACT PAGE ───────────────── */
    /* Forçar coluna única no grid de contato */
    div[style*="1fr 1.5fr"],
    div[style*="1.5fr 1fr"],
    div[style*="1fr 1fr; gap: 16px"] {
        grid-template-columns: 1fr !important;
    }

    /* ── IFRAME (MAPA) ──────────────── */
    iframe { height: 280px !important; }

    /* ── FOOTER ─────────────────────── */
    .footer-dark-master { padding: 48px 0 20px !important; }
    .footer-dark-master > .container { padding: 0 16px !important; }
    /* Empilha as 4 colunas */
    .footer-dark-master .grid-4,
    .footer-dark-master .container.grid-4 {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    /* Linha de copyright */
    .footer-dark-master .container[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }
    .footer-dark-master img[alt="Consulta Marca"] {
        height: 54px !important;
        margin: 0 auto 16px !important;
    }

    /* ── FAQ ────────────────────────── */
    details[style*="border-radius: 16px"] summary {
        padding: 18px 20px !important;
        font-size: 14px !important;
    }

    /* ── BOTÃO GLOBAL ───────────────── */
    .btn-global-primary {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
    }

    /* ── WPP FLOAT ──────────────────── */
    .wpp-float {
        width: 52px !important;
        height: 52px !important;
        bottom: 16px !important;
        right: 16px !important;
    }
}

/* ============================================
   TABLET — 769px a 1024px
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
    .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
    .header .logo-img { height: 60px !important; max-height: 60px !important; }
    .container { padding: 0 24px !important; }
}

