/* =========================================================
   Bárbara Gouveia · Psicóloga
   Identidade "Montanha": floresta, sálvia, areia e terracota
   ========================================================= */

:root {
  --paper: #FAF7F1;
  --ivory: #F3EDE3;
  --sand: #E6D3BE;
  --sand-soft: #EFE4D6;
  --sage: #8C9A7E;
  --sage-soft: #E1E5D8;
  --forest: #2B382F;
  --forest-2: #36463B;
  --ink: #232D27;
  --muted: #5D665F;
  --terra: #BF7652;
  --terra-dark: #A15C3C;
  --line: rgba(43, 56, 47, .13);
  --line-light: rgba(243, 237, 227, .14);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgba(35, 45, 39, .04), 0 14px 34px -14px rgba(35, 45, 39, .2);
  --shadow-lg: 0 40px 80px -36px rgba(35, 45, 39, .45);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 82px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--terra); color: #fff; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

/* ---------- Textos justificados ---------- */
.hero__lead,
.about__body p,
.section-head:not(.section-head--center) .section-head__text,
.panel p,
.svc__text,
.help__intro p,
.help__list p,
.trail__steps p,
.faq__intro p,
.faq__list details p,
.book__intro > p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
}

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 400;
  background: var(--forest); color: #fff; padding: .7rem 1rem; border-radius: 10px;
}
.skip:focus { top: 1rem; }

.container { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.section { padding: clamp(5.5rem, 11vw, 9.5rem) 0; position: relative; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 1.6rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--terra); }
.eyebrow:has(.eyebrow__num)::before { display: none; }
.eyebrow__num {
  display: inline-flex; align-items: center; gap: .9rem;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--terra-dark);
}
.eyebrow__num::after { content: ""; width: 34px; height: 1px; background: var(--terra); }
.eyebrow--light { color: var(--sand); }
.eyebrow--light .eyebrow__num { color: var(--terra); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  font-variation-settings: "opsz" 144;
  font-weight: 320;
  color: var(--forest);
}
.h2 em, .hero__title em, .statement__text em, .footer__wordmark em {
  font-style: italic; font-weight: 300; color: var(--terra-dark);
}
.lead { font-family: var(--serif); font-weight: 350; font-size: 1.38rem; line-height: 1.5; color: var(--forest); letter-spacing: -.01em; }

/* ---------- Botões e links ---------- */
.btn {
  --b: var(--forest);
  display: inline-flex; align-items: center; justify-content: center; gap: .85rem;
  padding: .95rem .95rem .95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .92rem; letter-spacing: .02em;
  border: 1px solid var(--b);
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s var(--ease), border-color .3s;
  white-space: nowrap;
}
.btn__arrow {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); transition: transform .4s var(--ease), background .3s;
}
.btn:hover .btn__arrow { transform: translateX(3px) rotate(-45deg); background: var(--terra); }
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--forest); color: var(--paper); box-shadow: 0 14px 30px -16px rgba(43, 56, 47, .8); }
.btn--dark:hover { background: var(--forest-2); }
.btn--accent { --b: var(--terra); background: var(--terra); color: #fff; padding: 1.05rem 1.6rem; box-shadow: 0 16px 34px -16px rgba(191, 118, 82, .95); }
.btn--accent:hover { background: var(--terra-dark); border-color: var(--terra-dark); }
.btn--sm { padding: .7rem 1.25rem; font-size: .85rem; }
.btn--block { width: 100%; }

.link-underline {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .92rem; letter-spacing: .02em; color: var(--forest);
  padding: .3rem 0; position: relative;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: left; transition: transform .5s var(--ease);
}
.link-underline:hover::after { transform: scaleX(.35); }
.link-underline:hover { color: var(--terra-dark); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, height .4s var(--ease);
}
.header.is-scrolled {
  --header-h: 70px;
  background: rgba(250, 247, 241, .84);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; align-items: center; gap: .85rem; color: var(--forest); }
.brand__mark { width: 40px; height: 40px; padding: 7px; border-radius: 50%; background: var(--forest); color: var(--paper); flex-shrink: 0; }
.brand__sun { fill: var(--terra); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.015em; }
.brand__sub { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 2.2rem; font-size: .9rem; font-weight: 500; }
.nav a:not(.btn) { position: relative; color: var(--forest); padding: .25rem 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--terra); transform: translateX(-50%) scale(0); transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: translateX(-50%) scale(1); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); position: relative;
}
.menu-toggle span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--forest);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 22.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 22.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5.5rem)) 0 0;
  background:
    radial-gradient(1100px 650px at 88% 0%, var(--sand-soft), transparent 62%),
    radial-gradient(800px 520px at -10% 100%, var(--sage-soft), transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center;
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  color: var(--forest);
  margin-bottom: 2rem;
}
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 33rem; margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; margin-bottom: 3.2rem; }

