/* ==========================================
   main.css — LAPAIS / neuropsicologica.psc.br
   Design system institucional — paleta e tipografia conforme
   PRD 01 (seção 3), fontes self-hosted (assets/fonts).
   ========================================== */

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('/assets/fonts/fraunces-variable-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122;
}
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('/assets/fonts/fraunces-variable-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+1E00-1EFF, U+0300-036F;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/inter-variable-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/inter-variable-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+1E00-1EFF, U+0300-036F;
}

:root {
    /* Paleta — PRD 01, seção 3.1 */
    --color-primary: #7FB8A4;
    --color-primary-dark: #1E4640;
    --color-secondary: #4A7A9D;
    --color-cta: #3F9C7A;
    --color-cta-hover: #34805F;
    --color-text: #2E3538;
    --color-text-muted: #5C6B68;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F6F8F7;
    --color-border: #DFE7E2;
    --color-error: #B4533C;
    --color-success: #2F7D5C;
    --color-contrast: #FFFFFF;

    --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-base: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --fs-h1: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
    --fs-h2: clamp(1.6rem, 1.35rem + 1.1vw, 2.25rem);
    --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);
    --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
    --fs-body: 1rem;
    --fs-small: 0.9rem;
    --fs-eyebrow: 0.8rem;

    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2.25rem;
    --space-5: 3.5rem;
    --space-6: 5rem;
    --space-7: 7rem;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 3px rgba(30, 70, 64, 0.08);
    --shadow-md: 0 12px 32px rgba(30, 70, 64, 0.10);
    --shadow-lg: 0 24px 60px rgba(30, 70, 64, 0.14);

    --max-width: 1200px;
    --max-width-narrow: 780px;

    --header-height: 84px;
}

/* ========== Reset & base ========== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-base);
    font-size: var(--fs-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--color-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary-dark);
    line-height: 1.2;
    margin: 0 0 var(--space-2);
}
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.2em; }

:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-primary-dark);
    color: #fff;
    padding: 0.75rem 1.25rem;
    z-index: 2000;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
    left: 0;
}

/* ========== Layout helpers ========== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.container-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.site-main { padding-top: var(--header-height); }

.section {
    padding: var(--space-6) 0;
}
.section[id] {
    scroll-margin-top: calc(var(--header-height) + 4.5rem);
}

.section-sm { padding: var(--space-5) 0; }

.section-alt { background: var(--color-bg-alt); }

.section-dark {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.92);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .card-research {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
}
.section-dark .card-research h3 { color: #fff; }
.section-dark .card-research p { color: rgba(255, 255, 255, 0.8); }
.section-dark .value-list li {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}
.section-dark .btn-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}
.section-dark .btn-outline:hover {
    background: #fff;
    color: var(--color-primary-dark);
}

.section-header {
    max-width: 680px;
    margin: 0 0 var(--space-4);
}
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-cta-hover);
    margin-bottom: var(--space-2);
}
.eyebrow::before {
    content: "";
    width: 1.5em;
    height: 2px;
    background: var(--color-cta);
    display: inline-block;
}

.lead {
    font-size: var(--fs-lead);
    color: var(--color-text-muted);
}

/* ========== Header / navegação ========== */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    min-height: var(--header-height);
}

.site-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.35rem var(--space-3);
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.site-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-primary-dark);
    flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; }
.site-logo small {
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-primary-dark);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Layout da área de navegação desktop com suporte a até 2 linhas */
.site-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: var(--space-2);
}

.site-nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav-menu > li { position: relative; }

/* Telas intermediárias (769px a 1080px): exatamente 2 linhas (3 acima: Home, Sobre, Pesquisas / 3 abaixo: Projetos, Blog, Recursos) e botão à direita */
@media (min-width: 769px) and (max-width: 1080px) {
    .site-nav-menu {
        display: grid;
        grid-template-columns: repeat(3, auto);
        grid-template-rows: auto auto;
        gap: 0.25rem 0.5rem;
        justify-content: flex-end;
        align-items: center;
    }

    /* Submenu de Pesquisas (3ª coluna) alinha à direita para evitar transbordamento lateral */
    .site-nav-menu > li:nth-child(3) .submenu {
        left: auto;
        right: 0;
    }

    .site-main {
        padding-top: calc(var(--header-height) + 1.25rem);
    }
}

