/* ==========================================================================
   Ana Carolina Ferreira | Landing page
   Conceito: Atravessamentos. Mobile-first.
   ========================================================================== */

/* ---------- Fontes (hospedadas no próprio site) ---------- */
@font-face {
  font-family: "Fraunces Soft";
  src: url("assets/fonts/fraunces-soft.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Cores do PDF */
  --orquidea: #CB6CE6;
  --folha: #A1C76B;
  --ambar: #FFBD59;
  /* Cores derivadas */
  --berinjela: #2C1136;
  --ameixa: #5B2A70;
  --lilas: #EBCFF4;
  --papel: #F8F0EA;

  --display: "Fraunces Soft", Georgia, serif;
  --text: "Figtree", system-ui, sans-serif;

  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.25rem, 1.05rem + .8vw, 1.625rem);
  --fs-h3: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  --fs-h2: clamp(2.5rem, 1.7rem + 3.6vw, 4.75rem);
  --fs-h1: clamp(3.25rem, 1.4rem + 8vw, 7.25rem);

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --space: clamp(4.5rem, 10vw, 9rem);
  --measure: 62ch;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  scroll-padding-bottom: 5.5rem;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--papel);
  color: var(--berinjela);
  font-family: var(--text);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--berinjela);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--papel);
  border-radius: 4px;
}

.therapy :focus-visible, .foot :focus-visible, .float:focus-visible {
  outline-color: var(--papel);
  box-shadow: 0 0 0 3px var(--berinjela);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: .75rem 1rem;
  background: var(--berinjela);
  color: var(--papel);
  border-radius: .5rem;
}
.skip:focus { top: 1rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 3.5rem;
  padding: .75rem 1.625rem;
  border-radius: 2rem 2.25rem 2rem 1.75rem;
  font-weight: 650;
  font-size: 1.0625rem;
  line-height: 1.25;
  text-decoration: none;
  transition: border-radius .25s ease, background-color .2s ease;
}
.btn:hover { border-radius: 1.5rem 2.75rem 1.5rem 2.75rem; }
.btn__icon { width: 1.3em; height: 1.3em; flex: none; fill: currentColor; }
.btn--ink { background: var(--berinjela); color: var(--papel); }
.btn--ink:hover { background: var(--ameixa); }

.link { font-weight: 600; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.link:hover { text-decoration-thickness: 4px; }

/* ---------- Topo ---------- */
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem var(--gutter);
}
.top__name {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.1875rem;
  text-decoration: none;
}
.top__nav { display: none; gap: 2rem; font-weight: 550; font-size: 1rem; }
.top__nav a { text-decoration: none; padding: .5rem 0; }
.top__nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--orquidea);
  padding: 5.25rem var(--gutter) 0;
  overflow-x: clip;
}
.hero__text { position: relative; z-index: 3; }
.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero__lead {
  margin-top: 1.5rem;
  max-width: 34ch;
  font-size: var(--fs-lead);
  line-height: 1.4;
  font-weight: 500;
}
.hero__modes {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}
.hero__modes span {
  padding: .45rem .9rem;
  border: 2px solid var(--berinjela);
  border-radius: 1.25rem 1.5rem 1.25rem 1rem;
}
.hero .btn { margin-top: 1.75rem; }
.hero__id { margin-top: 1.5rem; font-size: 1rem; line-height: 1.45; font-weight: 500; }

.hero__photo {
  position: relative;
  z-index: 2;
  display: block;
  width: 86vw;
  margin: 2.5rem calc(var(--gutter) * -1) 0 auto;
}
.hero__photo img {
  width: 100%;
  border-radius: 52% 0 0 14% / 40% 0 0 8%;
}

/* ---------- Faixa ---------- */
.ribbon { position: absolute; left: 0; width: 100%; pointer-events: none; overflow: visible; }
.ribbon__band { fill: none; stroke: var(--berinjela); stroke-width: 60; }
.ribbon__text {
  font-family: var(--display);
  font-weight: 600;
  font-size: 27px;
  fill: var(--papel);
  dominant-baseline: central;
  word-spacing: .12em;
}
.ribbon--back { display: none; }
.ribbon--front { z-index: 3; bottom: -3.5rem; height: 11rem; }
.ribbon--front .ribbon__band { stroke-width: 40; }
.ribbon--front .ribbon__text { font-size: 18px; }

/* ---------- Sobre ---------- */
.about {
  display: grid;
  gap: 2.5rem;
  padding: calc(var(--space) + 2rem) var(--gutter) var(--space);
}
.about__photo {
  width: min(78%, 22rem);
  background: var(--folha);
  border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%;
  overflow: hidden;
}
.about__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -.015em;
}
.about__lead {
  margin-top: 1.25rem;
  max-width: 30ch;
  font-size: var(--fs-lead);
  line-height: 1.35;
  font-weight: 500;
}
.about__text > p:not(.about__lead) { margin-top: 1.125rem; max-width: var(--measure); }

