/* =====================================================================
   Scott Christian Memorial Soccer Foundation
   Global stylesheet — hand-coded, self-contained (no external assets)
   Table of contents:
     1. Design tokens (:root)
     2. Reset & base
     3. Typography
     4. Layout helpers (container, sections)
     5. Buttons
     6. Header & navigation
     7. Hero
     8. Components (cards, stats, callouts, quotes, steps, info lists)
     9. Footer
    10. Utilities
    11. Responsive
    12. Print & motion
   ===================================================================== */

/* 1. Design tokens ---------------------------------------------------- */
:root {
  --blue:        #1d5fb0;   /* primary brand blue (from logo) */
  --blue-dark:   #164a8c;
  --navy:        #12335e;   /* deep navy for dark surfaces */
  --navy-900:    #0d2547;
  --gold:        #f2a30f;   /* warm accent for donate / CTAs */
  --gold-dark:   #d88a00;

  --ink:         #1a222e;   /* body text */
  --muted:       #55606f;   /* secondary text */
  --line:        #e2e7ee;   /* borders */
  --surface:     #ffffff;
  --surface-alt: #f4f7fb;   /* light section background */
  --surface-alt2:#eef3f9;

  --maxw: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(18, 51, 94, .08), 0 1px 2px rgba(18, 51, 94, .06);
  --shadow-md: 0 6px 20px rgba(18, 51, 94, .10);
  --shadow-lg: 0 18px 40px rgba(18, 51, 94, .16);

  --ff-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
             Arial, "Helvetica Neue", sans-serif;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.9rem + 3vw, 4rem);
}

/* 2. Reset & base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--blue-dark); text-decoration-color: rgba(29, 95, 176, .35); text-underline-offset: 2px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* 3. Typography ------------------------------------------------------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }
li { margin: .35rem 0; }
strong { color: var(--navy); }
.lead { font-size: var(--step-1); color: var(--muted); font-weight: 400; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .6rem;
}
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* 4. Layout ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.container-narrow { max-width: 780px; }
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt  { background: var(--surface-alt); }
.section-navy { background: var(--navy); color: #dbe6f5; }
.section-navy h2, .section-navy h3 { color: #fff; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

/* 5. Buttons ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-gold  { --btn-bg: var(--gold); --btn-fg: #3a2a00; }
.btn-gold:hover { background: var(--gold-dark); color: #3a2a00; }
.btn-outline { background: transparent; color: var(--blue-dark); border-color: currentColor; box-shadow: none; }
.btn-outline:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); box-shadow: none; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* 6. Header & navigation ---------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 78px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
  color: var(--navy); line-height: 0;
}
.nav-toggle svg { width: 28px; height: 28px; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: .3rem; margin: 0; padding: 0; }
.primary-nav a {
  display: inline-block; padding: .55rem .85rem; border-radius: 8px;
  color: var(--navy); font-weight: 600; text-decoration: none; font-size: .98rem;
}
.primary-nav a:hover { background: var(--surface-alt); color: var(--blue-dark); }
.primary-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--gold); }
.primary-nav .btn { margin-left: .4rem; padding: .6rem 1.15rem; color: #3a2a00; }
.primary-nav .btn:hover { color: #3a2a00; }

/* 7. Hero ------------------------------------------------------------- */
.hero {
  position: relative; color: #eaf1fb;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-dark) 55%, var(--blue) 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .10; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 26px 26px;
}
.hero .container { position: relative; z-index: 1; padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: #cdddf3; max-width: 52ch; }
/* Two-column hero: copy on the left, image on the right (desktop) */
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-media { margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem;
  padding: .4rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22);
}
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 100%); color: #eaf1fb; }
.page-hero .container { padding-block: clamp(2.6rem, 6vw, 4rem); position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .3rem; }
.page-hero p { color: #cdddf3; margin: 0; max-width: 54ch; }
.breadcrumb { font-size: .85rem; color: #9fc0e6; margin-bottom: 1rem; }
.breadcrumb a { color: #cfe1f6; }

/* 8. Components ------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card h3 { font-size: var(--step-1); }
.card p:last-child { margin-bottom: 0; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 1rem;
  background: var(--surface-alt2); color: var(--blue);
}
.card-icon svg { width: 28px; height: 28px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.stat .stat-num { font-size: var(--step-3); font-weight: 800; color: var(--gold); line-height: 1; }
.section-navy .stat .stat-num { color: var(--gold); }
.stat .stat-label { font-size: .95rem; color: inherit; opacity: .9; margin-top: .35rem; }

.callout {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center;
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: #fff; border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-md);
}
.callout h2, .callout h3 { color: #fff; margin-top: 0; }
.callout p { color: #dbe8f8; margin-bottom: 0; }
/* keep bold text legible on dark surfaces (base rule colors <strong> navy) */
.callout strong, .section-navy strong, .hero strong { color: #fff; }

.quote {
  border-left: 4px solid var(--gold); padding: .4rem 0 .4rem 1.4rem;
  font-size: var(--step-1); font-style: italic; color: var(--navy);
}
.quote cite { display: block; margin-top: .6rem; font-size: .95rem; font-style: normal; color: var(--muted); }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.2rem; }
.steps li { position: relative; padding-left: 3.4rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -.1rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .k { min-width: 8.5rem; font-weight: 700; color: var(--navy); }

.pill { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: var(--surface-alt2); color: var(--blue-dark); font-size: .82rem; font-weight: 700; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.check-list li { position: relative; padding-left: 1.9rem; margin: .55rem 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/0.75rem no-repeat;
}

.media-figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface-alt); }
.media-figure img { width: 100%; }
.media-figure figcaption { padding: .8rem 1rem; font-size: .88rem; color: var(--muted); background: var(--surface); }

/* placeholder tiles (for photos / recipients not yet provided) */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--surface-alt), var(--surface-alt) 12px, var(--surface-alt2) 12px, var(--surface-alt2) 24px);
  color: var(--muted); font-size: .85rem; font-weight: 600; border: 1px dashed #c7d3e2; padding: 1rem;
}
.avatar-ph {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-alt2); color: var(--blue); font-weight: 800; font-size: 1.4rem;
}
.note { font-size: .9rem; color: var(--muted); background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; }

