/* ========================================================================
   SOFF 'So Oregon' Super Chill Classic — Tournament Website
   Stylesheet — built with vanilla CSS3 + CSS variables for easy editing
   Anyone can open this file and adjust colors, type, or spacing.
   ======================================================================== */

/* ---------- 1. Brand fonts ---------- */
@font-face {
  font-family: 'Aventa';
  src: url('../fonts/Aventa-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aventa';
  src: url('../fonts/Aventa-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'RedondoAve';
  src: url('../fonts/RedondoAve-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SO-Birdie';
  src: url('../fonts/SO-Birdie.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SO-RoadRunner';
  src: url('../fonts/SORoadRunner.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Design tokens ---------- */
:root {
  /* Brand palette */
  --sage:        #8FAE8E;
  --sage-dark:   #6E9170;
  --forest:      #1F4029;
  --forest-deep: #143020;
  --emerald:     #2D7A4A;
  --amber:       #D69E4C;
  --amber-dark:  #B57E2E;
  --cream:       #F4EDD8;
  --cream-soft:  #FAF6E8;
  --paper:       #F7F4EA;
  --slate:       #2A2F2D;
  --slate-soft:  #4A524F;
  --muted:       #847C68;
  --line:        #E2DBC4;
  --white:       #FFFFFF;

  /* Type families */
  --font-display: 'Aventa', 'Helvetica Neue', Arial, sans-serif;
  --font-script:  'RedondoAve', 'Brush Script MT', cursive;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-numeric: 'SO-Birdie', 'Aventa', monospace;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radius + shadow */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(31, 64, 41, 0.08);
  --shadow-md: 0 8px 24px rgba(31, 64, 41, 0.12);
  --shadow-lg: 0 16px 48px rgba(31, 64, 41, 0.18);

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --nav-h: 76px;
}

/* ---------- 3. Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Belt-and-suspenders: anything marked hidden must actually be invisible
   (some browsers / extensions occasionally ignore the HTML hidden attribute) */
[hidden] { display: none !important; }

/* Lock the Netlify honeypot field completely off-screen — defends against the
   "Don't fill this out" label leaking in any browser that ignores display:none */
input[name="bot-field"],
p:has(> label > input[name="bot-field"]) {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* Brand-colored tap highlight (replaces default iOS bright-blue flash) */
html { -webkit-tap-highlight-color: rgba(31, 64, 41, 0.12); }

/* Buttons + links: kill the 300ms double-tap zoom delay */
.btn, button, a, .faq__q, .form-tab, .donate-amount, .sponsor-wall__item, .nav__toggle {
  touch-action: manipulation;
}

/* (Previously had overscroll-behavior-y: contain here — removed because it
   can intermittently lock vertical scroll on iOS Safari. Default scroll
   behavior is fine.) */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;          /* bumped from 17px for better readability */
  line-height: 1.65;        /* slightly more breathing room */
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--amber-dark); }
button { font-family: inherit; cursor: pointer; }
ul { padding-left: 1.25em; }

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--forest);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.25rem; letter-spacing: 0.05em; text-transform: uppercase; }

p { margin: 0 0 var(--space-4); }
.eyebrow {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);   /* bumped from 1.25/2vw/1.75 */
  color: var(--amber-dark);
  margin-bottom: var(--space-2);
}
.script { font-family: var(--font-script); }
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- 5. Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.container--narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-9) 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--forest { background: var(--forest); color: var(--cream); }
.section--forest h1, .section--forest h2, .section--forest h3 { color: var(--cream); }
.text-center { text-align: center; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;             /* bumped from 0.95 */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary { background: var(--amber); color: var(--forest); }
.btn--primary:hover { background: var(--amber-dark); color: var(--cream); }
.btn--secondary { background: var(--forest); color: var(--cream); }
.btn--secondary:hover { background: var(--forest-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--cream); border: 2px solid var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--forest); }
.btn--sage { background: var(--sage); color: var(--white); }
.btn--sage:hover { background: var(--sage-dark); }
.btn--lg { padding: 1.25rem 2.5rem; font-size: 1.05rem; }
.btn--sm { padding: 0.65rem 1.25rem; font-size: 0.8rem; }
.btn--full { width: 100%; }

/* ---------- 7. Top navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  background: rgba(247, 244, 234, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 219, 196, 0.6);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--forest);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav__brand img { height: 44px; width: auto; }
.nav__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;          /* bumped from 0.85 */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color .15s ease;
  position: relative;
  padding: 0.5rem 0;
}
.nav__links a:hover { color: var(--amber-dark); }
.nav__cta { display: flex; align-items: center; gap: var(--space-3); }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--forest);
  padding: var(--space-2);
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__cta .btn { padding: 0.65rem 1.2rem; font-size: 0.78rem; }
  .nav__cta a:not(.btn) { display: none; }
  .nav.open .nav__links {
    display: flex;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: var(--space-5);
    gap: var(--space-4);
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + var(--space-7)) 0 var(--space-9);
  background:
    linear-gradient(to bottom, rgba(247, 244, 234, 0) 0%, rgba(247, 244, 234, 0) 78%, var(--paper) 100%),
    url('../assets/hero-painted.jpg') center top / cover no-repeat;
  background-color: #4a5470;
  text-align: center;
  overflow: hidden;
  min-height: 720px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  /* Lighter scrim — painted image is already moody, just need touch of darkening behind the logo */
  background:
    radial-gradient(ellipse at center 40%, rgba(15,30,50,0.28) 0%, rgba(15,30,50,0.12) 45%, rgba(15,30,50,0) 70%),
    linear-gradient(180deg, rgba(15,30,50,0.22) 0%, rgba(15,30,50,0.08) 30%, rgba(247,244,234,0) 75%, rgba(247,244,234,0.85) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.hero__presented {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;          /* bumped from 0.75 for legibility */
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.hero__logo {
  max-width: 540px;
  width: 80%;
  margin: 0 auto var(--space-5);
  filter: drop-shadow(0 4px 16px rgba(31, 64, 41, 0.25));
}
.hero__date {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  color: var(--cream);
  margin: 0 0 var(--space-2);
  text-shadow: 0 2px 16px rgba(0,0,0,0.75), 0 0 2px rgba(0,0,0,0.4);
  letter-spacing: 0.02em;
}
.hero__location {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--cream);
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 16px rgba(0,0,0,0.75), 0 0 2px rgba(0,0,0,0.4);
}
.hero__location::before { content: '⛳  '; opacity: 0.85; }
.hero__ctas {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

/* Countdown */
.countdown {
  display: inline-flex;
  gap: var(--space-3);
  background: rgba(247, 244, 234, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-md);
  margin: var(--space-5) 0;
  border: 1px solid rgba(226, 219, 196, 0.6);
}
.countdown__unit {
  text-align: center;
  min-width: 64px;
}
.countdown__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--forest);
  line-height: 1;
}
.countdown__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;          /* bumped from 0.7 */
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);          /* darker than muted for contrast */
  margin-top: var(--space-1);
}
.countdown__sep {
  color: var(--sage);
  font-size: 2rem;
  align-self: center;
  font-weight: 900;
}

