/* ============================================================
   Alpha Saúde — v2.2  ·  Direção "O site é um exame"
   HTML/CSS/JS puro · responsivo · sem dependências JS

   A onda deixou de ser decoração e virou espinha estrutural:
   um traçado contínuo percorre a página e muda de caráter por
   seção (ECG, EEG, audiograma, ondas de sono). É a única
   identidade que os concorrentes não conseguem copiar, porque
   ela vem dos exames que a clínica de fato realiza.
   ============================================================ */

:root {
    /* Marca */
    --alpha: #f4623a;
    --alpha-deep: #d94a24;
    --alpha-soft: #f08a3c;
    --char: #231f20;
    --char-2: #2e2926;

    /* estado de erro (validação do agendamento) */
    --danger: #c8341b;
    --danger-bg: #fdecea;

    /* Neutros com leve viés quente (não cinza puro) */
    --ink: #241f1c;
    --ink-soft: #5c534e;
    --ink-faint: #8a7f79;
    --paper: #ffffff;
    --paper-2: #fbf7f4;
    --line: #ece4de;
    --card: #ffffff;

    /* superfície escura — usada como âncora de ritmo, não como tema */
    --dark: #1a1512;
    --dark-2: #241d18;
    --dark-line: #382e27;
    --dark-ink: #f4ede8;
    --dark-ink-soft: #b3a79f;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(35, 31, 32, .05), 0 4px 14px rgba(35, 31, 32, .06);
    --shadow: 0 2px 6px rgba(35, 31, 32, .06), 0 18px 44px rgba(35, 31, 32, .10);
    --shadow-alpha: 0 14px 40px rgba(217, 74, 36, .30);

    --display: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --nav-h: 76px;
    --maxw: 1180px;
    --spine-w: 92px;
    /* faixa reservada à espinha de onda no desktop */
}

/* Identidade única em tom claro — sem modo escuro automático.
   (A v2.1 carregava um bloco [data-theme] completo que nunca era
   ativado por nada; foi removido em vez de mantido como código morto.) */
:root {
    color-scheme: light;
}

/* ---------- reset ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0;
    text-wrap: balance;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 780px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--alpha);
    margin-bottom: 14px;
}

/* link de pular navegação — aparece só no teclado */
.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--alpha);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
}

.skip:focus {
    left: 0;
}

/* ============================================================
   ESPINHA DE ONDA
   Canvas fixo à esquerda. O traçado é desenhado conforme o
   scroll avança — o visitante "registra" o exame ao percorrer
   a página. Ver desenhaEspinha() em js/main.js.
   ============================================================ */
.spine {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--spine-w);
    height: 100vh;
    z-index: 3;
    pointer-events: none;
}

/* ---------- botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--body);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    white-space: nowrap;
}

.btn--lg {
    padding: 16px 30px;
    font-size: 16px;
}

.btn--primary {
    background: var(--alpha);
    color: #fff;
    box-shadow: var(--shadow-alpha);
}

.btn--primary:hover {
    background: var(--alpha-deep);
    transform: translateY(-2px);
}

.btn--ghost {
    color: var(--ink);
    border-color: color-mix(in srgb, var(--ink) 25%, transparent);
}

.btn--ghost:hover {
    border-color: var(--alpha);
    color: var(--alpha);
    transform: translateY(-2px);
}

.btn--light {
    background: #fff;
    color: var(--char);
}

.btn--light:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
}

/* ===================== NAV ===================== */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav__logo {
    height: 34px;
    width: auto;
}

.nav__logo--light {
    display: none;
}

