/* =========================================================
   Rita Santos · Psicóloga e Neuropsicóloga
   Cores e medidas ficam nos tokens abaixo: troque aqui.
   ========================================================= */

:root {
  /* paleta */
  --ground: #F4EDE6;        /* fundo creme */
  --paper: #FBF8F4;         /* superfícies claras */
  --ink: #3A281F;           /* texto principal (café) */
  --ink-2: #634B3E;         /* texto secundário */
  --caramel: #A46A4A;       /* cor da marca */
  --caramel-deep: #85523A;  /* botões e textos sobre creme */
  --caramel-soft: #E9D7C8;  /* tons claros de apoio */
  --caramel-mist: #D8B9A3;
  --line: #E2D3C6;

  /* tipografia */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Segoe UI", sans-serif;

  /* ritmo */
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 9vw, 132px);
  --radius: 4px;
  --shadow: 0 14px 34px -18px rgba(74, 44, 28, .35), 0 2px 6px -2px rgba(74, 44, 28, .12);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--caramel-mist) var(--ground); overflow-x: clip; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--caramel-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
strong { font-weight: 600; }
::selection { background: var(--caramel-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--caramel-deep); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- tipografia ---------- */
.display {
  font-family: var(--serif);
  font-size: clamp(2.55rem, 1.35rem + 3.6vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--caramel-deep);
}
.h2--center { text-align: center; }
.h3 { font-family: var(--serif); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.2rem); line-height: 1.1; color: var(--ink); }
.h3 span { display: block; margin-top: .35rem; font: 500 .82rem/1.4 var(--sans); letter-spacing: .02em; color: var(--caramel-deep); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .85em 1.5em;
  font: 600 .95rem/1.2 var(--sans); letter-spacing: .01em;
  text-decoration: none; border-radius: var(--radius);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.btn--solid { background: var(--caramel-deep); color: #FFF9F4; box-shadow: 0 10px 22px -12px rgba(133, 82, 58, .75); }
.btn--solid:hover { background: #6F4330; transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(111, 67, 48, .8); }
.btn--solid:active { transform: translateY(0); }
.btn--ghost { color: var(--caramel-deep); border: 1px solid var(--caramel-mist); background: transparent; min-height: 44px; padding: .6em 1.1em; }
.btn--ghost:hover { background: var(--paper); border-color: var(--caramel); }
.btn--block { width: 100%; }
.btn--lg { min-height: 58px; padding-inline: 1.9em; font-size: 1rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 500; font-size: .95rem; color: var(--ink-2); text-decoration: none; padding-block: .6em; }
.link-arrow .ico { transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--caramel-deep); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- estrelas (bússola) ---------- */
.star { position: absolute; pointer-events: none; }
.star--solid { fill: var(--caramel); }
.star--outline, .star--line { fill: none; stroke: var(--caramel); stroke-width: 1.4; overflow: visible; }
.star--line { stroke: var(--caramel-mist); }

/* ---------- palavras-fantasma ---------- */
.ghost {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--serif); line-height: .8; color: rgba(164, 106, 74, .075);
}

/* ---------- topo ---------- */
.topbar { position: relative; z-index: 5; padding-top: clamp(18px, 3vw, 34px); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { text-decoration: none; display: grid; gap: 2px; }
.brand__name { font-family: var(--serif); font-size: clamp(1.7rem, 1.4rem + .9vw, 2.15rem); line-height: 1; color: var(--ink); }
.brand__role { font-size: .74rem; letter-spacing: .04em; color: var(--ink-2); }
.topbar__cta { display: none; }

/* ---------- 1. abertura ---------- */
.hero { position: relative; overflow-x: clip; padding-block: clamp(36px, 5vw, 64px) clamp(56px, 8vw, 110px); }
.ghost--vertical {
  left: -0.12em; top: 50%; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; font-size: clamp(9rem, 22vw, 19rem);
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: clamp(40px, 6vw, 56px); align-items: center; }
.hero__text { max-width: 36rem; }
.hero__lead { margin-top: 1.4rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 32rem; }
.hero__lead strong { color: var(--ink); }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.hero__meta { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); max-width: 26rem; }

.hero__media { position: relative; margin: 0; width: min(100%, 470px); justify-self: center; }
.frame {
  position: relative; z-index: 1; overflow: hidden;
  border-radius: var(--radius) 150px var(--radius) var(--radius);
  aspect-ratio: 640 / 820; background: var(--caramel-soft);
  box-shadow: var(--shadow);
}
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.psi {
  position: absolute; z-index: 2; left: -12px; top: 42%;
  display: grid; place-items: center; width: 74px; height: 74px;
  background: var(--caramel); color: #FFF7F1; border-radius: var(--radius);
  font-family: var(--serif); font-size: 2.9rem; line-height: 1;
  box-shadow: 0 12px 24px -12px rgba(110, 62, 38, .7);
}
.stamp { position: absolute; z-index: 3; right: -14px; bottom: 22px; width: 116px; height: 116px; }
.stamp__disc { fill: rgba(251, 248, 244, .86); stroke: var(--caramel-mist); stroke-width: 1; }
.stamp__text { font: 600 13.2px var(--sans); letter-spacing: .14em; text-transform: uppercase; fill: var(--caramel-deep); }
.stamp textPath { animation: none; }
.stamp__mono { font: 400 46px var(--serif); fill: var(--caramel-deep); }
.stamp { animation: turn 38s linear infinite; }
.hero__star-sm { width: 46px; height: 46px; left: -38px; top: -26px; }
.hero__star-lg { z-index: 0; width: clamp(150px, 26vw, 260px); height: auto; aspect-ratio: 1; right: clamp(-150px, -12vw, -60px); bottom: -18%; opacity: .92; }

/* ---------- 2. mapa ---------- */
.map { position: relative; padding-block: var(--section); overflow: hidden; }
.map__star { display: none; width: 120px; height: 120px; left: -40px; top: 30%; }
.band__photo { aspect-ratio: 4 / 5; }
.map__grid { position: relative; z-index: 1; display: grid; gap: clamp(40px, 6vw, 80px); align-items: start; }
.map__intro p { margin-top: 1.2rem; color: var(--ink-2); max-width: 34rem; }
.quote { margin: 2rem 0 0; padding: 0; max-width: 32rem; }
.quote p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.3; color: var(--ink); }
.quote cite { display: block; margin-top: .8rem; font: 500 .85rem/1 var(--sans); font-style: normal; letter-spacing: .03em; color: var(--caramel-deep); }
.list-title { font-weight: 600; font-size: .9rem; letter-spacing: .02em; color: var(--ink-2); margin-bottom: 1rem; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rows li {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start;
  padding: 16px 18px; background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 10px 24px -20px rgba(74, 44, 28, .5), 0 1px 0 rgba(74, 44, 28, .04);
  font-size: .98rem; line-height: 1.5; color: var(--ink-2);
}
.rows li strong { color: var(--ink); }
.row__mark { width: 36px; height: 36px; padding: 9px; border-radius: var(--radius); background: var(--caramel); fill: #FFF7F1; }

/* ---------- 3. processo ---------- */
.process { padding-top: calc(var(--section) * .55); padding-bottom: var(--section); }
.process__sub { margin-top: .9rem; text-align: center; color: var(--ink-2); }
.band { position: relative; margin-top: clamp(32px, 4vw, 52px); }
.band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 18%; bottom: 22%;
  background: linear-gradient(90deg, #9C6143 0%, #B98263 55%, #D7B39B 100%);
}
.band__grid { position: relative; display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.band__photo { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--caramel-soft); }
.band__photo img { width: 100%; height: 100%; object-fit: cover; }
.band__photo--a img { object-position: 50% 30%; }
.band__photo--b img { object-position: 45% 40%; }

.route-card {
  grid-column: 1 / -1; order: -1;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 32px);
}
.route-card__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.route-card__avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none; background: var(--caramel-soft); }
.route-card__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.route-card__head strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.1; }
.route-card__head small { font-size: .85rem; color: var(--ink-2); }
.route-card__note { margin-top: 12px; text-align: center; font-size: .85rem; color: var(--ink-2); }