/* ---------- 9. Donation ticker ---------- */
.ticker {
  background: var(--forest);
  color: var(--cream);
  padding: var(--space-5) 0;
  position: relative;
}
.ticker__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.ticker__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;          /* bumped from 0.78 */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: var(--space-1);
}
.ticker__amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: var(--amber);
  line-height: 1;
  letter-spacing: -0.01em;
}
.ticker__sub {
  font-family: var(--font-script);
  color: var(--cream);
  font-size: 1.25rem;
  margin-top: var(--space-2);
}
.ticker__btn {
  background: var(--amber);
  color: var(--forest);
  border: none;
  padding: 0.9rem 1.75rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.ticker__btn:hover { background: var(--cream); transform: translateY(-2px); }

/* Donation breakdown drawer */
.ticker__drawer {
  background: var(--forest-deep);
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.ticker__drawer.open { max-height: 1200px; }
.ticker__drawer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-7) var(--space-5);
}
.beneficiary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.beneficiary {
  background: rgba(244, 237, 216, 0.06);
  border: 1px solid rgba(244, 237, 216, 0.18);
  border-radius: var(--r-md);
  padding: var(--space-5);
  transition: background .2s ease, transform .2s ease;
}
.beneficiary:hover { background: rgba(244, 237, 216, 0.10); transform: translateY(-3px); }
.beneficiary__name {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--cream);
  font-size: 1.15rem;
  margin: 0 0 var(--space-2);
}
.beneficiary__amount {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--amber);
  font-size: 1.75rem;
  line-height: 1;
  margin: var(--space-3) 0 var(--space-1);
}
.beneficiary__years {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
}
.beneficiary__desc {
  color: var(--cream);
  font-size: 0.9rem;
  opacity: 0.85;
  margin: var(--space-3) 0 var(--space-4);
}
.beneficiary__link {
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- 10. Event details ---------- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}
.event-stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-5);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.event-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event-stat__label {
  font-family: var(--font-script);
  color: var(--sage-dark);
  font-size: 1.3rem;            /* bumped from 1.15 */
}
.event-stat__value {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--forest);
  font-size: 1.55rem;           /* bumped from 1.4 */
  margin-top: var(--space-2);
}

