/* ============================================
   NAVOSA RUGBY UNION — MAIN STYLESHEET
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;600;700;900&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
  --clr-red: #C8102E;
  --clr-red-dark: #9e0c22;
  --clr-red-light: #e63350;
  --clr-black: #0a0a0a;
  --clr-white: #f5f5f0;
  --clr-cream: #f0ede8;
  --clr-gold: #c9a84c;

  /* LIGHT MODE */
  --bg-primary: #f5f5f0;
  --bg-secondary: #eae7e2;
  --bg-card: #ffffff;
  --bg-nav: rgba(245, 245, 240, 0.95);
  --bg-footer: #0a0a0a;
  --text-primary: #0a0a0a;
  --text-secondary: #444444;
  --text-muted: #777777;
  --text-nav: #0a0a0a;
  --border: rgba(0,0,0,0.1);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.15);
  --hero-overlay: rgba(0,0,0,0.55);
  --section-alt: #eae7e2;
}

[data-theme="dark"] {
  --bg-primary: #0d0d0d;
  --bg-secondary: #161616;
  --bg-card: #1e1e1e;
  --bg-nav: rgba(10, 10, 10, 0.97);
  --bg-footer: #050505;
  --text-primary: #f0ede8;
  --text-secondary: #c0bdb8;
  --text-muted: #888888;
  --text-nav: #f0ede8;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 40px rgba(200,16,46,0.25);
  --hero-overlay: rgba(0,0,0,0.65);
  --section-alt: #161616;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============ TYPOGRAPHY ============ */
.font-display { font-family: 'Bebas Neue', cursive; letter-spacing: 0.04em; }
.font-condensed { font-family: 'Barlow Condensed', sans-serif; }

h1, h2, h3, h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; line-height: 1.1; }

/* ============ UTILITY ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.text-red { color: var(--clr-red); }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============ SKIP LINK (ACCESSIBILITY) ============ */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--clr-red); color: white;
  padding: 0.5rem 1rem; border-radius: 4px;
  font-weight: 600; z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ============ NAVIGATION ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text .name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--text-nav);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-logo-text .sub {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-red);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-nav);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0.75rem; right: 0.75rem;
  height: 2px;
  background: var(--clr-red);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover { color: var(--clr-red); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--clr-red); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.2s;
  font-size: 1.1rem;
}

.theme-toggle:hover {
  border-color: var(--clr-red);
  color: var(--clr-red);
}

.btn-nav {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.25rem;
  background: var(--clr-red);
  color: white;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}

.btn-nav:hover {
  background: var(--clr-red-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px; height: 32px;
  justify-content: center;
  align-items: center;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open {
  transform: translateX(0);
}

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

.mobile-nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav-links a:hover { color: var(--clr-red); padding-left: 0.5rem; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--clr-black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(
      to bottom right,
      rgba(10,10,10,0.85) 0%,
      rgba(200,16,46,0.15) 50%,
      rgba(10,10,10,0.9) 100%
    ),
    url('https://images.unsplash.com/photo-1544298621-35a989e4e54a?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

/* Diagonal stripe decoration */
.hero-stripe {
  position: absolute;
  top: 0; bottom: 0;
  right: 0;
  width: 40%;
  background: linear-gradient(135deg, transparent 50%, rgba(200,16,46,0.12) 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 5rem;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: 1rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 30px; height: 2px;
  background: var(--clr-red);
}

.hero-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.9;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-title .accent { color: var(--clr-red); }

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::after { transform: translateX(0); }

.btn-primary {
  background: var(--clr-red);
  color: white;
}
.btn-primary:hover { background: var(--clr-red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,16,46,0.35); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.6);
  color: white;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); transform: translateY(-2px); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--clr-red); color: var(--clr-red); }

/* ============ SECTION HEADERS ============ */
.section-header {
  margin-bottom: 3rem;
}

.section-header.center { text-align: center; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: 0.75rem;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--clr-red);
}

.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.section-desc {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  font-weight: 300;
}

.center .section-desc { margin: 1rem auto 0; }

/* ============ TICKER ============ */
.ticker-bar {
  background: var(--clr-red);
  color: white;
  padding: 0.5rem 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  animation: tickerScroll 35s linear infinite;
}

.ticker-inner:hover { animation-play-state: paused; }

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-dot {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ NEWS / CARDS ============ */
.section { padding: 5rem 0; }
.section-alt { background: var(--section-alt); }

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

.news-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.news-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-body {
  padding: 1.25rem;
}

.news-tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--clr-red);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.news-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.news-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============ FEATURED NEWS (LARGE CARD) ============ */
.news-featured {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.news-featured-main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 420px;
}

.news-featured-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}

.news-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: white;
}

.news-featured-main:hover img { transform: scale(1.03); }

.news-featured-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-side-card {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  flex: 1;
}

.news-side-card:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }

.news-side-img {
  width: 100px;
  flex-shrink: 0;
  overflow: hidden;
}

.news-side-img img { width: 100%; height: 100%; object-fit: cover; }

.news-side-body {
  padding: 0.75rem 0.75rem 0.75rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-side-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

/* ============ SQUAD ============ */
.squad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.player-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.player-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.player-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-secondary);
  position: relative;
}

