/* ==========================================================================
   LP Nutrigenética · Dra. Priscilla Marcondelli
   Identidade da cliente: oliva + papel + caramelo, Fraunces + Montserrat.
   Conceito: "o mapa e a rota" (curvas de nível, pinos e rota tracejada).
   Hero: dupla hélice de DNA animada no fundo (aprovada em 2026-09-11).
   ========================================================================== */

:root {
  --paper: #f5f2ea;
  --paper-2: #ede8dc;
  --card: #fbf9f4;
  --ink: #2c3117;
  --ink-soft: #4b5036;
  --muted: #676b55;

  --olive-900: #2f3616;
  --olive-800: #3a431c;
  --olive-700: #4f5a26;
  --olive-500: #6f7c3a;
  --sage-200: #d3d8bd;
  --sage-100: #e5e8d6;

  --caramel: #9a6541;
  --caramel-600: #875534;
  --caramel-light: #e2b48f;
  --caramel-soft: #d9a67f;

  --line: rgba(47, 54, 22, 0.13);
  --line-strong: rgba(47, 54, 22, 0.24);
  --line-light: rgba(245, 242, 234, 0.18);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 22px 44px -26px rgba(47, 54, 22, 0.42);
  --shadow-cta: 0 14px 28px -14px rgba(111, 68, 41, 0.75);

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --topbar-h: 68px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.25vw + 0.95rem, 1.08rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h3 {
  text-wrap: pretty;
}

p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

strong {
  font-weight: 600;
}

::selection {
  background: var(--sage-200);
  color: var(--olive-900);
}

:focus-visible {
  outline: 3px solid var(--caramel);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--olive-900);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn--primary:hover {
  background: var(--caramel-600);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -14px rgba(111, 68, 41, 0.8);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--lg {
  padding: 1.05em 1.75em;
  font-size: 1.02rem;
}

.btn--sm {
  padding: 0.62em 1.1em;
  font-size: 0.86rem;
}

/* no celular o CTA principal ocupa a largura toda: alvo de toque maior e texto sem quebra */
@media (max-width: 559px) {
  .btn--lg {
    width: 100%;
    padding-inline: 1.2em;
  }
}

/* ---------- Topo ---------- */

.topbar {
  position: relative;
  z-index: 20;
  background: rgba(245, 242, 234, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
}

@supports (backdrop-filter: blur(1px)) {
  .topbar {
    background: rgba(245, 242, 234, 0.72);
    backdrop-filter: saturate(140%) blur(14px);
  }
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--topbar-h);
}

.wordmark {
  display: block;
  flex: none;
}

/* a logo original é branca; no topo claro entra a cópia em oliva */
.wordmark img {
  width: auto;
  height: 46px;
}

@media (min-width: 860px) {
  :root {
    --topbar-h: 80px;
  }

  .wordmark img {
    height: 62px;
  }
}

/* ---------- Primeira dobra ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(211, 216, 189, 0.55), rgba(211, 216, 189, 0) 70%),
    var(--paper);
}

/* Dupla hélice de fundo: passa na diagonal por trás da Dra. e anda no próprio eixo,
   o que dá a ilusão de girar (aprovada no lugar das curvas de nível em 2026-09-11) */
.hero__dna {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  /* celular: só na metade de baixo, em volta da foto, com o texto limpo */
  -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 66%);
  mask-image: linear-gradient(180deg, transparent 40%, #000 66%);
}

.hero__dna-axis {
  --dna-w: 280px;      /* largura do bloco (a hélice tem ~74% disso de diâmetro) */
  --dna-h: 560px;      /* uma volta completa; manter a proporção 1:2 do SVG */
  --dna-x: 60%;
  --dna-y: 80%;
  --dna-rot: 24deg;
  position: absolute;
  top: var(--dna-y);
  left: var(--dna-x);
  width: var(--dna-w);
  height: 2600px;
  transform: translate(-50%, -50%) rotate(var(--dna-rot));
}

.hero__dna-strand {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: calc(100% + var(--dna-h));
  background: url("../images/dna-helice.svg") 0 0 / var(--dna-w) var(--dna-h) repeat-y;
  animation: dna-giro 42s linear infinite;
  will-change: transform;
}

@keyframes dna-giro {
  to {
    transform: translate3d(0, calc(var(--dna-h) * -1), 0);
  }
}

@media (min-width: 860px) {
  .hero__dna {
    -webkit-mask-image: linear-gradient(100deg, transparent 32%, #000 60%);
    mask-image: linear-gradient(100deg, transparent 32%, #000 60%);
  }

  .hero__dna-axis {
    --dna-w: 400px;
    --dna-h: 800px;
    --dna-x: 73%;
    --dna-y: 52%;
    --dna-rot: 34deg;
  }
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 36px;
}

.hero__text {
  max-width: 640px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive-700);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--caramel);
}

.hero__title {
  margin-top: 18px;
  font-size: clamp(2.45rem, 4.4vw + 1.05rem, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--olive-900);
}

.hero__title em {
  display: block;
  font-style: italic;
  color: var(--olive-500);
}

.hero__lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(1.02rem, 0.4vw + 0.95rem, 1.16rem);
  color: var(--ink-soft);
}

.hero__lead strong {
  color: var(--ink);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 30px;
}

.hero__note {
  font-size: 0.86rem;
  color: var(--muted);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 28px;
}

.hero__proof li {
  padding: 0.45em 0.95em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(251, 249, 244, 0.7);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--olive-800);
}

