/* ==========================================================================
   DESIGN SYSTEM & TOKENS - ATIVO CONTABILIDADE (DESIGN_GUIDELINES_AI v3.0)
   ========================================================================== */
:root {
    /* Identidade da Marca */
    --ctb-navy: #002868;
    --ctb-navy-dark: #0b1736;
    --ctb-blue-brand: #0033b7;

    /* Ações e Interatividade */
    --ctb-cyan-action: #0ea5e9;
    --ctb-cyan-hover: #0284c7;

    /* Tipografia e Textos */
    --ctb-text-dark: #1e293b;
    --ctb-text-secondary: #475569;
    --ctb-text-muted: #64748b;

    /* Superfícies, Linhas e Contrastes */
    --ctb-bg-soft: #f4f7fb;
    --ctb-bg-card: #ffffff;
    --ctb-border: #d0ddea;
    --ctb-border-subtle: #e2e8f0;
    --ctb-badge-bg: #e6f0fa;
}

/* Reset Global de Segurança */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

svg {
    max-width: 100%;
    vertical-align: middle;
}

main {
    padding-top: 75px !important;
}

/* Header Solid Estilizado (Canônico Ativo Contabilidade) */
.main-header.header-solid {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--ctb-border-subtle);
    box-shadow: 0 1px 10px rgba(0, 40, 104, 0.06);
    margin: 0;
    width: 100%;
    border-radius: 0;
}

.main-header.header-solid .logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ctb-navy) !important;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.main-header.header-solid .main-nav ul li a {
    color: var(--ctb-navy) !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    text-decoration: none;
}

.main-header.header-solid .main-nav ul li a:hover {
    color: var(--ctb-blue-brand) !important;
}

.header-cta-pill {
    background-color: var(--ctb-cyan-action);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
    box-shadow: none !important;
}

.header-cta-pill:hover {
    background-color: var(--ctb-cyan-hover);
}

/* ==========================================================================
   NOVO HERO EDITORIAL: TÍTULO SOBRE DÚVIDAS + FOTO DE PESQUISA NO PC
   ========================================================================== */
.faq-hero-editorial {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--ctb-border-subtle);
}

.faq-hero-editorial-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
    align-items: center;
}

.faq-hero-editorial-text h1 {
    font-weight: 800;
    font-size: clamp(2.1rem, 3.8vw, 3rem);
    line-height: 1.18;
    letter-spacing: -1px;
    color: var(--ctb-navy);
    margin: 0 0 1rem 0;
}

.faq-hero-editorial-text .text-brand-blue {
    color: var(--ctb-blue-brand);
}

.faq-hero-editorial-text p {
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--ctb-text-secondary);
    margin: 0 0 1.75rem 0;
    max-width: 580px;
}

.faq-hero-editorial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.btn-pill-cyan {
    background-color: var(--ctb-cyan-action);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    box-shadow: none !important;
    border: none;
    cursor: pointer;
}

.btn-pill-cyan:hover {
    background-color: var(--ctb-cyan-hover);
}

.btn-pill-outline {
    background-color: transparent;
    color: var(--ctb-navy) !important;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.85rem 1.6rem;
    border-radius: 50px;
    border: 1.5px solid var(--ctb-border);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-pill-outline:hover {
    border-color: var(--ctb-blue-brand);
    color: var(--ctb-blue-brand) !important;
    background-color: #ffffff;
}

/* Foto Editorial da Pesquisa no PC */
.faq-hero-editorial-photo {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 36px -6px rgba(0, 24, 64, 0.18);
    border: 1px solid var(--ctb-border-subtle);
    max-width: 440px;
    margin-right: auto;
    margin-left: 0;
    background-color: var(--ctb-navy);
}

.faq-hero-editorial-photo img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

.faq-hero-photo-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 40, 104, 0) 0%, rgba(0, 40, 104, 0.92) 35%, #002868 100%);
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    color: #ffffff;
}

.faq-hero-photo-tag h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
}

.faq-hero-photo-tag p {
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.45;
    margin: 0;
}

/* ==========================================================================
   SEÇÃO DE DÚVIDAS INTERLIGADA COM FOTO DO HOMEM À DIREITA (INSPIRAÇÃO)
   ========================================================================== */
.faq-integrated-section {
    padding: 4.5rem 0;
    background-color: var(--ctb-bg-soft);
    position: relative;
}

.faq-integrated-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: start;
    position: relative;
}

/* Card Branco Unificado de Perguntas Frequentes (Inspirado no Card da Contabilizei) */
.faq-integrated-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 2.8rem 2.8rem;
    box-shadow: 0 16px 40px -10px rgba(0, 40, 104, 0.08);
    border: 1px solid var(--ctb-border-subtle);
    position: relative;
    z-index: 2;
    margin-right: -25px; /* Sobrepõe levemente a foto à direita para interligação visual */
}

.faq-card-header {
    margin-bottom: 1.5rem;
}