.hero__meta { display: flex; margin: 0; border-top: 1px solid var(--line); max-width: 33rem; }
.hero__meta div { flex: 1; padding: 1.1rem 0 0; }
.hero__meta div + div { padding-left: 1.4rem; margin-left: 1.4rem; border-left: 1px solid var(--line); }
.hero__meta dt { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hero__meta dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.35rem; color: var(--forest); }

.hero__visual { position: relative; justify-self: center; width: min(450px, 100%); }
.arch {
  margin: 0;
  aspect-ratio: 400 / 520;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  isolation: isolate;
}
.arch::after {
  content: ""; position: absolute; inset: 12px 12px 0;
  border: 1px solid rgba(255, 255, 255, .55); border-bottom: 0;
  border-radius: 999px 999px 0 0; pointer-events: none;
}
.hero__visual::before {
  content: ""; position: absolute; inset: -22px -22px auto auto; width: 100%; height: 100%;
  border: 1px solid var(--line); border-radius: 999px 999px 0 0; z-index: -1;
}
.arch { background: var(--sand-soft); }
.arch__photo {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%;
  filter: saturate(.92) contrast(1.02);
  transform: scale(1.04); transition: transform 1.6s var(--ease);
}
.hero__visual:hover .arch__photo { transform: scale(1.08); }
.arch::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(191, 118, 82, .08), transparent 40%, rgba(43, 56, 47, .18));
}
.arch__hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 22%; z-index: 1; }
@keyframes dash { to { stroke-dashoffset: -300; } }

.float-card {
  position: absolute; left: -14%; bottom: 14%;
  background: rgba(250, 247, 241, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 18px; padding: 1.1rem 1.3rem; box-shadow: var(--shadow);
  color: var(--forest); max-width: 230px;
  animation: float 7s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.12rem; line-height: 1.25; }
.float-card__label { display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terra-dark); font-weight: 700; margin-bottom: .4rem; }
@keyframes float { 50% { transform: translateY(-10px); } }

.badge {
  position: absolute; top: 6%; right: -8%; width: 120px; height: 120px;
  color: var(--forest); background: var(--paper); border-radius: 50%;
  box-shadow: var(--shadow);
}
.badge text { font-family: var(--sans); font-size: 8.4px; text-transform: uppercase; fill: var(--forest); font-weight: 600; transform-origin: 60px 60px; animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.marquee { border-block: 1px solid var(--line); background: var(--ivory); overflow: hidden; padding: 1.3rem 0; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; gap: 2.4rem; animation: marquee 45s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--forest); font-weight: 300; }
.marquee i { width: 7px; height: 7px; border-radius: 50%; background: var(--terra); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sobre ---------- */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 8vw, 8rem); align-items: start; }
.about__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.about__portrait { display: flex; align-items: center; gap: 1.1rem; margin-top: 2.6rem; }
.monogram {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--paper);
  background: var(--forest); box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--line);
}
img.monogram { object-fit: cover; object-position: 60% 32%; }
.about__sign { display: flex; flex-direction: column; font-family: var(--serif); font-size: 1.25rem; color: var(--forest); line-height: 1.3; }
.about__sign small { font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.about__body p { color: var(--muted); }
.about__body .lead { color: var(--forest); margin-bottom: 1.4em; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 3rem 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 1.4rem 1rem 0 0; }
.facts div + div { padding-left: 1.1rem; border-left: 1px solid var(--line); }
.facts dt { font-size: .64rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); font-weight: 700; margin-bottom: .45rem; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.18rem; color: var(--forest); line-height: 1.25; }

