/* ============================================================
   Design tokens — Southern West Virginia Volleyball Club
   Palette and type pulled directly from the club's own shield
   logo (ink/court red/whistle gold) rather than Bootstrap defaults.
   ============================================================ */

@font-face {
  font-family: 'Oswald';
  src: url('/lib/fonts/oswald/oswald-latin-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/lib/fonts/inter/inter-latin-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-ink: #1a1a1a;
  --color-court-red: #c81e2c;
  --color-court-red-dark: #96141f;
  --color-floor: #faf6ef;
  --color-steel: #52565c;
  --color-whistle: #e8a400;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Re-point Bootstrap's own variables at the club palette so every
     component built from them (buttons, badges, links, form focus
     rings) picks it up without needing a class-by-class override. */
  --bs-primary: var(--color-court-red);
  --bs-primary-rgb: 200, 30, 44;
  --bs-body-bg: var(--color-floor);
  --bs-body-color: var(--color-ink);
  --bs-body-font-family: var(--font-body);
  --bs-link-color: var(--color-court-red);
  --bs-link-color-rgb: 200, 30, 44;
  --bs-link-hover-color: var(--color-court-red-dark);
  --bs-link-hover-color-rgb: 150, 20, 31;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--color-court-red);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

.btn {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================================
   Navbar
   ============================================================ */

.site-navbar {
  border-bottom: 3px solid var(--color-court-red);
  box-shadow: none;
}

.site-navbar .nav-link {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--color-ink);
  border-bottom: 2px solid transparent;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--color-court-red);
  border-bottom-color: var(--color-court-red);
}

/* ============================================================
   Small layout utility classes used in place of inline style=""
   attributes, so the Content-Security-Policy style-src directive
   doesn't need 'unsafe-inline'.
   ============================================================ */
.field-max-150 { max-width: 150px; }
.field-max-200 { max-width: 200px; }
.field-max-220 { max-width: 220px; }
.select-width-auto { width: auto; }
.thumb-40 { height: 40px; }
.thumb-80 { height: 80px; }
.sponsor-logo { max-height: 80px; max-width: 100%; object-fit: contain; }

.brand-logo {
  height: 40px;
  width: auto;
}

.navbar-brand span {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

@media (max-width: 575.98px) {
  .navbar-brand span {
    font-size: 0.9rem;
  }
}

/* ============================================================
   Hero — full-bleed dark band under the navbar. The two angled
   streaks echo the red lightning-bolt motif under the "VOLLEYBALL"
   banner in the club shield; this is the one signature device,
   reused again on the scoreboard divider below.
   ============================================================ */

.hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -1rem;
  margin-bottom: 3rem;
  background: var(--color-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1rem 4.5rem;
}

.hero-streaks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-streaks::before,
.hero-streaks::after {
  content: "";
  position: absolute;
  left: -10%;
  width: 130%;
  background: var(--color-court-red);
  transform: rotate(-5deg);
}

.hero-streaks::before {
  top: 28%;
  height: 8px;
  opacity: 0.95;
}

.hero-streaks::after {
  top: 52%;
  height: 4px;
  opacity: 0.5;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-whistle);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.hero h1 {
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}

.hero .lead {
  color: #d9d9d9;
  max-width: 640px;
  margin-bottom: 0;
}

.hero .lead :last-child {
  margin-bottom: 0;
}

/* ============================================================
   Scoreboard — season stat row. Floats up over the hero's bottom
   edge, like a scoreboard mounted on the gym wall.
   ============================================================ */

.scoreboard {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 2;
  margin-top: -3rem;
  margin-bottom: 2rem;
}

.scoreboard .stat {
  flex: 1 1 50%;
  padding: 1.1rem 1.5rem;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .scoreboard .stat {
    flex: 1 1 0;
    border-bottom: none;
  }
}

.scoreboard .stat:last-child {
  border-right: none;
  border-bottom: none;
}

.scoreboard .stat-label {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--color-steel);
  margin-bottom: 0.2rem;
}

.scoreboard .stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-ink);
}

.scoreboard-cta {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: var(--color-floor);
}

@media (min-width: 768px) {
  .scoreboard-cta {
    flex: 0 0 auto;
  }
}
