/* 509 Fun — Ellensburg Batting Cages */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --font-display: 'Tanker', 'Impact', sans-serif;
  --font-body: 'General Sans', 'Segoe UI', system-ui, sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --content: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root, [data-theme='light'] {
  --navy: #13254a;
  --navy-2: #1c3363;
  --red: #c4122f;
  --red-hover: #a20e26;
  --color-bg: #f7f4ee;
  --color-surface: #ffffff;
  --color-surface-2: #efebe3;
  --color-border: #ddd6ca;
  --color-text: #17203a;
  --color-text-muted: #5a6075;
  --color-accent: var(--red);
  --color-on-accent: #ffffff;
  --color-band: var(--navy);
  --color-on-band: #f7f4ee;
  --color-on-band-muted: #c6cde0;
  --shadow: 0 1px 2px rgba(19, 37, 74, 0.06), 0 8px 24px rgba(19, 37, 74, 0.08);
}

[data-theme='dark'] {
  --navy: #0d1a36;
  --navy-2: #16274d;
  --red: #e0384f;
  --red-hover: #f0566b;
  --color-bg: #0b1428;
  --color-surface: #121e3a;
  --color-surface-2: #172548;
  --color-border: #263661;
  --color-text: #e9ecf4;
  --color-text-muted: #a3acc4;
  --color-accent: var(--red);
  --color-on-accent: #ffffff;
  --color-band: #071022;
  --color-on-band: #f2f0ea;
  --color-on-band-muted: #a9b2c9;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --navy: #0d1a36; --navy-2: #16274d; --red: #e0384f; --red-hover: #f0566b;
    --color-bg: #0b1428; --color-surface: #121e3a; --color-surface-2: #172548;
    --color-border: #263661; --color-text: #e9ecf4; --color-text-muted: #a3acc4;
    --color-band: #071022; --color-on-band: #f2f0ea; --color-on-band-muted: #a9b2c9;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h3, strong, b, summary { font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--red); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius);
}
.skip-link:focus { top: var(--space-4); }