.faq-card-title {
    font-size: clamp(1.8rem, 2.8vw, 2.3rem);
    font-weight: 800;
    color: var(--ctb-navy);
    letter-spacing: -0.6px;
    margin: 0 0 0.4rem 0;
}

.faq-card-subtitle {
    font-size: 1rem;
    color: var(--ctb-text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* Linhas Compactas com Borda Inferior Fina */
.faq-compact-list {
    display: flex;
    flex-direction: column;
}

.faq-compact-row {
    border-bottom: 1px solid var(--ctb-border-subtle);
    transition: background-color 0.2s;
}

.faq-compact-row:first-child {
    border-top: 1px solid var(--ctb-border-subtle);
}

.faq-compact-summary {
    padding: 1.1rem 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ctb-text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    gap: 1.25rem;
    user-select: none;
    transition: color 0.2s;
}

.faq-compact-summary::-webkit-details-marker {
    display: none;
}

.faq-compact-summary:hover {
    color: var(--ctb-blue-brand);
}

.faq-compact-chevron {
    color: var(--ctb-navy);
    transition: transform 0.25s ease, color 0.2s;
    flex-shrink: 0;
}

.faq-compact-row[open] .faq-compact-chevron {
    transform: rotate(180deg);
    color: var(--ctb-cyan-action);
}

.faq-compact-answer {
    padding: 0.25rem 0.5rem 1.25rem 0.5rem;
    color: var(--ctb-text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
}

.faq-compact-answer p {
    margin: 0;
}

/* Coluna da Foto do Homem Interligada em Camada à Direita */
.faq-integrated-photo-col {
    position: sticky;
    top: 95px;
    z-index: 1;
}

.faq-photo-backdrop-frame {
    border-radius: 20px;
    overflow: hidden;
    height: 820px;
    box-shadow: 0 14px 32px rgba(0, 40, 104, 0.12);
    border: 1px solid var(--ctb-border-subtle);
    background-color: var(--ctb-navy);
    position: relative;
}

.faq-photo-backdrop-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.faq-photo-caption-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 40, 104, 0) 0%, rgba(0, 40, 104, 0.94) 35%, #002868 100%);
    padding: 3rem 1.8rem 1.8rem 4.5rem;
    color: #ffffff;
}

.faq-photo-caption-tag h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
}

.faq-photo-caption-tag p {
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.45;
    margin: 0;
}

/* ==========================================================================
   BLOCO DE DEPOIMENTOS: FOTO DA MOÇA + CARROSSEL REAL (SEÇÃO 4.5)
   ========================================================================== */
.reviews-contabilizei-section {
    background-color: #ffffff;
    padding: 4.5rem 0;
    border-top: 1px solid var(--ctb-border-subtle);
    border-bottom: 1px solid var(--ctb-border-subtle);
}

.reviews-split-wrap {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
    align-items: center;
}

.reviews-visual-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 40, 104, 0.08);
    border: 1px solid var(--ctb-border-subtle);
    background-color: var(--ctb-navy);
    height: 440px;
}

.reviews-visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reviews-visual-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 40, 104, 0) 0%, rgba(0, 40, 104, 0.92) 35%, #002868 100%);
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    color: #ffffff;
}

.reviews-visual-caption h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
}

.reviews-visual-caption p {
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.45;
    margin: 0;
}

.reviews-content-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
    max-width: 100%;
}

.reviews-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
}

.reviews-header-flex h2 {
    font-weight: 800;
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    line-height: 1.25;
    letter-spacing: -0.6px;
    color: var(--ctb-navy);
    margin: 0 0 0.5rem 0;
}

.reviews-subhead {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ctb-text-secondary);
    margin: 0;
}

.reviews-carousel-nav {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.carousel-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--ctb-border);
    background-color: #ffffff;
    color: var(--ctb-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-nav-btn:hover {
    background-color: var(--ctb-blue-brand);
    border-color: var(--ctb-blue-brand);
    color: #ffffff;
}

.reviews-carousel-wrapper {
    overflow: hidden;
    border-radius: 16px;
    background-color: #ffffff;
    border: 1px solid var(--ctb-border-subtle);
    box-shadow: 0 8px 24px rgba(0, 40, 104, 0.04);
    min-width: 0;
    max-width: 100%;
}

.reviews-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    width: 100%;
}

.review-quote-card {
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
}

.review-header-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.85rem;
}

.review-avatar-char {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-author-info h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ctb-navy);
}

.review-author-info span {
    font-size: 0.8rem;
    color: var(--ctb-text-muted);
}

.google-verified-icon {
    width: 20px;
    height: 20px;
    margin-left: auto;
}

.stars-row {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.review-quote-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ctb-text-dark);
    margin: 0 0 1rem 0;
    font-style: italic;
}

.verified-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #059669;
}

.reviews-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0 1.25rem 0;
    background-color: #ffffff;
}

.dot-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: background-color 0.2s, width 0.2s;
    padding: 0;
}