.nav.scrolled {
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
    height: 66px;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__menu a {
    font-family: var(--body);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    padding: 9px 14px;
    border-radius: 10px;
    transition: color .15s, background .15s;
}

.nav__menu a:hover {
    color: var(--alpha);
}

/* Desktop: sem botão de agendar na navbar — o botão flutuante já cobre
   esse papel, evitando dois CTAs persistentes. No mobile ele volta. */
.nav__cta {
    display: none;
}

.nav__cta a {
    background: var(--alpha);
    color: #fff !important;
    padding: 9px 18px !important;
}

.nav__cta a:hover {
    background: var(--alpha-deep);
}

.nav__results i {
    color: var(--alpha);
    margin-right: 5px;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    background: var(--alpha);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 6px 18px rgba(217, 74, 36, .4);
    transition: background .25s, box-shadow .25s;
}

.nav__toggle span {
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: #fff;
    transition: transform .25s, opacity .25s;
}

/* ===================== HERO ===================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: linear-gradient(165deg, #fdf7f2 0%, #f7ede3 60%, #fbeee4 100%);
    color: var(--ink);
    overflow: hidden;
    padding-top: var(--nav-h);
}

.hero__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(1100px 600px at 12% 40%, rgba(244, 98, 58, .10), transparent 65%),
        linear-gradient(100deg, rgba(253, 247, 242, .96) 0%, rgba(253, 247, 242, .92) 42%, rgba(253, 247, 242, .55) 100%);
}

.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(28px, 4vw, 54px);
    align-items: center;
    padding-block: 64px;
    padding-left: calc(24px + var(--spine-w));
}

.hero__content {
    max-width: 620px;
}

/* saída discreta para quem não sabe o nome do exame — o CTA
   principal do hero é o card ao lado */
.hero__unsure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-soft);
    border-bottom: 1.5px solid color-mix(in srgb, var(--ink-faint) 40%, transparent);
    padding-bottom: 2px;
    margin-bottom: 32px;
    transition: color .2s, border-color .2s;
}

.hero__unsure i {
    color: var(--alpha);
    font-size: 17px;
}

.hero__unsure:hover {
    color: var(--alpha-deep);
    border-color: var(--alpha-deep);
}

/* eyebrow em pílula contornada, como na v2.1 */
.hero__eyebrow {
    display: inline-block;
    font-family: var(--body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--alpha-deep);
    border: 1.5px solid color-mix(in srgb, var(--alpha) 45%, transparent);
    border-radius: 999px;
    padding: 8px 18px;
    margin-bottom: 22px;
}

/* onda de acento: assinatura da marca acima do título.
   Desenhada pelo mesmo motor da espinha (preset "accent"). */
.hero__wave {
    width: 220px;
    height: 34px;
    margin-bottom: 20px;
}

.hero__wave canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero__title {
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 20px;
}

.hero__title em {
    font-style: italic;
    color: var(--alpha-deep);
}

.hero__sub {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--ink-soft);
    max-width: 54ch;
    margin: 0 0 30px;
}

/* horário + endereço + convênios direto na primeira dobra */
.hero__meta {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14.5px;
    color: var(--ink-soft);
}

.hero__meta i {
    color: var(--alpha);
    margin-right: 7px;
}

.hero__meta strong {
    color: var(--ink);
    font-weight: 700;
}

.hero__conv {
    color: var(--ink-soft);
    transition: color .2s;
}

.hero__conv b {
    color: var(--ink);
    font-weight: 600;
}

.hero__conv:hover b {
    color: var(--alpha-deep);
}

/* ---------- stats do hero ---------- */
.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 40px;
    list-style: none;
    margin: 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(35, 31, 32, .14);
}

.hero__stats strong {
    display: block;
    font-family: var(--display);
    font-size: 34px;
    font-weight: 800;
    color: var(--alpha-deep);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hero__stats span {
    font-size: 14px;
    color: var(--ink-faint);
}

/* a stat de convênios leva para a seção — daí o afeto de link */
.hero__stats a {
    display: block;
    transition: opacity .2s;
}

.hero__stats a:hover {
    opacity: .75;
}

.hero__stats a span {
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--ink-faint) 45%, transparent);
    text-underline-offset: 3px;
}

.hero__scroll {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(35, 31, 32, .45);
    font-size: 24px;
    z-index: 2;
    animation: bob 2s ease-in-out infinite;
}

@keyframes bob {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 7px);
    }
}

/* ===================== SEÇÕES ===================== */
.section {
    padding: clamp(72px, 9vw, 120px) 0;
    position: relative;
}

