/* =========================================================
   Psicóloga Juliana Buratto — landing page
   Mundo visual: figura e fundo (Gestalt).
   Duas tintas (terracota e oliva) sobre o rosa-chá;
   o tom de sobreposição (umber) é o terceiro.
   ========================================================= */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* cores (troque aqui para ajustar a página inteira) */
  --ground: #EBDCD7;       /* rosa-chá: o fundo */
  --figure: #9A4B32;       /* terracota: a figura */
  --figure-deep: #3B2418;  /* umber: sobreposição das duas tintas */
  --ink: #3F3A22;          /* oliva: texto sobre o fundo */
  --ink-soft: #5B5436;     /* texto secundário sobre o fundo */
  --paper: #F6EFEA;        /* creme: texto sobre a figura */
  --paper-soft: #F0DCD2;   /* texto secundário sobre a figura */
  --rule: rgba(63, 58, 34, 0.22);
  --rule-paper: rgba(246, 239, 234, 0.32);

  --font: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 4.5vw, 72px);
  --section: clamp(88px, 10vw, 152px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --focus: var(--ink);
  color-scheme: light;
  scrollbar-color: var(--figure) var(--ground);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p, dd { text-wrap: pretty; }

::selection { background: var(--figure); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 2px;
}

/* contextos de figura (texto creme) */
.hero__figure, .figure, .close__figure, .footer {
  --focus: var(--paper);
}
.hero__figure ::selection, .figure ::selection, .close__figure ::selection, .footer ::selection {
  background: var(--paper);
  color: var(--figure-deep);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--figure-deep);
  border-radius: 2px;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

.wrap {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 52px;
  padding: 0.95em 1.55em 0.95em 1.3em;
  border-radius: 3px;
  font: 500 1.0625rem/1.1 var(--font);
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn__icon {
  width: 1.3em;
  height: 1.3em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.btn--paper { background: var(--paper); color: var(--figure-deep); }
.btn--paper:hover { background: #FFF9F5; box-shadow: 0 10px 24px -14px rgba(59, 36, 24, 0.8); }
.btn--figure { background: var(--figure); color: var(--paper); }
.btn--figure:hover { background: var(--figure-deep); }
.btn--small { min-height: 44px; padding: 0.7em 1.15em 0.7em 1em; font-size: 0.975rem; }
.btn--block { width: 100%; }

.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition: text-decoration-thickness 0.2s;
}
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Bordas orgânicas (a fronteira entre figura e fundo) ---------- */
.edge { position: absolute; display: block; pointer-events: none; }
.edge path { fill: var(--figure); }
.edge--ground path { fill: var(--ground); }
.edge--deep path { fill: var(--figure-deep); }
.edge--hero-foot, .edge--close-head {
  left: 0;
  width: 100%;
  height: clamp(28px, 5vw, 76px);
  z-index: 3;
}
.edge--hero-foot { bottom: -1px; }
.edge--close-head { top: -1px; }
.edge--footer-head { bottom: calc(100% - 1px); left: 0; width: 100%; height: clamp(28px, 4.5vw, 64px); }

/* =========================================================
   1. TOPO
   ========================================================= */
.hero {
  position: relative;
  background: var(--ground);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__figure {
  position: relative;
  z-index: 1;
  background: var(--figure);
  color: var(--paper);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 7vh, 96px);
  padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(36px, 6vh, 72px);
}
.hero__nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}
.hero__mark { width: 52px; height: 52px; }
.hero__nav ul { display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 2vw, 28px); }
.hero__nav a {
  color: var(--paper);
  font-size: 0.95rem;
  text-decoration: none;
  padding-block: 10px;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease-out);
}
.hero__nav a:hover { background-size: 100% 1px; }

