/* Enid Soccer Club — Modern Athletic Design System
   Colors derived from ESC theme (#e83630, #c61b1b, #e85c58, #262528, #ebeaea, #747474)
   and official ESC crest (black, crimson red, white, wheat gold #f5b81d). */

:root {
  --ink-950: #111113;
  --ink-900: #1a191c;
  --ink-850: #212024;
  --ink-800: #262528;
  --ink-700: #35343a;
  --red-700: #a81414;
  --red-600: #c61b1b;
  --red-500: #e83630;
  --red-400: #e85c58;
  --red-100: #fde8e7;
  --red-50: #fff5f5;
  --gold-500: #f5b81d;
  --gold-400: #fbcf54;
  --gold-100: #fef6dc;
  --white: #ffffff;
  --surface-50: #fafafa;
  --surface-100: #f4f3f3;
  --surface-200: #ebeaea;
  --slate-800: #262528;
  --slate-700: #3d3c42;
  --slate-600: #595860;
  --slate-500: #747474;
  --border-light: #e5e4e6;
  --border-dark: rgba(255, 255, 255, 0.11);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 6px rgba(17, 17, 19, 0.05), 0 1px 2px rgba(17, 17, 19, 0.04);
  --shadow-md: 0 16px 34px -14px rgba(17, 17, 19, 0.16);
  --shadow-lg: 0 28px 60px -18px rgba(0, 0, 0, 0.55);
  --font-display: "Barlow Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  margin-top: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--red-500);
  color: var(--white);
  padding: 0.65rem 1rem;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.inline-link {
  color: var(--red-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--red-500);
}

.section-dark .inline-link {
  color: var(--red-400);
}

.section-dark .inline-link:hover {
  color: var(--white);
}

.mono {
  font-family: var(--font-mono);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(17, 17, 19, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--white);
  flex-shrink: 0;
}

.brand-logo {
  width: 42px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-top: 0.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link,
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.46rem 0.88rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-dropdown-trigger:hover,
.nav-dropdown.is-open .nav-dropdown-trigger {
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.nav-link.is-active,
.nav-dropdown-trigger.is-active {
  color: var(--white);
  background: var(--red-500);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger svg {
  transition: transform 0.16s ease;
}

.nav-dropdown.is-open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  padding: 0.45rem;
  border-radius: var(--radius-md);
  background: var(--ink-900);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 70;
}

.nav-dropdown-menu[hidden] {
  display: none;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.58rem 0.78rem;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.is-active {
  background: rgba(232, 54, 48, 0.18);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
}

.mobile-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--ink-900);
  padding: 1rem 0 1.4rem;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.75rem 0.5rem 0.25rem;
}

.mobile-nav-inner a:not(.btn) {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  padding: 0.58rem 0.65rem;
  border-radius: 8px;
}

.mobile-nav-inner a:not(.btn):hover,
.mobile-nav-inner a:not(.btn).is-active {
  background: rgba(232, 54, 48, 0.18);
  color: var(--white);
}

.mobile-nav-inner .btn {
  margin-top: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.74rem 1.32rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  padding: 0.52rem 1.02rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.88rem 1.55rem;
  font-size: 1.08rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--red-500);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(232, 54, 48, 0.72);
}

.btn-primary:hover {
  background: var(--red-600);
  box-shadow: 0 14px 28px -10px rgba(198, 27, 27, 0.8);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.36);
}

.btn-outline {
  background: var(--white);
  color: var(--ink-800);
  border-color: var(--border-light);
}

.btn-outline:hover {
  border-color: var(--red-500);
  color: var(--red-600);
  background: var(--red-50);
}

.btn-dark {
  background: var(--ink-800);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--ink-950);
}

.btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-red {
  background: var(--red-100);
  color: var(--red-700);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.badge-gold {
  background: var(--gold-100);
  color: #855800;
}

.badge-closed {
  background: rgba(232, 54, 48, 0.14);
  color: var(--red-400);
  border: 1px solid rgba(232, 54, 48, 0.32);
}

.badge-open {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-muted {
  background: var(--surface-200);
  color: var(--slate-600);
}

/* Sections */
.section {
  padding: 4.75rem 0;
}

.section-light {
  background: var(--white);
}

.section-tinted {
  background: var(--surface-100);
}

.section-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 15%, rgba(232, 54, 48, 0.14), transparent 70%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
  color: var(--white);
}

.section-dark .container {
  position: relative;
  z-index: 1;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header-left {
  margin-left: 0;
  text-align: left;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.section-header-row .section-header {
  margin: 0;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 0.55rem;
}

.section-dark .section-eyebrow {
  color: var(--red-400);
}

.section-header h2 {
  font-size: clamp(1.95rem, 3.4vw, 2.75rem);
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--slate-600);
  font-size: 1.02rem;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.72);
}

/* Homepage Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(56% 70% at 78% 18%, rgba(232, 54, 48, 0.24), transparent 70%),
    radial-gradient(45% 55% at 14% 8%, rgba(245, 184, 29, 0.1), transparent 68%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
  color: var(--white);
  padding: 4.25rem 0 4.75rem;
}

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

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.16;
  filter: saturate(0.75) contrast(1.08);
}

.hero-pitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(232, 54, 48, 0.14);
  border: 1px solid rgba(232, 54, 48, 0.34);
  color: #ffd5d3;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 0 4px rgba(232, 54, 48, 0.25);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.85rem, 5.4vw, 4.4rem);
  line-height: 0.96;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.hero h1 span {
  color: var(--red-500);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-400);
  margin: 0 0 0.85rem;
}

.hero-subtitle {
  margin: 0 0 1.85rem;
  max-width: 540px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-proof {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.45rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.76);
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-proof svg {
  color: var(--gold-400);
  flex-shrink: 0;
}

/* Matchday Quick-Hub Showcase */
.hub-shell {
  background: linear-gradient(180deg, rgba(38, 37, 40, 0.92) 0%, rgba(17, 17, 19, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg), 0 0 46px -14px rgba(232, 54, 48, 0.28);
}

.hub-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.95rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hub-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hub-identity img {
  width: 34px;
  height: 38px;
  object-fit: contain;
}

.hub-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.hub-sub {
  display: block;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.6);
}

.hub-tabs {
  display: inline-flex;
  background: rgba(17, 17, 19, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.2rem;
  gap: 0.2rem;
}

.hub-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.72rem;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hub-tab:hover {
  color: var(--white);
}

.hub-tab.is-active {
  background: var(--red-500);
  color: var(--white);
}

.hub-panel {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hub-panel[hidden] {
  display: none;
}

.hub-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.hub-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.hub-card-head strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hub-card p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.48;
}

.hub-card-actions {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hub-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hub-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.68rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.86rem;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hub-link-item:hover {
  background: rgba(232, 54, 48, 0.16);
  border-color: rgba(232, 54, 48, 0.45);
}

.hub-link-item span small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
}

.hub-foot {
  margin-top: auto;
  padding-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
}

/* Subpage Hero */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 80% at 82% 20%, rgba(232, 54, 48, 0.22), transparent 72%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
  color: var(--white);
  padding: 3.25rem 0 3.5rem;
  border-bottom: 3px solid var(--red-500);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.64);
  margin-bottom: 0.85rem;
}

.breadcrumb a:hover {
  color: var(--white);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.page-hero p {
  margin: 0;
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
}

.page-hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #d5d3d8;
}

.card-dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
}

.program-card {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--red-500);
}

.program-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--red-50);
  color: var(--red-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.program-card h3 {
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.program-card p {
  margin: 0 0 1.25rem;
  color: var(--slate-600);
  font-size: 0.95rem;
}

.program-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
}

/* News Cards */
.news-card h3 {
  font-size: 1.45rem;
  text-transform: uppercase;
  line-height: 1.12;
  margin-bottom: 0.6rem;
}

.news-card p {
  margin: 0 0 1.25rem;
  color: var(--slate-600);
  font-size: 0.94rem;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.news-date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--slate-500);
}

.news-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Complexes & Weather */
.complex-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.complex-card-light {
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--slate-800);
  box-shadow: var(--shadow-sm);
}

.complex-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.complex-head h3 {
  font-size: 1.65rem;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.complex-address {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.76);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.complex-card-light .complex-address {
  color: var(--slate-600);
}

.complex-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--white);
  aspect-ratio: 300 / 232;
}

.complex-card-light .complex-map-wrap {
  border-color: var(--border-light);
}

.complex-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.complex-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
}

.weather-banner {
  margin-top: 2rem;
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius-md);
  background: rgba(232, 54, 48, 0.12);
  border: 1px solid rgba(232, 54, 48, 0.32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.weather-banner h3 {
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.weather-banner p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

.weather-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Mission & Get Involved Split */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  background: var(--ink-900);
}

.media-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.quote-block {
  position: relative;
  padding: 1.5rem 1.65rem;
  border-radius: var(--radius-md);
  background: var(--surface-100);
  border-left: 4px solid var(--red-500);
  margin: 1.25rem 0 1.5rem;
}

.quote-block blockquote {
  margin: 0;
  font-size: 1.04rem;
  color: var(--slate-700);
  line-height: 1.65;
}

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.action-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.action-tile:hover {
  transform: translateY(-2px);
  border-color: var(--red-500);
  box-shadow: var(--shadow-md);
}

.action-tile-left {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.action-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--red-50);
  color: var(--red-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-tile h3 {
  font-size: 1.28rem;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.action-tile p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--slate-600);
}

/* Sponsors */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.sponsor-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sponsor-card:hover {
  transform: translateY(-2px);
  border-color: var(--red-400);
  box-shadow: var(--shadow-md);
}

.sponsor-logo-box {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: var(--white);
  border-radius: 10px;
}

.sponsor-logo-box img {
  max-height: 104px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.sponsor-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-800);
}