/* Tipografia e dimensões otimizadas dos links e botões de menu */
.site-nav-menu > li > a,
.nav-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.6rem;
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 0.88rem; /* 14px calibrado para acessibilidade WCAG AAA */
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    min-height: 40px;
    text-decoration: none;
    line-height: 1.2;
}

.site-nav-menu > li > a:hover,
.site-nav-menu > li > a:focus-visible,
.nav-link-btn:hover,
.nav-link-btn:focus-visible {
    color: var(--color-cta-hover);
    text-decoration: none;
    background: var(--color-bg-alt);
}

/* Indicador visual rotativo à esquerda para itens com submenu */
.nav-arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg); /* Aponta para a direita quando recolhido */
    transition: transform 0.2s ease;
    opacity: 0.7;
    margin-right: 0.2rem;
    flex-shrink: 0;
}

.has-submenu:hover .nav-arrow,
.has-submenu:focus-within .nav-arrow,
.has-submenu.is-expanded .nav-arrow {
    transform: rotate(45deg); /* Rotaciona para baixo quando expandido */
    opacity: 1;
}

.nav-label {
    display: inline-block;
}

/* Submenu dropdown */
.submenu {
    list-style: none;
    margin: 0;
    padding: 0.6rem;
    position: absolute;
    top: 100%; left: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 1010;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.is-expanded .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 500;
}

.submenu a:hover {
    background: var(--color-bg-alt);
    color: var(--color-cta-hover);
    text-decoration: none;
}

/* Ações do cabeçalho: botão Fale Conosco isolado à direita */
.site-nav-actions {
    flex-shrink: 0; /* Garante que o botão nunca encolha nem quebre suas palavras */
}

.nav-cta {
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cta);
    color: #fff !important;
    padding: 0.55rem 1.15rem !important;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    min-height: 40px;
    text-decoration: none;
}

.nav-cta:hover {
    background: var(--color-cta-hover);
    color: #fff !important;
    text-decoration: none;
}

/* ========== Botões ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-family: var(--font-base);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    min-height: 44px;
    line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--color-cta); color: #fff; }
.btn-primary:hover { background: var(--color-cta-hover); color: #fff; }

.btn-secondary { background: var(--color-secondary); color: #fff; }
.btn-secondary:hover { background: var(--color-primary); color: #fff; }

.btn-outline { background: transparent; border-color: var(--color-primary-dark); color: var(--color-primary-dark); }
.btn-outline:hover { background: var(--color-primary-dark); color: #fff; }

.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--color-primary-dark); }

.btn-ghost { background: transparent; color: var(--color-cta-hover); padding-left: 0; padding-right: 0; min-height: auto; }
.btn-ghost::after { content: "→"; transition: transform 0.15s ease; }
.btn-ghost:hover::after { transform: translateX(4px); }

.btn-block { width: 100%; }

/* ========== Hero ========== */

.hero {
    position: relative;
    padding: var(--space-7) 0 var(--space-6);
    background:
        radial-gradient(circle at 85% 10%, rgba(127,184,164,0.28), transparent 55%),
        linear-gradient(160deg, var(--color-primary-dark) 0%, #143530 100%);
    color: #fff;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-5);
    align-items: center;
}
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,0.82); }
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: var(--fs-small);
    margin-bottom: var(--space-3);
}
.hero-visual {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    background: linear-gradient(150deg, rgba(127,184,164,0.35), rgba(74,122,157,0.35)), var(--color-primary-dark);
    border: 1px solid rgba(255,255,255,0.25);
    overflow: hidden;
    padding: 0;
    box-shadow: var(--shadow-lg);
    position: relative;
}

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

.anchor-fallback {
    position: absolute;
    top: -100px;
    visibility: hidden;
}

.page-hero {
    padding: calc(var(--space-6) + 1rem) 0 var(--space-5);
    background: var(--color-primary-dark);
    color: #fff;
}
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero .lead { color: rgba(255,255,255,0.8); max-width: 640px; }

.breadcrumbs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    padding: 0;
    margin: 0 0 var(--space-3);
    font-size: var(--fs-small);
    color: rgba(255,255,255,0.65);
}
.breadcrumbs a { color: rgba(255,255,255,0.85); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4em; opacity: 0.6; }