.dot-indicator.active {
    background-color: var(--ctb-blue-brand);
    width: 24px;
    border-radius: 10px;
}

/* ==========================================================================
   BLOCO DE CONTATO CONSULTIVO COM FORMULÁRIO COMPACTO (SEÇÃO 4.7)
   ========================================================================== */
.contact-form-section {
    padding: 4.5rem 0;
    background-color: #ffffff;
}

.contact-split-wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-info-col h2 {
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    line-height: 1.25;
    letter-spacing: -0.6px;
    color: var(--ctb-navy);
    margin: 0 0 0.85rem 0;
}

.contact-info-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ctb-text-secondary);
    margin: 0 0 2rem 0;
}

.contact-channels-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-channel-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.channel-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--ctb-badge-bg);
    color: var(--ctb-blue-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.channel-icon-badge svg {
    width: 22px;
    height: 22px;
}

.channel-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ctb-navy);
    margin: 0 0 2px 0;
}

.channel-text p {
    font-size: 0.92rem;
    color: var(--ctb-text-secondary);
    margin: 0;
    line-height: 1.45;
}

/* Formulário Compacto */
.contact-form-box {
    background-color: #ffffff;
    border: 1px solid var(--ctb-border);
    border-radius: 16px;
    padding: 2.2rem;
    box-shadow: 0 10px 30px rgba(0, 40, 104, 0.05);
}

.form-header-compact h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ctb-navy);
    margin: 0 0 0.35rem 0;
}

.form-header-compact p {
    font-size: 0.92rem;
    color: var(--ctb-text-secondary);
    margin: 0 0 1.5rem 0;
}

.lead-form-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group-item label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ctb-text-dark);
}

.form-group-item input,
.form-group-item select,
.form-group-item textarea {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--ctb-border);
    font-size: 0.95rem;
    color: var(--ctb-text-dark);
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
    width: 100%;
}

.form-group-item input:focus,
.form-group-item select:focus,
.form-group-item textarea:focus {
    border-color: var(--ctb-cyan-action);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.btn-pill-cyan.w-100 {
    width: 100%;
    margin-top: 0.5rem;
}

.form-security-note {
    font-size: 0.78rem;
    color: var(--ctb-text-muted);
    text-align: center;
    margin-top: 0.25rem;
}

/* ==========================================================================
   SEÇÃO: BANNER AZUL ESCURO CTA FINAL (CANÔNICO CONTADOR-EM-SANTARÉM)
   ========================================================================== */
.cta-contabilizei-banner {
    background-color: var(--ctb-navy);
    padding: 5rem 1rem;
    text-align: center;
    color: #ffffff;
}

.cta-banner-box {
    max-width: 800px;
    margin: 0 auto;
}

.cta-banner-box h2 {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.cta-banner-box p {
    font-size: 1.2rem;
    color: #dbeafe;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-banner-box .btn-pill-cyan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* ==========================================================================
   RODAPÉ CANÔNICO ATIVO CONTABILIDADE (Herdado de style.css)
   ========================================================================== */

/* ==========================================================================
   RESPONSIVIDADE RÍGIDA (MOBILE 375PX, TABLET 768PX, DESKTOP)
   ========================================================================== */
@media (max-width: 991px) {
    .faq-hero-editorial-grid,
    .faq-integrated-layout,
    .reviews-split-wrap,
    .contact-split-wrap,
    .banner-inner-flex {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .banner-inner-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .banner-sub-meta {
        flex-direction: column;
        gap: 0.4rem;
    }

    .main-header.header-solid {
        padding: 0.75rem 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .main-header.header-solid .container {
        padding: 0 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .faq-hero-editorial-text {
        order: 1;
    }

    .faq-hero-editorial-photo {
        order: 2;
        margin: 0 auto;
        max-width: 100%;
        height: 320px;
    }

    .faq-hero-editorial-photo img {
        height: 100%;
    }

    .faq-integrated-card {
        margin-right: 0 !important;
        padding: 2rem 1.25rem !important;
    }

    .faq-compact-summary {
        font-size: 0.98rem;
        padding: 0.95rem 0.25rem;
    }

    .faq-integrated-photo-col {
        position: relative !important;
        top: 0 !important;
    }

    .faq-photo-backdrop-frame {
        height: 340px;
    }

    .faq-photo-caption-tag {
        padding: 2rem 1.25rem 1.25rem 1.25rem !important;
    }

    .reviews-visual-card {
        position: relative !important;
        height: 320px;
        max-width: 100%;
    }

    .reviews-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-cta-pill {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .main-nav {
        display: none;
    }

    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-bottom: 1px solid var(--ctb-border-subtle);
        padding: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    }

    .main-nav.active ul {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-banner-box h2 {
        font-size: 1.8rem;
    }

    .cta-banner-box p {
        font-size: 1.05rem;
    }

    .cta-banner-box .btn-pill-cyan {
        width: 100%;
        justify-content: center;
    }
}
