/* ─────────────────────────────────────────────────────────────
   Pathmarker — shared design system
   Linked by index.html, coaches.html, members.html,
   partnership.html, features.html.
   Page-specific component CSS stays in each page's <style> block.
   Per-page token/layout overrides also stay inline and must be
   loaded AFTER this file.
   ───────────────────────────────────────────────────────────── */

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

:root {
  --teal:         #7A8060;
  --teal-light:   #ADB294;
  --teal-deep:    #62684A;
  --dark:         #1A1612;
  --dark-mid:     #1E1A16;
  --dark-deep:    #1E1A16;
  --surface:      #F8F5EE;
  --terra:        #B5563D;
  --olive:        #847B49;
  --sage:         #5C6B5A;
  --maple:        #8B4423;
  --slate:        #4A5A6B;
  --clay:         #B5563D;
  --ink:          #2B2724;
  --ink-mute:     #8A8278;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --nav-h:        64px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { background: var(--surface); color: var(--dark-deep); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--teal-deep); }
/* ── Top accent stripe ── */
#top-stripe {
  position: fixed; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  z-index: 1000;
}

/* ── Frosted nav ── */
#site-header {
  position: fixed;
  top: 4px; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(248, 245, 238, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(122, 128, 96, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  z-index: 999;
}
.site-wordmark {
  display: flex; align-items: center;
  text-decoration: none; line-height: 1;
}
.site-wordmark img {
  display: block;
  height: clamp(22px, 2.4vw, 28px);
  width: auto;
}
.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.nav-cta {
  font-family: var(--font-body); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
  background: var(--teal); padding: 0.6rem 1rem; border-radius: 9px;
  text-decoration: none; transition: background 0.18s; white-space: nowrap;
}
.nav-cta:hover { background: var(--teal-deep); }

/* ── Persistent page links in the header ── */
/* Shown from 620px up; below that they wrap under the wordmark. */
.nav-persistent { display: flex; align-items: center; gap: 1.6rem; margin-right: 0.4rem; }
.nav-persist {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); opacity: 0.72; white-space: nowrap;
  padding: 0.35rem 0; border-bottom: 1.5px solid transparent;
  transition: opacity 0.18s ease, border-color 0.18s ease;
}
.nav-persist:hover { opacity: 1; border-bottom-color: var(--teal); }
.nav-persist.current { opacity: 1; color: var(--teal-deep); border-bottom-color: var(--teal); }
/* No hamburger any more, so these are the only page navigation there is —
   they must stay visible at every width, not collapse. */
@media (max-width: 620px) {
  #site-header { padding: 0 1rem; }
  .site-wordmark img { height: 19px; }
  .nav-persistent { gap: 0.7rem; margin-right: 0; }
  .nav-persist { font-size: 0.62rem; letter-spacing: 0.03em; }
  /* The unlinked "you are here" marker is the page you're already on —
     first thing to go when space is tight. */
  span.nav-persist { display: none; }
  /* Every page repeats its CTA in the body, so the header one can go. */
  .nav-cta { display: none; }
}

/* ─────────── Hero ─────────── */
.page-hero {
  background: linear-gradient(140deg, var(--dark) 0%, var(--dark-mid) 60%, var(--dark) 100%);
  color: #fff;
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 6vw, 8rem) clamp(3rem, 5vw, 4rem);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(122,128,96,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.blob-1 { width: 440px; height: 440px; top: -120px; right: -80px; background: #7A8060; opacity: 0.09; }
.blob-2 { width: 280px; height: 280px; bottom: -80px; left: -60px; background: #ADB294; opacity: 0.06; }
.hero-inner { position: relative; max-width: 1600px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 1.2rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.hero-eyebrow::before {
  content: ''; width: 28px; height: 1.5px; background: currentColor; opacity: 0.85; flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(3rem, 6.8vw, 5.6rem); line-height: 1.02; margin-bottom: 1.6rem;
  max-width: 1040px; letter-spacing: -0.03em;
}
.hero-title em { font-style: italic; color: var(--teal-light); }
.hero-sub {
  font-size: clamp(1.2rem, 1.5vw, 1.45rem); color: #B2A992;
  line-height: 1.55; max-width: 800px; margin-bottom: 2.2rem;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.6rem; }
.hero-pill {
  background: rgba(122,128,96,0.18); border: 1px solid rgba(173,178,148,0.35);
  color: #ADB294; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 0.4rem 0.9rem; border-radius: 20px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.04em;
  text-decoration: none; padding: 0.85rem 1.4rem; border-radius: 11px;
  transition: background 0.18s, transform 0.18s, border-color 0.18s;
}
.hero-cta--primary { background: var(--teal); color: #fff; border: 1px solid var(--teal); }
.hero-cta--primary:hover { background: var(--teal-deep); }
.hero-cta--ghost { background: transparent; color: #B2A992; border: 1px solid rgba(173,178,148,0.4); }
.hero-cta--ghost:hover { background: rgba(122,128,96,0.12); color: #fff; }
.hero-cta::after { content: '→'; transition: transform 0.22s; }
.hero-cta:hover::after { transform: translateX(3px); }
.hero-cta--ghost::after { content: ''; }

.hero-seats {
  margin-top: 2.4rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(173,178,148,0.18);
  font-size: 0.82rem; color: #7A715F; letter-spacing: 0.04em;
}
.hero-seats strong { color: var(--teal-light); font-weight: 700; }

/* ─────────── Sections ─────────── */
.section { padding: clamp(4rem, 6vw, 6rem) clamp(1.25rem, 3vw, 3.5rem); }
.section-alt { background: #fff; }
.section-dark {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark) 50%, var(--dark) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.section-dark::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(122,128,96,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-lead { color: #B2A992; }
.section-dark .section-eyebrow { color: var(--teal-light); }
/* 1600px matches the native width of the product clips — going wider would
   upscale them and soften the detail. */
.section-inner { position: relative; max-width: 1600px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.85rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.section-eyebrow::before {
  content: ''; width: 28px; height: 1.5px; background: currentColor; opacity: 0.85; flex-shrink: 0;
}
.section-eyebrow.terra { color: var(--terra); }
.section-eyebrow.olive { color: var(--olive); }
.section-eyebrow.sage  { color: var(--sage); }
.section-eyebrow.maple { color: var(--maple); }
.section-eyebrow.slate { color: var(--slate); }
.section-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.6rem, 4.2vw, 4.2rem); color: var(--dark-deep);
  line-height: 1.05; margin-bottom: 1.25rem; letter-spacing: -0.025em;
}
.section-title em { font-style: italic; color: var(--teal); }
.section-dark .section-title em { color: var(--teal-light); }
.section-lead {
  font-size: clamp(1.15rem, 1.35vw, 1.4rem); color: #6B6560;
  line-height: 1.6; max-width: 860px; margin-bottom: 3rem;
}

/* ─────────── Footer ─────────── */
.site-footer {
  background: #0F0C09; color: #7A715F;
  padding: 1.5rem clamp(1.5rem, 6vw, 8rem);
  font-size: 0.78rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
}
.site-footer a { color: var(--teal-light); text-decoration: none; }
.site-footer-links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }

/* ─────────── Utilities ─────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ─────────── Reveal ─────────── */
.reveal { opacity: 0; transform: translateY(18px); }
.revealed { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .revealed { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