.hero__proof .hero__proof-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(154, 101, 65, 0.35);
  background: rgba(226, 180, 143, 0.16);
}

.hero__proof-rating .icon {
  width: 1em;
  height: 1em;
  color: var(--caramel);
}

.hero__media {
  position: relative;
  justify-self: center;
  width: min(74vw, 330px);
  height: min(104vw, 470px);
}

/* brilho suave atrás da Dra.: separa a silhueta da hélice e deixa o rosto limpo */
.hero__halo {
  position: absolute;
  top: 6%;
  left: 50%;
  width: 104%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 242, 234, 0.96) 35%, rgba(229, 232, 214, 0.7) 68%, rgba(229, 232, 214, 0));
}

.hero__photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  filter: drop-shadow(0 26px 34px rgba(47, 54, 22, 0.2));
}

@media (min-width: 860px) {
  .topbar {
    position: sticky;
    top: 0;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: 40px;
  }

  .hero__text {
    align-self: center;
    padding-bottom: 56px;
  }

  .hero__media {
    width: min(100%, 440px);
    height: 620px;
  }
}

/* ---------- Fatos rápidos ---------- */

.facts {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--card);
}

.facts__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact {
  padding: 22px 16px 22px 0;
}

.fact:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.fact:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.fact__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.3vw + 1rem, 1.85rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--olive-800);
}

.fact__label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

@media (min-width: 860px) {
  .facts__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fact,
  .fact:nth-child(even) {
    padding: 30px 24px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .fact:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

/* ---------- Seções: base ---------- */

.section {
  position: relative;
  padding-block: var(--section-y);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-700);
}

.kicker__num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--caramel);
}

.kicker__num::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.kicker--light {
  color: var(--sage-200);
}

.kicker--light .kicker__num {
  color: var(--caramel-soft);
}

.section-title {
  max-width: 30ch;
  font-size: clamp(1.8rem, 2.1vw + 1.05rem, 2.75rem);
  line-height: 1.1;
  color: var(--olive-900);
}

.section-lead {
  max-width: 40em;
  margin-top: 18px;
  font-size: 1.06rem;
  color: var(--ink-soft);
}

.section-head {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head--center {
  text-align: center;
}

.section-head--center .kicker {
  justify-content: center;
}

.section-head--center .section-title {
  margin-inline: auto;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(44px, 5vw, 64px);
}

/* ---------- 01 De onde você vem ---------- */

.problem__grid {
  display: grid;
  gap: 28px;
}

.problem__scene {
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 0.7vw + 1.02rem, 1.5rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--olive-800);
}

.problem__question {
  margin-top: 20px;
  font-size: 1.06rem;
}

.problem__question em {
  font-family: var(--font-display);
  font-size: 1.12em;
  font-style: italic;
  color: var(--caramel);
}

.problem__limits {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.problem__limits li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
}

.problem__limits li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--caramel);
  border-radius: 50%;
}

.problem__limits strong {
  color: var(--ink);
}

.motto {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 7vw, 88px);
  padding: clamp(36px, 5.5vw, 72px);
  border-radius: var(--radius-lg);
  background: var(--olive-800) url("../images/topo-escuro.svg") center / cover no-repeat;
  color: var(--paper);
}