/* ---------- 11. Cards (Play tier + Sponsor tier) ---------- */
.tier-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-7);
}
.tier-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.tier-grid--4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.tier-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage);
}
.tier-card--featured {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.tier-card--featured h3 { color: var(--cream); }
.tier-card--featured .tier-card__price { color: var(--amber); }
.tier-card--featured .tier-card__feature::before { color: var(--amber); }

.tier-card__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--forest);
  padding: 0.35rem 1rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.tier-card__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;             /* bumped 0.85 → 1rem for readability */
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: var(--space-2);
}
.tier-card--featured .tier-card__eyebrow { color: var(--sage); }
.tier-card h3 { margin-bottom: var(--space-3); }
.tier-card__price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--forest);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.tier-card__price small {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}
.tier-card--featured .tier-card__price small { color: rgba(244, 237, 216, 0.6); }
.tier-card__slots {
  font-family: var(--font-script);
  color: var(--sage-dark);
  margin-bottom: var(--space-4);
  font-size: 1.25rem;          /* bumped 1.1 → 1.25 */
}
.tier-card--featured .tier-card__slots { color: var(--sage); }
.tier-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  flex: 1;
}
.tier-card__feature {
  padding: var(--space-2) 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 1rem;             /* bumped from 0.95 */
  line-height: 1.55;
}
.tier-card__feature::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 900;
  font-size: 1.1rem;
}

/* ---------- 12. Schedule ---------- */
.schedule {
  margin-top: var(--space-7);
  border-left: 3px solid var(--sage);
  padding-left: var(--space-5);
}
.schedule__item {
  padding: var(--space-4) 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-5);
  border-bottom: 1px solid var(--line);
}
.schedule__item:last-child { border-bottom: none; }
.schedule__time {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--forest);
  font-size: 1.05rem;
}
.schedule__event {
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.55;
}
.schedule__event strong { display: block; color: var(--forest); margin-bottom: var(--space-1); font-size: 1.1rem; }

/* ---------- 13. After-party ---------- */
.afterparty {
  background: var(--forest-deep) url('../assets/afterparty-sundown.jpg') center center / cover no-repeat;
  position: relative;
  color: var(--cream);
  padding: var(--space-10) 0;
  overflow: hidden;
}
.afterparty::before {
  content: '';
  position: absolute; inset: 0;
  /* Deep dusk overlay so headline + body copy stay readable on photo */
  background: linear-gradient(180deg, rgba(20, 48, 32, 0.78) 0%, rgba(20, 48, 32, 0.65) 50%, rgba(20, 48, 32, 0.82) 100%);
}
.afterparty__inner { position: relative; z-index: 2; }
.afterparty h2, .afterparty h3 { color: var(--cream); }
.afterparty .eyebrow { color: var(--amber); }
.afterparty__meta {
  display: flex; gap: var(--space-6); flex-wrap: wrap;
  margin: var(--space-5) 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1rem;             /* bumped from 0.85 */
  color: var(--sage);
}