/* ---------- Manifesto ---------- */
.statement { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--ivory); border-block: 1px solid var(--line); text-align: center; }
.statement__text {
  margin: 0 auto; max-width: 21em;
  font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.22; letter-spacing: -.02em; color: var(--forest);
}
.statement__text::before {
  content: ""; display: block; width: 56px; height: 34px; margin: 0 auto 2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 34'%3E%3Cpath d='M2 32 L18 10 L27 22 L34 14 L54 32' fill='none' stroke='%23BF7652' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Abordagem (TCC) ---------- */
.approach { background: var(--forest); color: var(--ivory); padding-bottom: clamp(8rem, 13vw, 11rem); overflow: hidden; }
.approach::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -280px;
  background: radial-gradient(circle, rgba(191, 118, 82, .2), transparent 65%); pointer-events: none;
}
.approach .h2 { color: var(--ivory); }
.approach .h2 em { color: var(--sand); }
.section-head { max-width: 48rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head__text { color: var(--muted); font-size: 1.05rem; margin-top: 1.6rem; }
.approach .section-head__text { color: rgba(243, 237, 227, .72); max-width: 40rem; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; }
.section-head--split .section-head__text { margin: 0; max-width: 30rem; justify-self: end; }
.section-head--center { text-align: center; margin-inline: auto; }

.cycle { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.cycle__diagram { position: relative; aspect-ratio: 400 / 380; max-width: 480px; width: 100%; justify-self: center; }
.cycle__svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--sage); overflow: visible; }
.cycle__ring { fill: none; stroke: var(--line-light); stroke-width: 1; }
.cycle__arc { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 3 7; animation: dash 20s linear infinite; }

.node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: 1.05rem 1.45rem; border-radius: 999px;
  background: var(--forest-2); color: var(--ivory);
  border: 1px solid var(--line-light);
  font-family: var(--serif); font-size: 1.08rem; letter-spacing: -.01em;
  transition: background .35s, color .35s, transform .45s var(--ease), box-shadow .35s, border-color .35s;
  z-index: 2;
}
.node__num { font-family: var(--sans); font-size: .6rem; letter-spacing: .2em; color: var(--sand); font-weight: 700; }
.node:hover { transform: translate(-50%, -50%) scale(1.05); }
.node.is-active { background: var(--terra); border-color: var(--terra); box-shadow: 0 20px 44px -18px rgba(191, 118, 82, .95); }
.node.is-active .node__num { color: rgba(255, 255, 255, .85); }
.node--top { left: 50%; top: 13%; }
.node--right { left: 80%; top: 80%; }
.node--left { left: 20%; top: 80%; }
.cycle__center {
  position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%);
  width: 26%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(243, 237, 227, .22);
  background: radial-gradient(circle, rgba(243, 237, 227, .1), transparent 70%);
}
.cycle__center span { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--sand); }
.cycle__center::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(243, 237, 227, .08); animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.12); opacity: .2; } }

.panel { animation: fadeUp .6s var(--ease); }
.panel[hidden] { display: none; }
.panel h3 { font-family: var(--serif); font-size: 2.2rem; color: var(--ivory); margin-bottom: 1rem; font-weight: 300; letter-spacing: -.02em; }
.panel p { color: rgba(243, 237, 227, .78); font-size: 1.08rem; min-height: 6.6em; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.pillars { margin-top: 2.2rem; border-top: 1px solid var(--line-light); }
.pillars li { display: grid; grid-template-columns: 13rem 1fr; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line-light); }
.pillars strong { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; color: var(--sand); }
.pillars span { color: rgba(243, 237, 227, .7); font-size: .95rem; }