.motto::before {
  content: "\201C";
  position: absolute;
  top: -0.06em;
  right: 0.14em;
  font-family: var(--font-display);
  font-size: clamp(9rem, 16vw, 15rem);
  line-height: 1;
  color: rgba(226, 180, 143, 0.16);
  pointer-events: none;
}

.motto p {
  position: relative;
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw + 0.85rem, 2.6rem);
  line-height: 1.2;
}

.motto em {
  font-style: italic;
  color: var(--caramel-light);
}

.motto figcaption {
  position: relative;
  margin-top: 24px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-200);
}

@media (min-width: 860px) {
  .problem__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 72px;
    align-items: start;
  }
}

/* ---------- 02 O mapa ---------- */

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

.exams {
  display: grid;
  gap: 18px;
}

.exam {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.exam:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.exam__icon {
  width: 40px;
  height: 40px;
  color: var(--olive-500);
}

.exam__title {
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--olive-900);
}

.exam__title span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel);
}

.exam p {
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.exam strong {
  color: var(--ink);
}

.exam--featured {
  border-color: transparent;
  background: var(--olive-800) url("../images/topo-escuro.svg") right center / cover no-repeat;
  color: var(--paper);
}

.exam--featured .exam__icon {
  width: 48px;
  height: 48px;
  color: var(--caramel-light);
}

.exam--featured .exam__title {
  font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2.05rem);
  color: var(--paper);
}

.exam--featured .exam__title span {
  color: var(--caramel-soft);
}

.exam--featured p {
  max-width: 58ch;
  font-size: 1.02rem;
  color: var(--sage-200);
}

.exam--featured .exam__highlight {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);
  font-style: italic;
  color: #f3e8da;
}

.map__note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 780px;
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sage-100);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.map__note .icon {
  margin-top: 0.2em;
  color: var(--olive-500);
}

.map__note strong {
  color: var(--ink);
}

@media (min-width: 720px) {
  .exams {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam--featured {
    grid-column: 1 / -1;
    padding: clamp(32px, 4vw, 52px);
  }
}

@media (min-width: 1024px) {
  .exams {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* destaque em duas colunas: nome e frase-chave à esquerda, explicação à direita */
  .exam--featured {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-content: center;
    column-gap: 56px;
    row-gap: 14px;
  }

  .exam--featured > * {
    grid-column: 1;
  }

  .exam--featured > p:not(.exam__highlight) {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    padding-left: 40px;
    border-left: 1px solid var(--line-light);
    font-size: 1.08rem;
  }
}

/* ---------- 03 A rota ---------- */

.route {
  background: var(--olive-900) url("../images/topo-escuro.svg") center / cover no-repeat;
  color: var(--paper);
}

.route .section-title {
  color: var(--paper);
}

.steps {
  position: relative;
  display: grid;
  gap: 40px;
  max-width: 1040px;
  margin-inline: auto;
}

.steps::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  border-left: 2px dashed rgba(226, 180, 143, 0.5);
}

.step {
  position: relative;
  padding-left: 76px;
}

.step__pin {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--caramel);
  box-shadow: 0 0 0 7px rgba(154, 101, 65, 0.24);
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
}

.step__title {
  margin-bottom: 10px;
  padding-top: 8px;
  font-size: 1.45rem;
  color: var(--paper);
}

.step p {
  color: var(--sage-200);
}

.step strong {
  color: #f3e8da;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px;
  }

  .steps::before {
    top: 24px;
    right: calc(100% / 6);
    bottom: auto;
    left: calc(100% / 6);
    border-top: 2px dashed rgba(226, 180, 143, 0.5);
    border-left: 0;
  }

  .step {
    padding-top: 80px;
    padding-left: 0;
    text-align: center;
  }

  .step__pin {
    left: 50%;
    transform: translateX(-50%);
  }

  .step__title {
    padding-top: 0;
  }
}

/* ---------- 04 Onde eu atuo ---------- */

.services__list {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.service {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  column-gap: 18px;
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
}

.service__num {
  grid-row: span 2;
  padding-top: 0.22em;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--caramel);
}

.service__title {
  font-size: 1.34rem;
  line-height: 1.2;
  color: var(--olive-900);
}

.service--lead .service__title {
  color: var(--caramel-600);
}

.service p {
  margin-top: 8px;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

@media (min-width: 720px) {
  .services__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 44px;
  }
}

