/* ─────────────────────────────────────────
   Encorelyfe — Design System
   ───────────────────────────────────────── */

:root {
  --forest:      #1e3a2f;
  --forest-2:    #2d5243;
  --forest-light:#3a6b52;
  --gold:        #b8924a;
  --gold-soft:   rgba(184,146,74,.15);
  --gold-border: rgba(184,146,74,.35);
  --cream:       #f5f0e8;
  --cream-2:     #ede8de;
  --sage:        #6b8c72;
  --sage-soft:   rgba(107,140,114,.12);
  --ink:         #2a2a2a;
  --ink-2:       #4a4a4a;
  --ink-3:       #6b6b6b;
  --paper:       #ffffff;
  --rule:        rgba(42,42,42,.13);
  --rule-soft:   rgba(42,42,42,.07);

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'IBM Plex Mono', 'Courier New', monospace;

  --radius:   6px;
  --shadow:   0 2px 12px rgba(0,0,0,.08);
  --shadow-md:0 4px 24px rgba(0,0,0,.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: .01em; }

p  { line-height: 1.7; color: var(--ink-2); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
  text-decoration: none;
  line-height: 1;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: var(--paper);
}
.btn-primary:hover { background: #a07d3e; }

.btn-outline {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(255,255,255,.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.8);
}

.btn-forest {
  background: var(--forest);
  color: var(--paper);
}
.btn-forest:hover { background: var(--forest-2); }

/* Pill (header CTA) */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--gold);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 999px;
  transition: background .15s;
  white-space: nowrap;
}
.btn-pill:hover { background: #a07d3e; }
.btn-pill .arr { font-style: normal; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .2s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-svg {
  display: block;
  height: 36px;
  width: auto;
}

.nav-wrapper { flex: 1; }

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.main-nav > li { position: relative; }

.main-nav > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(245,240,232,.8);
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}

.main-nav > li > a:hover,
.main-nav > li:hover > a {
  color: var(--cream);
  background: rgba(255,255,255,.08);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s, visibility .2s;
}

.main-nav > li:hover > .dropdown,
.main-nav > li:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .12s, color .12s;
}

.dropdown li a:hover {
  background: var(--cream);
  color: var(--forest);
}

.header-cta { margin-left: auto; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  background: var(--forest);
  padding: 96px 40px 88px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/hero-bg.webp');
  background-size: cover;
  background-position: center 40%;
  opacity: .22;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(184,146,74,.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero .container { position: relative; max-width: 760px; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 20px;
  max-width: 680px;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(245,240,232,.7);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Content sections ── */
.section {
  padding: 80px 40px;
}

.section--cream { background: var(--cream); }
.section--cream-2 { background: var(--cream-2); }
.section--forest { background: var(--forest); }
.section--white  { background: var(--paper); }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.text-center { text-align: center; }

/* ── Card grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow .2s, transform .2s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg { color: var(--gold); }

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
  color: var(--forest);
}

.card p {
  font-size: 0.9375rem;
  color: var(--ink-3);
  line-height: 1.65;
  margin-bottom: 20px;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .15s;
}

.card-link:hover { gap: 10px; }

/* ── Flex row (image + text) ── */
.flex-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.flex-row--reverse { direction: rtl; }
.flex-row--reverse > * { direction: ltr; }

.flex-row img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.flex-row h2 { margin-bottom: 16px; }
.flex-row p  { margin-bottom: 16px; }
.flex-row p:last-child { margin-bottom: 0; }

/* ── Eyebrow + h2 combo ── */
.section-header { margin-bottom: 48px; }
.section-header h2 { margin-top: 8px; }
.section-header p  { margin-top: 14px; max-width: 560px; font-size: 1.0625rem; }
.section-header.text-center p { margin-left: auto; margin-right: auto; }

/* ── Quote / pullout ── */
.pullout {
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  background: var(--gold-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
}

.pullout p {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  color: var(--forest);
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

/* ── Stats row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
}

.stat-block {
  background: var(--paper);
  padding: 40px 32px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 500;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-value span { color: var(--gold); }

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── CTA band ── */
.cta-band {
  background: var(--forest);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(184,146,74,.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-band h2 {
  color: var(--cream);
  margin-bottom: 14px;
  position: relative;
}

.cta-band p {
  color: rgba(245,240,232,.65);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.65;
  font-size: 1.0625rem;
  position: relative;
}

.cta-band .btn { position: relative; }

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 40px 0;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.logo-svg--footer { height: 30px; }

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  color: rgba(245,240,232,.55);
  max-width: 320px;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 500;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: 0.9rem;
  color: rgba(245,240,232,.6);
  transition: color .15s;
}

.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(245,240,232,.35);
}

/* ── Page hero (interior pages) ── */
.page-hero {
  background: var(--forest);
  padding: 72px 40px 64px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.page-hero .container { max-width: 680px; }

.page-hero h1 {
  color: var(--cream);
  font-size: clamp(1.875rem, 4vw, 2.625rem);
  margin-bottom: 14px;
}

.page-hero p {
  color: rgba(245,240,232,.7);
  font-size: 1.0625rem;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.page-hero p:last-child { margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .flex-row  { grid-template-columns: 1fr; gap: 32px; }
  .flex-row--reverse { direction: ltr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 960px) {
  .hamburger { display: flex; }
  .header-cta { display: none; }

  .nav-wrapper {
    position: fixed;
    top: 68px;
    left: 0; right: 0; bottom: 0;
    background: var(--forest);
    border-top: 1px solid rgba(255,255,255,.1);
    transform: translateX(100%);
    transition: transform .3s;
    overflow-y: auto;
    z-index: 999;
  }

  .nav-wrapper.open { transform: translateX(0); }

  .main-nav {
    flex-direction: column;
    padding: 24px;
    gap: 0;
  }

  .main-nav > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .main-nav > li > a {
    padding: 14px 0;
    font-size: 1rem;
    border-radius: 0;
    color: rgba(245,240,232,.9);
  }

  .main-nav > li > a:hover {
    background: none;
    color: var(--gold);
  }

  .dropdown {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s;
    border: none;
    border-radius: 0;
    background: none;
    padding: 0;
  }

  .main-nav > li.dropdown-open > .dropdown { max-height: 400px; }

  .dropdown li a {
    padding: 10px 16px;
    color: rgba(245,240,232,.6);
    font-size: 0.9375rem;
    white-space: normal;
  }

  .dropdown li a:hover {
    background: none;
    color: var(--gold);
  }
}

@media (max-width: 680px) {
  .container { padding: 0 24px; }
  .section    { padding: 56px 24px; }
  .hero       { padding: 72px 24px 64px; }
  .cta-band   { padding: 64px 24px; }
  .page-hero  { padding: 56px 24px 48px; }
  .card-grid  { grid-template-columns: 1fr; }
  .stats-row  { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .header-inner { gap: 0; }
}