.approach__ridge { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 100px; fill: var(--paper); }

/* ---------- Atendimentos (lista editorial) ---------- */
.svc { border-top: 1px solid var(--line); counter-reset: svc; }
.svc__item {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.15fr) 3rem; gap: 2rem; align-items: center;
  padding: 2.2rem 1.4rem; border-bottom: 1px solid var(--line);
  transition: color .4s;
}
.svc__item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sand-soft);
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease);
  border-radius: 4px;
}
.svc__item:hover::before { transform: scaleY(1); }
.svc__num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--terra-dark); }
.svc__title {
  font-family: var(--serif); font-weight: 320; font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -.02em; line-height: 1.1; color: var(--forest);
  transition: transform .55s var(--ease);
}
.svc__title small { display: block; margin-top: .5rem; font-family: var(--sans); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--terra-dark); }
.svc__item:hover .svc__title { transform: translateX(8px); }
.svc__text { margin: 0; color: var(--muted); font-size: .98rem; }
.svc__arrow {
  justify-self: end; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--forest); font-size: 1.05rem;
  transition: background .4s, color .4s, transform .55s var(--ease), border-color .4s;
}
.svc__item:hover .svc__arrow { background: var(--forest); color: var(--paper); border-color: var(--forest); transform: rotate(45deg); }

/* ---------- Quando procurar ---------- */
.help { background: var(--ivory); }
.help__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 7vw, 6.5rem); align-items: start; }
.help__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.help__intro p { color: var(--muted); margin-top: 1.4rem; }
.help__note { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.5; color: var(--forest) !important; margin-bottom: 2.2rem; }
.help__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.help__list li { background: var(--ivory); padding: 2.1rem 1.9rem; display: flex; flex-direction: column; gap: 1rem; transition: background .4s; }
.help__list li:hover { background: var(--paper); }
.help__list span { font-family: var(--serif); font-style: italic; color: var(--terra); font-size: 1.05rem; }
.help__list h3 { font-family: var(--serif); font-size: 1.32rem; color: var(--forest); margin-bottom: .45rem; font-weight: 380; letter-spacing: -.01em; }
.help__list p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Como funciona (trilha) ---------- */
.trail { position: relative; }
.trail__line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 220px; overflow: visible; }
.trail__line path { fill: none; stroke: var(--sage); stroke-width: 1.6; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trail__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4rem; position: relative; }
.trail__steps li:nth-child(1) { margin-top: 170px; }
.trail__steps li:nth-child(2) { margin-top: 110px; }
.trail__steps li:nth-child(3) { margin-top: 55px; }
.trail__steps li:nth-child(4) { margin-top: 0; }
.trail__dot {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--forest); color: var(--forest);
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; margin-bottom: 1.4rem;
  box-shadow: 0 0 0 8px var(--paper); transition: background .35s, color .35s;
}
.trail__steps li:last-child .trail__dot { background: var(--terra); border-color: var(--terra); color: #fff; }
.trail__steps li:hover .trail__dot { background: var(--forest); color: var(--paper); }
.trail__steps h3 { font-family: var(--serif); font-size: 1.45rem; color: var(--forest); margin-bottom: .5rem; font-weight: 380; letter-spacing: -.01em; }
.trail__steps p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Consultório ---------- */
.office { background: var(--sage-soft); }
.office__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.office__map {
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.2;
  box-shadow: var(--shadow-lg); background: var(--ivory);
}
.office__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.5) sepia(.15) contrast(.92) brightness(1.02); }
.checks { margin: 2rem 0; display: grid; gap: .85rem; }
.checks li { display: flex; gap: .9rem; align-items: flex-start; color: var(--forest); }
.checks li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23F3EDE3' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks--light li { color: var(--ivory); }
.checks--light li::before { background-color: var(--terra); }
.office__address {
  font-style: normal; display: flex; flex-direction: column; gap: .15rem;
  color: var(--muted); margin-bottom: 1.8rem; padding: 1.3rem 0; border-block: 1px solid var(--line);
}
.office__address strong { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; color: var(--forest); }
.office__label { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--terra-dark); margin-bottom: .3rem; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 7vw, 6.5rem); align-items: start; }
.faq__intro p { color: var(--muted); margin: 1.4rem 0 1.6rem; }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 1.6rem 3.5rem 1.6rem 0; position: relative;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 350; color: var(--forest); line-height: 1.35;
  transition: color .3s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--terra-dark); }