@media (min-width: 1024px) {
  .services__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 52px;
  }

  .service {
    padding: 34px 0 38px;
  }
}

/* ---------- 05 Quem traça a rota ---------- */

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

.about__grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

.about__media {
  position: relative;
  max-width: 480px;
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.about__badge {
  position: absolute;
  right: 16px;
  bottom: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  font-size: 0.84rem;
  line-height: 1.3;
  color: var(--muted);
}

.about__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.05;
  color: var(--olive-800);
}

.about__fact {
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.about__fact strong {
  color: var(--caramel-600);
}

.credentials {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.credentials li {
  position: relative;
  padding-left: 28px;
  font-size: 0.97rem;
}

.credentials li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--caramel);
  border-radius: 50%;
}

.about__quote {
  margin-top: 30px;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--caramel);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 0.7vw + 1rem, 1.45rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--olive-800);
}

@media (min-width: 860px) {
  .about__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 76px;
  }

  .about__badge {
    right: -22px;
    bottom: 40px;
  }
}

/* ---------- 06 Quem já está na rota ---------- */

.testimonials {
  display: grid;
  grid-auto-columns: min(84vw, 360px);
  grid-auto-flow: column;
  align-items: start;  /* no carrossel cada card fica com a própria altura */
  gap: 16px;
  overflow-x: auto;
  padding: 4px var(--gutter) 18px;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  scroll-snap-align: start;
}

.testimonial blockquote {
  flex: 1;
}

.testimonial p {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.testimonial p::before {
  content: "\201C";
}

.testimonial p::after {
  content: "\201D";
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--olive-800);
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--olive-800);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--paper);
}

/* avaliações do Google: estrelas no lugar do rótulo de tema */
.stars {
  display: inline-flex;
  gap: 3px;
  color: var(--caramel);
}

.stars .icon {
  width: 17px;
  height: 17px;
}

.testimonial__who {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.testimonial__who small {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
}

/* primeiro card da seção: a nota do consultório no Google */
.reviews-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--olive-800) url("../images/topo-escuro.svg") center / cover no-repeat;
  color: var(--paper);
  scroll-snap-align: start;
}

.reviews-summary__score {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 3vw + 2.4rem, 4.4rem);
  line-height: 0.95;
}

.reviews-summary .stars {
  color: var(--caramel-light);
}

.reviews-summary .stars .icon {
  width: 24px;
  height: 24px;
}

.reviews-summary__label {
  max-width: 24ch;
  font-size: 0.95rem;
  color: var(--sage-200);
}

.reviews-summary__link {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--paper);
  text-decoration-color: rgba(245, 242, 234, 0.45);
  text-underline-offset: 4px;
}

.reviews-summary__link:hover {
  text-decoration-color: var(--caramel-light);
}

@media (min-width: 1024px) {
  .testimonials {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    grid-auto-flow: row;
    align-items: stretch;
    gap: 20px;
    max-width: var(--container);
    margin-inline: auto;
    overflow: visible;
    padding-block: 4px 0;
  }
}

/* ---------- 07 Primeiro passo ---------- */

.first-step {
  background: var(--sage-100);
}

.first-step__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.first-step__media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: var(--radius-lg);
}

.first-step__card {
  padding: clamp(28px, 4.5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.checklist {
  display: grid;
  gap: 14px;
  margin: 26px 0 32px;
}

.checklist li {
  position: relative;
  padding-left: 36px;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.12em;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--olive-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2 5 8.5l4.4-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.checklist strong {
  color: var(--ink);
}

@media (min-width: 860px) {
  .first-step__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
  }

  .first-step__media img {
    max-height: none;
    aspect-ratio: 4 / 4.6;
  }
}

/* ---------- 08 Perguntas frequentes ---------- */

.faq__grid {
  display: grid;
  gap: 8px;
}

.faq__list {
  border-top: 1px solid var(--line-strong);
}

.qa {
  border-bottom: 1px solid var(--line-strong);
}

.qa summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.45vw + 1rem, 1.3rem);
  line-height: 1.3;
  color: var(--olive-900);
  list-style: none;
  cursor: pointer;
}

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

.qa summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background:
    linear-gradient(var(--caramel), var(--caramel)) center / 16px 2px no-repeat,
    linear-gradient(var(--caramel), var(--caramel)) center / 2px 16px no-repeat;
  transition: transform 0.25s ease;
}

.qa[open] summary::after {
  transform: rotate(45deg);
}

