/* ═══════════════════════════════════════════════════════════════
   Summit Volleyball — app.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: #111827;
  line-height: 1.6;
  font-size: 15px;
}
img   { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Design tokens ── */
:root {
  --navy:      #1a3a5c;
  --navy-dark: #122840;
  --navy-lt:   #e8f0f8;
  --white:     #ffffff;
  --off-white: #f8f9fb;
  --surface:   #f2f4f7;
  --border:    #dde2ea;
  --text:      #111827;
  --muted:     #6b7280;
  --light:     #9ca3af;
  --green-bg:  #ecfdf5;
  --green-txt: #065f46;
  --red-bg:    #fef2f2;
  --red-txt:   #b91c1c;
  --radius:    10px;
  --radius-lg: 14px;
}

/* ════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logomark {
  width: 38px;
  height: 38px;
  background: var(--navy);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-brand {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.nav-brand em {
  font-style: normal;
  color: var(--navy);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-link {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }
.btn-nav {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-block;
}
.btn-nav:hover { background: var(--navy-dark); }

/* ════════════════════════════════════════════
   FLASH MESSAGES
   ════════════════════════════════════════════ */
.flash {
  padding: 14px 40px;
  font-size: 14px;
  font-weight: 500;
}
.flash-error {
  background: var(--red-bg);
  color: var(--red-txt);
  border-bottom: 1px solid #fecaca;
}
.flash-error p { margin-bottom: 4px; }
.flash-error p:last-child { margin-bottom: 0; }

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.hero {
  background: linear-gradient(160deg, #f0f5fb 0%, #ffffff 60%);
  padding: 96px 40px 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--navy-lt);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid #c4d8ed;
  letter-spacing: 0.2px;
}
.hero h1 {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -1.2px;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto 20px;
}
.hero h1 span { color: var(--navy); }
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn-primary {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary:hover { background: var(--navy-dark); }
.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: #b0bec9;
  background: var(--off-white);
}

/* ════════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.stat {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: 32px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.8px;
}
.stat-lbl {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

/* ════════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════════ */
.section {
  padding: 72px 40px;
}
.section.alt {
  background: var(--off-white);
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.section h2 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ════════════════════════════════════════════
   PROGRAMS GRID
   ════════════════════════════════════════════ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.prog-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s;
  position: relative;
  user-select: none;
  outline: none;
}
.prog-card:hover {
  border-color: #b0c4d8;
  transform: translateY(-2px);
}
.prog-card:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.prog-card.selected {
  border-color: var(--navy);
  border-width: 2px;
}
.prog-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.prog-card.selected .prog-check { opacity: 1; }
.prog-icon {
  width: 44px;
  height: 44px;
  background: var(--navy-lt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.prog-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}
.prog-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ════════════════════════════════════════════
   FEATURES GRID
   ════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.feat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.feat-icon {
  width: 42px;
  height: 42px;
  background: var(--navy-lt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feat-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.feat-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ════════════════════════════════════════════
   FORM SECTION
   ════════════════════════════════════════════ */
.form-section {
  background: var(--surface);
  padding: 72px 40px;
  border-top: 1px solid var(--border);
}
.form-section-header {
  text-align: center;
  margin-bottom: 40px;
}
.form-section-header h2 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.form-section-header p {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}

/* ── Form elements ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.form-field { margin-bottom: 18px; }
.form-lbl {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-lbl .opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy);
}
textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}
fieldset {
  border: none;
  padding: 0;
}
legend.form-lbl { float: left; width: 100%; margin-bottom: 8px; }

/* ── Role buttons ── */
.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 2px;
  clear: both;
}
.role-btn {
  padding: 10px 6px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.role-btn:hover {
  border-color: #b0c4d8;
  color: var(--text);
}
.role-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.role-btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ── Interest tags ── */
.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  clear: both;
}
.i-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
  color: var(--text);
  user-select: none;
  outline: none;
}
.i-tag:hover {
  border-color: #b0c4d8;
  background: var(--off-white);
}
.i-tag.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.i-tag.active svg { stroke: #fff; }
.i-tag:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ── Privacy note ── */
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 18px 0;
}
.privacy-note svg { flex-shrink: 0; margin-top: 1px; }
.privacy-note p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Submit button ── */
.submit-btn {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 15px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}
.submit-btn:hover { background: var(--navy-dark); }
.submit-btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* ════════════════════════════════════════════
   COMMUNITY CTA BANNER
   ════════════════════════════════════════════ */
.cta-banner {
  background: var(--navy);
  color: #fff;
  padding: 64px 40px;
  text-align: center;
}
.cta-banner h2 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 16px;
  opacity: 0.7;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.btn-white {
  background: #fff;
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-white:hover { opacity: 0.9; }

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
footer {
  padding: 28px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-left {
  font-size: 13px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

/* ════════════════════════════════════════════
   THANK YOU PAGE
   ════════════════════════════════════════════ */
.thank-you-page {
  min-height: calc(100vh - 64px - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: var(--off-white);
}
.ty-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}
.ty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.ty-card h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  color: var(--text);
}
.ty-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 8px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.ty-sub {
  font-weight: 500;
  color: var(--text) !important;
  margin-bottom: 28px !important;
}
.ty-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--muted);
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-right .nav-link { display: none; }

  .hero { padding: 64px 20px 56px; }
  .hero h1 { font-size: 36px; letter-spacing: -0.5px; }
  .hero-sub { font-size: 16px; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 1px solid var(--border); }

  .section { padding: 52px 20px; }
  .section h2 { font-size: 26px; }

  .form-section { padding: 52px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px 20px; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-banner { padding: 52px 20px; }
  .cta-banner h2 { font-size: 22px; }

  footer { padding: 24px 20px; }

  .thank-you-page { padding: 40px 20px; }
  .ty-card { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
