/* ============================================================
   Vivian Denny Psicologia — Design System
   Paleta do perfil: #CCBEB1 (taupe) · #8F7B67 (marrom) · #FFFFFF · #393939 (grafite)
   Tipografia: Fraunces (títulos, serifada humanista) + Inter (corpo)
   Dials: MOTION_INTENSITY 4 · DESIGN_VARIANCE 4 · VISUAL_DENSITY 3
   ============================================================ */

:root {
  --taupe: #ccbeb1;
  --taupe-light: #e7ded4;
  --cream: #f8f4ef;
  --brown: #8f7b67;
  --brown-dark: #6d5c4c;
  --white: #ffffff;
  --charcoal: #393939;
  --charcoal-soft: #5c5754;

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;

  --shadow-soft: 0 20px 60px -30px rgba(57, 57, 57, 0.35);
  --shadow-card: 0 12px 32px -18px rgba(57, 57, 57, 0.22);

  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.6s;

  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 480; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 var(--space-2); color: var(--charcoal-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brown);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brown);
}

.italic-accent {
  font-style: italic;
  color: var(--brown);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.btn-primary { background: var(--brown); color: var(--white); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--taupe); }
.btn-ghost-light { background: rgba(255,255,255,0.14); color: var(--white); border-color: rgba(255,255,255,0.5); backdrop-filter: blur(6px); }
.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--brown-dark); transform: translateY(-2px); box-shadow: var(--shadow-card); }
  .btn-outline:hover { border-color: var(--brown); color: var(--brown); transform: translateY(-2px); }
  .btn-ghost-light:hover { background: rgba(255,255,255,0.24); transform: translateY(-2px); }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--taupe-light);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  gap: var(--space-3);
}
.logo img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: var(--space-4); }
.nav-links { display: flex; gap: var(--space-3); align-items: center; }
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  position: relative;
  padding: 0.3em 0;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brown); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
}
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  border: 1px solid var(--taupe-light);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  padding: var(--space-2);
  min-width: 280px;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard), visibility var(--dur-fast);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown a { padding: 0.6em 0.8em; border-radius: var(--radius-s); font-size: 0.9rem; }
.dropdown a:hover { background: var(--cream); }
.header-cta { display: flex; align-items: center; gap: var(--space-2); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4em; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .main-nav { position: fixed; inset: 0; top: 68px; background: var(--white); flex-direction: column; align-items: stretch; padding: var(--space-3); gap: var(--space-3); transform: translateX(100%); transition: transform var(--dur-med) var(--ease-standard); overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .nav-links { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding-left: var(--space-2); display: none; }
  .has-dropdown.open .dropdown { display: grid; }
  .nav-toggle { display: block; }
  .header-cta .btn-outline { display: none; }
}

/* ---------- WhatsApp floating pill (mobile) ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  background: var(--brown);
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-fast) var(--ease-standard);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 26px; height: 26px; }

/* ---------- Sections ---------- */
section { padding: var(--space-6) 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.75); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: var(--space-5); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Hero (split, asymmetric) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) 0 var(--space-6);
}
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius-l);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}
.hero-media::before {
  content: "";
  position: absolute;
  top: -22px; left: -22px;
  width: 62%; height: 62%;
  background: var(--taupe);
  border-radius: var(--radius-l);
  z-index: -1;
}
.hero-copy h1 { margin-bottom: var(--space-3); }
.hero-copy .lede { font-size: 1.12rem; max-width: 46ch; margin-bottom: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--space-4); border-top: 1px solid var(--taupe-light); padding-top: var(--space-3); }
.hero-fact strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--brown); }
.hero-fact span { font-size: 0.85rem; color: var(--charcoal-soft); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: var(--space-4); }
  .hero-media { order: -1; max-width: 380px; margin: 0 auto var(--space-3); }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--space-3); }
.card {
  background: var(--white);
  border: 1px solid var(--taupe-light);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--taupe); }
.card .card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
  color: var(--brown);
}
.card .card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.4em; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.card p { font-size: 0.95rem; margin-bottom: var(--space-2); overflow-wrap: break-word; }
.card-link { font-size: 0.88rem; font-weight: 600; color: var(--brown); display: inline-flex; align-items: center; gap: 0.4em; flex-wrap: wrap; }
.card-link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-standard); }
.card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Gallery (espaço / consultório) ---------- */
.gallery-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.gallery-duo figure { margin: 0; position: relative; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-card); }
.gallery-duo figure:nth-child(2) { margin-top: var(--space-5); }
.gallery-duo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform 0.5s var(--ease-standard); }
@media (hover: hover) and (pointer: fine) {
  .gallery-duo figure:hover img { transform: scale(1.05); }
}
@media (max-width: 760px) {
  .gallery-duo { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .gallery-duo figure:nth-child(2) { margin-top: var(--space-4); }
}

/* ---------- Check list (alternativa a cards p/ variar o ritmo visual) ---------- */
.check-list { display: grid; gap: var(--space-3); max-width: 640px; }
.check-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.check-list .check-icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--brown); margin-top: 3px; }
.check-list strong { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; color: var(--charcoal); margin-bottom: 0.2em; }
.check-list p { margin: 0; font-size: 0.95rem; }

