/* ==========================================================================
   Grove Athlete Development — Site Stylesheet
   Palette + type drawn from the GAD overview deck.
   ========================================================================== */

:root {
  /* Color tokens */
  --forest:        #2D3E34; /* deep forest green — headings, nav, primary text on light */
  --sage:          #5A7D6C; /* brand sage green — primary actions, links, dominant accents */
  --sage-light:    #8FB9A8; /* light sage — icon fills, tags, borders, backgrounds */
  --sage-pale:     #E7F0EA; /* pale sage wash — section backgrounds, hover states */
  --slate:         #4A5568; /* body copy */
  --slate-soft:    #6B7686; /* secondary / muted copy */
  --amber:         #A56F2C; /* sharp accent — CTAs, key dates, tier callouts (darkened for AA contrast with white text) */
  --amber-dark:    #8B5A1F;
  --amber-light:   #C4883C; /* lighter gold for non-text decorative use (timeline markers) */
  --amber-pale:    #FBF1E1;
  --bg:            #FAFDFA; /* page background */
  --white:         #FFFFFF;
  --line:          #DCE6E0; /* hairline borders */
  --shadow: 0 1px 2px rgba(45, 62, 52, 0.04), 0 8px 24px -12px rgba(45, 62, 52, 0.18);
  --shadow-hover: 0 4px 10px rgba(45, 62, 52, 0.06), 0 16px 32px -14px rgba(45, 62, 52, 0.24);

  /* Type */
  --font-display: "Montserrat", "Arial", sans-serif;
  --font-body: "Arimo", "Arial", sans-serif;

  /* Layout */
  --max-width: 1160px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--forest); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.75em;
  display: inline-block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 76px 0; }
section.tight { padding: 48px 0; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(165, 111, 44, 0.5);
}
.btn-primary:hover { background: var(--amber-dark); color: var(--white); }

.btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: var(--sage);
  color: var(--sage);
}
.btn-outline:hover { background: var(--sage); color: var(--white); }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 253, 250, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--forest);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--forest); }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-name em { color: var(--sage); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--forest);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--sage-pale); color: var(--forest); }
.nav-links a.current { background: var(--sage); color: var(--white); }
.nav-links a.cta { background: var(--amber); color: var(--white); margin-left: 6px; }
.nav-links a.cta:hover { background: var(--amber-dark); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 18px;
    gap: 4px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: left; padding: 12px 14px; }
  .nav-links a.cta { margin-left: 0; text-align: center; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--forest) 0%, #24352B 55%, #1E2C24 100%);
  color: var(--white);
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 12%, rgba(143,185,168,0.28), transparent 45%),
                     radial-gradient(circle at 8% 90%, rgba(196,136,60,0.18), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sage-light);
  background: rgba(143, 185, 168, 0.14);
  border: 1px solid rgba(143, 185, 168, 0.35);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-trail {
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

.page-hero {
  background: linear-gradient(160deg, var(--forest) 0%, #24352B 100%);
  color: var(--white);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 90% 0%, rgba(143,185,168,0.22), transparent 45%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero .lead { color: rgba(255,255,255,0.82); font-size: 1.08rem; max-width: 56ch; margin: 0; }
.page-hero .eyebrow { color: var(--sage-light); }

/* ---------------- Stat / tier cards ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }

.card-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .card-grid.grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .card-grid.grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; stroke: var(--sage); }

.tier-card { text-align: left; position: relative; }
.tier-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--forest);
  margin: 2px 0 8px;
}
.tier-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------------- Two-column / feature rows ---------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.accent-bar-heading {
  border-left: 4px solid var(--sage-light);
  padding-left: 18px;
}

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--sage-light);
  font-size: 1rem;
  flex-shrink: 0;
  width: 28px;
}
.feature-list h4 { margin: 0 0 4px; font-size: 1.02rem; }
.feature-list p { margin: 0; color: var(--slate); font-size: 0.96rem; }

/* ---------------- Section backgrounds ---------------- */
.section-pale { background: var(--sage-pale); }
.section-forest {
  background: linear-gradient(160deg, var(--forest), #223229);
  color: rgba(255,255,255,0.9);
}
.section-forest h2, .section-forest h3 { color: var(--white); }
.section-forest .eyebrow { color: var(--sage-light); }

/* ---------------- Checklist ---------------- */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 720px) { .check-grid { grid-template-columns: 1fr; } }

.check-item {
  display: flex;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.check-mark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-mark svg { width: 14px; height: 14px; stroke: var(--white); }
.check-item h4 { margin: 0 0 4px; font-size: 1rem; }
.check-item p { margin: 0; font-size: 0.92rem; color: var(--slate-soft); }

/* ---------------- Key dates / trail timeline ---------------- */
.timeline-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 40px clamp(20px, 4vw, 48px) 28px;
  box-shadow: var(--shadow);
}
.timeline-svg { width: 100%; height: auto; display: block; }
.timeline-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 6px;
}
.timeline-label { text-align: center; }
.timeline-label .date {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--forest);
  font-size: 1.02rem;
  display: block;
}
.timeline-label .desc { font-size: 0.88rem; color: var(--slate-soft); }
@media (max-width: 640px) {
  .timeline-labels { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-m); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 560px; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
th { font-family: var(--font-display); font-weight: 700; color: var(--forest); background: var(--sage-pale); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
tr:last-child td { border-bottom: none; }
td.amount { font-family: var(--font-display); font-weight: 700; color: var(--sage); white-space: nowrap; }

/* ---------------- Callout ---------------- */
.callout {
  background: var(--amber-pale);
  border: 1px solid #EAD3AC;
  border-radius: var(--radius-m);
  padding: 22px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.callout svg { flex-shrink: 0; width: 22px; height: 22px; stroke: var(--amber-dark); margin-top: 2px; }
.callout p { margin: 0; color: #6B4B1E; font-size: 0.95rem; }
.callout strong { color: var(--amber-dark); }

/* ---------------- Tags ---------------- */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--sage-pale);
  color: var(--sage);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------------- Form ---------------- */
.form-embed-frame {
  width: 100%;
  min-height: 1400px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--white);
}
.form-placeholder {
  border: 2px dashed var(--sage-light);
  border-radius: var(--radius-m);
  background: var(--white);
  padding: 48px 32px;
  text-align: center;
}
.form-placeholder .icon-badge { margin: 0 auto 18px; }
.form-placeholder h3 { margin-bottom: 10px; }
.form-placeholder p { max-width: 52ch; margin-left: auto; margin-right: auto; color: var(--slate-soft); }
.form-placeholder code {
  background: var(--sage-pale);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85em;
}

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(135deg, var(--sage), #4A6A5B);
  border-radius: var(--radius-l);
  padding: 56px clamp(24px, 5vw, 64px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; max-width: 46ch; }
.cta-band .btn-primary { background: var(--white); color: var(--forest); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--amber-pale); color: var(--forest); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--forest);
  color: rgba(255,255,255,0.72);
  padding: 56px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid p, .footer-grid a { color: rgba(255,255,255,0.7); font-size: 0.94rem; }
.footer-grid a:hover { color: var(--sage-light); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand span { font-family: var(--font-display); font-weight: 800; color: var(--white); font-size: 1.05rem; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---------------- Utility ---------------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.max-prose { max-width: 68ch; }
.center-col { max-width: 780px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
