/* =========================================================================
   Sayonara Sobrinho — Terapeuta Emocional
   Sistema de marca: creme #F3EDE1 · oliva #5E6448 · marrom #583E28
   Display: Quiche Sans · Texto: Montserrat
   ========================================================================= */

@font-face { font-family: 'Quiche Sans'; src: url('assets/fonts/quiche-light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Quiche Sans'; src: url('assets/fonts/quiche-regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Quiche Sans'; src: url('assets/fonts/quiche-medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Quiche Sans'; src: url('assets/fonts/quiche-bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* paleta da marca */
  --cream:        #F3EDE1;
  --cream-soft:   #FAF6EC;
  --cream-deep:   #EBE2D0;
  --olive:        #5E6448;
  --olive-deep:   #4A4F39;
  --olive-soft:   #767C5E;
  --brown:        #583E28;
  --brown-deep:   #43301E;
  --brown-soft:   #6E4F33;
  --terracota:    #A0563F;
  --terracota-deep: #7E4230;

  /* fontes (sobrescritas via Tweaks) */
  --font-display: 'Quiche Sans', serif;
  --font-body:    'Montserrat', sans-serif;

  /* tokens semânticos — default = direção "Sereno" */
  --bg:           var(--cream);
  --bg-alt:       var(--cream-soft);
  --surface:      #fffdf8;
  --ink:          var(--brown);
  --ink-soft:     color-mix(in oklab, var(--brown) 68%, #fff);
  --accent:       var(--olive);
  --accent-ink:   var(--cream-soft);
  --line:         color-mix(in oklab, var(--brown) 16%, transparent);

  /* hero */
  --hero-bg:      var(--cream);
  --hero-ink:     var(--brown);

  --maxw: 1180px;
  --radius: 18px;
  --radius-lg: 30px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- DIREÇÃO: TERROSO (oliva protagonista) ---------- */
[data-dir="terroso"] {
  --bg:        var(--cream);
  --bg-alt:    var(--olive);
  --surface:   #fffdf8;
  --ink:       var(--brown);
  --accent:    var(--olive);
  --accent-ink: var(--cream-soft);
  --hero-bg:   var(--olive);
  --hero-ink:  var(--cream-soft);
  --radius: 26px;
  --radius-lg: 42px;
}

/* ---------- DIREÇÃO: EDITORIAL (estruturado, marrom escuro) ---------- */
[data-dir="editorial"] {
  --bg:        var(--cream-soft);
  --bg-alt:    var(--cream-deep);
  --surface:   #fffefb;
  --ink:       var(--brown-deep);
  --accent:    var(--brown);
  --accent-ink: var(--cream-soft);
  --hero-bg:   var(--cream-soft);
  --hero-ink:  var(--brown-deep);
  --radius: 6px;
  --radius-lg: 8px;
}

/* ========================= base ========================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.08; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: clamp(72px, 9vw, 132px) 0; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  opacity: .7;
}
.eyebrow.center { justify-content: center; }

.h-xl { font-size: clamp(40px, 6.4vw, 86px); letter-spacing: -.01em; }
.h-lg { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.005em; }
.h-md { font-size: clamp(24px, 2.8vw, 34px); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); max-width: 56ch; }

/* ========================= botões ========================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  letter-spacing: .01em;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s, border-color .3s;
  background: var(--accent); color: var(--accent-ink);
}
[data-dir="editorial"] .btn { border-radius: 2px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px color-mix(in oklab, var(--accent) 60%, transparent); }
.btn .ico { width: 18px; height: 18px; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); box-shadow: none; }

/* ========================= header ========================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brandmark { display: flex; align-items: center; gap: 4px; }
.brandmark .logo {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--accent);
  font-family: var(--font-display); font-size: 17px; color: var(--accent);
}
.brandmark .logo-img { height: 56px; width: auto; display: block; }
.brandmark .logo-wordmark { height: 40px; width: auto; display: block; }
@media (max-width: 420px){ .brandmark .logo-img { height: 44px; } .brandmark .logo-wordmark { height: 32px; } }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14px; color: var(--ink-soft); transition: color .25s; position: relative; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:1px; background: var(--accent); transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 11px 20px; font-size: 14px; }
.nav-links a.nav-cta { color: var(--accent-ink); }
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { color: var(--accent-ink); }
@media (max-width: 860px){ .nav-links .link { display: none; } }

/* ---- hamburger + mobile drawer ---- */
.nav-burger {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; cursor: pointer;
  color: var(--ink); flex: none;
}
.nav-burger .ico { width: 24px; height: 24px; transition: transform .25s var(--ease); }

.nav-mobile {
  display: none; flex-direction: column; gap: 2px;
  max-height: 0; overflow: hidden;
  border-top: 1px solid transparent;
  transition: max-height .35s var(--ease), border-color .3s;
}
.nav-mobile-link {
  padding: 15px 32px; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--line);
}
.nav-mobile-cta {
  margin: 16px 32px 22px; justify-content: center;
}

@media (max-width: 860px){
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; }
  .nav.menu-open .nav-mobile { max-height: 420px; border-top-color: var(--line); }
  .nav.menu-open { border-bottom-color: var(--line); }
}

/* ========================= placeholder de imagem ========================= */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--accent) 12%, var(--surface)) 0 14px,
      color-mix(in oklab, var(--accent) 6%, var(--surface)) 14px 28px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: color-mix(in oklab, var(--accent) 70%, var(--ink));
}
.ph span {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  background: color-mix(in oklab, var(--surface) 78%, transparent);
  padding: 7px 12px; border-radius: 4px;
}

/* ========================= utilidades ========================= */
.grid { display: grid; gap: clamp(28px, 4vw, 64px); }
.grid > * { min-width: 0; }
.muted { color: var(--ink-soft); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* reveal on scroll — base state is ALWAYS visible (never hidden by CSS), so content shows even when
   a webview throttles animations. The keyframe only adds motion when 'in' is set in a live browser. */
.reveal { opacity: 1; transform: none; }
@keyframes revealUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
html.js-anim .reveal.in { animation: revealUp .7s var(--ease); }
@media (prefers-reduced-motion: reduce){ html.js-anim .reveal.in { animation: none; } html { scroll-behavior: auto; } }