/* ---------- Timeline (formação) ---------- */
.timeline { position: relative; max-width: 640px; padding-left: var(--space-4); border-left: 1px solid var(--taupe-light); }
.timeline-item { position: relative; padding-bottom: var(--space-4); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-4) - 5px);
  top: 5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brown);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--taupe);
}
.timeline-year { display: block; font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brown); margin-bottom: 0.35em; }
.timeline-item h3 { margin-bottom: 0.25em; }
.timeline-item p { margin-bottom: 0; }

/* ---------- Steps (caminho até a 1ª sessão) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); counter-reset: step; }
.step { position: relative; padding-top: var(--space-4); }
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brown);
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border: 1px solid var(--taupe);
  border-radius: 50%;
  margin-bottom: var(--space-2);
}

/* ---------- Split content block (about, abordagem) ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
  align-items: center;
}
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-l); width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow-card); }
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
}

/* ---------- Quote / callout ---------- */
.quote-block {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--brown-dark);
  max-width: 42ch;
  margin: var(--space-4) 0;
  position: relative;
}
.quote-block::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--taupe);
  margin-bottom: 0.1em;
}

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--taupe-light); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: var(--space-3) 0;
  cursor: pointer;
  color: var(--charcoal);
}
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--dur-fast) var(--ease-standard); color: var(--brown); }
.faq-item[open] .faq-q svg { transform: rotate(45deg); }
.faq-a { padding: 0 0 var(--space-3); max-width: 65ch; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--charcoal-soft); padding: var(--space-2) 0; }
.breadcrumbs a { color: var(--charcoal-soft); }
.breadcrumbs a:hover { color: var(--brown); }
.breadcrumbs span[aria-current] { color: var(--brown); }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding: var(--space-4) 0 var(--space-5);
  border-bottom: 1px solid var(--taupe-light);
  background: var(--cream);
}
.page-hero .eyebrow { margin-bottom: var(--space-1); }
.page-hero p.lede { max-width: 62ch; font-size: 1.08rem; }

/* ---------- Testimonials / socialproof empty state ---------- */
.gbp-card {
  background: var(--white);
  border: 1px solid var(--taupe-light);
  border-radius: var(--radius-l);
  padding: var(--space-5);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.stars { display: flex; justify-content: center; gap: 4px; margin-bottom: var(--space-2); color: var(--brown); }
.stars svg { width: 22px; height: 22px; }

.testimonials { column-count: 2; column-gap: var(--space-5); }
.testimonial { break-inside: avoid; margin-bottom: var(--space-5); }
.testimonial::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--taupe);
  margin-bottom: 0.1em;
}
.testimonial p { font-family: var(--font-display); font-size: 1.05rem; font-style: italic; color: var(--charcoal); margin-bottom: var(--space-2); }
.testimonial-name { font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; color: var(--charcoal); }
.testimonial-meta { font-family: var(--font-body); font-size: 0.8rem; color: var(--charcoal-soft); }
@media (max-width: 800px) {
  .testimonials { column-count: 1; display: grid; gap: var(--space-3); }
  .testimonial {
    background: var(--white);
    border: 1px solid var(--taupe-light);
    border-radius: var(--radius-m);
    padding: var(--space-3);
    margin-bottom: 0;
    box-shadow: var(--shadow-card);
  }
  .testimonial::before { font-size: 2rem; margin-bottom: 0; }
  .testimonial p { font-size: 0.98rem; }
}

/* ---------- Blog ---------- */
.post-card img { border-radius: var(--radius-m); aspect-ratio: 3/2; object-fit: cover; margin-bottom: var(--space-2); }
.post-meta { font-size: 0.82rem; color: var(--brown); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4em; }
.post-body { max-width: 68ch; margin: 0 auto; }
.post-body h2 { margin-top: var(--space-5); }
.post-body p { font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.78); padding: var(--space-6) 0 var(--space-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-5); }
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-2); }
.footer-grid a, .footer-grid p { color: rgba(255,255,255,0.68); font-size: 0.92rem; }
.footer-grid li { margin-bottom: 0.55em; }
.footer-grid a:hover { color: var(--white); }
.footer-logo img { height: 30px; margin-bottom: var(--space-2); filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: var(--space-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); font-size: 0.82rem; color: rgba(255,255,255,0.55); }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-med) var(--ease-standard), transform var(--dur-med) var(--ease-standard); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Final CTA band ---------- */
.cta-band {
  background: var(--brown);
  color: var(--white);
  border-radius: var(--radius-l);
  padding: var(--space-5);
  text-align: center;
}
.cta-band h2, .cta-band p { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small-note { font-size: 0.82rem; color: var(--charcoal-soft); }