.route { list-style: none; counter-reset: step; margin: 22px 0 24px; padding: 0; position: relative; }
.route::before { /* trilha pontilhada do mapa */
  content: ""; position: absolute; left: 13px; top: 14px; bottom: 30px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--caramel-mist) 0 5px, transparent 5px 11px);
  transform-origin: top; transition: transform 1.6s var(--ease);
}
.route li { position: relative; padding: 0 0 20px 48px; counter-increment: step; }
.route li:last-child { padding-bottom: 0; }
.route__star {
  position: absolute; left: 0; top: 0; width: 28px; height: 28px; padding: 4px;
  background: var(--paper); fill: var(--caramel); overflow: visible;
  transition: fill .5s var(--ease), transform .7s var(--ease);
}
.route h3 { font: 600 1rem/1.35 var(--sans); color: var(--ink); }
.route h3::before { content: counter(step) ". "; color: var(--caramel-deep); }
.route p { margin-top: 2px; font-size: .94rem; line-height: 1.5; color: var(--ink-2); }

/* estado inicial só quando o JS está ativo e o movimento é permitido */
.js .route[data-route]:not(.is-lit)::before { transform: scaleY(0); }
.js .route[data-route]:not(.is-lit) .route__star { fill: var(--caramel-soft); transform: scale(.6) rotate(-45deg); }
.route.is-lit li:nth-child(1) .route__star { transition-delay: .1s; }
.route.is-lit li:nth-child(2) .route__star { transition-delay: .45s; }
.route.is-lit li:nth-child(3) .route__star { transition-delay: .8s; }
.route.is-lit li:nth-child(4) .route__star { transition-delay: 1.15s; }