.section .container {
    padding-left: calc(24px + var(--spine-w));
}

.section--tint {
    background: var(--paper-2);
}

/* superfície escura: quebra o vai-e-vem claro/claro e é onde o
   traçado laranja fica realmente bonito */
.section--dark {
    background: var(--dark);
    color: var(--dark-ink);
}

.section--dark h2,
.section--dark h3 {
    color: var(--dark-ink);
}

.section--dark .section__lead {
    color: var(--dark-ink-soft);
}

.section__head {
    max-width: 680px;
    margin: 0 auto clamp(40px, 5vw, 64px);
    text-align: center;
}

.section__head--left {
    margin-left: 0;
    text-align: left;
}

.section__head h2 {
    font-size: clamp(30px, 4.2vw, 48px);
}

.section__lead {
    font-size: 16.5px;
    color: var(--ink-soft);
    margin: 14px 0 0;
}

/* ============================================================
   SINAIS — entrada por sintoma
   Cada bloco abre com o que a pessoa sente e entrega o exame
   como resposta, não como catálogo.
   ============================================================ */
.signals__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.signal {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
    padding: 44px 0;
    border-top: 1px solid var(--line);
}

.signal:last-child {
    border-bottom: 1px solid var(--line);
}

.signal__trace {
    height: 90px;
}

.signal__trace canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.signal__body h3 {
    font-size: clamp(22px, 2.6vw, 30px);
    margin-bottom: 12px;
}

/* sintomas: a lista que faz a pessoa se reconhecer */
.signal__symptoms {
    font-size: 15px;
    color: var(--ink-faint);
    margin: 0 0 14px;
    line-height: 1.7;
}

.signal__answer {
    font-size: 16px;
    color: var(--ink-soft);
    margin: 0 0 18px;
    max-width: 62ch;
}

.signal__answer b {
    color: var(--ink);
    font-weight: 600;
}

.signal__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--alpha-deep);
    border-bottom: 1.5px solid transparent;
    transition: border-color .2s, gap .2s;
}

.signal__cta:hover {
    border-color: var(--alpha-deep);
    gap: 13px;
}

/* ---------- exames (referência) ---------- */
.exams {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--dark-line);
    border: 1px solid var(--dark-line);
}

.exam {
    background: var(--dark);
    padding: 30px 26px;
    transition: background .25s;
}

.exam:hover {
    background: var(--dark-2);
}

.exam h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.exam__full {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
    color: var(--alpha-soft);
    margin: 0 0 14px;
}

.exam p {
    font-size: 14.5px;
    color: var(--dark-ink-soft);
    margin: 0 0 18px;
}

.exam a {
    font-size: 14px;
    font-weight: 600;
    color: var(--alpha-soft);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}

.exam a:hover {
    border-color: var(--alpha-soft);
}

/* ---------- como funciona ---------- */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.steps li {
    counter-increment: step;
    padding-left: 52px;
    position: relative;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--alpha) 12%, transparent);
    color: var(--alpha-deep);
    font-family: var(--body);
    font-weight: 700;
    font-size: 14px;
}

.steps h3 {
    font-size: 18px;
    margin-bottom: 2px;
}

.steps p {
    margin: 0;
    font-size: 15px;
    color: var(--ink-soft);
}

/* sem o card ao lado, as etapas ganham a largura toda */
.steps--row {
    flex-direction: row;
    gap: 28px;
}

.steps--row li {
    flex: 1;
    padding-left: 0;
    padding-top: 48px;
}

.steps__cta {
    margin: 48px 0 0;
}

/* ---------- card de agendamento ---------- */
.booking {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: var(--shadow);
    scroll-margin-top: calc(var(--nav-h) + 20px);
}

/* no hero o card flutua sobre a foto: vidro em vez de superfície sólida */
.booking--hero {
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    border-color: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 50px rgba(35, 31, 32, .16);
}

.booking__on {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--body);
    font-size: 11.5px;
    font-weight: 700;
    color: #1a8a4a;
    background: #e4f6ec;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.booking__on i {
    font-size: 7px;
}