.wrap { width: min(100% - 2 * var(--space-6), var(--content)); margin-inline: auto; }
.section { padding-block: clamp(var(--space-12), 8vw, var(--space-24)); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--navy) 94%, transparent);
  backdrop-filter: blur(10px);
  color: #f7f4ee;
  border-bottom: 3px solid var(--red);
}
.header-inner { display: flex; align-items: center; gap: var(--space-6); min-height: 68px; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand img { width: 84px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.02em; }
.brand-sub { font-size: var(--text-xs); color: #c6cde0; letter-spacing: 0.04em; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: var(--space-5); list-style: none; }
.nav a { font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: #e4e8f2; padding-block: var(--space-2); }
.nav a:hover { color: #fff; box-shadow: inset 0 -2px 0 var(--red); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  background: transparent; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
  color: #fff; cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,0.08); }
.menu-btn { display: none; }
.nav-book { display: none; }
.brand + .header-actions { margin-left: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font: 600 var(--text-sm)/1 var(--font-body);
  letter-spacing: 0.02em;
  padding: 0.85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 180ms var(--ease), transform 180ms var(--ease), color 180ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-ghost-dark { border-color: var(--color-text); color: var(--color-text); background: transparent; }
.btn-ghost-dark:hover { background: var(--color-surface-2); }
.btn-sm { padding: 0.7em 1.1em; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,0.035) 46px 48px),
    radial-gradient(ellipse at 80% 40%, var(--navy-2), var(--navy) 65%);
  color: #f7f4ee;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: var(--space-12);
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  min-height: min(78vh, 720px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red);
}
.hero .eyebrow { color: #ff8a9a; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-3xl); letter-spacing: 0.01em; line-height: 0.98;
  margin-block: var(--space-4) var(--space-6);
}
.hero h1 .accent { color: #ff5a70; }
.hero-lede { font-size: var(--text-lg); color: #d5dbea; max-width: 34ch; line-height: 1.45; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-badge { justify-self: center; width: min(100%, 520px); filter: drop-shadow(0 18px 40px rgba(0,0,0,0.35)); }

.facts { background: var(--red); color: #fff; }
.facts ul {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4); padding-block: var(--space-5);
}
.facts li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); font-weight: 600; }
.facts svg { flex: none; }

/* Section headings */
.section-head { max-width: 62ch; margin-bottom: var(--space-10); }
.section-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-2xl); letter-spacing: 0.01em; margin-top: var(--space-3);
}
.section-head p { margin-top: var(--space-4); color: var(--color-text-muted); }
.stitch { height: 0; border: 0; border-top: 2px dashed var(--red); opacity: 0.55; margin: 0; }

/* Membership */
.member-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-10); align-items: start; }
.price-card {
  background: var(--navy); color: #f7f4ee; border-radius: var(--radius-lg);
  padding: var(--space-8); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.price-card::after {
  content: ''; position: absolute; inset: var(--space-3); border: 2px dashed rgba(255,90,112,0.55);
  border-radius: calc(var(--radius-lg) - 6px); pointer-events: none;
}
.price-card .label { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: #c6cde0; font-weight: 600; }
.price { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1; margin-block: var(--space-3) var(--space-1); }
.price small { font-family: var(--font-body); font-size: var(--text-base); font-weight: 500; color: #c6cde0; }
.price-note { font-size: var(--text-sm); color: #c6cde0; margin-bottom: var(--space-6); }
.price-card .btn { position: relative; z-index: 1; width: 100%; }
.check-list { list-style: none; display: grid; gap: var(--space-3); }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); align-items: start; }
.check-list svg { margin-top: 3px; color: var(--red); }
.included h3 { font-size: var(--text-lg); margin-bottom: var(--space-5); }
.included .check-list li { padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border); }
.included .fine { margin-top: var(--space-5); font-size: var(--text-sm); color: var(--color-text-muted); }

/* Steps */
.alt { background: var(--color-surface-2); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: step; }
.step {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-6); counter-increment: step;
}
.step::before {
  content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-display); font-size: 1.4rem;
  margin-bottom: var(--space-4); box-shadow: 0 0 0 4px var(--color-surface), 0 0 0 6px var(--red);
}
[data-theme='dark'] .step::before { background: var(--red); }
.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.step p { font-size: var(--text-sm); color: var(--color-text-muted); }
.after-steps { margin-top: var(--space-8); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); justify-content: space-between; }
.after-steps p { color: var(--color-text-muted); }

/* Teams */
.team { background: var(--navy); color: #f7f4ee; }
.team .section-head p { color: #c6cde0; }
.team .eyebrow { color: #ff8a9a; }
.team-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-10); }
.rates { display: grid; gap: var(--space-4); align-content: start; }
.rate {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
  padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
}
.rate span { font-weight: 600; }
.rate strong { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); color: #ff5a70; white-space: nowrap; }
.rate strong small { font-family: var(--font-body); font-size: var(--text-sm); color: #c6cde0; }
.team-note { font-size: var(--text-sm); color: #c6cde0; }
.team-steps { list-style: none; display: grid; gap: var(--space-5); counter-reset: ts; }
.team-steps li { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-4); counter-increment: ts; }
.team-steps li::before {
  content: counter(ts); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #ff5a70; color: #ff5a70; font-family: var(--font-display); font-size: 1.15rem;
}
.team-steps h3 { font-size: var(--text-base); margin-bottom: var(--space-1); }
.team-steps p { font-size: var(--text-sm); color: #c6cde0; }
.team-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-10); }
.team-ctas .btn-outline { color: #fff; }

/* Facility */
.facility-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: var(--space-5); align-items: stretch; }
.photo { border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-2); aspect-ratio: 3 / 4; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.facility-copy { align-self: center; padding-left: var(--space-4); }
.facility-copy h3 { font-size: var(--text-lg); margin-bottom: var(--space-5); }

/* Location */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: stretch; }
.loc-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); display: grid; gap: var(--space-6); align-content: start; }
.loc-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.loc-card address { font-style: normal; font-size: var(--text-lg); font-weight: 600; }
.loc-card p { color: var(--color-text-muted); }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); min-height: 340px; background: var(--color-surface-2); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* Rules */
.rules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.rule-card { background: var(--color-surface); border: 1px solid var(--color-border); border-top: 4px solid var(--red); border-radius: var(--radius); padding: var(--space-6); }
.rule-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-4); }
.rule-card ul { list-style: none; display: grid; gap: var(--space-3); }
.rule-card li { font-size: var(--text-sm); padding-left: var(--space-5); position: relative; }
.rule-card li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
[data-theme='dark'] .rule-card li::before { background: var(--red); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: var(--space-10); align-items: start; }
.faq-grid .section-head { position: sticky; top: 100px; margin-bottom: 0; }
.faq-list { display: grid; gap: var(--space-3); }
.faq-list details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: var(--space-5) var(--space-6);
  font-weight: 600; display: flex; justify-content: space-between; gap: var(--space-4); align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-surface-2); color: var(--red); font-size: 1.25rem; font-weight: 600; transition: transform 200ms var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 var(--space-6) var(--space-6); color: var(--color-text-muted); display: grid; gap: var(--space-3); }