.faq__list summary::after {
  content: ""; position: absolute; right: .3rem; top: 50%; width: 34px; height: 34px; margin-top: -17px;
  border-radius: 50%; border: 1px solid var(--line);
  background:
    linear-gradient(var(--forest), var(--forest)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--forest), var(--forest)) center / 1.5px 12px no-repeat;
  transition: transform .45s var(--ease), background-color .3s;
}
.faq__list details[open] summary::after { transform: rotate(135deg); background-color: var(--sage-soft); }
.faq__list details p { color: var(--muted); padding-right: 3.5rem; margin: 0 0 1.7rem; animation: fadeUp .45s var(--ease); }

/* ---------- Agendamento ---------- */
.book { background: var(--forest); color: var(--ivory); overflow: hidden; }
.book::before {
  content: ""; position: absolute; left: -200px; bottom: -300px; width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(140, 154, 126, .25), transparent 65%);
}
.book__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 7vw, 6.5rem); align-items: center; position: relative; }
.book .h2 { color: var(--ivory); }
.book .h2 em { color: var(--sand); }
.book__intro > p { color: rgba(243, 237, 227, .75); margin-top: 1.4rem; font-size: 1.05rem; }

.form {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.9rem);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .6);
  display: grid; gap: 1.6rem;
}
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend {
  display: block; font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--forest); margin-bottom: .7rem; padding: 0;
}
.opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.field input[type="text"], .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .95rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #9AA198; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.field__error { display: none; color: #B3452F; font-size: .82rem; margin-top: .4rem; }
.field.has-error input { border-color: #C9654C; }
.field.has-error .field__error { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { margin: 0; letter-spacing: 0; text-transform: none; font-size: .9rem; font-weight: 500; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: .6rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--forest);
  transition: background .25s, color .25s, border-color .25s;
}
.chips label:hover span { border-color: var(--sage); }
.chips input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.wa-ico { width: 20px; height: 20px; }
.form__hint { text-align: center; font-size: .8rem; color: var(--muted); margin: -.6rem 0 0; }

/* ---------- Contato ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact__item {
  display: flex; flex-direction: column; gap: .6rem; padding: 2.2rem 1.6rem;
  position: relative; isolation: isolate; transition: color .3s;
}
.contact__item + .contact__item { border-left: 1px solid var(--line); }
.contact__item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ivory);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.contact__item:hover::before { transform: scaleY(1); }
.contact__item::after { content: "↗"; position: absolute; top: 2rem; right: 1.5rem; color: var(--terra); transition: transform .4s var(--ease); }
.contact__item:hover::after { transform: translate(3px, -3px); }
.contact__label { font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact__item strong { font-family: var(--serif); font-weight: 350; font-size: 1.2rem; color: var(--forest); line-height: 1.35; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--forest); color: rgba(243, 237, 227, .68); padding: 6rem 0 2.2rem; margin-top: 3rem; font-size: .88rem; overflow: hidden; }
.footer__ridge { position: absolute; top: -1px; left: 0; width: 100%; height: 80px; fill: var(--paper); transform: scaleY(-1); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding-top: 1rem; }
.footer__brand { display: flex; flex-direction: column; gap: .15rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; }
.footer__nav a { color: var(--ivory); transition: color .3s; }
.footer__nav a:hover { color: var(--terra); }
.footer__wordmark {
  margin: 2.5rem 0 1.5rem; font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(3.4rem, 13.5vw, 12.5rem); line-height: .9; letter-spacing: -.05em;
  color: var(--ivory); white-space: nowrap;
}
.footer__wordmark em { color: var(--sand); }
.footer__bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem 3rem; align-items: center; padding-top: 1.6rem; border-top: 1px solid var(--line-light); }
.footer__crisis { margin: 0; line-height: 1.6; }
.footer__crisis strong { color: var(--sand); font-weight: 600; }
.footer__copy { margin: 0; text-align: right; font-size: .78rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7);
  transition: transform .35s var(--ease), opacity .3s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 1.5rem; }
  .float-card { left: -6%; }
  .badge { right: -3%; }
  .svc__item { grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.2fr) 3rem; gap: 1.5rem; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__item:nth-child(3) { border-left: 0; }
  .contact__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1;
    height: 100vh; height: 100dvh;
    flex-direction: column; justify-content: center; gap: 1.6rem;
    background: var(--paper); font-family: var(--serif); font-size: 2rem; font-weight: 300;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav .btn { font-family: var(--sans); font-size: 1rem; margin-top: 1rem; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .menu-open .header { backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; background: transparent; }
  .menu-open .wa-float { opacity: 0; pointer-events: none; }
  .brand { position: relative; z-index: 2; }

  .hero__grid, .about__grid, .cycle, .help__grid, .office__grid, .faq__grid, .book__grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(380px, 84%); margin-top: 1.5rem; }
  .about__aside, .help__intro { position: static; }
  .section-head--split { grid-template-columns: 1fr; gap: 1.2rem; }
  .section-head--split .section-head__text { justify-self: start; }

  .svc__item { grid-template-columns: 3rem 1fr 3rem; grid-template-areas: "num title arrow" ". text text"; gap: .8rem 1rem; padding: 1.8rem .6rem; }
  .svc__num { grid-area: num; }
  .svc__title { grid-area: title; }
  .svc__text { grid-area: text; }
  .svc__arrow { grid-area: arrow; }

  .trail__line { display: none; }
  .trail__steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .trail__steps li:nth-child(n) { margin-top: 0; }
  .office__map { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }

  .footer__bottom { grid-template-columns: 1fr; }
  .footer__copy { text-align: left; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { width: min(1200px, 100% - 2.5rem); }
  .about__body .lead, .hero__lead { text-align: left; }
  .brand__sub { display: none; }
  .hero__actions { gap: 1.2rem 1.6rem; }
  .hero__meta dd { font-size: 1.15rem; }
  .hero__meta div + div { padding-left: 1rem; margin-left: 1rem; }
  .float-card { left: -8%; bottom: 8%; padding: .85rem 1rem; max-width: 190px; }
  .float-card strong { font-size: 1rem; }
  .badge { width: 96px; height: 96px; right: -8%; top: 4%; }
  .hero__visual::before { inset: -14px -14px auto auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div { padding-bottom: 1rem; }
  .svc__item { grid-template-columns: 2.2rem 1fr 2.6rem; grid-template-areas: "num title arrow" "text text text"; }
  .svc__arrow { width: 40px; height: 40px; }
  .help__list { grid-template-columns: 1fr; }
  .help__list li { padding: 1.7rem 1.4rem; }
  .pillars li { grid-template-columns: 1fr; gap: .2rem; }
  .node { padding: .75rem 1rem; font-size: .92rem; }
  .trail__steps { grid-template-columns: 1fr; }
  .trail__steps li { display: grid; grid-template-columns: 54px 1fr; gap: 0 1.2rem; }
  .trail__steps .trail__dot { grid-row: span 2; margin: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__item + .contact__item { border-left: 0; border-top: 1px solid var(--line); }
  .faq__list summary { font-size: 1.12rem; }
  .faq__list details p { padding-right: 0; }
  .wa-float { width: 54px; height: 54px; right: 1rem; bottom: 1rem; }
}

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