/* style.css — Stanway Rovers Women's FC */

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../media/fonts/bebas-neue-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../media/fonts/inter-300.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../media/fonts/inter-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../media/fonts/inter-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../media/fonts/inter-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../media/fonts/inter-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../media/fonts/inter-800.ttf') format('truetype');
}

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

:root {
  --blue: #116dff;
  --yellow: #f8ea2c;
  --dark: #2b2a29;
  --ink: #171615;
  --nav-dark: rgba(43, 42, 41, 1);
  --nav-translucent: rgba(43, 42, 41, 0.38);
  --panel: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.12);
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: white;
  background: var(--dark);
  overflow-x: hidden;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

#mainNav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 56px;
  padding: 0.5rem 2rem;
  background: var(--nav-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.35s, backdrop-filter 0.35s, padding 0.35s, border-color 0.35s;
}

#mainNav.scrolled {
  background: var(--nav-dark);
  padding: 0.45rem 2rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  min-width: 96px;
  transition: opacity 0.25s, transform 0.25s;
}

.nav-logo img {
  height: 76px;
  width: auto;
  display: block;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.22));
  transition: height 0.35s, transform 0.35s;
}

#mainNav.scrolled .nav-logo {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  justify-self: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: white;
  transform: translateY(-1px);
}

.nav-links a.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.mobile-nav-tag {
  display: none;
  color: white;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  white-space: nowrap;
}

@media (min-width: 961px) {
  .mobile-nav-tag {
    display: block;
    position: absolute;
    top: 1.5rem;
    left: max(9rem, calc((100vw - 1120px) / 2));
    font-size: 1.3rem;
  }
}

@media (min-width: 1000px) {
  .mobile-nav-tag {
    font-size: 1.6rem;
  }
}

.mobile-nav-tag span {
  display: block;
  color: var(--yellow);
}

#mainNav.show-mobile-tag .mobile-nav-tag {
  opacity: 1;
  transform: translateY(0);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  grid-column: 3;
  justify-self: end;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: radial-gradient(circle at top, rgba(17, 109, 255, 0.18), transparent 30%), rgba(43, 42, 41, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: clamp(1.1rem, 6vw, 1.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-menu a.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  --hero-safe-top: 116px;
  --hero-safe-bottom: 104px;
  --hero-caption-top: 98px;
  --hero-track-gap: 0.8rem;
  --hero-track-padding: 0.8rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-track {
  display: flex;
  height: 100%;
  gap: var(--hero-track-gap);
  padding: var(--hero-track-padding);
  align-items: center;
  will-change: transform;
  transition: transform 0.75s ease;
}

.hero-frame {
  flex: 0 0 auto;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  opacity: 0.5;
  transform: scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-frame.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-frame img {
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(43, 42, 41, 0.72) 0%, rgba(17, 109, 255, 0.14) 50%, rgba(43, 42, 41, 0.86) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  gap: 0.85rem;
  min-height: 100vh;
  width: min(960px, calc(100% - 2rem));
  padding: calc(var(--hero-safe-top) + 1rem) 1rem var(--hero-safe-bottom);
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}

html.fonts-loaded .hero-title {
  opacity: 1;
}

.hero-title span {
  color: var(--yellow);
}

.hero-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--yellow);
}

.hero-sub::before,
.hero-sub::after {
  content: "";
  width: 48px;
  height: 1px;
  background: rgba(247, 196, 0, 0.62);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), transparent);
}

.content-section {
  padding: 1rem 2rem 4.5rem;
  background: linear-gradient(180deg, #2b2a29 0%, #232220 100%);
}

.content-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro-card {
  width: 100%;
  margin: 0 auto 1rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.intro-label {
  color: var(--yellow);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.intro-heading {
  margin-top: 0.85rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.intro-copy {
  margin-top: 0.95rem;
  font-size: 0.98rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.76);
}

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

.feature-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card.is-plain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 42, 41, 0.08), rgba(43, 42, 41, 0.22));
}

