/* =========================================================
   Bruna Nogueira — Nutricionista Esportiva
   Mundo visual: a corrida na Beira-Mar Norte.
   Céu no alto, mar no meio, calçada embaixo; marcos de KM
   pintados na ciclovia separam os trechos da página.
   ========================================================= */

/* ---------- Fontes (servidas pelo próprio site) ---------- */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders Stencil"; src: url("../fonts/big-shoulders-stencil-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- Cores e medidas ---------- */
:root {
  /* céu (amostrado da foto principal, de cima para baixo) */
  --ceu-0: #d0def8;
  --ceu-1: #c5d8f6;
  --ceu-2: #b2cef3;
  --ceu-3: #afc7eb;
  --ceu-4: #9cbce1;
  --ceu-5: #97b9df;
  --ceu-claro: #e4ecf8;

  /* mar e tinta */
  --mar: #4c84ab;
  --mar-fundo: #183a57;
  --tinta: #13233a;
  --tinta-2: #2c4462;
  --espuma: #eef3fb;

  /* calçada */
  --calcada: #d4d0c7;
  --calcada-2: #c3bdb1;
  --junta: #a9a295;
  --calcada-tinta: #3d3a34;

  /* ciclovia: só nos marcos de KM e no botão do WhatsApp */
  --ciclo: #a3442a;
  --ciclo-escuro: #87351f;

  --fonte-texto: "Barlow", "Segoe UI", sans-serif;
  --fonte-titulo: "Barlow Condensed", "Arial Narrow", sans-serif;
  --fonte-km: "Big Shoulders Stencil", "Barlow Condensed", sans-serif;

  --largura: 1240px;
  --margem: clamp(20px, 5vw, 64px);
  --secao-y: clamp(72px, 10vw, 136px);
  --barra-h: 0px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: clamp(17px, 1.05vw + 12px, 19px);
  line-height: 1.55;
  color: var(--tinta);
  background: var(--calcada);
  padding-bottom: var(--barra-h);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--tinta); color: var(--ceu-0); }
:focus-visible { outline: 3px solid var(--ciclo); outline-offset: 3px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.pular {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--tinta); color: var(--espuma); padding: 10px 16px;
  font-weight: 600; text-decoration: none;
}
.pular:focus { top: 12px; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .75em 1.25em;
  font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.15rem; letter-spacing: .02em;
  text-decoration: none; color: #fff; background: var(--ciclo);
  border: 0; border-radius: 2px;
  box-shadow: 0 1px 0 rgba(19, 35, 58, .25), 0 10px 24px -14px rgba(19, 35, 58, .55);
  transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.botao:hover { background: var(--ciclo-escuro); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(19, 35, 58, .25), 0 16px 28px -14px rgba(19, 35, 58, .6); }
.botao:active { transform: translateY(0); }
.botao--grande { min-height: 60px; padding: .85em 1.6em; font-size: clamp(1.2rem, .6vw + 1rem, 1.45rem); }
.botao--topo { min-height: 42px; padding: .5em 1em; font-size: 1.05rem; }
.botao--claro { background: var(--espuma); color: var(--tinta); }
.botao--claro:hover { background: #fff; }
.botao--barra { flex: 1; min-height: 52px; font-size: 1.15rem; }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: var(--ceu-0);
  transition: box-shadow .3s var(--ease);
}
.topo.is-rolado { box-shadow: 0 1px 0 rgba(19, 35, 58, .14), 0 8px 24px -18px rgba(19, 35, 58, .5); }
.topo-in {
  max-width: calc(var(--largura) + 2 * var(--margem)); margin: 0 auto;
  padding: 14px var(--margem);
  display: flex; align-items: center; gap: 32px;
}
.marca { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.marca-nome { font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.45rem; letter-spacing: .01em; }
.marca-sub { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-2); margin-top: 4px; }
.topo-nav { display: flex; gap: 28px; margin-left: auto; font-weight: 500; font-size: 1rem; }
.topo-nav a { text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease); }
.topo-nav a:hover { background-size: 100% 1.5px; }