.faq-list .answer a { color: var(--red); font-weight: 600; text-underline-offset: 3px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-10); }
.contact-info { display: grid; gap: var(--space-5); align-content: start; }
.contact-info a { color: var(--red); font-weight: 600; }
.form { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); display: grid; gap: var(--space-5); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field input, .field textarea {
  font: inherit; font-size: var(--text-base); color: var(--color-text);
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: var(--space-3) var(--space-4); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: var(--text-sm); min-height: 1.4em; }
.form-status.ok { color: #1d7a45; }
.form-status.err { color: var(--red); }
[data-theme='dark'] .form-status.ok { color: #5fd38d; }
.form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--color-band); color: var(--color-on-band); padding-block: var(--space-12) var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: var(--space-8); }
.footer-grid h3 { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-on-band-muted); margin-bottom: var(--space-3); }
.footer-grid p, .footer-grid a, .footer-grid address { font-size: var(--text-sm); font-style: normal; color: var(--color-on-band); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid ul { list-style: none; display: grid; gap: var(--space-2); }
.footer-logo { width: 170px; margin-bottom: var(--space-3); }
.copyright { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,0.12); font-size: var(--text-xs); color: var(--color-on-band-muted); }

/* Privacy page */
.legal { max-width: 72ch; }
.legal h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.legal h2 { font-size: var(--text-lg); margin-top: var(--space-10); margin-bottom: var(--space-3); }
.legal p, .legal li { color: var(--color-text-muted); }
.legal p + p { margin-top: var(--space-3); }
.legal ul { padding-left: var(--space-6); display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.legal .meta { font-size: var(--text-sm); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .steps, .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facility-grid { grid-template-columns: 1fr 1fr; }
  .facility-copy { grid-column: 1 / -1; padding-left: 0; }
}
@media (max-width: 920px) {
  .menu-btn { display: inline-grid; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); border-bottom: 3px solid var(--red); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: var(--space-2) var(--space-6) var(--space-5); }
  .nav a { display: block; padding-block: var(--space-3); border-bottom: 1px solid rgba(255,255,255,0.08); }
  .header-actions { margin-left: auto; }
  .hero-inner, .member-grid, .team-grid, .loc-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { min-height: 0; gap: var(--space-8); }
  .hero-badge { order: -1; width: min(70%, 300px); }
  .faq-grid .section-head { position: static; margin-bottom: var(--space-6); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { width: min(100% - 2 * var(--space-4), var(--content)); }
  .header-book { display: none; }
  .nav-book { display: list-item; }
  .nav-book a { color: #ff8a9a; font-weight: 600; }
  .brand img { width: 68px; }
  .steps, .rules-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .facts ul { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .facts li { font-size: var(--text-xs); }
  .facility-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .price-card, .form, .loc-card { padding: var(--space-6); }
  .team-ctas .btn, .hero-ctas .btn { flex: 1 1 100%; }
}

/* v2: How it works merged into Membership */
.steps-title{margin:var(--space-12,3rem) 0 var(--space-6,1.5rem);font-size:1.5rem;scroll-margin-top:90px}
.team-note a{color:inherit;text-decoration:underline;font-weight:600}