/* ---------- 14. FAQ ---------- */
.faq {
  max-width: var(--container-narrow);
  margin: var(--space-7) auto 0;
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;           /* bumped from 1.1 */
  color: var(--forest);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq__q:hover { color: var(--amber-dark); }
.faq__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: 2px solid var(--sage);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900;
  color: var(--sage-dark);
  transition: transform .25s ease, background .2s ease, color .2s ease;
}
.faq__item.open .faq__icon {
  transform: rotate(45deg);
  background: var(--sage);
  color: var(--white);
}
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.65;
}
.faq__a-inner { padding-bottom: var(--space-5); padding-right: var(--space-7); }
.faq__item.open .faq__a { max-height: 400px; }

/* ---------- 15. Past sponsors logo wall ---------- */
.sponsor-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-6);
}

/* Modifier: forces 6-per-row layout with last row centered (used for big tiers
   like Hole Sponsors with 15 logos → renders as 6 + 6 + 3 centered) */
.sponsor-wall--6col {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
}
.sponsor-wall--6col .sponsor-wall__item {
  flex: 0 1 calc((100% - 5 * var(--space-5)) / 6);
  min-width: 140px;
  max-width: 210px;
  height: 130px;
}
@media (max-width: 900px) {
  .sponsor-wall--6col .sponsor-wall__item {
    flex: 0 1 calc((100% - 3 * var(--space-4)) / 4);  /* 4 per row on tablet */
  }
}
@media (max-width: 720px) {
  .sponsor-wall--6col {
    gap: var(--space-3);
  }
  .sponsor-wall--6col .sponsor-wall__item {
    flex: 0 1 calc((100% - var(--space-3)) / 2);  /* 2 per row on phones */
    height: 100px;
  }
}
.sponsor-wall__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--space-4);
  height: 120px;
  display: grid;
  place-items: center;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease, box-shadow .25s ease;
  text-align: center;
}
/* Text fallback (used when no image provided) */
.sponsor-wall__item--text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  filter: grayscale(100%);
  opacity: 0.65;
}
.sponsor-wall__item--text:hover {
  filter: grayscale(0);
  opacity: 1;
  color: var(--forest);
  transform: translateY(-3px);
}
/* Logo images */
.sponsor-wall__item img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter .25s ease, opacity .25s ease;
}
.sponsor-wall__item:hover img {
  filter: grayscale(0);
  opacity: 1;
}
.sponsor-wall__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Optional sponsor tier label */
.sponsor-tier-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;          /* bumped 0.72 → 1.05 for clear readability */
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);        /* darker than sage-dark for stronger contrast on cream */
  text-align: center;
  margin: var(--space-7) 0 var(--space-4);
}
.sponsor-tier-label:first-of-type { margin-top: var(--space-5); }

/* ---------- 16. Footer ---------- */
.footer {
  background: var(--forest-deep);
  color: var(--cream);
  padding: var(--space-9) 0 var(--space-5);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(244, 237, 216, 0.15);
}
.footer__brand img { height: 80px; width: auto; margin-bottom: var(--space-4); }
.footer__col h4 {
  color: var(--sage);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;          /* bumped from 0.78 */
  letter-spacing: 0.18em;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__col li { margin-bottom: var(--space-2); }
.footer__col a {
  color: var(--cream);
  font-size: 1rem;             /* bumped from 0.92 */
  opacity: 0.92;
  transition: opacity .15s ease, color .15s ease;
}
.footer__col a:hover { opacity: 1; color: var(--amber); }

.footer__memorial {
  margin-top: var(--space-7);
  padding: var(--space-5);
  background: rgba(244, 237, 216, 0.06);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--cream);
  opacity: 0.9;
}
.footer__memorial .eyebrow { color: var(--amber); margin-bottom: var(--space-2); }

