:root {
  --navy: #1B3A7A; --navy-light: #EEF2FA; --navy-mid: #2A4E9E;
  --orange: #E85219; --orange-light: #FEF0EB;
  --cream: #FDFAF6; --warm: #F5F2ED;
  --text: #1A1A2E; --muted: #5A6070; --border: rgba(0,0,0,0.1);
  --green: #2E7D4F; --green-light: #EAF5EE;
  --red: #C0392B; --red-light: #FDECEA;
  --serif: Georgia, serif;
  --sans: system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--cream); color: var(--text); }
a { text-decoration: none; }

/* Nav */
nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 40px; background: white; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active { font-weight: 500; }
.nav-btn { background: var(--orange); color: white; border: none; padding: 9px 20px; font-size: 13px; font-family: var(--sans); cursor: pointer; border-radius: 6px; font-weight: 500; }
.nav-btn:hover { background: #c94515; }
.nav-btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); padding: 9px 20px; font-size: 13px; font-family: var(--sans); cursor: pointer; border-radius: 6px; margin-right: 8px; }

/* Footer */
footer { background: #111827; padding: 28px 40px; display: flex; align-items: center; justify-content: space-between; }
.footer-logo img { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: 0.65; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.28); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.38); text-decoration: none; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 1px solid var(--border); padding: 18px 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; z-index: 99; box-shadow: 0 -4px 24px rgba(0,0,0,0.06); }
.cb-text { flex: 1; }
.cb-title { font-size: 13px; font-weight: 500; color: var(--navy); margin-bottom: 3px; }
.cb-body { font-size: 12px; font-weight: 300; color: var(--muted); }
.cb-body a { color: var(--orange); text-decoration: underline; }
.cb-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cb-accept { padding: 10px 22px; background: var(--navy); color: white; border: none; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border-radius: 4px; }
.cb-accept:hover { background: var(--orange); }
.cb-decline { padding: 10px 22px; background: transparent; color: var(--muted); border: 1px solid var(--border); font-family: var(--sans); font-size: 12px; cursor: pointer; border-radius: 4px; }

/* Buttons */
.btn-primary { background: var(--orange); color: white; border: none; padding: 13px 26px; font-size: 14px; font-family: var(--sans); font-weight: 500; cursor: pointer; border-radius: 8px; }
.btn-primary:hover { background: #c94515; }
.btn-secondary { background: transparent; color: var(--navy); border: 1px solid var(--navy); padding: 13px 26px; font-size: 14px; font-family: var(--sans); cursor: pointer; border-radius: 8px; }
.btn-navy { background: var(--navy); color: white; border: none; padding: 13px 26px; font-size: 14px; font-family: var(--sans); font-weight: 500; cursor: pointer; border-radius: 8px; }
.btn-navy:hover { background: var(--navy-mid); }

/* Utilities */
.section-tag { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; font-weight: 500; }
.section-title { font-family: var(--serif); font-size: 36px; font-weight: 400; color: var(--text); margin-bottom: 8px; line-height: 1.2; }
.section-title em { font-style: italic; }
.section-sub { font-size: 15px; color: var(--muted); font-weight: 300; max-width: 480px; line-height: 1.75; }
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* Mobile */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  footer { flex-direction: column; gap: 14px; padding: 24px 20px; text-align: center; }
  .footer-links { justify-content: center; }
  .cookie-banner { flex-direction: column; padding: 18px 20px; gap: 14px; }
  .cb-actions { width: 100%; }
  .cb-accept, .cb-decline { flex: 1; text-align: center; padding: 12px; }
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {

  /* Nav */
  nav { padding: 12px 16px; }
  .nav-links a, .nav-btn-outline { display: none; }
  .nav-btn { padding: 8px 16px; font-size: 12px; }

  /* General sections */
  section, .how, .events-section, .members-section, .join-band { padding: 40px 16px !important; }

  /* Hero */
  .hero { grid-template-columns: 1fr !important; padding: 36px 16px 44px !important; gap: 0 !important; }
  .hero-right { display: none !important; }
  .hero h1 { font-size: 32px !important; }
  .hero-sub { font-size: 14px !important; }
  .hero-actions { flex-direction: column; }
  .hero-actions button { width: 100%; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }

  /* Steps */
  .steps { grid-template-columns: 1fr !important; }

  /* Events grid */
  .events-grid, .eg { grid-template-columns: 1fr !important; padding: 16px !important; }

  /* Members grid homepage */
  .members-grid { grid-template-columns: repeat(2,1fr) !important; }

  /* Page headers */
  .ph, .page-header, .ev-meta, .event-hero .ev-meta { padding: 28px 16px !important; }
  .ph-title, .ev-title, .etitle { font-size: 28px !important; }
  .efacts { flex-direction: column; gap: 8px !important; }

  /* Content wrap (event detail, register) */
  .cw, .content-wrap, .page-wrap { grid-template-columns: 1fr !important; padding: 20px 16px !important; }

  /* Booking/register sidebar goes below on mobile */
  .bc, .book-card { position: static !important; margin-top: 24px; }

  /* Map */
  .map-wrap { margin-top: 8px; }

  /* Attendees grid */
  .ag { grid-template-columns: repeat(2,1fr) !important; }

  /* Members directory */
  .tb { flex-wrap: wrap; padding: 12px 16px !important; }
  .si { min-width: 100% !important; }
  .mc { display: none; }
  .cts { padding: 0 16px !important; }
  .mg { grid-template-columns: repeat(2,1fr) !important; padding: 16px !important; gap: 12px !important; }

  /* Registration form */
  .fg { grid-template-columns: 1fr !important; }
  .ff.full { grid-column: 1 !important; }
  .sa { flex-direction: column; }
  .sa .sb { width: 100%; text-align: center; }

  /* Admin panel - stack sidebar above content */
  .aw { grid-template-columns: 1fr !important; }
  .sb { display: none; }
  .stats { grid-template-columns: repeat(2,1fr) !important; }
  .qi { grid-template-columns: 40px 1fr !important; }
  .qi-ac { grid-column: 1 / -1; flex-direction: row !important; flex-wrap: wrap; }
  .tw { overflow-x: auto; }

  /* Join band */
  .join-band h2 { font-size: 28px !important; }

  /* Footer */
  footer { flex-direction: column; gap: 12px; padding: 24px 16px !important; text-align: center; }
  .footer-links { justify-content: center; }

  /* Cookie banner */
  .cookie-banner { flex-direction: column; padding: 16px !important; gap: 12px; }
  .cb-actions { width: 100%; }
  .cb-accept, .cb-decline { flex: 1; text-align: center; }

  /* Modals */
  .pm { width: 95vw !important; }
  .pm-ac { flex-direction: column; }
  .success-modal, .sm { padding: 32px 20px !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px !important; }
  .mg, .members-grid { grid-template-columns: 1fr !important; }
  .ag { grid-template-columns: repeat(2,1fr) !important; }
  .stats { grid-template-columns: 1fr 1fr !important; }
  .hero-stats { gap: 12px; }
  .hero-stat-n { font-size: 22px !important; }
}
