/* ------------------------------------------------------------
   Jennifer Craco · Psicóloga
   Tokens
   ------------------------------------------------------------ */
:root {
  --ink:        #1e2540;   /* text on light, deep band */
  --navy:       #262f50;   /* brand navy */
  --navy-soft:  #343f6b;   /* panels inside navy band */
  --rose:       #ddbcc6;   /* brand dusty rose */
  --rose-deep:  #a96f81;   /* links / small accents on light */
  --rose-pale:  #f3e7ea;   /* soft band */
  --paper:      #faf6f3;   /* page background */
  --paper-2:    #f1ebe7;   /* borders on light */
  --muted:      #5f6478;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Figtree", "Segoe UI", system-ui, sans-serif;

  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 50, "opsz" 96;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
p  { margin: 0 0 1.1em; max-width: var(--measure); }

a { color: var(--rose-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------
   Top bar
   ------------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-2);
}
.topbar-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-size: 1.25rem;
  font-variation-settings: "SOFT" 50, "opsz" 24;
}
.brand img { width: 26px; height: auto; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px;
  font-weight: 500; font-size: 0.95rem;
}
.nav a:hover { background: var(--rose-pale); }
.nav .nav-cta { background: var(--navy); color: #fff; padding: 9px 16px; margin-left: 6px; }
.nav .nav-cta:hover { background: var(--ink); }

.menu-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  flex-direction: column; gap: 6px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(48px, 7vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero-hello {
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--rose-deep);
  margin-bottom: 0.6em;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 12ch;
  margin-bottom: 0.45em;
}
.hero h1 em { font-style: italic; font-weight: 300; }
.hero-lead { font-size: 1.1rem; max-width: 52ch; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-meta { font-size: 0.95rem; color: var(--muted); margin: 0; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { border-color: var(--rose-deep); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--rose-pale); }

.hero-figure { position: relative; margin: 0; justify-self: center; width: min(100%, 420px); }
.arch {
  position: relative; z-index: 1;
  aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: 0 30px 60px -30px rgba(30, 37, 64, 0.45);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-figure figcaption {
  position: relative; z-index: 1;
  text-align: center; margin-top: 14px; color: var(--muted); font-size: 0.95rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-text, .hero-figure { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-figure { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ------------------------------------------------------------
   Sobre
   ------------------------------------------------------------ */
.sobre { border-top: 1px solid var(--paper-2); }
.sobre-grid {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px); align-items: start;
}
.creds { list-style: none; padding: 0; margin: 24px 0 0; max-width: 46ch; }
.creds li {
  padding: 12px 0 12px 22px; position: relative;
  border-top: 1px solid var(--paper-2);
}
.creds li:last-child { border-bottom: 1px solid var(--paper-2); }
.creds li::before {
  content: ""; position: absolute; left: 0; top: 22px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--rose);
}

.books h3 { font-size: 1.35rem; margin-bottom: 20px; }
.shelf {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.shelf li { display: flex; flex-direction: column; gap: 10px; }
.shelf img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px;
  box-shadow: 0 12px 24px -14px rgba(30,37,64,.55), 0 1px 0 rgba(30,37,64,.08);
}
.shelf span { font-size: 0.9rem; line-height: 1.35; font-weight: 500; }
.shelf small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* ------------------------------------------------------------
   Trajetória
   ------------------------------------------------------------ */
.trajetoria { background: var(--rose-pale); padding: clamp(56px, 8vw, 104px) 0; }
.trajetoria-text { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.trajetoria .fotos { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.trajetoria-text p { max-width: 68ch; }
.trajetoria-text p + p { margin-top: 0.2em; }

.fotos {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px;
}
.fotos img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px;
  background: var(--paper-2);
}
.fotos span { display: block; margin-top: 10px; font-size: 0.88rem; color: var(--muted); line-height: 1.4; }

/* ------------------------------------------------------------
   Abordagem (navy band)
   ------------------------------------------------------------ */
.abordagem { background: var(--navy); color: #fff; padding: clamp(64px, 9vw, 120px) 0; }
.abordagem-intro { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.abordagem h2 { color: #fff; }
.abordagem-lead { font-size: 1.2rem; max-width: 52ch; color: var(--rose); }

.metodo {
  max-width: var(--max); margin: clamp(40px, 6vw, 72px) auto 0;
  padding: clamp(28px, 4vw, 48px) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  border-top: 1px solid rgba(255,255,255,.14);
}
.metodo h3 { color: #fff; }
.metodo p { color: rgba(255,255,255,.86); }
.metodo blockquote {
  margin: 20px 0 0; padding: 18px 22px;
  border-left: 3px solid var(--rose); background: rgba(255,255,255,.05); border-radius: 0 12px 12px 0;
}
.metodo blockquote p { margin: 0; font-size: 0.98rem; color: rgba(255,255,255,.8); }

.diagrama { margin: 0; }
.diagrama svg { width: 100%; height: auto; max-width: 360px; display: block; margin: 0 auto; }
.diagrama figcaption { text-align: center; font-size: 0.88rem; color: var(--rose); margin-top: 12px; }

.venn circle { fill: var(--rose); fill-opacity: .28; stroke: var(--rose); stroke-width: 1.5; mix-blend-mode: screen; }
.lbl { font-family: var(--sans); font-size: 14px; font-weight: 500; fill: #fff; }
.lbl-center { font-family: var(--serif); font-size: 22px; font-variation-settings: "SOFT" 50; }

.balanca .base { fill: var(--rose); }
.balanca .haste { stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.balanca .pivo { fill: #fff; }
.balanca .peso { fill: rgba(255,255,255,.12); stroke: var(--rose); stroke-width: 2; }

.tri path { fill: none; stroke: var(--rose); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------
   Consultório
   ------------------------------------------------------------ */
.consultorio { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); }
.consultorio-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; align-items: end; margin-bottom: 36px; }
.consultorio-head p { margin: 0 0 6px; font-size: 1.1rem; max-width: 46ch; }

.galeria {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 220px;
  grid-template-areas:
    "a b"
    "a c"
    "d e";
}
.galeria img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.galeria img:nth-child(1) { grid-area: a; }
.galeria img:nth-child(2) { grid-area: b; object-position: 50% 40%; }
.galeria img:nth-child(3) { grid-area: c; object-position: 50% 70%; }
.galeria img:nth-child(4) { grid-area: d; object-position: 50% 60%; }
.galeria img:nth-child(5) { grid-area: e; object-position: 50% 62%; }

/* ------------------------------------------------------------
   Contato (rose band)
   ------------------------------------------------------------ */
.contato { background: var(--rose); padding: clamp(64px, 9vw, 120px) 0; }
.contato-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.contato-lead { font-size: 1.15rem; max-width: 46ch; }

.caminhos {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px;
}
.caminho {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  padding: 28px 28px 24px; border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: border-color .15s, transform .15s;
}
.caminho:hover { border-color: var(--navy); }
.caminho:focus-visible { outline-color: var(--navy); }
.caminho-titulo { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; font-variation-settings: "SOFT" 50, "opsz" 48; }
.caminho-desc { color: var(--muted); max-width: 40ch; }
.caminho-link { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: .2em; }

/* ------------------------------------------------------------
   Rodapé
   ------------------------------------------------------------ */
.rodape { background: var(--ink); color: rgba(255,255,255,.82); }
.rodape-inner {
  max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px;
}
.rodape-brand { display: flex; align-items: center; gap: 16px; }
.rodape-brand img { width: 52px; height: auto; }
.rodape-brand strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: #fff; }
.rodape-brand span { font-size: 0.9rem; }
.rodape-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.95rem; }
.rodape-links a { color: #fff; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-figure { order: -1; width: min(100%, 320px); justify-self: start; }
  .hero h1 { max-width: 14ch; }
  .sobre-grid, .consultorio-head { grid-template-columns: 1fr; }
  .metodo { grid-template-columns: 1fr; }
  .diagrama svg { max-width: 320px; margin: 0; }
  .diagrama figcaption { text-align: left; }
  .galeria { grid-auto-rows: 180px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .menu-toggle { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--paper-2);
    padding: 12px var(--gutter) 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .caminhos { grid-template-columns: 1fr; }
  .galeria { grid-auto-rows: 140px; gap: 10px; }
}