.footer__bottom {
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: var(--cream);
  opacity: 0.65;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
}
@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- 16b. Video showcase ---------- */
.video-showcase {
  background: var(--forest);
  color: var(--cream);
  padding: var(--space-9) 0;
  position: relative;
  overflow: hidden;
}
.video-showcase__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
.video-showcase__copy h2 { color: var(--cream); margin-bottom: var(--space-4); }
.video-showcase__copy .eyebrow { color: var(--amber); }
.video-showcase__copy p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--cream);
  opacity: 0.92;
  margin-bottom: var(--space-4);
}
.video-showcase__stats {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}
.video-showcase__stat {
  font-family: var(--font-display);
}
.video-showcase__stat-num {
  display: block;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--amber);
  line-height: 1;
}
.video-showcase__stat-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: var(--space-1);
  font-weight: 700;
}

.video-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(244, 237, 216, 0.15);
  background: var(--forest-deep);
  aspect-ratio: 1 / 1;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--forest-deep);
}
.video-frame__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: rgba(20, 48, 32, 0.85);
  backdrop-filter: blur(8px);
  color: var(--cream);
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 900px) {
  .video-showcase__inner { grid-template-columns: 1fr; gap: var(--space-5); }
  .video-frame { order: -1; }  /* video on top, copy below on mobile */
}
@media (max-width: 720px) {
  .video-showcase { padding: var(--space-7) 0; }
  .video-showcase__stats { gap: var(--space-4); }
  .video-showcase__stat-num { font-size: 2rem; }
}

/* ---------- 17. Decorative dividers ---------- */
.forest-divider {
  height: 80px;
  background: url('../assets/divider-forest.jpg') center / cover no-repeat;
  margin: 0;
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 720px) {
  .section { padding: var(--space-7) 0; }
  .hero { padding: calc(var(--nav-h) + var(--space-6)) 0 var(--space-8); min-height: 600px; }
  .hero__logo { max-width: 360px; }
  .schedule__item { grid-template-columns: 100px 1fr; gap: var(--space-3); }
  .countdown__sep { display: none; }
  .countdown { gap: var(--space-2); padding: var(--space-3); }
  .countdown__unit { min-width: 56px; }
  .ticker__inner { flex-direction: column; text-align: center; }
}

/* ============================================================================
   ★ MOBILE OPTIMIZATIONS ★
   Larger tap targets, iOS-zoom prevention, better mobile nav, safe-area insets.
   ============================================================================ */

/* Prevent any horizontal scroll on tiny screens */
html, body { overflow-x: hidden; max-width: 100%; }

/* === A11y: visible focus rings for keyboard nav === */
.btn:focus-visible,
.nav__links a:focus-visible,
.faq__q:focus-visible,
.ticker__btn:focus-visible,
.form-tab:focus-visible,
.donate-amount:focus-visible,
.sponsor-wall__item:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* === Tap target sizing & feedback (touch devices) === */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 48px; }
  .btn--sm { min-height: 40px; }
  .nav__links a { padding: 0.85rem 0; }
  .faq__q { min-height: 56px; }
  .ticker__btn { min-height: 48px; }
  .form-tab { min-height: 52px; }
  .donate-amount { min-height: 48px; }
  /* iOS Safari auto-zooms inputs with font-size < 16px. Force 16px. */
  .form-group input,
  .form-group select,
  .form-group textarea,
  .donate-custom { font-size: 16px !important; min-height: 48px; }
}

/* Active-state feedback so taps feel responsive */
.btn:active { transform: translateY(1px); }
.tier-card:active { transform: scale(0.997); }
.faq__q:active { background: rgba(143, 174, 142, 0.08); }