/* ========== Subnav Fixa com Scrollspy (In-Page Navigation) ========== */

.subnav-sticky {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(20, 53, 48, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.subnav-sticky.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.subnav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.55rem 0;
}
.subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-pill);
    color: var(--color-text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.subnav-link:hover {
    color: var(--color-primary-dark);
    background: var(--color-bg-alt);
    text-decoration: none;
}
.subnav-link.is-active {
    color: var(--color-cta);
    background: rgba(47, 125, 92, 0.12);
    border-color: rgba(47, 125, 92, 0.28);
}
.subnav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.subnav-icon svg {
    width: 100%;
    height: 100%;
}
.subnav-label {
    display: inline-block;
}

/* ========== Stats / credibilidade ========== */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}
.stat-item {
    text-align: center;
    padding: var(--space-3) var(--space-2);
    border-radius: var(--radius-md);
    background: var(--color-bg-alt);
}
.stat-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
    color: var(--color-cta-hover);
    display: block;
    line-height: 1;
    margin-bottom: 0.35em;
}
.stat-label {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ========== Grids & cards ========== */

.grid {
    display: grid;
    gap: var(--space-3);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-3);
}
.card-grid-center .card {
    width: 100%;
    max-width: 360px;
    flex: 0 1 360px;
}

.card-grid-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-3);
}
.card-grid-3 .card {
    width: 100%;
    max-width: 360px;
    flex: 0 1 360px;
}

@media (max-width: 767px) {
    .card-grid-3 {
        flex-direction: column;
        align-items: center;
    }
    .card-grid-3 .card {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
a.card:hover, .card:has(a:hover) { box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; }

.card-media {
    aspect-ratio: 16 / 9;
    background: var(--color-bg-alt);
    overflow: hidden;
}
.card-media a { display: block; width: 100%; height: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: var(--space-3); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card-body h3 { margin-bottom: 0; }
.card-body h3 a { color: inherit; }
.card-body h3 a:hover { color: var(--color-cta-hover); text-decoration: none; }
.card-meta { font-size: var(--fs-small); color: var(--color-text-muted); }
.card-excerpt { color: var(--color-text-muted); font-size: 0.95rem; flex: 1; }

.card-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
    color: var(--color-cta-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-1);
    flex-shrink: 0;
}
.card-icon svg { width: 28px; height: 28px; }

.card-research {
    padding: var(--space-3);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card-research:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--color-primary); text-decoration: none; }
.card-research h3 { color: var(--color-primary-dark); }
.card-research p { color: var(--color-text-muted); font-size: 0.95rem; }

/* Badges de categoria */
.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    margin-bottom: 0.2rem;
}
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.3em 0.75em;
    border-radius: var(--radius-pill);
    background: rgba(74,122,157,0.12);
    color: var(--color-secondary);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
a.badge:hover {
    background: var(--color-primary-dark);
    color: #ffffff;
    text-decoration: none;
}
.badge-cta { background: rgba(63,156,122,0.14); color: var(--color-cta-hover); }
.badge-primary { background: rgba(30,70,64,0.12); color: var(--color-primary-dark); }
.badge-count {
    background: rgba(0, 0, 0, 0.07);
    color: var(--color-text-muted);
    font-weight: 600;
}
.badge-light {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}
a.badge-light:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #ffffff;
    text-decoration: none;
}

/* ========== Taxonomia de Status de Projetos ========== */

@keyframes pulse-dot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.4em 0.9em;
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-2);
    border: 1px solid transparent;
}

/* Status: Aberto / Em andamento (Participação Ativa) */
.badge-status-open {
    background: linear-gradient(rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.08)), #ffffff;
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.35);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.12);
}

/* Status no Hero escuro (page-hero) — Base branca sólida com película vermelha translúcida */
.page-hero .badge-status-open {
    background: linear-gradient(rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.08)), #ffffff;
    color: #b91c1c;
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Ponto Luminoso Pulsante */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    display: inline-block;
    animation: pulse-dot 1.8s infinite ease-in-out;
    flex-shrink: 0;
}

/* Status: Concluído / Encerrado (para uso futuro) */
.badge-status-closed {
    background: rgba(92, 107, 104, 0.15);
    color: var(--color-text-muted);
    border-color: var(--color-border);
}
.badge-status-closed .status-dot {
    background-color: var(--color-text-muted);
    animation: none;
}