/* ---------- Abertura (KM 0) ---------- */
.hero {
  position: relative;
  display: grid;
  --hero-h: clamp(560px, calc(100svh - 70px - 92px), 820px);
  grid-template-columns: minmax(0, 1fr) min(calc(var(--hero-h) * 0.811), 50vw);
  height: var(--hero-h);
  /* o céu da foto, continuado em cor */
  background: linear-gradient(180deg, var(--ceu-0) 0%, var(--ceu-1) 20%, var(--ceu-2) 43%, var(--ceu-3) 65%, var(--ceu-4) 86%, var(--ceu-5) 100%);
}
.hero-texto {
  align-self: center;
  padding: clamp(40px, 6vh, 72px) var(--margem) clamp(48px, 7vh, 88px);
  padding-left: max(var(--margem), calc((100vw - var(--largura)) / 2));
  max-width: 820px;
}
.hero-titulo {
  font-family: var(--fonte-titulo); font-weight: 600;
  font-size: clamp(2.9rem, 5.6vw, 6rem);
  line-height: .95; letter-spacing: -.012em;
  color: var(--tinta);
  max-width: 12.5ch;
}
.hero-sub { margin: 28px 0 0; max-width: 52ch; color: var(--tinta-2); font-size: clamp(1.05rem, .35vw + .95rem, 1.2rem); }
.hero-acoes { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

.nota-google { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: .98rem; color: var(--tinta-2); }
.nota-google strong { color: var(--tinta); font-weight: 600; }
.nota-google:hover span:last-child { text-decoration: underline; }
.estrelas { display: inline-flex; gap: 2px; color: var(--ciclo); }
.estrelas svg { width: 15px; height: 15px; }

.hero-foto { position: relative; height: 100%; min-width: 0; overflow: hidden; }
.hero-foto img, .hero-foto picture { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-foto img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%);
          mask-image: linear-gradient(90deg, transparent 0, #000 24%);
}

/* ---------- Trechos: faixa de calçada + marco de KM ---------- */
.trecho {
  position: relative; height: 92px;
  background-color: var(--calcada-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='44'%3E%3Cpath d='M0 .75H88M0 22.75H88M.75 0V22M44.75 0V22M22.75 22V44M66.75 22V44' stroke='%23a9a295' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  border-top: 14px solid var(--mar);
  display: flex; align-items: center;
  padding: 0 var(--margem);
  padding-left: max(var(--margem), calc((100vw - var(--largura)) / 2));
}
.km {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 104px; height: 52px; padding: 0 16px;
  background: var(--ciclo); color: #f6eee6;
  font-family: var(--fonte-km); font-weight: 800; font-size: 1.85rem; letter-spacing: .04em; line-height: 1;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .12);
}
.km-txt { display: block; }

/* animação do marco: a tinta entra da esquerda (só com JS e sem redução de movimento) */
@media (prefers-reduced-motion: no-preference) {
  .js .trecho .km { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
  .js .trecho.is-pintado .km { clip-path: inset(0 0 0 0); }
}

/* ---------- Seções ---------- */
.secao { padding: var(--secao-y) var(--margem); }
.secao > * { max-width: var(--largura); margin-left: auto; margin-right: auto; }
.secao--ceu { background: var(--ceu-claro); }
.secao--mar { background: var(--mar-fundo); color: var(--espuma); }
.secao--calcada { background: var(--calcada); color: var(--tinta); }

.titulo {
  font-family: var(--fonte-titulo); font-weight: 600;
  font-size: clamp(2.3rem, 3vw + 1rem, 4.1rem);
  line-height: 1; letter-spacing: -.01em;
  max-width: 16ch;
}
.lead { margin-top: 22px; font-size: clamp(1.1rem, .4vw + 1rem, 1.3rem); max-width: 44ch; color: var(--tinta-2); }

/* KM 1 — A consulta */
.consulta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.parciais { list-style: none; margin: 48px 0 0; padding: 0; counter-reset: p; }
.parciais li {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  padding: 26px 0; border-top: 1.5px solid var(--tinta);
}
.parciais li:last-child { border-bottom: 1.5px solid var(--tinta); }
.parcial-n { font-family: var(--fonte-km); font-weight: 800; font-size: 2.6rem; line-height: .9; color: var(--mar); }
.parciais h3 { font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.6rem; line-height: 1.1; margin-bottom: 8px; }
.parciais p { margin: 0; color: var(--tinta-2); max-width: 52ch; }

.citacao-curta { margin: 44px 0 0; padding: 0; max-width: 52ch; }
.citacao-curta p { font-size: 1.15rem; font-style: italic; color: var(--tinta); margin-bottom: 10px; }
.citacao-curta footer { font-family: var(--fonte-titulo); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; color: var(--tinta-2); }

.consulta-foto { position: sticky; top: 110px; }
.consulta-foto img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; }

/* KM 2 — O Club */
.club { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.club-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.club .titulo { color: #fff; }
.fala { margin: 32px 0 28px; padding: 0 0 0 0; }
.fala p { font-family: var(--fonte-titulo); font-weight: 500; font-size: clamp(1.45rem, 1vw + 1.1rem, 1.95rem); line-height: 1.2; color: #fff; margin-bottom: 12px; max-width: 34ch; }
.fala footer { font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: #b9cde6; font-weight: 500; }
.club-texto > p { color: #d7e3f2; max-width: 56ch; }
.vozes { list-style: none; padding: 0; margin: 32px 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vozes li { border-top: 1.5px solid rgba(238, 243, 251, .35); padding-top: 16px; }
.vozes p { margin-bottom: 8px; color: var(--espuma); font-size: 1.02rem; }
.vozes span { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #b9cde6; font-weight: 500; }

/* KM 3 — Depoimentos */
.depo-cabeca { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }
.nota-google--escura { color: var(--calcada-tinta); }
.nota-google--escura strong { color: var(--tinta); }
.depoimentos {
  list-style: none; padding: 0; margin-top: 56px;
  columns: 2; column-gap: clamp(40px, 6vw, 96px);
}
.depoimentos li { break-inside: avoid; padding: 24px 0 30px; border-top: 1.5px solid var(--tinta); }
.depoimentos p { font-size: clamp(1.05rem, .3vw + 1rem, 1.18rem); margin-bottom: 14px; }
.depo-nome { font-family: var(--fonte-titulo); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 1rem; color: var(--calcada-tinta); }

/* KM 4 — Quem é a Bruna */
.bruna { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.bruna-texto { position: sticky; top: 100px; }
.bruna .lead { color: var(--calcada-tinta); }
.ficha { margin: 40px 0 0; }
.ficha div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-top: 1.5px solid var(--tinta); }
.ficha div:last-child { border-bottom: 1.5px solid var(--tinta); }
.ficha dt { font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.2rem; }
.ficha dd { margin: 0; color: var(--calcada-tinta); }
.bruna-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bf img { width: 100%; height: 100%; object-fit: cover; }
.bf--luta { grid-column: 1 / -1; aspect-ratio: 16 / 11; position: relative; }
.bf--corrida { aspect-ratio: 3 / 4; }
.bf--tenis { aspect-ratio: 3 / 4; }
.bf--tenis img { object-position: 30% 50%; }
.bf figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--tinta); color: var(--espuma);
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px;
}

/* KM 5 — Onde atendo */
.onde { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: stretch; }
.onde-blocos { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 44px; }
.onde-bloco { border-top: 1.5px solid var(--tinta); padding-top: 18px; }
.onde-bloco h3, .redes h3 { font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.35rem; margin-bottom: 10px; }
.onde-bloco p { color: var(--calcada-tinta); }
.link-seta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--ciclo); padding-bottom: 2px; }
.link-seta:hover { color: var(--ciclo-escuro); }
.horarios { border-collapse: collapse; width: 100%; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.horarios th { text-align: left; font-weight: 600; padding: 6px 16px 6px 0; white-space: nowrap; }
.horarios td { padding: 6px 0; color: var(--calcada-tinta); }
.horarios tr + tr { border-top: 1px solid var(--junta); }
.miudo { font-size: .92rem; color: var(--calcada-tinta); }
.onde-mapa { min-height: 360px; background: var(--calcada-2); }
.onde-mapa iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: saturate(.75) sepia(.12); }

.redes { margin-top: 72px; }
.redes ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.redes a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px;
  text-decoration: none; font-weight: 600; color: var(--tinta);
  border: 1.5px solid var(--tinta); border-radius: 2px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.redes a:hover { background: var(--tinta); color: var(--calcada); }

/* Chegada */
.chegada {
  background: var(--mar-fundo); color: var(--espuma);
  padding: var(--secao-y) var(--margem);
  text-align: center;
}
.chegada-in { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.chegada-titulo { font-family: var(--fonte-titulo); font-weight: 600; font-size: clamp(2.6rem, 4vw + 1rem, 5rem); line-height: .98; color: #fff; }
.chegada p { margin: 22px 0 36px; color: #d7e3f2; max-width: 40ch; }
.chegada .chegada-fone { margin: 18px 0 0; font-family: var(--fonte-titulo); font-size: 1.25rem; letter-spacing: .06em; color: #b9cde6; font-variant-numeric: tabular-nums; }

.rodape { padding: 36px var(--margem) 44px; background: var(--calcada); color: var(--calcada-tinta); font-size: .9rem; text-align: center; }
.rodape p { margin: 0 0 6px; }

/* ---------- Barra fixa (celular e tablet) ---------- */
.barra { display: none; }

/* ---------- Tablet e celular ---------- */
@media (max-width: 1023px) {
  :root { --barra-h: 76px; }
  html { scroll-padding-top: 72px; }
  .topo-nav { display: none; }
  .botao--topo { display: none; }

  .hero { grid-template-columns: 1fr; height: auto; background: linear-gradient(180deg, var(--ceu-0) 0%, var(--ceu-2) 45%, var(--ceu-4) 85%, var(--ceu-5) 100%); }
  .hero-texto { padding: 36px var(--margem) 8px; max-width: 680px; }
  .hero-titulo { max-width: 12ch; }
  .hero-acoes { margin-top: 28px; }
  .hero-foto { height: auto; aspect-ratio: 1200 / 1480; width: min(100%, 560px); justify-self: end; margin-top: -24px; }
  .hero-foto img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%), linear-gradient(90deg, transparent 0, #000 18%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(180deg, transparent 0, #000 22%), linear-gradient(90deg, transparent 0, #000 18%);
            mask-composite: intersect;
  }

  .consulta, .club, .bruna, .onde { grid-template-columns: 1fr; }
  .bruna-texto { position: static; }
  .consulta-foto { position: static; max-width: 520px; }
  .club-foto { max-width: 520px; }
  .club-foto { order: 2; }
  .bruna-fotos { margin-top: 8px; }
  .depoimentos { columns: 1; }
  .onde-mapa { min-height: 300px; }

  .barra {
    display: flex; align-items: center; gap: 14px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px var(--margem) calc(12px + env(safe-area-inset-bottom));
    background: var(--tinta); color: var(--espuma);
    box-shadow: 0 -10px 30px -18px rgba(19, 35, 58, .7);
  }
  .barra-km { display: flex; flex-direction: column; line-height: 1; min-width: 74px; }
  .barra-km-n { font-family: var(--fonte-km); font-weight: 800; font-size: 1.4rem; color: #f0b9a6; letter-spacing: .03em; }
  .barra-km-nome { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #b9cde6; margin-top: 4px; white-space: nowrap; }
}

@media (max-width: 767px) {
  /* celular: a corredora aparece logo abaixo do título, na primeira tela */
  .hero-texto { display: contents; }
  .hero-titulo { order: 1; padding: 28px var(--margem) 0; }
  .hero-foto { order: 2; width: 100%; height: 210px; aspect-ratio: auto; margin-top: -8px; }
  .hero-foto img { object-position: 50% 28%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 82%, transparent 100%); -webkit-mask-composite: source-over;
            mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 82%, transparent 100%); mask-composite: add; }
  .hero-sub { order: 3; margin: 20px var(--margem) 0; }
  .hero-acoes { order: 4; margin: 18px var(--margem) 0; padding-bottom: 36px; }
  .hero-acoes .nota-google { order: -1; }
}

@media (max-width: 640px) {
  .vozes { grid-template-columns: 1fr; }
  .onde-blocos { grid-template-columns: 1fr; }
  .parciais li { grid-template-columns: 44px 1fr; gap: 14px; }
  .parcial-n { font-size: 2.1rem; }
  .ficha div { grid-template-columns: 1fr; gap: 4px; }
  .trecho { height: 76px; }
  .km { height: 44px; min-width: 88px; font-size: 1.55rem; }
  .bruna-fotos { gap: 10px; }
  .botao--grande { width: 100%; }
  .hero-acoes { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