.feature-overlay {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  background: rgba(23, 22, 21, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-kicker {
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.feature-title {
  margin-top: 0.4rem;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.02;
}

.feature-copy {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  line-height: 1.65;
}

.sponsors-section {
  margin-top: 1rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(17, 109, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.sponsors-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.sponsors-kicker {
  color: var(--yellow);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sponsors-title {
  margin-top: 0.55rem;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  line-height: 1.08;
}

.sponsors-copy {
  max-width: 580px;
  font-size: 0.94rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.74);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 1rem;
}

.sponsor-card {
  height: 100%;
  box-sizing: border-box;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sponsor-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.sponsor-card-link:visited {
  color: inherit;
}

.sponsor-card-link .sponsor-card {
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.sponsor-card-link .sponsor-name,
.sponsor-card-link:visited .sponsor-name {
  color: white;
}

.sponsor-card-link .sponsor-tag,
.sponsor-card-link:visited .sponsor-tag {
  color: var(--yellow);
}

.sponsor-card-link .sponsor-link,
.sponsor-card-link:visited .sponsor-link {
  color: white;
}

.sponsor-card-link:hover .sponsor-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.sponsor-card-inner {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  height: 100%;
}

.sponsor-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 104px;
  box-sizing: border-box;
  padding: 14px;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  flex-shrink: 0;
}

.sponsor-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.sponsor-name {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}

.sponsor-tag {
  margin-top: 0.35rem;
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Optional per-sponsor blurb (only set on sponsors with $sponsor['description']
   in sponsors-data.php). Desktop only — see the max-width:960px override
   below — the card is too narrow once it stacks on mobile. */
.sponsor-description {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

.sponsor-copy {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.74);
}

.sponsor-link {
  display: inline-flex;
  margin-top: 1rem;
  color: white;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wuka-partner {
  align-items: center;
  background: rgba(210, 255, 99, 0.06);
  border: 1px solid rgba(210, 255, 99, 0.22);
  border-radius: var(--radius);
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 240px minmax(0, 660px);
  justify-content: center;
  margin: 1rem auto 0;
  max-width: 1120px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  width: 100%;
}

.wuka-partner-link {
  display: block;
}

.wuka-partner-logo {
  display: block;
  height: auto;
  max-width: 100%;
  width: 240px;
}

.wuka-partner-statement {
  color: white;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  max-width: none;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.pill-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.pill-link.primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

footer {
  background: #201f1e;
  color: white;
  padding: 1.2rem 2rem 2.2rem;
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: end;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.8rem;
}

.footer-top > div:first-child {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-self: start;
  text-align: center;
  width: max-content;
}

.footer-logo {
  height: 70px;
  margin-bottom: 1rem;
  margin-inline: auto;
}

.footer-tagline {
  color: white;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.82;
}

.footer-tagline span {
  display: block;
  color: var(--yellow);
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.footer-center a {
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-center a.is-active,
.footer-center a:hover {
  color: white;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.socials a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.socials a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  transform: translateY(-2px);
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.page-socials {
  width: min(1120px, 100%);
  margin: -3.95rem auto 0;
  padding: 1.2rem 2rem;
  background: #232220;
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.page-socials::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #232220;
  z-index: -1;
}

.page-socials .socials {
  justify-content: center;
}

.page-socials .socials a:nth-child(1) {
  background: #1877f2;
  border-color: #1877f2;
}

.page-socials .socials a:nth-child(2) {
  background: radial-gradient(circle at 30% 107%, #fdf497 0 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  border-color: #d6249f;
}

.page-socials .socials a:nth-child(3) {
  background: #090909;
  border-color: rgba(37, 244, 238, 0.7);
  box-shadow: 2px 0 0 rgba(254, 44, 85, 0.65), -2px 0 0 rgba(37, 244, 238, 0.65);
}

.page-socials .socials a:hover {
  filter: brightness(1.12);
}

.footer-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

.footer-badge {
  width: 100%;
  height: auto;
  display: block;
}

.footer-badge.is-essex {
  max-width: 56px;
  align-self: flex-end;
}

.footer-badge.is-accreditation {
  max-width: 132px;
  width: auto;
  max-height: 52px;
}

.footer-badge-row {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
}

.footer-badge-stack {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.footer-badge.is-veo {
  width: auto;
  max-height: 41.6px;
  position: relative;
  z-index: 1;
}

.footer-badge.is-veo-pop {
  width: auto;
  max-width: 40px;
  position: absolute;
  left: 50%;
  bottom: 41px;
  z-index: 0;
  opacity: 0;
  transform: translate(-50%, 22px) scale(0.92);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1.15), opacity 0.35s ease;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.footer-right.is-veo-visible .footer-badge.is-veo-pop {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
}

@media (max-width: 960px) {
  .footer-top,
  .feature-grid,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .footer-center {
    align-items: flex-start;
  }

  .footer-top > div:first-child {
    justify-self: center;
    text-align: center;
  }

  .footer-tagline {
    display: none;
  }

  .socials {
    justify-content: flex-start;
  }

  .footer-badges {
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.55rem;
  }

  .footer-badge.is-accreditation {
    max-width: 108px;
    max-height: 42px;
    order: 1;
  }

  .footer-badge.is-essex {
    max-width: 34px;
    align-self: flex-end;
    margin-bottom: 0;
    order: 2;
  }

  .footer-badge-row {
    gap: 0.5rem;
  }

  .footer-badge.is-veo {
    max-height: 33.6px;
  }

  .footer-badge.is-veo-pop {
    max-width: 30px;
    bottom: 35px;
  }
}

@media (min-width: 769px) and (max-width: 960px) {
  .footer-top {
    align-items: start;
    column-gap: 2rem;
    grid-template-areas:
      "club badges"
      "links badges";
    grid-template-columns: minmax(180px, 0.75fr) minmax(320px, 1.25fr);
    row-gap: 1rem;
  }

  .footer-top > div:first-child {
    grid-area: club;
    justify-self: start;
    text-align: left;
  }

  .footer-logo {
    margin-bottom: 0;
  }

  .footer-center {
    align-items: flex-start;
    gap: 0.5rem;
    grid-area: links;
  }

  .footer-center a {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .footer-right {
    align-self: start;
    grid-area: badges;
    justify-self: end;
    position: relative;
    top: 5px;
  }

  .footer-badges,
  .footer-badge-row {
    align-items: center;
  }

  .footer-badge.is-essex {
    max-width: 40px;
  }
}

@media (min-width: 1000px) {
  .footer-tagline {
    font-size: 1.6rem;
  }
}

@media (min-width: 961px) and (orientation: landscape) {
  .hero-title {
    white-space: nowrap;
    line-height: 0.88;
  }

  .hero-title br {
    display: none;
  }
}

@media (max-width: 960px), (orientation: portrait) {
  .hero-sub {
    gap: 0.7rem;
  }

  .hero-sub::before,
  .hero-sub::after {
    width: 28px;
  }
}

@media (max-width: 960px) {
  #mainNav {
    min-height: 52px;
    padding: 0.45rem 1.2rem;
  }

  #mainNav.scrolled {
    padding: 0.45rem 1.2rem;
    background: var(--nav-dark);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  #mainNav.scrolled .nav-logo {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-logo img,
  #mainNav.scrolled .nav-logo img {
    height: 68px;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav-tag {
    display: block;
    grid-column: 2;
    justify-self: center;
    position: relative;
    left: -25px;
    font-size: 1.8rem;
    max-width: calc(100vw - 8rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hamburger {
    display: flex;
    grid-column: 3;
    justify-self: end;
  }

  .hero-content {
    width: min(760px, calc(100% - 2rem));
  }

  .page-socials {
    width: auto;
    margin: -3.25rem 1.2rem 0;
    padding: 1rem 0;
  }

  .wuka-partner {
    gap: 1.25rem;
    grid-template-columns: 1fr;
  }

  .wuka-partner-link {
    justify-self: center;
  }

  .wuka-partner-logo {
    width: 210px;
  }

  .content-section,
  footer {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .intro-card {
    padding: 1.25rem;
  }

  .feature-card {
    min-height: 280px;
  }

  .feature-overlay {
    inset: auto 0.8rem 0.8rem 0.8rem;
    padding: 0.85rem 0.9rem;
  }

  .sponsor-card-inner {
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    text-align: center;
  }

  .sponsor-logo-wrap {
    width: 148px;
    justify-content: center;
  }

  .sponsor-description {
    display: none;
  }
}

/* ─── Hero video (index.php + jpl.php) ─────────────────────────────── */

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-video.is-ready {
  opacity: 1;
}

.hero-video-caption {
  position: absolute;
  left: 1.5rem;
  top: var(--hero-caption-top);
  z-index: 2;
  max-width: min(420px, calc(100% - 7rem));
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius);
  background: rgba(23, 22, 21, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .hero-video-caption {
    left: 1.2rem;
    max-width: calc(100% - 6.5rem);
    font-size: 0.64rem;
  }
}

/* ─── Standings / league table ───────────────────────────────────────── */

.table-card {
  margin-top: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.table-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.table-kicker {
  color: var(--yellow);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.table-title {
  margin-top: 0.45rem;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  line-height: 1.08;
}

.table-meta {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.65;
  text-align: right;
}

.table-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.standings-highlights {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: start;
  gap: 1.1rem 1.8rem;
}

.standings-stat {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0 10px;
  border: 0;
  background: transparent;
  position: relative;
}

.standings-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -0.95rem;
  right: -0.95rem;
  width: 1px;
  height: calc(100% + 1.9rem);
  background: rgba(255, 255, 255, 0.16);
}

.standings-stat-label {
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.standings-stat-value {
  margin-top: 0;
  font-size: clamp(1rem, 1.9vw, 1.22rem);
  font-weight: 800;
  line-height: 1.1;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.38) rgba(255, 255, 255, 0.08);
}

.table-wrap::-webkit-scrollbar {
  height: 10px;
}

.table-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.38);
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.standings-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.standings-table th,
.standings-table td {
  padding: 0.58rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.standings-table th {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.standings-table th.team-col,
.standings-table td.team-col {
  text-align: left;
}

.standings-table td {
  text-align: center;
  white-space: nowrap;
}

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

.standings-table tbody tr.is-stanway {
  background: linear-gradient(90deg, rgba(248, 234, 44, 0.22), rgba(248, 234, 44, 0.07));
}

.standings-table tbody tr.is-stanway td {
  font-weight: 700;
}

.position-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
}

.standings-table tbody tr.is-stanway .position-pill {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.team-name {
  min-width: 240px;
  text-align: left;
}

.team-name small {
  display: block;
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.points-cell {
  color: var(--yellow);
  font-weight: 800;
}

.standings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.standings-status {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  line-height: 1.7;
}

.standings-status a {
  color: var(--yellow);
  text-decoration: none;
}

@media (max-width: 768px) {
  .table-card {
    padding: 1rem;
  }

  .table-meta {
    text-align: left;
  }

  .standings-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
  }

  .standings-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.3rem;
    min-height: 3.9rem;
    padding: 0.3rem 0.85rem;
    border-radius: 0;
    background: transparent;
    border: 0;
  }

  .standings-stat:not(:last-child)::after {
    display: none;
  }

  .standings-stat:nth-child(1),
  .standings-stat:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }

  .standings-stat:nth-child(1),
  .standings-stat:nth-child(3) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .standings-stat:nth-child(3),
  .standings-stat:nth-child(4) {
    transform: translateY(2px);
  }

  .standings-stat:nth-child(2),
  .standings-stat:nth-child(4) {
    padding-left: 1.34rem;
  }

  .standings-stat-value {
    margin-top: 0;
    font-size: 1rem;
  }

  .table-summary-row {
    grid-template-columns: 1fr;
    padding: 0;
    border: 0;
    background: transparent;
  }
}
