/* ─────────────────────────────────────────────────────────────────
   Omaha Sports Club — shared site styles ("Retro Varsity")
   Colors, base, nav, buttons, mobile menu and footer for every public
   page. Page-specific styles stay in each page's own <style> block.
   Bump ?v= in the <link> tags after changing this file.
   ───────────────────────────────────────────────────────────────── */

/* ─── Tokens & base ─────────────────────────────────────────────── */
:root {
  --red: #bf1e2e;
  --red-dark: #8c1520;
  --red-light: #e23145;
  --navy: #1a2340;
  --navy-mid: #243054;
  --sky: #4a7fb5;
  --cream: #f8f4ed;
  --cream-dark: #ede8de;
  --tan: #c9b99a;
  --ink: #1a1a1a;
  --ink-mid: #3a3a3a;
  --ink-light: #6e6e6e;
  --rule: rgba(26,35,64,.12);
  --radius: 5px;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Lora', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Nav ───────────────────────────────────────────────────────── */
.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav::before {
  content: '';
  display: block;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--red) 0px, var(--red) 40px, transparent 40px, transparent 44px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.logo-wordmark {
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: white;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}
.logo-wordmark small {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--tan);
  text-transform: uppercase;
}
/* Admin → Site Settings → "show the logo in its own colors" */
.nav-logo-img.logo-as-is, .footer-logo-img.logo-as-is { filter: none; opacity: 1; }

/* Announcement banner (admin → Site Settings), right under the menu */
.site-banner { background: var(--tan); color: var(--navy); }
.site-banner-alert { background: var(--red); color: white; }
.site-banner-inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.site-banner p { flex: 1; margin: 0; font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.45; text-align: center; }
.site-banner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.site-banner-close {
  flex-shrink: 0; background: none; border: 0; color: inherit; font-size: 24px; line-height: 1;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; opacity: .7;
}
.site-banner-close:hover, .site-banner-close:focus-visible { opacity: 1; background: rgba(0,0,0,.08); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}
.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  padding: 8px 14px;
  transition: color .2s;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover { color: white; }
.nav-links a.active { color: white; border-bottom-color: var(--red); }
.nav-actions { display: flex; gap: 8px; white-space: nowrap; }

/* "Members" drop-down (members-only pages) */
.nav-drop { position: relative; }
.nav-drop-btn {
  font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65);
  background: none; border: none; border-bottom: 3px solid transparent;
  padding: 8px 14px; cursor: pointer; transition: color .2s;
}
.nav-drop-btn span { font-size: 10px; margin-left: 2px; }
.nav-drop-btn:hover, .nav-drop.open .nav-drop-btn { color: white; }
.nav-drop-btn.active { color: white; border-bottom-color: var(--red); }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 210px;
  list-style: none; background: var(--navy-mid); padding: 6px 0;
  border-top: 3px solid var(--red); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 28px rgba(0,0,0,.3);
}
.nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 10px 18px; border-bottom: none; white-space: nowrap; }
.nav-drop-menu a:hover { background: rgba(255,255,255,.06); }
.nav-drop-menu a.active { border-bottom: none; color: white; box-shadow: inset 3px 0 0 var(--red); }

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn:disabled { opacity: .6; cursor: default; }
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: var(--red-light); }
.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-outline:hover { border-color: white; }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-mid); }

/* ─── Mobile menu ───────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-shrink: 0;           /* the logo gives way first on narrow phones */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
}
.mobile-nav { display: none; background: var(--navy-mid); }
/* The menu sits in the sticky header, so a menu taller than the phone's
   screen must scroll by itself (70px = 4px stripe + 66px bar) instead of
   the page behind it */
.mobile-nav.open {
  display: block;
  max-height: calc(100vh - 70px);
  max-height: calc(100dvh - 70px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
html.menu-open, html.menu-open body { overflow: hidden; }
.mobile-nav a {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: white;
  padding: 13px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav a:hover { background: rgba(255,255,255,.05); }
.mobile-nav-label {
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.4);
  padding: 14px 24px 4px; border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-nav-members a { padding-left: 36px; }
/* Activities: two columns so all eight fit in four short rows */
.mobile-nav-sports {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 0 12px 6px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav .mobile-nav-sports a {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; padding: 9px 12px; border-bottom: none; border-radius: 4px;
}
.mobile-nav .mobile-nav-sports a.active { background: rgba(255,255,255,.1); }
.mobile-nav-sports span { font-size: 16px; }
.mobile-nav-cta {
  padding: 14px 20px;
  display: flex;
  gap: 10px;
}
.mobile-nav-cta .btn { flex: 1; justify-content: center; }

/* ─── Footer (markup comes from assets/footer.js) ───────────────── */
.footer { background: var(--ink); padding: 52px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo-img {
  height: 54px;
  width: auto;
  display: block;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: .8;
}
.footer-brand p {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  max-width: 260px;
}
.footer-contact { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.footer-contact a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.65); overflow-wrap: anywhere; transition: color .2s;
}
.footer-contact a:hover { color: white; }
.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  padding: 5px 0;
  transition: color .2s;
  cursor: pointer;
}
.footer-col ul li:hover { color: white; }
.footer-col ul li a { color: inherit; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,.25);
}
.footer-bottom a {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  transition: color .2s;
}
.footer-bottom a:hover { color: white; }

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  /* Below this the full nav no longer fits on one line */
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 420px) {
  /* Small phones (375px and under): a smaller logo so the menu button fits */
  .nav-inner { gap: 12px; }
  .nav-logo { gap: 10px; min-width: 0; }
  .nav-logo-img { height: 40px; }
  .logo-wordmark { font-size: 16px; letter-spacing: .06em; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