.hero__name {
  font-size: clamp(3.1rem, 6.6vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.hero__crp {
  margin-top: 0.9em;
  font-size: clamp(0.82rem, 0.9vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__lead {
  margin-top: clamp(20px, 3vh, 32px);
  max-width: 30ch;
  font-size: clamp(1.2rem, 1.55vw, 1.45rem);
  line-height: 1.42;
  color: var(--paper);
}
.hero__actions {
  margin-top: clamp(28px, 4.5vh, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.hero__phone { font-size: 0.98rem; color: var(--paper-soft); }
.hero__phone a { color: var(--paper); text-decoration: none; font-weight: 500; white-space: nowrap; }
.hero__phone a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

/* topo: computador e tablet deitado */
@media (min-width: 900px) {
  .hero { min-height: clamp(640px, 100svh, 960px); }
  .hero__photo {
    position: absolute;
    inset: 0 0 0 auto;
    width: 62%;
  }
  .hero__photo img { object-position: 74% 24%; }
  .hero__figure {
    width: 50%;
    min-height: clamp(640px, 100svh, 960px);
    display: flex;
  }
  .hero__inner {
    flex: 1;
  }
  .hero__text { margin-block: auto; padding-bottom: clamp(0px, 4vh, 48px); }
  .edge--hero-side {
    left: calc(100% - 1px);
    top: 0;
    width: clamp(110px, 11vw, 190px);
    height: 100%;
  }
  .edge--hero-bottom { display: none; }
}

/* topo: celular e tablet em pé */
@media (max-width: 899.98px) {
  .edge--hero-side { display: none; }
  .edge--hero-bottom {
    top: calc(100% - 1px);
    left: 0;
    width: 100%;
    height: clamp(36px, 9vw, 72px);
  }
  .hero__inner { gap: 36px; padding-bottom: 28px; }
  .hero__text { max-width: 560px; }
  .hero__photo { position: relative; }
  .hero__photo img {
    aspect-ratio: 4 / 4.4;
    max-height: 78svh;
    object-position: 72% 22%;
  }
  .hero { display: flex; flex-direction: column-reverse; }
}
@media (max-width: 420px) {
  .hero__nav { gap: 14px; }
  .hero__mark { width: 38px; height: 38px; }
  .hero__nav ul { flex-wrap: nowrap; gap: 0 12px; }
  .hero__nav a { font-size: 0.86rem; white-space: nowrap; }
  .hero__actions .btn { width: 100%; }
}
@media (max-width: 359.98px) {
  .hero__nav ul { display: none; }
}

/* =========================================================
   Seções
   ========================================================= */
.ground {
  position: relative;
  background: var(--ground);
  color: var(--ink);
  padding-block: var(--section);
}
.ground h2, .figure h2 {
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

/* ---------- 2. Como trabalho ---------- */
.how__grid {
  display: grid;
  gap: clamp(48px, 7vw, 112px);
}
.how__intro h2 { max-width: 17ch; }
.how__intro > p {
  margin-top: 28px;
  max-width: 46ch;
  font-size: 1.125rem;
  color: var(--ink-soft);
}
.how__quote {
  margin-top: clamp(40px, 5vw, 64px);
  max-width: 24ch;
}
.how__quote p {
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--figure);
  font-weight: 500;
}
.how__quote footer {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.how__quote footer::before { content: "— "; }

.principles { align-self: end; }
.principles__row {
  display: grid;
  gap: 6px 32px;
  padding-block: 26px;
  border-top: 1px solid var(--rule);
}
.principles__row:last-child { border-bottom: 1px solid var(--rule); }
.principles dt {
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--figure);
}
.principles dd { color: var(--ink); max-width: 44ch; }

@media (min-width: 900px) {
  .how__grid { grid-template-columns: 5fr 6fr; }
  .principles__row { grid-template-columns: 11.5rem 1fr; align-items: baseline; }
}

/* ---------- 3. Para quem (figura) ---------- */
.figure {
  position: relative;
  z-index: 2;
  background: var(--figure);
  color: var(--paper);
  padding-block: clamp(64px, 8vw, 120px);
}
.edge--top { bottom: calc(100% - 1px); left: 0; width: 100%; height: clamp(36px, 6vw, 88px); }
.edge--bottom { top: calc(100% - 1px); left: 0; width: 100%; height: clamp(36px, 6vw, 88px); }

.who__grid {
  display: grid;
  gap: 40px clamp(40px, 6vw, 96px);
  margin-top: clamp(36px, 5vw, 64px);
}
.who__item {
  padding-top: 24px;
  border-top: 1px solid var(--rule-paper);
}
.who__item h3 {
  font-size: clamp(1.6rem, 2.3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.who__item p {
  margin-top: 14px;
  max-width: 44ch;
  color: var(--paper);
}
.who__note {
  margin-top: clamp(48px, 6vw, 80px);
  max-width: 30ch;
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  font-weight: 500;
}
@media (min-width: 760px) {
  .who__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 4. Atendimento ---------- */
.care { padding-top: calc(var(--section) + clamp(36px, 6vw, 88px)); }
.care h2 { max-width: 16ch; }

.care__formats {
  display: grid;
  margin-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--rule);
}
.format { padding-block: 28px; }
.format + .format { border-top: 1px solid var(--rule); }
.format h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--figure);
}
.format p { margin-top: 12px; max-width: 42ch; }

@media (min-width: 760px) {
  .care__formats { grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
  .format { padding: 36px 40px 40px 0; }
  .format + .format { border-top: 0; border-left: 1px solid var(--rule); padding-left: 40px; }
}

.care__flow {
  display: grid;
  gap: 48px;
  margin-top: clamp(56px, 7vw, 96px);
}
.steps { display: grid; gap: 32px; }
.steps li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 16px; align-items: start; }
.steps__n {
  font-size: 2.6rem;
  line-height: 0.9;
  font-weight: 400;
  color: var(--figure);
  letter-spacing: -0.04em;
}
.steps h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
.steps p { margin-top: 6px; color: var(--ink-soft); max-width: 34ch; }

.hours {
  align-self: start;
  color: var(--ink);
}
.hours h3 {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hours dl { margin-top: 14px; border-bottom: 1px solid var(--rule); }
.hours dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 11px;
  border-top: 1px solid var(--rule);
}
.hours dd { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.hours p { margin-top: 14px; font-size: 0.95rem; color: var(--ink-soft); }

@media (min-width: 900px) {
  .care__flow { grid-template-columns: 1fr 20rem; gap: clamp(48px, 6vw, 96px); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { grid-template-columns: 1fr; gap: 14px; align-content: start; }
}

/* ---------- 5. Endereço e contato ---------- */
.close {
  position: relative;
  background: var(--ground);
}
.close__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 30%; }
.close__figure {
  position: relative;
  background: var(--figure);
  color: var(--paper);
}
.close__inner {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 7vw, 112px) var(--gutter) clamp(64px, 7vw, 104px);
}
.close__inner h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 13ch;
}
.close__inner > .btn { margin-top: clamp(28px, 3.5vw, 40px); }
.close__facts {
  display: grid;
  gap: 32px 48px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--rule-paper);
}
.close__facts h3 {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-soft);
  margin-bottom: 12px;
}
.close__facts p + p { margin-top: 14px; }
.close__facts address + .link { display: inline-block; margin-top: 14px; padding-block: 4px; }
.close__hint { color: var(--paper-soft); }
.close__facts .link { overflow-wrap: anywhere; }

@media (min-width: 900px) {
  .close {
    display: grid;
    grid-template-columns: 44% 56%;
    min-height: 680px;
  }
  .close__photo { position: relative; }
  .close__photo picture { position: absolute; inset: 0; }
  .edge--close-side {
    right: calc(100% - 1px);
    top: 0;
    width: clamp(90px, 9vw, 160px);
    height: 100%;
  }
  .edge--close-top { display: none; }
  .close__inner {
    padding-left: clamp(24px, 3vw, 56px);
    padding-right: max(var(--gutter), calc((100vw - 1200px) / 2));
    padding-top: clamp(96px, 9vw, 150px);
  }
  .close__facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899.98px) {
  .edge--close-side { display: none; }
  .edge--close-top {
    bottom: calc(100% - 1px);
    left: 0;
    width: 100%;
    height: clamp(32px, 8vw, 64px);
  }
  .close__photo img { aspect-ratio: 1 / 0.92; max-height: 72svh; }
}
@media (min-width: 600px) and (max-width: 899.98px) {
  .close__facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Rodapé ---------- */
.footer {
  position: relative;
  background: var(--figure-deep);
  color: var(--paper-soft);
  padding-block: 48px;
  font-size: 0.95rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer__seal { width: 96px; height: auto; flex: none; }
.footer__name { color: var(--paper); font-weight: 500; margin-bottom: 4px; }
@media (max-width: 520px) {
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__seal { width: 84px; }
}

/* ---------- Barra fixa (computador) ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px var(--gutter);
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
  transition: transform 0.45s var(--ease-out), visibility 0s linear 0s;
}
.topbar__id {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.25;
}
.topbar__id img { width: 36px; height: 36px; }
.topbar__id strong { font-weight: 500; }
.topbar__crp { color: var(--ink-soft); font-size: 0.9rem; margin-left: 8px; }
@media (min-width: 900px) {
  .topbar { display: flex; }
  .js .topbar:not(.is-visible) {
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
  }
}

/* ---------- Botão fixo (celular) ---------- */
.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--ground);
  border-top: 1px solid var(--rule);
  transition: transform 0.4s var(--ease-out), visibility 0s linear 0s;
}
.js .dock:not(.is-visible) {
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
@media (min-width: 900px) { .dock { display: none; } }
@media (max-width: 899.98px) { .footer { padding-bottom: calc(48px + 76px + env(safe-area-inset-bottom)); } }

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