.facts { margin-top: 2.25rem; display: grid; gap: 1rem; }
.facts dt { font-size: .9375rem; color: var(--ameixa); font-weight: 600; }
.facts dd { font-family: var(--display); font-weight: 600; font-size: 1.3125rem; line-height: 1.25; }

/* ---------- Psicoterapia ---------- */
.therapy {
  background: var(--berinjela);
  color: var(--papel);
  padding: var(--space) var(--gutter);
  border-radius: 0 min(22vw, 18rem) 0 0;
}
.therapy__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -.015em;
  max-width: 17ch;
  color: var(--lilas);
}
.therapy__copy { margin-top: 1.75rem; max-width: var(--measure); }
.therapy__copy p + p { margin-top: 1.125rem; }

.therapy__sub {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--lilas);
}
.crossings { margin-top: 1rem; }
.crossings li {
  display: grid;
  gap: .25rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgb(235 207 244 / .3);
}
.crossings li:last-child { border-bottom: 1px solid rgb(235 207 244 / .3); }
.crossings__term {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.75rem);
  line-height: 1.08;
  color: #DD9BF0;
}
.crossings__note { max-width: 44ch; }
.therapy__open { margin-top: 1.75rem; max-width: var(--measure); }

.modes {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  display: grid;
  gap: 1.5rem;
}
.modes__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.1;
  color: var(--lilas);
}
.modes__photo { margin: 0; max-width: 26rem; }
.modes__photo img { width: 100%; border-radius: 1rem 45% 1rem 1rem / 1rem 30% 1rem 1rem; }
.modes__list { display: grid; gap: 1.75rem; }
.mode { display: grid; gap: .5rem; justify-items: start; max-width: 44ch; }
.mode__title {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem);
  line-height: 1.15;
  color: #DD9BF0;
}
.mode__address { font-style: normal; }
.mode .link { min-height: 2.75rem; display: inline-flex; align-items: center; }

.start {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding: 2rem 1.5rem;
  background: var(--papel);
  color: var(--berinjela);
  border-radius: 2.5rem 1rem 3.5rem 1.5rem;
}
.start__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.1;
}
.start__steps { margin-top: 1.25rem; counter-reset: passo; display: grid; gap: 1rem; }
.start__steps li {
  counter-increment: passo;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: .5rem;
}
.start__steps li::before {
  content: counter(passo);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--ameixa);
}
.start .btn { margin-top: 1.75rem; }

/* ---------- Dúvidas ---------- */
.faq {
  display: grid;
  gap: 1.75rem;
  padding: var(--space) var(--gutter);
}
.faq__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.04;
}
.faq details { border-top: 1px solid rgb(44 17 54 / .35); }
.faq details:last-child { border-bottom: 1px solid rgb(44 17 54 / .35); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  min-height: 3rem;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--display);
  font-size: 1.625rem;
  line-height: 1;
  color: var(--ameixa);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.25rem; max-width: var(--measure); }
.pending { background: var(--ambar); padding: .5rem .75rem !important; border-radius: .5rem; font-weight: 600; }

/* ---------- Além da clínica ---------- */
.others { padding: 0 var(--gutter) var(--space); }
.others__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.1;
}
.others__grid { margin-top: 1.5rem; display: grid; gap: 1.25rem; }
.offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem 1.5rem;
}
.offer p { flex: 1; max-width: 56ch; }
.offer--leaf { background: var(--folha); border-radius: 3.5rem 1.25rem 2rem 1.25rem; }
.offer--amber { background: var(--ambar); border-radius: 1.25rem 2rem 1.25rem 3.5rem; }
.offer__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.1;
}

/* ---------- Livro ---------- */
.book {
  display: grid;
  gap: 2.5rem;
  padding: 0 var(--gutter) var(--space);
}
.book__cover { margin: 0; width: min(70vw, 22rem); }
.book__cover img {
  width: 100%;
  border-radius: 1.25rem;
}
.book__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -.015em;
}
.book__title cite { font-style: normal; }
.book__subtitle {
  margin-top: .75rem;
  max-width: 34ch;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--fs-lead);
  line-height: 1.3;
}
.book__meta { margin-top: 1rem; font-weight: 600; color: var(--ameixa); }
.book__text > p:not(.book__meta):not(.book__subtitle) { margin-top: 1.25rem; max-width: var(--measure); }
.book__quote {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  border-left: 4px solid var(--orquidea);
  max-width: 56ch;
}
.book__quote p { font-family: var(--display); font-weight: 500; font-size: 1.1875rem; line-height: 1.45; }
.book__quote footer { margin-top: .5rem; font-size: .9375rem; color: var(--ameixa); font-weight: 600; }
.book .btn { margin-top: 1.75rem; }

