/* =========================================================
   layout.css — ribbon, header (com busca), drawer, hero claro,
   footer, sticky CTA mobile, barra de cookies
   ---------------------------------------------------------
   Breakpoint da nav horizontal: 1180px (com a busca no meio,
   logo + 4 links + CTA não cabem antes). Abaixo: lupa + drawer.
   ========================================================= */

/* =========================================================
   Trust ribbon (some no scroll via main.js: transform inline)
   ========================================================= */
.trust-ribbon {
    background: var(--c-primary-dark);
    color: var(--c-muted-inverse);
    font-size: 0.72rem;
    line-height: 1.3;
    padding: 6px 0;
    text-align: center;
    overflow: hidden;
    transition: transform var(--t);
}
.trust-ribbon__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
}
.trust-ribbon__text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 var(--s-2);
}
.trust-ribbon strong { color: #fff; font-weight: 600; }
.trust-ribbon svg { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; stroke: currentColor; fill: none; } /* base.css faz svg{display:block} */

/* 3 versões do texto: xs / sm / lg conforme largura */
.trust-ribbon__xs { display: inline; }
.trust-ribbon__sm,
.trust-ribbon__lg { display: none; }

@media (min-width: 480px) {
    .trust-ribbon__xs,
    .trust-ribbon__lg { display: none; }
    .trust-ribbon__sm { display: inline; }
}
@media (min-width: 1080px) {
    .trust-ribbon    { font-size: var(--fs-xs); padding: var(--s-2) 0; }
    .trust-ribbon__xs,
    .trust-ribbon__sm { display: none; }
    .trust-ribbon__lg { display: inline; }
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    /* fundo sólido por padrão; backdrop-filter só no desktop para
       não criar containing block que prende o drawer mobile. */
    background: #ffffff;
    border-bottom: 1px solid var(--c-border);
}
@media (min-width: 1180px) {
    .site-header {
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: saturate(180%) blur(10px);
        -webkit-backdrop-filter: saturate(180%) blur(10px);
    }
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    height: 60px;
    gap: var(--s-2);
    min-width: 0;
}
.site-header__inner .logo { flex-shrink: 0; min-width: 0; margin-right: auto; }
@media (min-width: 1180px) {
    .site-header__inner { height: var(--header-h); gap: var(--s-5); }
    .site-header__inner .logo { margin-right: 0; }
}

/* Botão da lupa — só < 1180px */
.search-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--c-primary);
    font-size: 20px;
    line-height: 1;
    transition: background var(--t-fast);
}
.search-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.search-toggle:hover { background: var(--c-primary-soft); }
.search-toggle[aria-expanded="true"] { background: var(--c-primary-soft); color: var(--c-primary-dark); }
@media (min-width: 1180px) {
    .search-toggle { display: none !important; }
}

/* Nav toggle (hamburger) — mobile only */
.nav-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: var(--r-sm);
    background: transparent;
    flex-shrink: 0;
    margin-right: -8px; /* alinha visualmente com a borda do container */
}
.nav-toggle__bar {
    width: 22px;
    height: 2px;
    background: var(--c-primary);
    border-radius: 2px;
    transition: transform var(--t), opacity var(--t);
}

/* =========================================================
   Busca — form base (header, barra mobile e hero)
   <form class="site-search"> label + input + button
   ========================================================= */
.site-search {
    position: relative;          /* ancora o .live-search */
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--s-2);
    width: 100%;
    min-width: 0;
}
.site-search__label {
    flex: 1 0 100%;
    font-weight: 600;
    color: var(--c-primary);
    font-size: var(--fs-md);
    line-height: 1.3;
}
.site-search__input {
    flex: 1 1 200px;
    min-width: 0;
    height: 44px;
    padding: 0 var(--s-3);
    background: #fff;
    color: var(--c-text);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--r-md);
    font-family: var(--ff);
    font-size: max(16px, 1rem);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--t-fast);
}
.site-search__input::placeholder { color: var(--c-muted); }
.site-search__input:hover { border-color: var(--c-primary); }
.site-search__input:focus-visible { border-color: var(--c-focus); }
.site-search__input::-webkit-search-decoration { -webkit-appearance: none; }
.site-search__btn {
    flex: 0 0 auto;
    height: 44px;
    padding-block: 0;
    padding-inline: var(--s-4);
}