/* recipients archive (year-grouped list) */
.recipients-archive { display: grid; gap: 2.25rem; }
.year-head { display: flex; align-items: baseline; gap: .7rem; margin: 0 0 1rem; padding-bottom: .45rem; border-bottom: 2px solid var(--line); }
.year-head .yr { font-size: var(--step-2); font-weight: 800; color: var(--navy); }
.year-head .cnt { font-size: .85rem; font-weight: 700; color: var(--blue); }
.recip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .5rem 1.75rem; }
.recip-list li { padding: .4rem 0; border-bottom: 1px solid var(--surface-alt2); }
.r-name { display: block; font-weight: 700; color: var(--ink); }
.r-meta { display: block; font-size: .87rem; color: var(--muted); }

/* 9. Footer ----------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #b8c8de; padding-block: 3rem 1.5rem; font-size: .95rem; }
.site-footer a { color: #dce7f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand img { height: 70px; width: auto; margin-bottom: 1rem; }
.footer-heading { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin: .45rem 0; }
.social { display: inline-flex; gap: .6rem; margin-top: .4rem; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.10); color: #fff;
}
.social a:hover { background: var(--blue); text-decoration: none; }
.social svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.4rem; padding-top: 1.3rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: #8ea3bf;
}

/* 10. Utilities ------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.maxw-prose { max-width: 65ch; }
.mx-auto { margin-inline: auto; }

/* 11. Responsive ------------------------------------------------------ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { display: none; } /* keep the hero short on phones/tablets */
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; inset: 100% 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    display: none; padding: .6rem clamp(1.1rem, 4vw, 2rem) 1.1rem;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .primary-nav a { padding: .8rem .6rem; font-size: 1.05rem; }
  .primary-nav a[aria-current="page"] { box-shadow: none; background: var(--surface-alt); }
  .primary-nav .btn { margin: .5rem 0 0; justify-content: center; }
}
@media (max-width: 760px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 2; }
  .callout { grid-template-columns: 1fr; text-align: left; }
  .stats { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 64px; }
  .btn { width: 100%; justify-content: center; }
  .btn-row .btn { width: auto; }
}

/* 12. Motion & print -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-badge, .btn { display: none !important; }
  body { color: #000; }
  a { text-decoration: underline; }
}
