/* ============================================================
   Instituto Bárbara Helen — design tokens (LP Alopecia AGA)
   Aligned with the brand book (Verde Petróleo, Caramelo, etc.)
   ============================================================ */

:root {
  /* — palette — */
  --verde-petroleo: #303D3C;
  --verde-acinzentado: #2E4243;
  --caramelo: #AD7C59;
  --caramelo-soft: #c89878;
  --off-white: #D7D2CB;
  --off-white-2: #E5E0D8;
  --cinza-claro: #D9D9D6;
  --cinza-grafite: #54585A;
  --cream: #F4F0E9;
  --paper: #FBF9F5;
  --ink: #1F2A29;

  /* — semantic (light / “cream”) — */
  --bg: var(--paper);
  --bg-elev: #FFFFFF;
  --bg-tint: var(--cream);
  --bg-deep: var(--verde-petroleo);
  --fg: var(--ink);
  --fg-muted: var(--cinza-grafite);
  --fg-soft: #7a7e7d;
  --rule: #d6cfc1;
  --rule-soft: #e7e1d4;
  --accent: var(--caramelo);
  --accent-fg: #ffffff;
  --on-deep: #E8E2D4;
  --on-deep-muted: #b6b6ae;

  /* — type — */
  --font-display: "Playfair Display", "Bailey", "Cormorant Garamond", Georgia, serif;
  --font-text: "Satoshi", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* — measure — */
  --shell: 1320px;
  --shell-narrow: 980px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 144px);

  /* — radii / shadow — */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-pill: 999px;
  --shadow-soft: 0 1px 0 rgba(48,61,60,.04), 0 8px 28px rgba(48,61,60,.06);
  --shadow-deep: 0 24px 60px -28px rgba(48,61,60,.35);
}

/* dark / “noite” mode override (for tweaks) */
:root[data-mode="dark"] {
  --bg: var(--verde-petroleo);
  --bg-elev: #38484647;
  --bg-tint: #2a3736;
  --bg-deep: #25302f;
  --fg: #ECE6D8;
  --fg-muted: #b8b6ad;
  --fg-soft: #8a8c87;
  --rule: #4a5856;
  --rule-soft: #3a4746;
  --on-deep: #ECE6D8;
}

/* accent override (caramel-forward) */
:root[data-accent="caramel"] {
  --accent: var(--caramelo);
}
:root[data-accent="petroleo"] {
  --accent: var(--verde-petroleo);
  --accent-fg: var(--off-white);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

::selection { background: var(--verde-petroleo); color: var(--off-white); }

/* — type primitives — */
.eyebrow {
  font-family: var(--font-text);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(44px, 7vw, 104px);
  margin: 0;
}
.display em { font-style: italic; color: var(--fg-muted); font-weight: 400; }

h2.section-h {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(34px, 4.6vw, 64px);
  margin: 0;
}
h2.section-h em { font-style: italic; color: var(--fg-muted); font-weight: 400; }

h3.card-h {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  margin: 0;
}

.lede {
  font-family: var(--font-text);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 56ch;
}

.fineprint {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--fg-soft);
}

.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* — buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--verde-petroleo);
  color: var(--off-white);
}
.btn-primary:hover { background: #25302f; transform: translateY(-1px); box-shadow: var(--shadow-deep); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-accent:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: var(--shadow-deep); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--fg); }
.btn-on-deep {
  background: var(--off-white);
  color: var(--verde-petroleo);
}
.btn-on-deep:hover { background: white; transform: translateY(-1px); }

.btn .arrow {
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width .25s ease;
}
.btn:hover .arrow { width: 28px; }
.btn .arrow::after {
  content: "";
  position: absolute; right: 0; top: 50%;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* — shell — */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.shell-narrow { max-width: var(--shell-narrow); }

section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

/* — hairline rule — */
.hr { border: 0; height: 1px; background: var(--rule); margin: 0; }

/* — placeholder image — */
.ph-img {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(48,61,60,0.05) 0 1px,
      transparent 1px 14px),
    var(--off-white-2);
  color: var(--cinza-grafite);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  border-radius: var(--r-md);
}
.ph-img > .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(2px);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(48,61,60,0.08);
}
.ph-img > .label::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--caramelo);
  border-radius: 999px;
}

/* — image-slot styling override (inherit our placeholder feel) — */
image-slot {
  display: block !important;
  background:
    repeating-linear-gradient(135deg,
      rgba(48,61,60,0.05) 0 1px,
      transparent 1px 14px),
    var(--off-white-2) !important;
  color: var(--cinza-grafite) !important;
  border: 1px dashed rgba(48,61,60,0.2) !important;
}

/* — wordmark — */
.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 18px;
  line-height: 1;
}
.wordmark .ital { font-style: italic; }
.wordmark .small {
  display: block;
  font-family: var(--font-text);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* — monogram — used as icon-version of brand — */
.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.06em;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 17px;
  position: relative;
  flex-shrink: 0;
}

/* — tags — */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg-elev);
}
.tag::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 999px;
  display: inline-block;
}

/* — float-in animations — */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }
.delay-4 { animation-delay: .32s; }

/* utilities */
.flex { display: flex; }
.grid { display: grid; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 48px; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