/* Item de menu com status no submenu */
.submenu-link-status {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

/* Badge indicador compacto no menu (no ápice da linha) */
.badge-status-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.18em 0.55em;
    border-radius: var(--radius-pill);
    background: linear-gradient(rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.08)), #ffffff;
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.35);
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.12);
    margin-left: auto;
    line-height: 1.1;
    transform: translateY(-1px);
}

.submenu-link-status:hover .badge-status-indicator {
    border-color: rgba(220, 38, 38, 0.6);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
}

/* ========== Equipe ========== */

.person-card { text-align: center; padding: var(--space-3); }
.person-photo {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    margin: 0 auto var(--space-2);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    border: 3px solid var(--color-bg-alt);
    overflow: hidden;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-name { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary-dark); margin-bottom: 0.15em; }
.person-role { color: var(--color-cta-hover); font-size: var(--fs-small); font-weight: 600; margin-bottom: 0.4em; }
.person-meta { color: var(--color-text-muted); font-size: var(--fs-small); }
.person-meta a { color: var(--color-text-muted); }

/* ========== Timeline / listas de valor ========== */

.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.value-list li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: var(--space-2);
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
}
.value-list .value-icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--color-cta);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ========== Tabela institucional ========== */

.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.table-institutional { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 480px; }
.table-institutional th, .table-institutional td {
    text-align: left;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--color-border);
}
.table-institutional th { background: var(--color-bg-alt); color: var(--color-primary-dark); font-family: var(--font-heading); font-weight: 600; }
.table-institutional tr:last-child td { border-bottom: none; }

/* ========== CTA banner ========== */

.cta-banner {
    background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-secondary) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.9); }
.cta-banner .btn-outline-light { border-color: rgba(255,255,255,0.7); }

.section-cta {
    padding: var(--space-4);
    background: var(--color-primary-dark);
    color: #fff;
    border-radius: var(--radius-md);
    text-align: center;
}
.section-cta a { color: #fff; }

/* ========== Cooperação (logos) ========== */

.partner-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    align-items: center;
}
.partner-item {
    padding: 0.9rem 1.5rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* ========== FAQ / Perguntas Frequentes ========== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.1rem var(--space-3);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    user-select: none;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question::after {
    content: "+";
    font-family: var(--font-base);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-cta-hover);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.faq-item[open] .faq-question::after {
    content: "−";
    color: var(--color-secondary);
}

.faq-answer {
    padding: 0 var(--space-3) var(--space-3);
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.65;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: var(--space-2);
}

/* ========== Formulário ========== */

.form-field { margin-bottom: var(--space-2); display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-weight: 600; font-size: 0.92rem; color: var(--color-primary-dark); }
.form-hint { font-size: 0.8rem; color: var(--color-text-muted); }

.form-field input,
.form-field select,
.form-field textarea {
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background: #fff;
    transition: border-color 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--color-secondary);
    outline: none;
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--color-error); }
.form-field-error { color: var(--color-error); font-size: 0.82rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-3); }
.form-grid .form-field-full { grid-column: 1 / -1; }

.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-consent {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    margin: var(--space-2) 0;
}
.form-consent input { margin-top: 0.2rem; width: 18px; height: 18px; flex-shrink: 0; }

.form-submit {
    background: var(--color-cta);
    color: #fff;
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
}
.form-submit:hover { background: var(--color-cta-hover); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-feedback { margin-top: var(--space-2); font-size: 0.9rem; font-weight: 600; }
.form-feedback.is-error { color: var(--color-error); }
.form-feedback.is-success { color: var(--color-success); }

/* ========== Blog ========== */

.blog-filter-mobile {
    display: none;
    margin-bottom: var(--space-4);
}

.blog-filter-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1.25rem;
    font-family: var(--font-base);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    background-color: #ffffff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-pill);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.select-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.select-arrow {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--color-primary-dark);
    pointer-events: none;
}