.sponsor-cta-bar {
  margin-top: 2rem;
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.sponsor-cta-bar p {
  margin: 0;
  color: var(--slate-600);
}

/* Stay Connected & Forms */
.connect-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2rem;
  background: var(--ink-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.connect-aside h2 {
  font-size: clamp(1.95rem, 3vw, 2.5rem);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.connect-aside p {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.74);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.social-btn:hover {
  background: var(--red-500);
  border-color: var(--red-500);
}

.form-card {
  background: var(--white);
  color: var(--slate-800);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 9px;
  border: 1px solid #d4d2d7;
  background: var(--white);
  color: var(--slate-800);
  font-family: var(--font-body);
  font-size: 0.94rem;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(232, 54, 48, 0.14);
  outline: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  margin-top: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.form-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--slate-500);
  text-align: center;
}

.form-status {
  padding: 0.72rem 0.95rem;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-error {
  background: var(--red-50);
  border: 1px solid rgba(232, 54, 48, 0.35);
  color: var(--red-700);
}

.form-success {
  text-align: center;
  padding: 1.5rem 0.75rem;
}

.form-success[hidden] {
  display: none;
}

.form-success-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.form-success h3 {
  font-size: 1.65rem;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.form-success p {
  margin: 0 0 1.2rem;
  color: var(--slate-600);
  font-size: 0.95rem;
}

/* Schedules Page */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.filter-pill {
  appearance: none;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--slate-700);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.52rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.filter-pill:hover {
  border-color: var(--red-500);
  color: var(--red-600);
}

.filter-pill.is-active {
  background: var(--red-500);
  border-color: var(--red-500);
  color: var(--white);
}

.division-group {
  margin-bottom: 2.5rem;
}

.division-group[hidden] {
  display: none;
}

.division-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.15rem;
  border-bottom: 2px solid var(--border-light);
}

.division-head h2 {
  font-size: 1.75rem;
  text-transform: uppercase;
  margin: 0;
}

.division-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.9rem;
}

.schedule-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 0.94rem;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.schedule-card:hover {
  transform: translateY(-2px);
  border-color: var(--red-500);
  box-shadow: var(--shadow-md);
}

.schedule-card span small {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--slate-500);
}

.notice-banner {
  padding: 1.25rem 1.45rem;
  border-radius: var(--radius-md);
  background: var(--red-50);
  border: 1px solid rgba(232, 54, 48, 0.25);
  color: var(--slate-800);
}

.notice-banner strong {
  color: var(--red-700);
}

/* Leagues Page */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.team-chip {
  padding: 0.95rem 1.1rem;
  border-radius: 11px;
  background: var(--surface-50);
  border: 1px solid var(--border-light);
}

.team-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--slate-800);
}

.team-chip span {
  font-size: 0.84rem;
  color: var(--slate-600);
}

/* Tournaments Page */
.tournament-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.25rem;
  align-items: start;
}

.poster-frame {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: var(--shadow-md);
}

.poster-frame img {
  border-radius: 12px;
  width: 100%;
}

.fee-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--white);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.fee-table th,
.fee-table td {
  padding: 0.85rem 1.05rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.fee-table th {
  background: var(--ink-900);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fee-table tr:last-child td {
  border-bottom: 0;
}

.fee-table td.fee-amount {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--red-600);
}

/* Resources & Documents */
.store-banner {
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-800) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.store-banner h2 {
  font-size: 1.9rem;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.store-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.doc-row:hover {
  transform: translateY(-2px);
  border-color: var(--red-500);
  box-shadow: var(--shadow-md);
}

.doc-row-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.doc-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.32rem 0.55rem;
  border-radius: 7px;
  background: var(--red-50);
  color: var(--red-700);
  border: 1px solid rgba(232, 54, 48, 0.22);
  flex-shrink: 0;
}

.doc-badge.ext {
  background: var(--surface-100);
  color: var(--slate-700);
  border-color: var(--border-light);
}

.doc-title {
  display: block;
  font-weight: 600;
  color: var(--slate-800);
}

.doc-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--slate-500);
}

/* Contact & Board Directory */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border-light);
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--red-50);
  color: var(--red-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
}

.info-item p,
.info-item a {
  margin: 0.1rem 0 0;
  font-size: 0.92rem;
  color: var(--slate-600);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.person-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.person-role {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red-600);
  margin-bottom: 0.35rem;
}

.person-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.person-email {
  font-size: 0.86rem;
  color: var(--slate-600);
  word-break: break-word;
}

.person-email:hover {
  color: var(--red-600);
  text-decoration: underline;
}

/* Mission Pillars */
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red-600);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.76);
  border-top: 3px solid var(--red-500);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr 1.1fr;
  gap: 2.25rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  margin: 0.9rem 0 1.2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 310px;
}

.footer-col h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 0.95rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--red-400);
}

.footer-social {
  display: flex;
  gap: 0.55rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.footer-social a:hover {
  background: var(--red-500);
  border-color: var(--red-500);
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.56);
}

/* Responsive */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-layout,
  .split-layout,
  .connect-shell,
  .tournament-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .sponsor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 3.25rem 0 3.75rem;
  }

  .grid-2,
  .grid-3,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .connect-shell {
    padding: 1.5rem;
  }
}

@media (max-width: 520px) {
  .header-actions .btn {
    display: none;
  }

  .grid-4,
  .sponsor-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hub-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