/* Form inline do header (.site-search--header): só ≥ 1180px. Abaixo disso a
   busca é a barra #site-search-bar aberta pela lupa — sem isso o header de 60px
   mostrava DOIS forms e o botão "Buscar" vazava sobre o hero no mobile. */
.site-search--header { display: none; }

/* --- Header compacto (só ≥ 1180px) --- */
@media (min-width: 1180px) {
    .site-search--header { display: flex; }
    .site-header__inner .site-search {
        flex: 1 1 260px;
        min-width: 220px;
        max-width: 400px;
        flex-wrap: nowrap;
        margin-inline: auto;
    }
    .site-header__inner .site-search__input { height: 40px; font-size: max(16px, var(--fs-sm)); }
    .site-header__inner .site-search__btn   { height: 40px; padding-inline: var(--s-3); font-size: var(--fs-sm); }
}

/* --- Barra mobile sob o header (aberta pela lupa; main.js alterna hidden) ---
   Contém o form do header. < 1180px: painel absoluto colado à base do header.
   ≥ 1180px: vira um item de linha do header (mesmo com hidden), ou some se o
   header já tem uma busca inline própria. */
.site-search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 45;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--sh-md);
    padding: var(--s-3) var(--s-4) var(--s-4);
}
.site-search-bar[hidden] { display: none; }
.site-search-bar .site-search { max-width: var(--container); margin-inline: auto; }
@media (max-width: 479px) {
    /* como no card do hero: campo em linha própria, senão o placeholder é cortado */
    .site-search-bar .site-search__input { flex-basis: 100%; }
    .site-search-bar .site-search__btn   { flex: 1 1 auto; }
}
@media (min-width: 1180px) {
    .site-search-bar,
    .site-search-bar[hidden] {
        display: flex;
        position: static;
        flex: 1 1 260px;
        min-width: 220px;
        max-width: 400px;
        margin-inline: auto;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }
    .site-search-bar .site-search { flex-wrap: nowrap; }
    .site-search-bar .site-search__input { height: 40px; font-size: max(16px, var(--fs-sm)); }
    .site-search-bar .site-search__btn   { height: 40px; padding-inline: var(--s-3); font-size: var(--fs-sm); }
    /* header com busca inline própria: a barra é só do mobile */
    .site-header:has(.site-header__inner > .site-search) .site-search-bar { display: none; }
    /* barra fora do .site-header__inner: não vira item da linha */
    .site-header > .site-search-bar { display: none; }
}

/* --- Hero: UMA linha — lupa + campo + botão encostado ---
   Histórico: 0.3.0 era um card branco com rótulo em cima e botão de 52px (alto e
   competindo com o H1); 0.3.1 encolheu a largura mas manteve o card e o rótulo,
   e ficou pior: estreito demais para o texto acima e ainda com três "andares".
   Agora o campo tem a largura do parágrafo acima (640px), sem card nem rótulo
   visível (o placeholder orienta; o <label> fica .sr-only para o leitor de tela),
   lupa dentro do campo e o botão colado — a barra de busca que todo mundo conhece. */