.blog-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--space-4); }
.blog-filter a {
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.blog-filter a:hover, .blog-filter a.is-active {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
    text-decoration: none;
}

.blog-filter-desktop {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.6rem;
    margin-bottom: var(--space-4);
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.blog-filter-desktop::-webkit-scrollbar {
    display: none;
}

.blog-filter-desktop a {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .blog-filter-mobile { display: block; }
    .blog-filter-desktop { display: none; }
}

.blog-post-cover {
    display: block;
    width: 100%;
    max-width: var(--max-width-narrow);
    height: auto;
    border-radius: var(--radius-lg);
    margin: 0 auto var(--space-4);
    object-fit: cover;
}

.blog-post-content { font-size: 1.05rem; max-width: var(--max-width-narrow); margin: 0 auto; }
.blog-post-content h2 { margin-top: var(--space-4); }
.blog-post-content img { border-radius: var(--radius-md); margin: var(--space-3) 0; }
.blog-post-content p { margin-bottom: var(--space-2); }

.related-posts { border-top: 1px solid var(--color-border); margin-top: var(--space-5); padding-top: var(--space-4); }

.related-carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-nav {
    display: none;
}

@media (max-width: 767px) {
    .related-carousel {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: var(--space-3);
        padding: 0 var(--space-1) var(--space-2);
        scrollbar-width: none;
    }

    .related-carousel::-webkit-scrollbar {
        display: none;
    }

    .related-carousel .card {
        min-width: 85%;
        max-width: 85%;
        flex: 0 0 85%;
        scroll-snap-align: center;
    }

    .carousel-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: var(--space-3);
        margin-top: var(--space-3);
    }

    .carousel-btn,
    .carousel-btn-prev,
    .carousel-btn-next {
        background: #ffffff;
        border: 1.5px solid var(--color-border);
        border-radius: var(--radius-pill);
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--color-primary-dark);
        box-shadow: var(--shadow-sm);
        transition: background 0.2s, border-color 0.2s, transform 0.15s;
    }

    .carousel-btn:hover,
    .carousel-btn:focus-visible,
    .carousel-btn-prev:hover,
    .carousel-btn-prev:focus-visible,
    .carousel-btn-next:hover,
    .carousel-btn-next:focus-visible {
        background: var(--color-bg-alt);
        border-color: var(--color-primary);
        outline: none;
    }

    .carousel-btn:active,
    .carousel-btn-prev:active,
    .carousel-btn-next:active {
        transform: scale(0.95);
    }
}

/* ========== Recursos / Vitrine Editorial de E-books ========== */

.card-ebook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-4);
}

.card-ebook {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.card-ebook:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    text-decoration: none;
}

.card-ebook-media {
    aspect-ratio: 2 / 3;
    background: var(--color-bg-alt);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2);
    border-bottom: 1px solid var(--color-border);
}

.card-ebook-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(30, 70, 64, 0.12);
    transition: transform 0.3s ease;
}

.card-ebook:hover .card-ebook-media img {
    transform: scale(1.02);
}

.card-ebook-body {
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.6rem;
}

.card-ebook-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
    background: rgba(63, 156, 122, 0.12);
    color: var(--color-cta-hover);
}

.card-ebook-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0;
    line-height: 1.3;
}

.card-ebook-excerpt {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    flex: 1;
    margin: 0;
}

.card-ebook-footer {
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-ebook-action {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-cta);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.card-ebook:hover .card-ebook-action {
    color: var(--color-cta-hover);
    text-decoration: underline;
}

/* ========== Landing Page de E-book (/recursos/[slug]/) ========== */

.ebook-landing {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-5);
    align-items: start;
}

.ebook-hero-media {
    text-align: center;
}

.ebook-hero-media img {
    max-width: 100%;
    width: 320px;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.ebook-audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
    margin: var(--space-4) 0;
}

.ebook-audience-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.ebook-audience-card h3 {
    color: var(--color-primary-dark);
    font-size: 1.1rem;
    margin-bottom: var(--space-1);
}

.ebook-audience-card p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin: 0;
}

.ebook-content-checklist {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0;
    display: grid;
    gap: 0.8rem;
}

.ebook-content-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.98rem;
    color: var(--color-text);
}

.ebook-content-checklist li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-cta);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.ebook-benefits {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0;
    display: grid;
    gap: 0.6rem;
}

.ebook-benefits li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.ebook-benefits li::before {
    content: "✓";
    color: var(--color-cta-hover);
    font-weight: 700;
    flex-shrink: 0;
}

