:root {
  --bg: #020617;
  --bg-soft: #020617;
  --accent: #60a5fa;
  --accent-soft: rgba(96, 165, 250, 0.12);
  --card-bg: #020617;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.45);
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.7);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --transition-fast: 160ms ease-out;
  --logo-url: url("https://bmofhaverstraw.org/bmh-logo.png");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #020617; /* solid base so it never looks washed out */
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(15, 23, 42, 0.96)),
    radial-gradient(circle at top left, #0b1120 0, transparent 55%),
    radial-gradient(circle at bottom right, #020617 0, transparent 55%),
    var(--logo-url);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: cover, 120% 120%, 120% 120%, cover;
  background-position: center top, top left, bottom right, center top;
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 0;
}

/* NAVBAR */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(0, 0, 0, 0.96);
  border-bottom: 1px solid #111827;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  padding: 4px;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text-main {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 14px;
  text-transform: uppercase;
  color: #f9fafb;
}

.brand-text-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 10px;
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: #e5e7eb;
  text-decoration: none;
  padding: 7px 20px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-weight: 600;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--accent);
  color: #020617;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 10px 24px rgba(37, 99, 235, 0.75);
  transform: translateY(-1px);
}

.nav-links a.active {
  background: var(--accent);
  color: #020617;
  border-color: var(--accent);
}

main {
  position: relative;
  z-index: 1;
}

/* HERO */

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 18px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 26px;
    gap: 24px;
  }
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 6vw, 44px);
  letter-spacing: 0.03em;
  color: var(--accent);
}

.hero-tagline {
  font-size: 16px;
  color: #e5e7eb;
  max-width: 520px;
}

.hero-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.pill {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
  max-width: 100%;
  white-space: normal;
}

.pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #bbf7d0 0, #22c55e 40%, #14532d 100%);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.85);
  flex-shrink: 0;
}

.hero-card {
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.25) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.2) 0, transparent 60%),
    #020617;
  padding: 20px 18px 16px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  background-image: var(--logo-url);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.06;
  pointer-events: none;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
}

.hero-card-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 8px;
}

.hero-card-time {
  font-size: 30px;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 6px;
  word-break: break-word;
}

.hero-card-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.hero-mini {
  border-radius: 14px;
  padding: 9px 10px;
  background: #020617;
  border: 1px solid #374151;
  font-size: 12px;
}

.hero-mini-label {
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 500;
}

.hero-mini-value {
  font-weight: 600;
  color: #f9fafb;
}

/* SECTIONS / CARDS */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 18px 28px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #e5e7eb;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  border-radius: var(--radius-lg);
  padding: 14px 14px 12px;
  background: #020617;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.18) 0, transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
  border-color: rgba(96, 165, 250, 0.9);
  background: #020617;
}

.card:hover::before {
  opacity: 1;
}

.card-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
}

.card-main {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #f9fafb;
}

.card-times {
  font-size: 14px;
  line-height: 1.5;
  color: #e5e7eb;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  background: #020617;
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: var(--text-muted);
}

.chip-accent {
  border-color: rgba(96, 165, 250, 0.95);
  background: var(--accent-soft);
  color: #e0f2fe;
  font-weight: 500;
}

.small-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.dynamic-time {
  font-weight: 700;
  color: var(--accent);
}

footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 18px 26px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  border-top: 1px solid #111827;
  margin-top: 12px;
}

.footer-right a {
  color: var(--accent);
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* Extra mobile tweaks */

@media (max-width: 640px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1 1 auto;
    text-align: center;
    padding: 6px 10px;
    font-size: 13px;
  }

  .hero {
    padding: 22px 14px 14px;
  }

  .section {
    padding: 4px 14px 22px;
  }

  .hero-tagline {
    font-size: 14px;
  }

  .card-main {
    font-size: 15px;
  }

  .card-times {
    font-size: 13px;
  }

  footer {
    padding-inline: 14px;
  }
}