/* ---------- 4. cuidado ---------- */
.care { padding-bottom: var(--section); }
.care__grid { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 36px; }
.care__item p { margin-top: 1rem; color: var(--ink-2); max-width: 36rem; }
.care__item p + p { margin-top: .8rem; }
.care__how { margin-top: clamp(64px, 8vw, 104px); }
.facts { list-style: none; margin: clamp(24px, 3vw, 36px) 0 0; padding: 0; display: grid; gap: 12px; }
.facts li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 12px; border-radius: var(--radius);
  background: linear-gradient(100deg, #8C5539, #9E6446);
  color: #FFF7F1; font-size: .95rem; line-height: 1.4;
  box-shadow: 0 12px 24px -16px rgba(110, 62, 38, .8);
}
.facts__ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--radius); background: var(--paper); color: var(--caramel-deep); }

/* ---------- 5. para quem ---------- */
.who { position: relative; padding-bottom: var(--section); overflow: hidden; }
.ghost--corner { left: -0.08em; bottom: -0.12em; font-size: clamp(14rem, 34vw, 30rem); }
.who__grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.who__list { list-style: none; margin: clamp(26px, 3vw, 36px) 0 0; padding: 0; display: grid; gap: 12px; max-width: 30rem; }
.who__list li {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(251, 248, 244, .7); color: var(--ink-2); font-size: .98rem; line-height: 1.5;
}
.who__list li strong { color: var(--ink); }
.who__list li.is-featured { background: linear-gradient(100deg, #8C5539, #9E6446); border-color: transparent; color: #FFF7F1; box-shadow: 0 14px 28px -18px rgba(110, 62, 38, .85); }
.who__list li.is-featured strong { color: #FFFFFF; }
.who__art { position: relative; width: min(100%, 440px); justify-self: center; }
/* mapa topográfico: curvas de nível + trilha até a estrela */
.topo { width: 100%; height: auto; overflow: visible; stroke-linecap: round; stroke-linejoin: round; }
.topo__lines path { stroke: var(--caramel-mist); stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 0; }
.topo__lines path:nth-child(4), .topo__lines path:nth-child(6) { stroke: var(--caramel); }
.topo__route { stroke: var(--caramel-deep); stroke-width: 2; stroke-dasharray: 1.5 9; }
.topo__start { fill: var(--paper); stroke: var(--caramel-deep); stroke-width: 2; }
.topo__goal { fill: var(--caramel); }
.topo__label { font: italic 400 26px var(--serif); fill: var(--caramel-deep); }
.topo__dest { font-size: 25px; }
.topo__tag { font: 600 14px var(--sans); letter-spacing: .08em; text-transform: uppercase; fill: var(--caramel-deep); paint-order: stroke; stroke: var(--ground); stroke-width: 6px; stroke-linejoin: round; }
.js .who__art:not(.is-in) .topo__lines path { stroke-dashoffset: 1; }
.js .who__art:not(.is-in) :is(.topo__route, .topo__goal, .topo__label, .topo__tag) { opacity: 0; }
.who__art.is-in .topo__lines path { transition: stroke-dashoffset 2.2s var(--ease); }
.who__art.is-in .topo__lines path:nth-child(2) { transition-delay: .15s; }
.who__art.is-in .topo__lines path:nth-child(3) { transition-delay: .3s; }
.who__art.is-in .topo__lines path:nth-child(4) { transition-delay: .45s; }
.who__art.is-in .topo__lines path:nth-child(n+5) { transition-delay: .2s; }
.who__art.is-in :is(.topo__route, .topo__goal, .topo__label, .topo__tag) { transition: opacity 1.2s var(--ease) 1.1s; }
.who__star-2 { width: 34px; height: 34px; right: 2%; top: 0; }

/* ---------- 6. fechamento ---------- */
.close { background: var(--paper); padding-block: var(--section); border-top: 1px solid var(--line); }
.close__grid { display: grid; gap: 48px; align-items: start; }
.close__text p { margin-top: 1.1rem; color: var(--ink-2); max-width: 32rem; }
.close__text .btn { margin-top: 2rem; }
.contact { margin: 0; display: grid; gap: 22px; }
.contact div { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact dt { font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--caramel-deep); }
.contact dd { margin: 6px 0 0; color: var(--ink); line-height: 1.55; }
.contact a { color: var(--ink); text-decoration-color: var(--caramel-mist); }
.contact a:hover { color: var(--caramel-deep); text-decoration-color: currentColor; }

/* ---------- rodapé ---------- */
.foot { padding: 40px 0 120px; color: var(--ink-2); font-size: .9rem; }
.foot__in { display: grid; gap: 4px; }
.foot__name { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.foot__small { margin-top: 8px; font-size: .8rem; }

/* ---------- botão fixo (sempre visível) ---------- */
.dock {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 1.4em; border-radius: var(--radius);
  background: var(--caramel-deep); color: #FFF9F4; text-decoration: none;
  font: 600 1rem/1 var(--sans);
  box-shadow: 0 16px 30px -12px rgba(58, 40, 31, .55);
  transform: translateY(0); opacity: 1;
  transition: transform .5s var(--ease), opacity .4s var(--ease), background-color .3s var(--ease);
}
.dock:hover { background: #6F4330; }
.dock.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- entradas ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes turn { to { transform: rotate(360deg); } }

/* =========================================================
   tablet
   ========================================================= */
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li { flex-direction: column; align-items: flex-start; padding: 16px 18px 20px; }
  .care__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .care__item + .care__item { padding-left: 48px; border-left: 1px solid var(--line); }
  .dock { left: auto; right: 24px; bottom: 24px; }
  .topbar__cta { display: inline-flex; }
  .stamp { width: 132px; height: 132px; }
}

/* =========================================================
   desktop
   ========================================================= */
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 6fr 5fr; gap: 64px; }
  .hero__media { justify-self: end; margin-right: 24px; }
  .psi { left: -37px; width: 84px; height: 84px; font-size: 3.2rem; }
  .stamp { right: -54px; bottom: 34px; width: 140px; height: 140px; }

  .map__grid { grid-template-columns: 5fr 6fr; }

  .band::before { top: 14%; bottom: 14%; }
  .band__grid { grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(16px, 2vw, 28px); align-items: center; }
  .route-card { grid-column: auto; order: 0; }
  .band__photo { align-self: stretch; max-height: 640px; aspect-ratio: auto; }
  .map__star { display: block; }

  .who__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .close__grid { grid-template-columns: 6fr 5fr; gap: 80px; }

  .facts li { flex-direction: row; align-items: center; padding: 12px 20px 12px 12px; }
}

@media (min-width: 1200px) {
  .hero__media { width: 480px; }
}

/* =========================================================
   movimento reduzido
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .route[data-route]:not(.is-lit)::before { transform: none; }
  .js .route[data-route]:not(.is-lit) .route__star { fill: var(--caramel); transform: none; }
  .js .who__art:not(.is-in) .topo__lines path { stroke-dashoffset: 0; }
  .js .who__art:not(.is-in) :is(.topo__route, .topo__goal, .topo__label, .topo__tag) { opacity: 1; }
}