.site-search--hero {
    max-width: 640px;
    margin: var(--s-5) 0 var(--s-4);
    padding: 0;
    gap: 0;
    flex-wrap: nowrap;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.site-search--hero .site-search__label { flex: none; }   /* é .sr-only no markup */
.site-search--hero .site-search__input {
    height: 52px;
    flex: 1 1 auto;
    padding-inline: 44px var(--s-3);                      /* espaço da lupa */
    font-size: max(16px, var(--fs-md));
    border: 1px solid var(--c-border-strong);
    border-right: 0;
    border-radius: var(--r-md) 0 0 var(--r-md);
    box-shadow: var(--sh-sm);
    /* lupa desenhada no próprio campo (mesmo traço dos ícones do site) */
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7684' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='6.5'/><path d='M20 20l-4.3-4.3'/></svg>");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 20px 20px;
}
.site-search--hero .site-search__input:focus-visible {
    border-color: var(--c-focus);
    box-shadow: var(--sh-sm);
    outline-offset: 0;
}
.site-search--hero .site-search__btn {
    height: 52px;
    flex: 0 0 auto;
    padding-inline: var(--s-4);
    font-size: var(--fs-sm);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    box-shadow: var(--sh-sm);
}
/* Telefone estreito: o campo continua em linha (a lupa some para sobrar espaço) */
@media (max-width: 479px) {
    .site-search--hero .site-search__input {
        padding-inline: var(--s-3);
        background-image: none;
    }
}

/* --- Dropdown do live-search (role=listbox) — só estilo nesta etapa --- */
.live-search {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 80;
    max-height: min(60vh, 420px);
    overflow-y: auto;
    padding: var(--s-2);
    background: #fff;
    color: var(--c-text);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    text-align: left;
}
.live-search[hidden] { display: none; }
.site-search--hero .live-search { left: 0; right: 0; top: calc(100% + 4px); }
.live-search__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--s-2) var(--s-3);
    border-radius: var(--r-sm);
    color: var(--c-text);
    font-size: var(--fs-sm);
    line-height: 1.35;
    cursor: pointer;
    text-decoration: none;
}
.live-search__item:hover,
.live-search__item[aria-selected="true"] { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.live-search__item strong { font-weight: 600; color: var(--c-primary); }
.live-search__meta { font-size: var(--fs-xs); color: var(--c-muted); }
.live-search__item .badge { align-self: flex-start; margin-top: 2px; }
.live-search__vazio {
    padding: var(--s-3);
    font-size: var(--fs-sm);
    color: var(--c-muted);
}
.live-search__vazio a {
    color: var(--c-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.live-search__item.is-active { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.live-search mark {
    background: var(--c-brinde-soft);
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}
.live-search__empty,
.live-search__foot {
    padding: var(--s-3);
    font-size: var(--fs-sm);
    color: var(--c-muted);
}
.live-search__foot { border-top: 1px solid var(--c-border); margin-top: var(--s-1); }
.live-search__foot a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================
   Drawer mobile (viewport inteira)
   ========================================================= */
.primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    background: #fff;
    padding: 0;
    transform: translateX(110%);
    visibility: hidden; /* fechado = fora da ordem de Tab e do leitor de tela (só o transform deixava os links alcançáveis) */
    transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 280ms;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.18);
    overscroll-behavior: contain;
}
.primary-nav.is-open { transform: translateX(0); visibility: visible; transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s; }

.primary-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-4);
    border-bottom: 1px solid var(--c-border);
    flex-shrink: 0;
}

.nav-close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
}
.nav-close:active { transform: scale(0.94); }

.primary-nav__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--s-4);
    flex: 1;
}
.primary-nav__list a {
    display: flex;
    align-items: center;
    padding: var(--s-4);
    border-radius: var(--r-md);
    color: var(--c-text);
    font-weight: 600;
    font-size: var(--fs-md);
    min-height: 48px;
}
.primary-nav__list a:hover,
.primary-nav__list a:active,
.primary-nav__list a[aria-current="page"] { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.primary-nav__cta {
    margin: var(--s-4);
    margin-top: 0;
    padding-block: var(--s-4) !important;
}

/* Backdrop escuro atrás do drawer */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(19, 40, 68, 0.55);
    z-index: 55;
    opacity: 0;
    transition: opacity var(--t);
    cursor: pointer;
}
.nav-backdrop[hidden] { display: none; }
.nav-backdrop.is-visible { opacity: 1; }

/* =========================================================
   Nav desktop (≥ 1180px)
   ========================================================= */
@media (min-width: 1180px) {
    .nav-toggle, .nav-backdrop { display: none !important; }
    .primary-nav__head { display: none; }

    .primary-nav {
        position: static;
        transform: none;
        visibility: visible;
        width: auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
        flex-direction: row;
        align-items: center;
        gap: var(--s-4);
        overflow: visible;
        flex-shrink: 0;
    }
    .primary-nav__list {
        flex-direction: row;
        gap: 0;
        padding: 0;
        flex-wrap: nowrap;
    }
    .primary-nav__list a {
        padding: var(--s-2) var(--s-3);
        font-size: var(--fs-sm);
        min-height: auto;
        white-space: nowrap;
        border-radius: var(--r-sm);
        background: transparent;
    }
    .primary-nav__list a:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
    .primary-nav__list a[aria-current="page"] {
        background: transparent;
        color: var(--c-primary);
        box-shadow: inset 0 -2px 0 var(--c-primary);
        border-radius: 0;
    }
    .primary-nav__cta {
        margin: 0;
        padding: var(--s-2) var(--s-4) !important;
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* =========================================================
   Hero — CLARO por padrão (--c-primary-soft). O gradiente
   --g-hero fica reservado a #certificado e ao footer;
   .hero--dark existe só se alguma página interna precisar.
   ========================================================= */
.hero,
.hero--light {
    background: var(--c-primary-soft);
    color: var(--c-text);
    padding-block: var(--s-6) var(--s-7);
    position: relative;
    /* SEM overflow:hidden — o dropdown da busca é absoluto dentro do hero e era
       cortado na borda inferior. O fundo decorativo (::before) tem inset:0 e
       não vaza, então o overflow nunca foi necessário. */
    border-bottom: 1px solid var(--c-border);
}
@media (min-width: 880px) {
    .hero, .hero--light { padding-block: var(--s-8) var(--s-8); }
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.75), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(74, 127, 181, 0.12), transparent 40%);
    pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 820px; }
