/* =====================================================================
   Kassis Facial Plastics — Design System
   Warm · trustworthy · editorial. Deep green + warm gold on cream.
   ===================================================================== */

:root {
  /* Brand palette */
  --forest:      #14271c;   /* deepest green — hero, footer */
  --forest-2:    #1d3527;   /* raised green surfaces */
  --forest-soft: #2c473769; /* hairlines on dark */
  --ink:         #20271f;   /* primary text on light */
  --ink-2:       #45504382; /* unused alpha guard */
  --muted:       #5d6a5e;   /* secondary text on light */
  --muted-light: #9aa79b;   /* tertiary */

  /* Accent (TWEAKABLE) — warm gold by default */
  --accent:      #b08d4c;
  --accent-deep: #8d6f37;
  --accent-soft: #efe6d4;
  --accent-tint: #f7f1e6;

  /* Neutrals */
  --cream:   #f7f3ec;   /* page background */
  --cream-2: #f1ebe0;   /* alt section / cards */
  --sand:    #ece4d6;   /* deeper card */
  --paper:   #fffefb;   /* white-ish surfaces, form */
  --line:    rgba(32,39,31,0.13);
  --line-soft: rgba(32,39,31,0.08);

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", system-ui, -apple-system, sans-serif;

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(20,39,28,0.05), 0 2px 8px rgba(20,39,28,0.04);
  --sh-md: 0 4px 14px rgba(20,39,28,0.07), 0 14px 40px rgba(20,39,28,0.06);
  --sh-lg: 0 10px 30px rgba(20,39,28,0.10), 0 30px 80px rgba(20,39,28,0.10);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

::selection { background: var(--accent-soft); color: var(--ink); }

/* ---- Typography ------------------------------------------------------ */

.display, h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); font-weight: 500; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

p { margin: 0 0 1em; text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.32rem);
  line-height: 1.62;
  color: var(--muted);
  font-weight: 400;
}

.serif-accent { font-family: var(--serif); font-style: italic; }

/* ---- Layout ---------------------------------------------------------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }

section { position: relative; }
.section-pad { padding: clamp(72px, 11vw, 150px) 0; }

.on-dark { color: #e9eee6; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #f4f6f1; }
.on-dark .lede { color: #b9c4b6; }
.on-dark .eyebrow { color: var(--accent); }

/* ---- Buttons --------------------------------------------------------- */

.btn {
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 999px;
  padding: 1rem 1.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s, box-shadow .25s, color .25s;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--accent) 65%, transparent);
}

.btn-dark { background: var(--forest); color: #f4f6f1; }
.btn-dark:hover { background: var(--forest-2); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(32,39,31,0.03); }

.on-dark .btn-ghost { color: #eef2ea; border-color: rgba(255,255,255,0.28); }
.on-dark .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

.btn-lg { padding: 1.15rem 2.3rem; font-size: 1.02rem; }

.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Link with underline grow */
.link-arrow {
  font-weight: 700; color: var(--accent-deep);
  text-decoration: none; display: inline-flex; align-items: center; gap: .45rem;
  font-size: .95rem;
}
.link-arrow .arrow { transition: transform .25s; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---- Cards & misc ---------------------------------------------------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

.divider { height: 1px; background: var(--line); border: none; margin: 0; }

.pill-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  padding: .4rem .85rem; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

/* Reveal on scroll — resting state is VISIBLE (print/capture/no-JS safe).
   The hidden start state is only armed by JS when motion is allowed. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.armed  { opacity: 0; transform: translateY(22px); }
  .reveal.inview { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
}

/* Utility */
.mono-num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