/* === Phone breakpoint: ~720px and below === */
@media (max-width: 720px) {

  /* ── Hero ── */
  .hero { padding: calc(var(--nav-h) + var(--space-5)) 0 var(--space-6); min-height: auto; }
  .hero__inner { padding: 0 var(--space-4); }
  .hero__logo { max-width: 280px; width: 75%; margin-bottom: var(--space-4); }
  .hero__presented { font-size: 0.7rem; letter-spacing: 0.15em; }
  .hero__date { font-size: 1.15rem; line-height: 1.3; }
  .hero__location { font-size: 1rem; margin-bottom: var(--space-4); }
  .hero__ctas {
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
    max-width: 320px;
    margin: var(--space-4) auto 0;
  }
  .hero__ctas .btn { width: 100%; }

  /* Countdown: 2x2 grid on phones instead of 4-across cramped */
  .countdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    width: 100%;
    max-width: 280px;
    margin: var(--space-4) auto;
    padding: var(--space-4);
  }
  .countdown__sep { display: none; }
  .countdown__unit {
    background: rgba(255, 255, 255, 0.55);
    padding: var(--space-2);
    border-radius: var(--r-sm);
    min-width: 0;
  }
  .countdown__num { font-size: 2rem; }
  .countdown__label { font-size: 0.62rem; }

  /* ── Donation ticker ── */
  .ticker { padding: var(--space-5) 0; }
  .ticker__inner { flex-direction: column; text-align: center; gap: var(--space-4); padding: 0 var(--space-4); }
  .ticker__amount { font-size: 2.5rem; }
  .ticker__btn { width: 100%; max-width: 280px; }

  /* ── Event stats grid: 2 col on phones (was auto-fit which can leave orphans) ── */
  .event-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-top: var(--space-5); }
  .event-stat { padding: var(--space-4); }
  .event-stat__value { font-size: 1.1rem; }

  /* ── Sections ── */
  .section { padding: var(--space-7) 0; }
  .container, .container--narrow { padding: 0 var(--space-4); }

  /* ── Play / Sponsor tier cards ── */
  .tier-grid { gap: var(--space-4); margin-top: var(--space-5); }
  .tier-card { padding: var(--space-5); }
  .tier-card__price { font-size: 2.25rem; }
  .tier-card__badge { font-size: 0.62rem; padding: 0.3rem 0.75rem; top: -10px; }

  /* ── Pricing ladder: 1 column stack ── */
  .price-ladder { grid-template-columns: 1fr; gap: var(--space-3); margin: var(--space-5) 0; }
  .price-rung { padding: var(--space-4); }

  /* ── Sponsor wall: 2 col on phones (was auto-fit minmax 150px) ── */
  .sponsor-wall { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .sponsor-wall__item { height: 100px; padding: var(--space-3); }
  .sponsor-wall__item img { max-height: 64px; }

  /* ── Schedule: stack time above event on phones, treat time as a pill chip ── */
  .schedule { padding-left: var(--space-4); border-left-width: 2px; margin-top: var(--space-5); }
  .schedule__item {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding: var(--space-4) 0;
  }
  .schedule__time {
    font-size: 0.78rem;
    color: var(--forest);
    background: var(--cream);
    padding: 0.3rem 0.7rem;
    border-radius: var(--r-pill);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-block;
    width: max-content;
    border: 1px solid rgba(143, 174, 142, 0.4);
  }

  /* ── Afterparty ── */
  .afterparty { padding: var(--space-8) 0; }
  .afterparty__meta { font-size: 0.78rem; gap: var(--space-3); }

  /* ── FAQ ── */
  .faq__q { font-size: 1rem; padding: var(--space-4) 0; }
  .faq__icon { width: 28px; height: 28px; font-size: 0.95rem; }
  .faq__a-inner { padding-right: var(--space-3); font-size: 0.95rem; }

  /* ── Forms: better on mobile ── */
  .form-tabs { font-size: 0.85rem; }
  .form-tab { padding: var(--space-3); font-size: 0.85rem; }
  .form { padding: var(--space-5); }
  .form-row { grid-template-columns: 1fr; gap: var(--space-3); }
  .form-section-title { font-size: 1.1rem; }

  .total-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-4);
  }
  .total-bar__amount { font-size: 2.25rem; }
  .payment-row { flex-direction: column; }
  .payment-row .btn { min-width: 0; width: 100%; }

  /* ── Donation page ── */
  .grand-total { padding: var(--space-6) var(--space-4); }
  .donation-card { padding: var(--space-4); }

  .donate-cta { padding: var(--space-5); }
  .donate-amounts { gap: var(--space-2); }
  .donate-amount { font-size: 0.95rem; padding: 0.7rem 1.1rem; }
  .donate-custom { width: 100%; max-width: 200px; }

  /* ── Sponsor tier detail page ── */
  .tier-detail { padding: var(--space-5); }
  .tier-detail__header { flex-direction: column; }
  .tier-detail__price { text-align: left; }
  .tier-detail__feature-grid { grid-template-columns: 1fr; gap: 0; }

  /* ── Footer ── */
  .footer { padding: var(--space-7) 0 var(--space-4); }
  .footer__top { grid-template-columns: 1fr; gap: var(--space-5); padding-bottom: var(--space-5); }
  .footer__brand img { height: 60px; }
  .footer__bottom { flex-direction: column; gap: var(--space-2); text-align: center; }
  .footer__memorial { font-size: 0.88rem; padding: var(--space-4); }
}

