/* ============================================================
   BELLOUCHI — Design tokens + base (compartilhado pelas 3 direções)
   Paleta oficial (manual da marca):
     Pearl   #E6E2DF   Sage/oliva #69634B   Quase-preto #212721
     Gold    #947244   Salmão/terracota #A6786D
   Cada direção redefine as variáveis de tema (--bg/--ink/--accent...).
   ============================================================ */

:root {
  /* ---- Paleta da marca (exata) ---- */
  --pearl:      #e6e2df;
  --pearl-50:   #f3f1ee;   /* pearl mais claro */
  --pearl-deep: #d8d2cb;   /* pearl sombreado */
  --sage:       #69634b;
  --sage-soft:  #847d63;
  --ink:        #212721;   /* quase-preto esverdeado */
  --ink-90:     #2b322a;
  --ink-70:     #3d453b;
  --gold:       #947244;
  --gold-soft:  #b08e5c;
  --terra:      #a6786d;
  --terra-soft: #bb9489;
  --line:       color-mix(in oklab, var(--ink) 14%, transparent);

  /* ---- Papéis de tema (default = claro/editorial; sobrescrito por direção) ---- */
  --bg:        var(--pearl);
  --bg-alt:    var(--pearl-50);
  --fg:        var(--ink);
  --fg-soft:   color-mix(in oklab, var(--ink) 64%, var(--pearl));
  --fg-faint:  color-mix(in oklab, var(--ink) 40%, var(--pearl));
  --accent:    var(--terra);
  --accent-2:  var(--gold);
  --on-accent: var(--pearl-50);

  /* ---- Tipografia ---- */
  --font-body: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Satoshi", ui-monospace, monospace;

  /* escala fluida (min 360px -> max 1440px) */
  --step--1: clamp(0.78rem, 0.74rem + 0.18vw, 0.88rem);
  --step-0:  clamp(0.95rem, 0.90rem + 0.25vw, 1.06rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.25rem + 1.0vw, 2.1rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2.0vw, 3.1rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.6vw, 4.8rem);
  --step-5:  clamp(3.4rem, 2.2rem + 6.2vw, 7.5rem);
  --step-6:  clamp(4rem, 2rem + 11vw, 12rem);

  /* ---- Espaçamento / ritmo ---- */
  --gutter: clamp(1.25rem, 0.8rem + 2.5vw, 3.5rem);
  --section: clamp(5rem, 3rem + 9vw, 11rem);
  --maxw: 1320px;
  --measure: 64ch;

  /* ---- Forma / sombra ---- */
  --radius: 2px;
  --radius-lg: 4px;
  --shadow-soft: 0 1px 2px color-mix(in oklab, var(--ink) 8%, transparent),
                 0 18px 40px -24px color-mix(in oklab, var(--ink) 45%, transparent);

  /* ---- Motion ---- */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);          /* ease-out-expo */
  --e-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --t-fast: 0.35s;
  --t-med: 0.6s;
  --t-slow: 1s;
}

/* ============================== RESET ============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; line-height: 1.02; letter-spacing: -0.01em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
p { max-width: var(--measure); }

/* ============================== LAYOUT ============================== */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.lead { font-size: var(--step-1); color: var(--fg-soft); line-height: 1.5; }

/* ============================== BOTÕES ============================== */
.btn {
  --pad-y: 0.95em; --pad-x: 1.6em;
  position: relative;
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: var(--pad-y) var(--pad-x);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: transform var(--t-fast) var(--e-out), background var(--t-fast) var(--e-out), color var(--t-fast) var(--e-out), border-color var(--t-fast) var(--e-out);
  will-change: transform;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--ink); color: var(--pearl-50); }