/* Fora do horário: âmbar discreto — sinaliza a espera sem parecer erro */
.booking__on--off {
    color: #8a5a12;
    background: #fdf1dc;
}

.booking__title {
    font-size: 26px;
    margin-bottom: 4px;
}

.booking__sub {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0 0 18px;
}

.booking label {
    display: block;
    font-family: var(--body);
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.booking select {
    width: 100%;
    font-family: var(--body);
    font-size: 15px;
    color: var(--ink);
    background: var(--paper-2);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: border-color .18s, background .18s;
}

.booking select:focus {
    outline: none;
    border-color: var(--alpha);
    background: var(--paper);
}

/* ainda não escolhido: texto em cinza, como um placeholder */
.booking select.is-empty {
    color: #9c918a;
}

/* erro: campo obrigatório não preenchido */
.booking select.is-bad {
    border-color: var(--danger);
    background: var(--danger-bg);
    animation: shake .32s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

.booking__err {
    margin: 0 0 10px;
    min-height: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--danger);
}

.booking__btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--alpha);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 14px;
    font-family: var(--body);
    font-weight: 700;
    font-size: 15.5px;
    cursor: pointer;
    box-shadow: var(--shadow-alpha);
    transition: background .2s, transform .2s;
}

.booking__btn:hover {
    background: var(--alpha-deep);
    transform: translateY(-2px);
}

.booking__btn i {
    font-size: 18px;
}

.booking__note {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--ink-faint);
    text-align: center;
}

/* texto mais longo e em duas linhas: separado do botão por uma linha fina */
.booking__note--off {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    text-align: left;
    line-height: 1.55;
}

/* ---------- a clínica ---------- */
.about {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.about__media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
}

.about__text h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    margin-bottom: 18px;
}

.about__text p {
    color: var(--ink-soft);
    margin: 0 0 16px;
    font-size: 16.5px;
}

/* ---------- convênios ---------- */
.conv {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.conv__item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 22px 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, border-color .2s;
}

.conv__item:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--alpha) 40%, var(--line));
}

.conv__item img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

.conv__item span {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    text-align: center;
    margin-top: auto;
}

/* ---------- depoimentos ---------- */
.quotes {
    position: relative;
}

.quotes__track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 6px;
}

.quotes__track::-webkit-scrollbar {
    display: none;
}

.quote {
    flex: 0 0 clamp(280px, 32%, 360px);
    scroll-snap-align: start;
    margin: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quote__stars {
    color: #f0a63c;
    font-size: 13px;
    display: flex;
    gap: 2px;
}

.quote blockquote {
    margin: 0;
    font-size: 15.5px;
    color: var(--ink-soft);
    flex: 1;
}

.quote figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.quote__av {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--alpha) 12%, transparent);
    color: var(--alpha-deep);
    font-family: var(--display);
    font-weight: 700;
    font-size: 14px;
}

.quote figcaption span:last-child {
    font-size: 13px;
    color: var(--ink-faint);
}

.quote figcaption b {
    display: block;
    font-family: var(--display);
    font-size: 15px;
    color: var(--ink);
}

.quotes__nav {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.quotes__nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s, color .2s, transform .2s;
}

.quotes__nav button:hover:not(:disabled) {
    border-color: var(--alpha);
    color: var(--alpha);
    transform: translateY(-2px);
}

.quotes__nav button:disabled {
    cursor: default;
}

/* ---------- FAQ ---------- */
.faq__item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .2s;
}

.faq__item[open] {
    border-color: color-mix(in srgb, var(--alpha) 40%, var(--line));
}

.faq__item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 52px 18px 22px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 17px;
    position: relative;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--alpha);
    font-size: 14px;
    transition: transform .25s;
}