/* === Mobile nav: full-screen drawer overlay === */
@media (max-width: 900px) {
  .nav__brand img { height: 38px; }
  .nav__brand span { display: none; }
  .nav__toggle {
    width: 48px;
    height: 48px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    transition: background .15s ease;
  }
  .nav__toggle:active,
  .nav__toggle:hover { background: rgba(31, 64, 41, 0.08); }
  .nav.open .nav__toggle { background: rgba(31, 64, 41, 0.12); }

  .nav__links { display: none; }
  .nav.open .nav__links {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    background: var(--paper);
    padding: var(--space-5) var(--space-5) calc(var(--space-7) + env(safe-area-inset-bottom));
    gap: 0;
    border-top: 1px solid var(--line);
    z-index: 90;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: navSlideDown 0.25s ease;
  }
  @keyframes navSlideDown {
    from { transform: translateY(-12px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
  .nav.open .nav__links li { border-bottom: 1px solid var(--line); }
  .nav.open .nav__links a {
    font-size: 1.1rem;
    padding: var(--space-4) var(--space-2);
    display: block;
    color: var(--forest);
  }
  .nav.open .nav__links a:hover { background: rgba(143, 174, 142, 0.08); }

  /* (Previously had body.nav-open { overflow: hidden } here — removed because
     if the drawer ever fails to close cleanly, the page stays scroll-locked.
     The drawer is a full-screen overlay anyway, so body scrolling underneath
     it is fine.) */
}

/* === Safe-area insets for iPhone notch + home indicator === */
@supports (padding: max(0px)) {
  .nav__inner {
    padding-left: max(var(--space-5), env(safe-area-inset-left));
    padding-right: max(var(--space-5), env(safe-area-inset-right));
  }
  .footer { padding-bottom: max(var(--space-5), env(safe-area-inset-bottom)); }
  .hero__inner {
    padding-left: max(var(--space-4), env(safe-area-inset-left));
    padding-right: max(var(--space-4), env(safe-area-inset-right));
  }
}

/* === Very small phones (≤380px) — extra tightening === */
@media (max-width: 380px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
  .hero__logo { max-width: 240px; }
  .ticker__amount { font-size: 2.1rem; }
  .grand-total__amount { font-size: 3rem; }
  .countdown__num { font-size: 1.65rem; }
  .donate-amounts { flex-direction: column; align-items: stretch; }
  .donate-amount { width: 100%; }
}