.hero__eyebrow {
    display: block;
    margin-bottom: var(--s-3);
    color: var(--c-secondary-dark);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.hero__title {
    color: var(--c-primary);
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.1rem);
    line-height: 1.15;
    margin-bottom: var(--s-3);
    max-width: 22ch;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.hero__title br { display: none; }
@media (min-width: 880px) {
    .hero__title { line-height: 1.1; margin-bottom: var(--s-4); }
    .hero__title br { display: inline; }
}
@media (min-width: 980px) {
    .hero__title { max-width: 26ch; } /* 22ch dava 5 linhas e empurrava #cursos para fora da dobra */
}
.hero__title em {
    font-style: normal;
    color: var(--c-secondary-dark);
}
.hero__sub {
    font-size: var(--fs-md);
    color: var(--c-text);
    max-width: 640px;
    margin-bottom: var(--s-4);
}
.hero__sub strong,
.hero__sub .price { color: var(--c-text); font-weight: 700; }
@media (min-width: 880px) {
    .hero__sub { font-size: var(--fs-lg); }
}
.hero__ctas {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    align-items: stretch;
}
.hero__ctas .btn { width: 100%; }
@media (min-width: 560px) {
    .hero__ctas { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .hero__ctas .btn { width: auto; }
}
.hero .chips { margin-top: var(--s-3); }
.hero .hero-proof { margin-top: var(--s-5); }

/* Variante escura (uso restrito; a home não usa) */
.hero--dark {
    background: var(--g-hero);
    color: #fff;
    border-bottom: 0;
}
.hero--dark::before {
    background:
        radial-gradient(circle at 80% 10%, rgba(74, 127, 181, 0.30), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(242, 185, 168, 0.14), transparent 40%);
}
.hero--dark .hero__eyebrow { color: var(--c-muted-inverse); }
.hero--dark .hero__title { color: #fff; }
.hero--dark .hero__title em { color: var(--c-mark-dot); }
.hero--dark .hero__sub,
.hero--dark .hero__sub strong { color: rgba(255, 255, 255, 0.92); }
.hero--dark .hero-proof,
.hero--dark .hero-proof span { color: rgba(255, 255, 255, 0.92); }
.hero--dark .hero-proof strong { color: #fff; }
.hero--dark .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.hero--dark .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

/* =========================================================
   Footer — navy escuro, texto branco, secundário em --c-muted-inverse
   ========================================================= */
.site-footer {
    background: var(--c-primary-dark);
    color: #fff;
    padding-block: var(--s-7) var(--s-5);
    margin-top: var(--s-7);
}
.site-footer a { color: var(--c-muted-inverse); }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-6);
    padding-bottom: var(--s-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 560px) {
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
    .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
}
.site-footer__brand { margin-bottom: var(--s-6); }
.site-footer__brand .site-footer__about { max-width: 65ch; }
.site-footer__brand .logo { margin-bottom: var(--s-4); }
.site-footer__about {
    color: var(--c-muted-inverse);
    font-size: var(--fs-sm);
    line-height: 1.6;
    margin: 0;
}
.site-footer__about strong { color: #fff; font-weight: 600; }
.site-footer__about a { text-decoration: underline; text-underline-offset: 2px; } /* mesma cor do texto ao redor: só o sublinhado diz que é link */
.site-footer__about--small { font-size: var(--fs-xs); line-height: 1.6; }
.site-footer__title {
    color: #fff;
    font-family: var(--ff);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--s-3);
}
.site-footer__list li { margin-bottom: var(--s-2); }
.site-footer__list a {
    color: var(--c-muted-inverse);
    font-size: var(--fs-sm);
}
.site-footer__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* Link cruzado discreto ("Prefere os 21 num pacote? IncluiEduca") */
.site-footer__cross {
    margin: var(--s-4) 0 0;
    padding-top: var(--s-3);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: var(--fs-xs);
    color: var(--c-muted-inverse);
}
.site-footer__cross a { text-decoration: underline; text-underline-offset: 2px; }

.site-footer__bottom {
    padding-top: var(--s-4);
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    text-align: center;
    font-size: var(--fs-xs);
    color: var(--c-muted-inverse);
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: #fff; }
.site-footer__bottom a:hover { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 880px) {
    .site-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* =========================================================
   Sticky CTA mobile (some quando #cursos/#comprar está visível — main.js)
   ========================================================= */
.sticky-cta {
    position: fixed;
    left: var(--s-4);
    right: var(--s-4);
    bottom: var(--s-4);
    z-index: 40;
    background: var(--c-cta);
    color: #fff;
    padding: var(--s-3) var(--s-5);
    border-radius: var(--r-pill);
    text-align: center;
    box-shadow: var(--sh-cta-hover), 0 12px 32px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-weight: 700;
    transform: translateY(150%);
    transition: transform var(--t-slow);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta:hover { background: var(--c-cta-hover); color: #fff; }
.sticky-cta__label { font-size: var(--fs-sm); }
.sticky-cta__price { font-size: var(--fs-xs); opacity: 0.92; font-variant-numeric: tabular-nums; }
.sticky-cta__price:empty { display: none; }

@media (min-width: 980px) {
    .sticky-cta { display: none; }
}
/* Espaço para o sticky não cobrir conteúdo */
@media (max-width: 979px) {
    body { padding-bottom: 84px; }
}

/* =========================================================
   Aviso de cookies / LGPD — barra discreta no rodapé
   ========================================================= */
.cookie-bar {
    position: fixed;
    left: 50%;
    bottom: var(--s-4);
    transform: translateX(-50%);
    /* 45: acima do sticky-cta (40) e ABAIXO do header (50). O header é sticky com
       z-index 50 e forma um stacking context: o backdrop (55) e o drawer (60) só
       valem DENTRO dele — qualquer z-index ≥ 50 aqui fica por cima do menu aberto
       (era o caso com 70; o IE ainda tem esse comportamento). */
    z-index: 45;
    display: flex;
    align-items: center;
    gap: var(--s-4);
    width: calc(100% - var(--s-5));
    max-width: 640px;
    padding: var(--s-3) var(--s-4);
    background: var(--c-text);
    color: rgba(255, 255, 255, 0.92);
    border-radius: var(--r-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    font-size: var(--fs-sm);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar__text { margin: 0; line-height: 1.45; }
.cookie-bar__text a {
    color: var(--c-muted-inverse);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-bar__text a:hover { color: #fff; }
.cookie-bar__btn {
    flex-shrink: 0;
    min-height: 44px;
    padding: var(--s-2) var(--s-4);
    background: var(--c-cta);
    color: #fff;
    border: 0;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: var(--fs-sm);
    cursor: pointer;
}
.cookie-bar__btn:hover { background: var(--c-cta-hover); }
.cookie-bar__actions { display: flex; gap: var(--s-2); flex-shrink: 0; }
.cookie-bar__btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.cookie-bar__btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* No mobile, o sticky-cta ocupa a base: empilha o aviso e abre espaço */
@media (max-width: 979px) {
    .cookie-bar {
        flex-direction: column;
        gap: var(--s-2);
        bottom: 92px; /* acima do sticky-cta */
        text-align: center;
    }
    .cookie-bar__actions { width: 100%; }
    /* flex-shrink:0 + width:100% em cada botão empurrava "Só o essencial" para
       fora da tela — o visitante só conseguia Aceitar. Os dois dividem a linha. */
    .cookie-bar__btn { flex: 1 1 0; width: auto; min-width: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    .cookie-bar { animation: cookie-bar-in 0.35s ease-out; }
    @keyframes cookie-bar-in {
        from { opacity: 0; transform: translate(-50%, 12px); }
        to   { opacity: 1; transform: translate(-50%, 0); }
    }
}
