/* ==========================================================
   Nay Fiorini · Fisioterapia — landing page
   Paleta e tipografia em tokens: edite aqui primeiro.
   ========================================================== */

:root {
  /* cor */
  --sand: #efe4da;          /* fundo papel rosado */
    --offwhite: #f8f3ee;      /* só texto claro sobre foto/escuro */
  --sage: #929783;          /* verde erva-doce */
    --sage-ink: #f4f1ea;      /* texto sobre sálvia */
  --ink: #232523;           /* preto da marca */
  --ink-soft: #4a4c47;
  --taupe: #b6ada0;
  --line: rgba(35, 37, 35, .22);
  --line-light: rgba(244, 241, 234, .5);

  /* tipo */
  --font-mark: "Righteous", "Urbanist", sans-serif;
  --font: "Urbanist", "Segoe UI", sans-serif;

  --step--1: clamp(.84rem, .8rem + .15vw, .92rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.18rem, 1.08rem + .45vw, 1.42rem);
  --step-2: clamp(1.45rem, 1.25rem + .9vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.9vw, 3.1rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4.4rem);

  /* espaço */
  --gutter: clamp(1rem, .6rem + 2.4vw, 3rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1240px;

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

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* grão de filme: textura PNG aplicada aos fundos de papel e sálvia */
.grain { background-image: url("img/grain.png"); background-size: 256px; }
body::after {
  display: none;
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .26 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
strong { font-weight: 600; }

::selection { background: var(--sage); color: var(--sage-ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

html { scrollbar-color: var(--taupe) var(--sand); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--sand); padding: .6rem 1rem; border-radius: 999px;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }

/* ---------- botões ---------- */
.btn {
  --bg: var(--ink); --fg: var(--sand);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 var(--step-0)/1 var(--font);
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .3s;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(35,37,35,.55); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 1.2em; height: 1.2em; flex: none; }
.btn--light { --bg: var(--offwhite); --fg: var(--ink); }
.btn--sand { --bg: var(--sand); --fg: var(--ink); }
.btn--dark { --bg: var(--ink); --fg: var(--sand); }
.btn--sm { min-height: 2.6rem; padding: .55rem 1.1rem; font-size: var(--step--1); }
.btn--lg { min-height: 3.75rem; padding: 1rem 2.1rem; font-size: var(--step-1); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: .2rem;
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* rótulo em cápsula escura — linguagem da referência */
.pill {
  display: inline-block;
  padding: .7rem 1.7rem;
  border-radius: 999px;
  background: var(--ink); color: var(--sand);
  font-size: var(--step-2); font-weight: 300; line-height: 1.15;
  letter-spacing: -.01em;
}
.pill strong { font-weight: 600; }

/* moldura de linha fina com a cápsula sobre a borda */
.frame {
  position: relative;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: clamp(3.5rem, 2.5rem + 3vw, 5rem) clamp(1.1rem, .5rem + 3vw, 3.5rem) clamp(1.5rem, 1rem + 3vw, 3.5rem);
}
.frame > .pill {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.frame--dark-line { border-color: var(--line); }

/* foto em bloco: o fundo é o placeholder enquanto a imagem não existe */
.tile {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: var(--taupe);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--bw img { filter: grayscale(1) contrast(1.05); }
.tile--warm img { filter: sepia(.18) saturate(.82) contrast(.98); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem var(--gutter);
  color: var(--offwhite);
  transition: background-color .5s, color .5s, padding .5s var(--ease-out), box-shadow .5s;
}
.nav__brand {
  font-family: var(--font-mark); font-size: 1.45rem; line-height: 1;
  text-decoration: none; letter-spacing: -.01em;
  transition: opacity .5s var(--ease-out);
}
/* sobre o hero, o wordmark grande já assina a página */
.nav:not(.is-solid) .nav__brand { opacity: 0; pointer-events: none; }
.nav__links { display: flex; gap: 1.8rem; margin-left: auto; font-size: var(--step--1); font-weight: 500; }
.nav__links a { text-decoration: none; opacity: .9; }
.nav__links a:hover { text-decoration: underline; opacity: 1; }
.nav.is-solid {
  background: rgba(239, 228, 218, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink);
  padding-block: .7rem;
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-solid .btn--light { --bg: var(--ink); --fg: var(--sand); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--offwhite);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background: #8a7462; /* placeholder: tom da foto */
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 42% 40%;
  filter: brightness(.92);
  transform-origin: 55% 40%;
  animation: breathe 2.4s var(--ease-out) both;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(35,30,26,.42) 0%, rgba(35,30,26,.06) 26%, rgba(35,30,26,.08) 52%, rgba(35,30,26,.78) 100%);
}

.hero__mark {
  align-self: center;
  display: grid; justify-items: center;
  padding: 6rem var(--gutter) 2rem;
  text-align: center;
}
.hero h1 { display: grid; justify-items: end; font-weight: inherit; }
.wordmark {
  font-family: var(--font-mark);
  font-weight: 400;
  font-size: clamp(3.6rem, 1rem + 13.5vw, 14.5rem);
  line-height: .86;
  letter-spacing: -.035em;
  text-shadow: 0 2px 40px rgba(35, 30, 26, .25);
  animation: settle 1.8s var(--ease-out) both .15s;
}
.hero__sub {
  margin-top: .7em;
  margin-right: .3em;
  font-size: var(--step-2); font-weight: 300; letter-spacing: -.005em;
  animation: rise 1.4s var(--ease-out) both .7s;
}

.hero__band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  align-items: end;
  gap: 1.5rem 3rem;
  padding: 0 var(--gutter) clamp(1.5rem, 1rem + 2vw, 2.75rem);
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  margin-inline: auto;
  animation: rise 1.4s var(--ease-out) both .9s;
}
.hero__promise {
  font-size: var(--step-3); font-weight: 300; line-height: 1.12; letter-spacing: -.02em;
  max-width: 17ch;
  text-wrap: balance;
}
.hero__promise em { font-style: italic; font-weight: 300; }
.hero__actions { display: grid; gap: .9rem; justify-items: start; }
.hero__place {
  grid-column: 1 / -1;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(248, 243, 238, .35);
  font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  opacity: .9;
}

.rating {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--step--1); text-decoration: none;
}
.rating:hover span:last-child { text-decoration: underline; }
.stars { display: inline-flex; gap: 2px; color: #f1d9a7; }
.stars svg { width: 15px; height: 15px; }

@keyframes breathe { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes settle { from { letter-spacing: .06em; opacity: 0; filter: blur(8px); } to { letter-spacing: -.035em; opacity: 1; filter: blur(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- manifesto ---------- */
.manifesto { background-color: var(--sand); }
.manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 2rem + 4vw, 6rem);
  align-items: end;
}
.manifesto__quote p {
  font-size: var(--step-4); font-weight: 300; line-height: 1.04; letter-spacing: -.03em;
  text-wrap: balance;
}
.manifesto__quote span { font-weight: 600; }
.manifesto__body { display: grid; gap: 1.2rem; max-width: 34rem; color: var(--ink-soft); }
.manifesto__body .lead { font-size: var(--step-1); color: var(--ink); line-height: 1.45; }
.manifesto__body .link-arrow { justify-self: start; margin-top: .6rem; color: var(--ink); }

/* ---------- como eu trabalho ---------- */
.como { background-color: var(--sage); color: var(--ink); }
.como .frame { border-color: rgba(35, 37, 35, .3); }
.como__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
}
.steps { display: grid; }
.step {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(35, 37, 35, .28);
}
.step:last-child { border-bottom: 1px solid rgba(35, 37, 35, .28); }
.step__n {
  font-family: var(--font); font-weight: 300; font-size: var(--step-3); line-height: 1;
  color: var(--ink);
}
.step h3 { font-size: var(--step-2); font-weight: 500; line-height: 1.15; letter-spacing: -.015em; margin-bottom: .45rem; }
.step p { max-width: 46ch; color: var(--ink); }

.como__side { display: grid; gap: 1rem; align-content: start; }
.tile--bw { aspect-ratio: 3 / 2; }
.note {
  display: grid; gap: 1.4rem;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--radius);
  background: var(--ink); color: var(--sand);
}
.note p { font-size: var(--step-1); font-weight: 300; line-height: 1.4; }

/* ---------- dores ---------- */
.dores { background-color: var(--sage); color: var(--ink); text-align: center; padding-top: 0; }
.dores__head { display: grid; gap: 1rem; justify-items: center; }
.dores__head h2 { font-size: var(--step-3); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.dores__head p { max-width: 44ch; color: var(--ink); }
.dores__list {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .9rem 2.2rem;
  margin: clamp(2.5rem, 2rem + 2vw, 4rem) auto;
  max-width: 62rem;
  font-size: var(--step-2); font-style: italic; font-weight: 300; line-height: 1.2;
}
.dores__foot {
  display: flex; justify-content: center; align-items: center; gap: 1.2rem;
  font-size: var(--step--1); letter-spacing: .32em; text-transform: uppercase;
}
.rule { display: inline-flex; align-items: center; gap: 1.2rem; }
.rule + .rule::before {
  content: ""; width: clamp(2rem, 8vw, 7rem); height: 1px; background: rgba(35, 37, 35, .4);
}

/* ---------- avaliações ---------- */
.reviews { background-color: var(--sand); }
.reviews__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.reviews__head h2 { font-size: var(--step-3); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; max-width: 15ch; }
.reviews__head h2 strong { font-weight: 600; }

.feature {
  display: grid; gap: 1.6rem;
  padding: clamp(1.8rem, 1rem + 4vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--ink); color: var(--sand);
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.feature p { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.4rem); font-weight: 300; line-height: 1.15; letter-spacing: -.02em; max-width: 34ch; text-wrap: pretty; }

.quotes {
  columns: 3 18rem;
  column-gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.quote {
  break-inside: avoid;
  display: grid; gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.quote p { font-size: var(--step-1); line-height: 1.45; font-weight: 400; }

figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; font-size: var(--step--1); }
figcaption strong { font-size: var(--step-0); }
.feature figcaption span { border-color: rgba(239, 228, 218, .35); color: var(--sand); }
figcaption span {
  padding: .22rem .75rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft);
}

/* ---------- sobre ---------- */
.sobre { background-color: var(--sand); padding-top: 0; }
.sobre__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas:
    "bio portrait"
    "wide portrait"
    "sign sign";
  gap: 1rem;
}
.bio {
  grid-area: bio;
  display: grid; gap: 1rem; align-content: center;
  padding: clamp(1.4rem, 1rem + 2vw, 2.6rem);
  border-radius: var(--radius);
  background: var(--ink); color: var(--sand);
  font-size: var(--step-1); line-height: 1.5; font-weight: 300;
}
.bio strong { font-weight: 600; }
.tile--portrait { grid-area: portrait; min-height: 26rem; }
.tile--portrait img { object-position: 50% 0%; }
.tile--wide { grid-area: wide; aspect-ratio: 16 / 9; }
.tile--wide img { object-position: 50% 35%; }
.sobre__sign {
  grid-area: sign;
  padding-top: 1.6rem;
  font-size: var(--step-2); font-weight: 300; font-style: italic; text-align: center; line-height: 1.3;
  text-wrap: balance;
}

/* ---------- consultório ---------- */
.consultorio { background-color: var(--sage); }
.consultorio .facts > div { border-top-color: rgba(35, 37, 35, .3); }

.consultorio__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 2rem + 4vw, 6rem);
  align-items: center;
}
.consultorio__media { position: relative; padding-bottom: 9rem; }
.tile--tall { aspect-ratio: 4 / 3; width: 90%; }
.tile--tall img { object-position: 50% 100%; }
.tile--small {
  position: absolute; right: 0; bottom: 0;
  width: 40%; aspect-ratio: 4 / 5;
  border: 6px solid var(--sage);
  border-radius: calc(var(--radius) + 4px);
}
.tile--small img { object-position: 70% 40%; }

.consultorio__info { display: grid; gap: 1.5rem; }
.consultorio__info h2 { font-size: var(--step-3); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.consultorio__info > p { color: var(--ink); max-width: 44ch; }
.facts { display: grid; gap: 0; margin-top: .5rem; }
.facts > div {
  display: grid; grid-template-columns: 7rem 1fr; gap: 1rem;
  padding-block: 1rem; border-top: 1px solid var(--line);
}
.facts dt { font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; padding-top: .2rem; }
.facts dd { line-height: 1.55; }
.muted { color: var(--ink); font-size: var(--step--1); }
.consultorio__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; margin-top: .5rem; }

/* ---------- final ---------- */
.final { background: var(--ink); color: var(--sand); padding-block: calc(var(--section) * 1.1); text-align: center; }
.final__inner { display: grid; justify-items: center; gap: 1.4rem; }
.final h2 { font-size: var(--step-4); font-weight: 300; line-height: 1.02; letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; }
.final p { color: rgba(239, 228, 218, .78); max-width: 36ch; }
.final .btn { margin-top: .8rem; }
.final__tel { font-size: var(--step--1); letter-spacing: .14em; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(239, 228, 218, .72); padding: 0 0 6rem; font-size: var(--step--1); }
.footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem;
  padding-top: 2.5rem; border-top: 1px solid rgba(239, 228, 218, .18);
}
.footer__mark { font-family: var(--font-mark); font-size: clamp(2.4rem, 1.5rem + 4vw, 4.5rem); line-height: .9; color: var(--sand); letter-spacing: -.03em; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 1.5rem 3.5rem; line-height: 1.7; }
.footer a { text-decoration: none; color: var(--sand); }
.footer a:hover { text-decoration: underline; }

/* ---------- CTA fixo (celular) ---------- */
.dock {
  position: fixed; z-index: 55;
  left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.4rem; border-radius: 999px;
  background: var(--ink); color: var(--sand);
  font-weight: 600; text-decoration: none;
  box-shadow: 0 18px 36px -16px rgba(35, 37, 35, .7);
  transform: translateY(160%);
  transition: transform .6s var(--ease-out);
}
.dock .ico { width: 1.25em; height: 1.25em; }
.dock.is-on { transform: none; }

/* ---------- revelação ao rolar (conteúdo visível sem JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .manifesto__grid, .como__grid, .consultorio__grid { grid-template-columns: 1fr; }
  .como__side { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .tile--bw { aspect-ratio: auto; min-height: 100%; }
  .consultorio__media { max-width: 40rem; }
}

@media (max-width: 760px) {
  .hero__band { grid-template-columns: 1fr; }
  .hero__mark { padding-top: 5rem; }
  .hero h1 { justify-items: center; }
  .hero__sub { margin-right: 0; }
  .hero__actions { justify-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .rating { justify-content: center; }
  .hero__place { letter-spacing: .12em; text-align: center; }

  .frame { padding: 3.5rem 1rem 1.25rem; border-radius: var(--radius); }
  .frame > .pill { white-space: normal; max-width: calc(100% - 2rem); text-align: center; font-size: var(--step-1); padding: .6rem 1.2rem; }

  .como__side { grid-template-columns: 1fr; }
  .tile--bw { aspect-ratio: 3 / 2; min-height: 0; }
  .step { grid-template-columns: 2.4rem 1fr; }

  .sobre__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "portrait" "bio" "wide" "sign";
  }
  .tile--portrait { min-height: 0; aspect-ratio: 4 / 5; }

  .facts > div { grid-template-columns: 1fr; gap: .3rem; }
  .consultorio__actions .btn { width: 100%; }

  .dores__list { gap: .6rem 1.4rem; }
  .dores__foot { gap: .5rem; letter-spacing: .14em; font-size: .72rem; }
  .rule { gap: .5rem; }
  .rule + .rule::before { width: 1.4rem; }

  .nav__cta { display: none; }
  .dock { display: inline-flex; }
}