.player-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.player-card:hover .player-card-img img { transform: scale(1.05); }

.player-number {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  color: rgba(255,255,255,0.9);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.player-card-body {
  padding: 1rem;
}

.player-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.player-position {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============ STATS BANNER ============ */
.stats-banner {
  background: var(--clr-black);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--clr-red) 0%, transparent 60%);
  opacity: 0.1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

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

.stat-number {
  font-family: 'Bebas Neue', cursive;
  font-size: 4rem;
  color: white;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-number span { color: var(--clr-red); }

.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ============ FIXTURES ============ */
.fixtures-list { display: flex; flex-direction: column; gap: 1rem; }

.fixture-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fixture-card:hover { border-color: var(--clr-red); box-shadow: var(--shadow-hover); }

.fixture-team {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fixture-team.away { flex-direction: row-reverse; text-align: right; }

.fixture-team-logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.fixture-team-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.fixture-score {
  text-align: center;
  padding: 0 1rem;
}

.fixture-score-nums {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.fixture-score-nums .vs {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0.25rem;
}

.fixture-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.25rem;
}

.fixture-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif;
}

.status-upcoming { background: rgba(200,16,46,0.12); color: var(--clr-red); }
.status-result { background: rgba(0,150,50,0.12); color: #00a832; }
.status-live { background: var(--clr-red); color: white; animation: pulse 1s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ============ ABOUT SECTION ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-main {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.about-image-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.about-image-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--clr-red);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(200,16,46,0.4);
}

.about-image-badge .big {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.5rem;
  line-height: 1;
  display: block;
}

.about-image-badge .small {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.about-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.about-list-item::before {
  content: '▸';
  color: var(--clr-red);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.75rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(200,16,46,0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* ============ SPONSORS ============ */
.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.sponsor-item {
  padding: 1rem 2rem;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 80px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.sponsor-item:hover { box-shadow: var(--shadow-hover); border-color: var(--clr-red); }

.sponsor-item img {
  max-height: 50px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.3s, opacity 0.3s;
}

.sponsor-item:hover img { filter: grayscale(0%); opacity: 1; }

.sponsor-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.sponsor-item:hover .sponsor-name { color: var(--text-primary); }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.7);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: 'NAVOSA';
  position: absolute;
  font-family: 'Bebas Neue', cursive;
  font-size: 20vw;
  color: rgba(255,255,255,0.02);
  bottom: -2rem;
  left: -1rem;
  pointer-events: none;
  line-height: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-brand .footer-logo img { height: 50px; }

.footer-brand .logo-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.footer-brand .logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-red);
  font-weight: 600;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

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

.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--clr-red);
  border-color: var(--clr-red);
  color: white;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s, padding-left 0.2s;
  display: block;
}

.footer-col ul li a:hover { color: white; padding-left: 0.25rem; }

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.footer-contact-icon {
  width: 20px;
  flex-shrink: 0;
  color: var(--clr-red);
  margin-top: 0.15rem;
}

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

.footer-bottom a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-bottom a:hover { color: white; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}

.lightbox-close:hover { background: var(--clr-red); }

/* ============ ANNOUNCEMENT BAR ============ */
.announcement-bar {
  background: var(--clr-black);
  color: white;
  text-align: center;
  padding: 0.5rem 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
}

.announcement-bar a { color: var(--clr-red); text-decoration: underline; }

.announcement-close {
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  transition: color 0.2s;
}
.announcement-close:hover { color: white; }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem; right: 1rem;
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  z-index: 5000;
  display: none;
  animation: slideUp 0.4s ease;
}

.cookie-banner.show { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-text { font-size: 0.88rem; color: var(--text-secondary); flex: 1; min-width: 200px; }
.cookie-text strong { color: var(--text-primary); }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; align-items: center; }

/* ============ ANIMATIONS ============ */
/* Animations — only active when JS has loaded and added .js-loaded to <html>.
   Without JS, everything is fully visible by default. */
.js-loaded .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-loaded .fade-in.visible { opacity: 1; transform: translateY(0); }

.js-loaded .slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-loaded .slide-left.visible { opacity: 1; transform: translateX(0); }

.js-loaded .slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-loaded .slide-right.visible { opacity: 1; transform: translateX(0); }

/* ============ FORM ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--clr-red);
}

textarea.form-control { resize: vertical; min-height: 140px; }

/* ============ TABS ============ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.tab-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.5rem;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn.active, .tab-btn:hover { color: var(--clr-red); }
.tab-btn.active { border-bottom-color: var(--clr-red); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--clr-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(200,16,46,0.35);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}

.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--clr-red-dark); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .squad-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-badge { right: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-main { min-height: 260px; }
  .news-grid { grid-template-columns: 1fr; }
  .squad-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .fixture-card { grid-template-columns: 1fr auto 1fr; }
  .fixture-card > *:last-child { grid-column: 1 / -1; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .squad-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.5rem 0; }
}

/* Only broken/empty img tags get a background — NOT all images */
img[src=""], img:not([src]) {
  min-height: 80px;
}

.gallery-item {
  min-height: 180px;
}
/* ============================================
   VIDEO SECTION — Complete styles
   ============================================ */

.video-section {
  padding: 5rem 0;
}

/* Dark background variant — NO CSS variable overrides (they cascade to siblings) */
.video-section.dark-bg {
  background: #0a0a0a;
}

/* All text colours scoped explicitly so nothing leaks outside this section */
.video-section.dark-bg .section-eyebrow,
.video-section.dark-bg p.section-eyebrow { color: #C8102E; }

.video-section.dark-bg .section-title,
.video-section.dark-bg h2.section-title { color: #f0ede8; }

.video-section.dark-bg .section-desc { color: rgba(240,237,232,0.65); }
.video-section.dark-bg .video-featured-title { color: #f0ede8; }
.video-section.dark-bg .video-featured-desc { color: rgba(240,237,232,0.7); }
.video-section.dark-bg .video-featured-meta { color: rgba(240,237,232,0.5); }
.video-section.dark-bg .video-tabs-row h3 { color: #f0ede8; }

.video-section.dark-bg .short-card {
  background: #1a1a1a;
  border-color: rgba(255,255,255,0.08);
}
.video-section.dark-bg .short-card-title { color: #f0ede8; }
.video-section.dark-bg .short-card-meta { color: rgba(255,255,255,0.4); }

/* ---- Featured layout ---- */
.video-featured-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

/* 16:9 embed wrapper */
.video-embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.video-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  border-radius: 10px;
}

/* Click-to-play facade */
.video-facade {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-facade img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-facade:hover img { transform: scale(1.04); }

.video-facade-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  transition: background 0.3s;
}
.video-facade:hover .video-facade-overlay { background: rgba(0,0,0,0.15); }

/* Play button — pure CSS triangle */
.play-btn {
  position: absolute;
  width: 72px; height: 72px;
  background: rgba(200,16,46,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, background 0.25s;
  box-shadow: 0 4px 24px rgba(200,16,46,0.5);
  z-index: 2;
  cursor: pointer;
}
.play-btn::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent white;
  margin-left: 5px;
  display: block;
}
.video-facade:hover .play-btn {
  transform: scale(1.12);
  background: #C8102E;
}

.video-duration {
  position: absolute;
  bottom: 0.75rem; right: 0.75rem;
  background: rgba(0,0,0,0.8);
  color: white;
  font-size: 0.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  z-index: 2;
}

/* Featured info panel */
.video-featured-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #C8102E;
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  width: fit-content;
}

.video-featured-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.video-featured-meta {
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.video-featured-meta span { display: flex; align-items: center; gap: 0.3rem; }

.video-featured-desc {
  font-size: 0.92rem;
  line-height: 1.75;
}

.video-featured-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* ---- Clips/Shorts row header ---- */
.video-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---- Shorts/clips grid ---- */
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.short-card {
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.short-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.short-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #111;
  overflow: hidden;
}
.short-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.short-card:hover .short-thumb img { transform: scale(1.06); }

.short-thumb .play-btn { width: 48px; height: 48px; }
.short-thumb .play-btn::after {
  border-width: 9px 0 9px 16px;
  margin-left: 3px;
}

.short-type-badge {
  position: absolute;
  top: 0.6rem; left: 0.6rem;
  background: rgba(0,0,0,0.75);
  color: white;
  font-size: 0.65rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  z-index: 2;
}
.short-type-badge.shorts    { background: #C8102E; }
.short-type-badge.highlights { background: #1a56db; }
.short-type-badge.feature   { background: #0d7753; }

.short-card-body { padding: 0.9rem 1rem 1rem; }

.short-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.short-card-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
}

/* ---- YouTube CTA bar ---- */
.yt-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #161616;
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.yt-cta-left { display: flex; align-items: center; gap: 1rem; }
.yt-logo {
  width: 44px; height: 44px;
  background: #FF0000;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.yt-logo::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 18px;
  border-color: transparent transparent transparent white;
  margin-left: 3px;
  display: block;
}
.yt-cta-text strong { display: block; color: white; font-size: 1rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; }
.yt-cta-text span { font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* ---- Video Modal ---- */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 1.5rem;
}
.video-modal-overlay.open { opacity: 1; pointer-events: all; }

.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
  animation: modalIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn {
  from { transform: scale(0.85) translateY(30px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.video-modal-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
}
.video-modal-frame.portrait {
  max-width: 360px;
  margin: 0 auto;
  padding-bottom: 0;
  height: 640px;
  border-radius: 20px;
}
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-modal-close {
  position: absolute;
  top: -3rem; right: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid rgba(255,255,255,0.2);
}
.video-modal-close:hover { background: #C8102E; }

.video-modal-title {
  margin-top: 1.25rem;
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  opacity: 0.85;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .video-featured-layout { grid-template-columns: 1fr; }
  .shorts-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .shorts-grid { grid-template-columns: repeat(2, 1fr); }
  .video-tabs-row { flex-direction: column; align-items: flex-start; }
  .yt-cta-bar { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .shorts-grid { grid-template-columns: 1fr 1fr; }
  .video-modal-frame.portrait { height: 520px; }
}