.btn-ghost { border: 1px solid var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.btn .arrow { transition: transform var(--t-fast) var(--e-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================== MARQUEE ============================== */
.marquee { overflow: hidden; white-space: nowrap; user-select: none; }
.marquee__track { display: inline-flex; gap: 0; will-change: transform; }
.marquee__track > * { padding-inline: 0.4em; }
@media (prefers-reduced-motion: reduce) { .marquee__track { transform: none !important; } }

/* ============================== REVEAL ============================== */
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal-img] { clip-path: inset(0 0 100% 0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-reveal-img] { clip-path: none !important; }
}

/* ============================== CURSOR ============================== */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .3s var(--e-out), height .3s var(--e-out), background .3s var(--e-out), opacity .3s;
}
.cursor.is-hover { width: 46px; height: 46px; background: color-mix(in oklab, var(--accent) 65%, var(--fg)); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============================== GRÃO / TEXTURA ============================== */
/* Overlay fixo SEM mix-blend-mode (blend força repaint a cada scroll = jank).
   Noise estático em baixa opacidade: barato e ainda dá textura de papel. */
.grain::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.035; will-change: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================== FORM ============================== */
.field { position: relative; display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.field input, .field select, .field textarea {
  background: transparent;
  border: none; border-bottom: 1px solid var(--line);
  padding: 0.7rem 0; font-size: var(--step-1);
  transition: border-color var(--t-fast) var(--e-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.choice { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  padding: 0.6rem 1.1rem; border: 1px solid var(--line); border-radius: 100px;
  cursor: pointer; text-transform: none; letter-spacing: 0; font-size: var(--step--1); color: var(--fg-soft);
  transition: all var(--t-fast) var(--e-out);
}
.choice input:checked + label { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ============================== UTIL ============================== */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
[data-hscroll]{ cursor: grab; }
[data-hscroll].is-dragging{ cursor: grabbing; user-select: none; }
[data-hscroll].is-dragging a{ pointer-events: none; }
.hide-sm { }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* ============== WHATSAPP LEAD POPUP (estilo conversa) ==============
   Usa só tokens-base (--ink/--pearl/--terra) p/ ficar igual em todas as direções. */
.bwa-overlay{ position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center; padding:20px; background:color-mix(in oklab, var(--ink) 55%, transparent); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); animation:bwaFade .22s ease; }
@keyframes bwaFade{ from{opacity:0} to{opacity:1} }
@keyframes bwaPop{ from{opacity:0; transform:translateY(14px) scale(.97)} to{opacity:1; transform:none} }
.bwa-card{ position:relative; width:100%; max-width:384px; background:var(--pearl-50); border-radius:22px; overflow:hidden; box-shadow:0 30px 70px -18px color-mix(in oklab,var(--ink) 55%, transparent), 0 0 0 1px color-mix(in oklab,var(--ink) 6%, transparent); animation:bwaPop .26s cubic-bezier(.2,.9,.3,1); }
.bwa-close{ position:absolute; top:12px; right:14px; z-index:2; width:30px; height:30px; font-size:22px; line-height:1; color:var(--pearl-50); border-radius:50%; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.16); border:0; cursor:pointer; transition:background .15s; }
.bwa-close:hover{ background:rgba(255,255,255,.3); }
.bwa-head{ display:flex; align-items:center; gap:12px; padding:18px 20px; background:var(--ink); color:var(--pearl-50); }
.bwa-avatar{ width:46px; height:46px; border-radius:50%; object-fit:contain; padding:6px; background:var(--pearl); border:2px solid rgba(255,255,255,.55); flex:0 0 auto; }
.bwa-head-txt{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.bwa-head-txt strong{ font-family:var(--font-body); font-weight:600; font-size:15px; }
.bwa-online{ display:inline-flex; align-items:center; gap:6px; font-size:12px; color:rgba(255,255,255,.82); }
.bwa-online i{ width:7px; height:7px; border-radius:50%; background:#25D366; box-shadow:0 0 0 2px rgba(37,211,102,.3); }
.bwa-body{ padding:20px; }
.bwa-bubble{ background:var(--pearl); color:color-mix(in oklab,var(--ink) 82%, var(--pearl)); font-size:14.5px; line-height:1.5; padding:13px 15px; border-radius:4px 16px 16px 16px; margin-bottom:18px; }
.bwa-bubble strong{ color:var(--ink); font-weight:600; }
.bwa-form{ display:flex; flex-direction:column; gap:12px; }
.bwa-field{ display:flex; flex-direction:column; gap:5px; }
.bwa-field > span{ font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.07em; color:color-mix(in oklab,var(--ink) 52%, var(--pearl)); }
.bwa-field input{ padding:12px 14px; border:1.5px solid color-mix(in oklab,var(--ink) 18%, transparent); border-radius:10px; font-family:var(--font-body); font-size:15px; color:var(--ink); background:#fff; outline:none; transition:border-color .15s, box-shadow .15s; }
.bwa-field input::placeholder{ color:color-mix(in oklab,var(--ink) 42%, var(--pearl)); }
.bwa-field input:focus{ border-color:var(--terra); box-shadow:0 0 0 3px color-mix(in oklab,var(--terra) 18%, transparent); }
.bwa-row{ display:flex; gap:10px; }
.bwa-row .bwa-field{ flex:1; min-width:0; }
.bwa-choice{ display:flex; gap:8px; }
.bwa-choice input{ position:absolute; opacity:0; width:0; height:0; }
.bwa-choice label{ flex:1; text-align:center; cursor:pointer; padding:10px 6px; border:1.5px solid color-mix(in oklab,var(--ink) 18%, transparent); border-radius:10px; font-size:13px; line-height:1.2; color:color-mix(in oklab,var(--ink) 72%, var(--pearl)); background:#fff; transition:border-color .15s, background .15s, color .15s; }
.bwa-choice label:hover{ border-color:color-mix(in oklab,var(--ink) 45%, transparent); }
.bwa-choice input:checked + label{ border-color:var(--ink); background:var(--ink); color:var(--pearl-50); font-weight:600; }
.bwa-err{ font-size:13px; color:#B6552A; }
.bwa-submit{ margin-top:6px; display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:14px 18px; background:#25D366; color:#fff; border:0; border-radius:12px; font-family:var(--font-body); font-weight:600; font-size:15.5px; cursor:pointer; transition:background .15s, transform .08s; }
.bwa-submit svg{ width:18px; height:18px; fill:currentColor; }
.bwa-submit:hover{ background:#1FB855; }
.bwa-submit:active{ transform:translateY(1px); }
.bwa-submit:disabled{ opacity:.65; cursor:wait; }
.bwa-foot{ margin:14px 0 0; font-size:11.5px; line-height:1.5; text-align:center; color:color-mix(in oklab,var(--ink) 48%, var(--pearl)); }
@media (max-width:480px){
  .bwa-overlay{ padding:0; align-items:flex-end; }
  .bwa-card{ max-width:100%; border-radius:22px 22px 0 0; animation:bwaSheet .28s cubic-bezier(.2,.9,.3,1); }
  @keyframes bwaSheet{ from{transform:translateY(100%)} to{transform:none} }
}