.ebook-author-box {
    background: #ffffff;
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    margin: var(--space-4) 0;
    box-shadow: var(--shadow-sm);
}

.ebook-author-box h3 {
    color: var(--color-primary-dark);
    margin-bottom: var(--space-1);
    font-size: 1.1rem;
}

.ebook-author-box p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.ebook-form-panel {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.ebook-form-panel h3 {
    margin-top: 0;
    margin-bottom: var(--space-3);
    color: var(--color-primary-dark);
}

/* Grupo DDI + WhatsApp */
.form-phone-group {
    display: flex;
    gap: var(--space-1);
}

.form-select-ddi {
    width: 140px;
    flex-shrink: 0;
}

.form-input-phone {
    flex: 1;
    min-width: 0;
}

/* ========== Tela de Confirmação & Download (/download/) ========== */

.download-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
}

.download-badge-success {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(46, 125, 50, 0.12);
    color: var(--color-success);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-2);
}

.download-cover {
    width: 200px;
    max-width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    margin: var(--space-3) auto;
    display: block;
}

.download-notice {
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-3);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: var(--space-3) 0;
    text-align: left;
    line-height: 1.5;
}


/* ========== Footer ========== */

.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.75);
    padding: var(--space-6) 0 var(--space-3);
    margin-top: var(--space-6);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand { font-family: var(--font-heading); font-weight: 700; color: #fff; font-size: 1.2rem; margin-bottom: 0.6rem; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-2); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 0.92rem; color: rgba(255,255,255,0.75); }

.footer-bottom {
    padding-top: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: 0.85rem;
}
.site-footer-links { display: flex; gap: var(--space-3); flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.site-footer-links a { color: rgba(255,255,255,0.75); }
.site-footer-links a:hover { color: #fff; }

/* ========== Utilitários ========== */

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ========== Responsivo ========== */

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 480px; margin: 0 auto; }
    .ebook-landing { grid-template-columns: 1fr; }
    .ebook-cover { max-width: 320px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-height: 72px; }

    .site-header {
        background: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-toggle { display: inline-flex; }

    /* Subnav Fixa Mobile (Abas Retráteis / Expansíveis) */
    .subnav-inner {
        justify-content: space-between;
        gap: 0.35rem;
        padding: 0.4rem 0;
    }
    .subnav-link {
        padding: 0.45rem;
        min-width: 42px;
        height: 42px;
        justify-content: center;
        border-radius: var(--radius-pill);
    }
    .subnav-link .subnav-label {
        display: none;
    }
    .subnav-link.is-active {
        padding: 0.45rem 0.85rem;
        flex: 1;
        max-width: fit-content;
        justify-content: flex-start;
    }
    .subnav-link.is-active .subnav-label {
        display: inline-block;
        font-size: 0.82rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-nav-wrapper {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
        max-height: calc(100vh - var(--header-height));
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: var(--space-3) var(--space-3) var(--space-6);
        transform: translateX(100%);
        transition: transform 0.25s ease-in-out;
        gap: var(--space-2);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }
    .site-nav-wrapper.is-open { transform: translateX(0); }

    .site-nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .site-nav-menu > li > a,
    .nav-link-btn {
        width: 100%;
        padding: 0.85rem 0.5rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--color-border);
        border-radius: 0;
        justify-content: flex-start;
    }

    .submenu {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--color-primary);
        border-radius: 0;
        padding: 0.3rem 0 0.3rem 0.8rem;
        margin-left: 0.5rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
    }

    .has-submenu.is-expanded .submenu {
        display: block;
    }

    .site-nav-actions {
        padding-top: var(--space-2);
    }
    .nav-cta {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem;
    }

    .hero { padding: calc(var(--space-6) + 0.5rem) 0 var(--space-5); }
    .page-hero { padding: calc(var(--space-5) + 1rem) 0 var(--space-4); }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .card-ebook-grid { grid-template-columns: 1fr; }
    .ebook-landing { grid-template-columns: 1fr; }
    .form-phone-group { flex-direction: column; }
    .form-select-ddi { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .section { padding: var(--space-5) 0; }
    .section-sm { padding: var(--space-4) 0; }
}

@media (max-width: 480px) {
    .stats-row { grid-template-columns: 1fr 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
}