/* ---------- Convite ---------- */
.invite {
  background: var(--orquidea);
  padding: var(--space) var(--gutter);
  border-radius: min(22vw, 18rem) 0 0 0;
}
.invite__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -.015em;
  max-width: 13ch;
}
.invite__text { margin-top: 1.25rem; max-width: 38ch; font-size: var(--fs-lead); line-height: 1.4; font-weight: 500; }
.invite__phone { margin-top: 1.25rem; font-weight: 600; font-size: 1.125rem; }
.invite__phone a { font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-underline-offset: .2em; }
.invite__actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.invite__actions .link { min-height: 2.75rem; display: inline-flex; align-items: center; }
.invite__care { margin-top: 3rem; max-width: 60ch; font-size: 1rem; font-weight: 500; }
.invite__care a { font-weight: 700; padding: .2em .15em; }

/* ---------- Rodapé ---------- */
.foot {
  background: var(--berinjela);
  color: var(--papel);
  padding: 2.5rem var(--gutter) 6rem;
  display: grid;
  gap: 1.25rem;
  font-size: 1rem;
}
.foot__name { font-family: var(--display); font-weight: 650; font-size: 1.25rem; }
.foot address { font-style: normal; margin: .5rem 0; }
.foot a { text-underline-offset: .2em; display: inline-block; padding: .25rem 0; }

/* ---------- Contato fixo (mobile) ---------- */
.float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .5rem 1.125rem;
  border-radius: 1.5rem;
  background: var(--berinjela);
  color: var(--papel);
  outline: 2px solid var(--papel);
  font-weight: 650;
  text-decoration: none;
}
.float[hidden] { display: none; }

/* ---------- Tablet ---------- */
@media (min-width: 40rem) {
  .hero__photo { width: min(86vw, 34rem); }
  .facts { grid-template-columns: 1fr 1fr; }
  .crossings li { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: baseline; gap: 2rem; }
  .start { padding: 3rem; }
  .offer { padding: 3rem; }
}

/* ---------- Desktop ---------- */
@media (min-width: 60rem) {
  .top__nav { display: flex; gap: 1.75rem; }
  .float { display: none; }
  .foot { grid-template-columns: 1fr auto; padding-bottom: 2.5rem; }

  .hero {
    min-height: 56vw;
    padding: 7rem var(--gutter) 10.5vw;
  }
  .hero__text { max-width: 54vw; }
  .hero__title { font-size: min(7.6vw, 7.5rem); }
  .hero__lead { max-width: 36ch; }
  .hero__photo {
    position: absolute;
    right: 0;
    bottom: 3vw;
    width: 35vw;
    margin: 0;
  }
  .hero__photo img { border-radius: 50% 0 0 12% / 38% 0 0 10%; }

  .ribbon--front { display: none; }
  .ribbon--back { display: block; bottom: -2.2vw; z-index: 1; height: auto; }

  .about {
    grid-template-columns: 5fr 7fr;
    gap: 6vw;
    align-items: center;
    padding-top: calc(var(--space) + 3vw);
  }
  .about__photo { width: 100%; max-width: 30rem; justify-self: center; }

  .therapy__intro { display: grid; grid-template-columns: 7fr 5fr; gap: 5vw; align-items: end; }
  .therapy__title { max-width: none; }
  .therapy__copy { margin-top: 0; }
  .modes { grid-template-columns: 5fr 7fr; column-gap: 5vw; align-items: center; }
  .modes__title { grid-column: 1 / -1; }
  .modes__photo { max-width: none; }
  .modes__list { gap: 2.5rem; }

  .book { grid-template-columns: 5fr 7fr; gap: 6vw; align-items: center; }
  .book__cover { width: 100%; max-width: 24rem; justify-self: center; }

  .start {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 1.25rem 3rem;
    padding: 3.5rem;
  }
  .start__steps { margin-top: 0; grid-column: 2; grid-row: 1; }
  .start .btn { grid-column: 2; margin-top: .75rem; justify-self: start; }

  .faq { grid-template-columns: 4fr 8fr; gap: 3rem; }

  .others__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .invite { display: grid; grid-template-columns: 6fr 6fr; column-gap: 5vw; align-items: end; }
  .invite__title { grid-row: 1 / span 2; }
  .invite__text { margin-top: 0; }
  .invite__title { grid-row: 1 / span 3; }
  .invite__care { grid-column: 1 / -1; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Impressão ---------- */
@media print {
  .ribbon, .float, .top__nav { display: none; }
}