.qa summary:hover {
  color: var(--caramel-600);
}

.qa p {
  max-width: 62ch;
  padding-bottom: 24px;
  color: var(--ink-soft);
}

@media (min-width: 960px) {
  .faq__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 72px;
    align-items: start;
  }

  .faq .section-head {
    position: sticky;
    top: calc(var(--topbar-h) + 40px);
  }
}

/* ---------- 09 Fechamento e contato ---------- */

.closing {
  background: var(--olive-900) url("../images/topo-escuro.svg") center / cover no-repeat;
  color: var(--paper);
}

.closing__grid {
  display: grid;
  gap: 48px;
}

.closing__title {
  font-size: clamp(2.2rem, 3vw + 1.1rem, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.closing__title em {
  display: block;
  font-style: italic;
  color: var(--caramel-light);
}

.closing__lead {
  max-width: 34em;
  margin: 20px 0 30px;
  font-size: 1.08rem;
  color: var(--sage-200);
}

.contact {
  display: grid;
  gap: 20px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
}

.contact__item dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel-soft);
}

.contact__item dd {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--paper);
}

.contact a {
  color: var(--paper);
  text-decoration-color: rgba(245, 242, 234, 0.4);
  text-underline-offset: 3px;
}

.contact a:hover {
  text-decoration-color: var(--caramel-light);
}

.map-frame {
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--olive-800);
  box-shadow: 0 34px 60px -32px rgba(0, 0, 0, 0.65);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) sepia(0.12);
}

.map-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--sage-200);
  text-underline-offset: 3px;
}

.map-link:hover {
  color: var(--caramel-light);
}

@media (min-width: 720px) {
  .contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

@media (min-width: 960px) {
  .closing__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 72px;
    align-items: center;
  }
}

/* ---------- Rodapé ---------- */

.footer {
  padding-block: 36px 100px;  /* espaço pro botão flutuante não cobrir a última linha */
  background: #262c12;
  font-size: 0.84rem;
  color: var(--sage-200);
}

.footer__inner {
  display: grid;
  gap: 10px;
}

.footer__logo {
  width: auto;
  height: 56px;
  margin-bottom: 10px;
}

.footer__id strong {
  font-weight: 600;
  color: var(--paper);
}

.footer__id span {
  white-space: nowrap;
}

.footer__legal {
  max-width: 72ch;
  opacity: 0.85;
}

.footer__copy {
  opacity: 0.6;
}

@media (min-width: 860px) {
  .footer {
    padding-bottom: 40px;
  }
}

/* ---------- Botão flutuante de WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--olive-500);
  color: #fff;
  text-decoration: none;
  /* anel claro: some no fundo claro e destaca o botão nos blocos escuros */
  box-shadow: 0 0 0 3px rgba(245, 242, 234, 0.6), 0 16px 30px -12px rgba(31, 36, 14, 0.65);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.wa-float:hover {
  background: var(--olive-700);
  transform: translateY(-2px);
}

.wa-float .icon {
  width: 28px;
  height: 28px;
}

/* pulso lento pra chamar o olho sem piscar */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: wa-pulso 3s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-pulso {
  0% {
    box-shadow: 0 0 0 0 rgba(111, 124, 58, 0.5);
  }

  70%,
  100% {
    box-shadow: 0 0 0 18px rgba(111, 124, 58, 0);
  }
}

.wa-float__label {
  display: none;
}

/* desktop: o rótulo abre ao passar o mouse */
@media (hover: hover) and (min-width: 860px) {
  .wa-float {
    right: 28px;
    bottom: 28px;
    width: auto;
    height: 60px;
    padding: 0 16px;
  }

  .wa-float__label {
    display: block;
    max-width: 0;
    overflow: hidden;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    transition: max-width 0.35s ease, margin-left 0.35s ease;
  }

  .wa-float:hover .wa-float__label,
  .wa-float:focus-visible .wa-float__label {
    max-width: 220px;
    margin-left: 10px;
  }
}

/* ---------- Revelação no scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* .reveal-fallback entra pelo timer do <head> se o main.js não carregar */
.js .reveal.is-visible,
.reveal-fallback .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .btn,
  .exam,
  .wa-float,
  .wa-float__label {
    transition: none;
  }

  .wa-float::before {
    animation: none;
  }

  .hero__dna-strand {
    animation: none;
  }
}