.faq__item[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq__a {
    padding: 0 22px 20px;
    color: var(--ink-soft);
    font-size: 15.5px;
}

/* ---------- contato ---------- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 34px;
    align-items: stretch;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, border-color .2s;
}

a.contact__item:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--alpha) 40%, var(--line));
}

.contact__item i {
    color: var(--alpha);
    font-size: 20px;
    margin-top: 2px;
}

.contact__item span {
    display: block;
    font-size: 15px;
    color: var(--ink-soft);
}

.contact__item b {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 2px;
}

.contact__map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    min-height: 340px;
}

.contact__map iframe {
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
    display: block;
}

/* ---------- footer ---------- */
.footer {
    background: var(--char);
    color: #cfc6c0;
    padding: 56px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-left: calc(24px + var(--spine-w));
}

.footer__logo {
    height: 36px;
    width: auto;
    margin-bottom: 14px;
}

.footer__col p {
    margin: 0;
    font-size: 15px;
    max-width: 34ch;
}

.footer__col h4 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 14px;
}

.footer__col a,
.footer__col span {
    display: block;
    font-size: 15px;
    margin-bottom: 9px;
    transition: color .18s;
}

.footer__col a:hover {
    color: var(--alpha-soft);
}

.footer__bar {
    margin-top: 46px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 24px;
    text-align: center;
    font-size: 13.5px;
    color: #9a908a;
}

/* ---------- cookies (LGPD) ---------- */
.cookie {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 120;
    max-width: 760px;
    margin: 0 auto;
    background: var(--char);
    color: #e6ded9;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .35s, transform .35s;
}

.cookie.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie p {
    margin: 0;
    font-size: 14px;
}

.cookie__ok {
    background: var(--alpha);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 10px 22px;
    font-family: var(--body);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}

.cookie__ok:hover {
    background: var(--alpha-deep);
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 110;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #25d366;
    color: #fff;
    border-radius: 999px;
    padding: 13px 20px;
    font-family: var(--body);
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 12px 30px rgba(37, 211, 102, .4);
    transition: transform .2s, box-shadow .2s;
}

.wa-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(37, 211, 102, .5);
}

.wa-float i {
    font-size: 21px;
}

/* ===================== ANIMAÇÃO DE ENTRADA =====================
   Movimento derivado do conteúdo: os blocos entram da esquerda,
   como um traçado sendo escrito na tela. */
.reveal {
    opacity: 0;
    transform: translateX(-22px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ===================== RESPONSIVO ===================== */
@media (max-width: 1100px) {
    :root {
        --spine-w: 56px;
    }
}

@media (max-width: 980px) {

    /* hero empilha: texto, depois o card */
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero {
        min-height: 0;
        padding-bottom: 56px;
    }

    .hero__scroll {
        display: none;
    }

    .steps--row {
        flex-wrap: wrap;
    }

    .steps--row li {
        flex: 1 1 44%;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .contact {
        grid-template-columns: 1fr;
    }

    .exams {
        grid-template-columns: repeat(2, 1fr);
    }

    .conv {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {

    /* a espinha sai de cena no mobile: não há margem lateral para ela */
    :root {
        --spine-w: 0px;
    }

    .spine {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__cta {
        display: block;
    }

    .nav__menu {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        padding: 12px 24px 22px;
        box-shadow: var(--shadow);
        transform: translateY(-140%);
        transition: transform .3s ease;
    }

    .nav__menu.open {
        transform: translateY(0);
    }

    .nav__menu a {
        padding: 14px 6px;
        border-bottom: 1px solid var(--line);
    }

    .signal {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .signal__trace {
        height: 60px;
    }
}

@media (max-width: 680px) {
    .steps--row li {
        flex: 1 1 100%;
        padding-top: 44px;
    }

    .exams {
        grid-template-columns: 1fr;
    }

    .conv {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .wa-float span {
        display: none;
    }

    .wa-float {
        padding: 15px;
    }

    .cookie {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        bottom: 92px;
    }

    .cookie__ok {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .hero__title {
        font-size: clamp(32px, 10vw, 44px);
    }

    .conv {
        grid-template-columns: 1fr;
    }
}

/* ===================== ACESSIBILIDADE ===================== */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

:focus-visible {
    outline: 3px solid var(--alpha);
    outline-offset: 3px;
    border-radius: 4px;
}
