/* ═══════════════════════════════════════════════════════════════════════════
   Palmelle Brand v2 — shared CSS
   Source of truth: pages/index-v2.html (homepage v6, 2026-04-24 lock)
   Memory: project_palmelle_brand_visual_v2.md
   Use: every page <link rel="stylesheet" href="/static/css/brand-v2.css">
   then override page-specific layout below the import.
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');


:root {
  /* ── Color tokens (LOCKED — never deviate) ── */
  --parchment:        #F4F0E2;   /* primary background */
  --parchment-soft:   #FAF6E9;   /* card surfaces, subtle bg variation */
  --gold:             #D2B34C;   /* primary CTA, brand badge, eyebrow accent */
  --gold-deep:        #B89832;   /* hover/active CTA */
  --gold-light:       #E8D58D;   /* highlight states, trust score top band */
  --navy-deep:        #071528;   /* nav, hero, primary text on light */
  --navy-mid:         #12314C;   /* secondary navy, mid-tone surfaces */
  --navy-light:       #2B5D7A;   /* tertiary navy, hover states */
  --ink:              #11213A;   /* body text on parchment */
  --ink-soft:         #4a5568;   /* secondary body text */
  --rule:             rgba(7, 21, 40, 0.10);    /* hairline divider on light */
  --rule-on-dark:     rgba(244, 240, 226, 0.15); /* hairline divider on navy */

  /* ── Typography tokens ── */
  --serif:  'Fraunces', Georgia, serif;        /* headlines, founder quotes */
  --sans:   'Inter', system-ui, sans-serif;    /* body, UI labels */
  --mono:   'DM Mono', monospace;              /* eyebrow, prices, technical labels */

  /* ── Layout tokens ── */
  --tap:    56px;           /* min mobile tap target */
  --r-md:   16px;           /* card radius */
  --r-lg:   24px;
  --r-xl:   32px;
  --r-pill: 999px;

  /* ── DEPRECATED OLD TOKENS — DO NOT USE — leaving here so old pages don't crash if they reference them ── */
  --ivory:  #F4F0E2;        /* old name → maps to parchment */
  --forest: #071528;        /* old name → maps to navy-deep */
  --sage:   #D2B34C;        /* old name → maps to gold */
}

/* ── Reset + base ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  margin-top: 0;
}
h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.1; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); line-height: 1.2; }
h4 { font-size: 1.125rem; line-height: 1.3; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

/* ── Button system ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn:hover::after { left: 130%; }

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover { background: var(--gold-deep); }

.btn-navy {
  background: var(--navy-deep);
  color: var(--parchment);
}
.btn-navy:hover { background: var(--navy-mid); }

.btn-ghost {
  background: transparent;
  color: var(--navy-deep);
  border: 1.5px solid var(--navy-deep);
}
.btn-ghost:hover { background: var(--navy-deep); color: var(--parchment); }

/* ── Promo bar (top of page) ── */
.promo {
  background: var(--navy-deep);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 12px 16px;
}
.promo a { color: var(--gold); text-decoration: none; }
.promo a:hover { color: var(--parchment); }
.promo strong { font-weight: 700; color: var(--parchment); }

/* ── Nav (sticky) ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--parchment);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 14px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy-deep);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* ── Card pattern ── */
.card {
  background: var(--parchment-soft);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 28px;
}
.card-dark {
  background: var(--navy-deep);
  color: var(--parchment);
  border-radius: var(--r-md);
  padding: 28px;
}
.card-dark h2, .card-dark h3, .card-dark h4 { color: var(--parchment); }

/* ── Sections ── */
.section { padding: 64px 16px; max-width: 1200px; margin: 0 auto; }
.section-narrow { padding: 64px 16px; max-width: 720px; margin: 0 auto; }
.section-dark {
  background: var(--navy-deep);
  color: var(--parchment);
  padding: 64px 16px;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--parchment); }

.spacer    { height: 7.5rem; }
.spacer-sm { height: 4rem; }

/* ── Footer ── */
.footer {
  background: var(--navy-deep);
  color: var(--parchment);
  padding: 48px 16px 24px;
  text-align: center;
}
.footer a { color: var(--gold); text-decoration: none; }
.footer a:hover { color: var(--parchment); }
.f-fine { color: rgba(244, 240, 226, 0.6); font-size: 13px; margin-top: 24px; }

/* ── Reveal animation (used by index-v2.html) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
  }
  .reveal.in-view { opacity: 1; transform: translateY(0); }
}

/* ── Mobile-first tap targets — anything clickable should be ≥56px tall ── */
button, .btn, a.btn, [role="button"] { min-height: var(--tap); }

/* ── Mobile-first body sizing ── */
@media (max-width: 480px) {
  html, body { font-size: 18px; line-height: 1.6; }
  .section, .section-dark, .section-narrow { padding: 48px 16px; }
}
