/* ==========================================================================
   Santos FC — Design tokens
   Palette sampled directly from the official club crest (assets/santos-logo.png):
   black #000000, gold #F9D716, red #CC0C01, white #FFFFFF.
   ========================================================================== */
:root {
  --black: #000000;
  --black-900: #0c0c0b;
  --black-soft: #161614;
  --charcoal: #29281f;
  --white: #ffffff;
  --off-white: #f7f6f3;
  --gray-100: #eeece6;
  --gray-200: #e2dfd6;
  --gray-400: #b2afa4;
  --gray-600: #6d6a5f;
  --gray-800: #38362d;
  --gold: #f9d716;
  --gold-dark: #d9b900;
  --gold-deep: #a17e00;
  --red: #cc0c01;
  --red-dark: #a80a01;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --container: 1200px;
  --radius-lg: 16px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(20, 18, 10, 0.06);
  --shadow-md: 0 12px 28px rgba(20, 18, 10, 0.10);
  --shadow-lg: 0 22px 48px rgba(20, 18, 10, 0.16);

  --accent-bar: linear-gradient(90deg, var(--gold), var(--red));
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black-soft);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  color: var(--black);
  line-height: 1.12;
}
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--black-900); color: var(--gray-400); }
.section-dark h2, .section-dark h3 { color: var(--white); }

/* Skip link — accessibility best practice */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--gold);
  color: var(--black);
  padding: 12px 20px;
  z-index: 2000;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; top: 0; }

/* Focus visibility — accessibility best practice */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-dark .eyebrow, .hero .eyebrow, .page-header .eyebrow { color: var(--gold); }
.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 0; }
h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent-bar);
  margin-top: 16px;
}
.section-head.center h2::after,
.text-center h2::after { margin-left: auto; margin-right: auto; }
h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
h3 { font-size: 1.3rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.84rem;
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }
.btn-outline-dark { border-color: var(--black); color: var(--black); }
.btn-outline-dark:hover { background: var(--black); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--black);
  border-bottom: 3px solid var(--gold);
}
.utility-bar {
  background: var(--black-soft);
  color: var(--gray-400);
  font-size: 0.78rem;
}
.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.utility-bar a { color: var(--gray-200); transition: color 0.15s ease; }
.utility-bar a:hover { color: var(--gold); }
.utility-contact span { margin: 0 8px; color: var(--charcoal); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.crest { width: 50px; height: 50px; flex-shrink: 0; }
.brand-text { font-family: var(--font-display); line-height: 1.1; }
.brand-text strong { display: block; font-size: 1.15rem; letter-spacing: 0.04em; }
.brand-text span { display: block; font-size: 0.64rem; letter-spacing: 0.16em; color: var(--gold); margin-top: 2px; }

.nav-toggle {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--charcoal);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav > ul { display: flex; align-items: center; flex-wrap: wrap; }
.main-nav > ul > li { position: relative; }
.main-nav a, .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-200);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--gold); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.dropdown-toggle:hover { color: var(--gold); }
.dropdown-toggle .arrow { display: inline-flex; transition: transform 0.2s ease; }
.has-dropdown:hover .dropdown-toggle .arrow,
.has-dropdown:focus-within .dropdown-toggle .arrow { transform: rotate(180deg); }

/* Icons — inline SVG sprite (assets/icons.svg), no external icon service */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-chevron { width: 11px; height: 11px; }
.icon-close { width: 22px; height: 22px; }

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dropdowns — desktop: hover + keyboard focus reveal */
@media (min-width: 961px) {
  .has-dropdown { position: relative; }
  .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: var(--black-soft);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    overflow: hidden;
  }
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown {
    display: block;
    animation: dropdownIn 0.18s ease;
  }
  .dropdown li a {
    display: block;
    padding: 13px 20px;
    white-space: nowrap;
  }
  .dropdown li a::after { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 8px 0 20px; }
  .main-nav a, .dropdown-toggle { width: 100%; }
  .main-nav a::after { display: none; }
  .dropdown-toggle { justify-content: space-between; }
  .dropdown {
    padding-left: 18px;
    border-left: 2px solid var(--gold);
    margin-left: 14px;
  }
  .dropdown li a { padding: 10px 14px; color: var(--gray-400); }
  .navbar { flex-wrap: wrap; }
}

/* ==========================================================================
   Hero (home) & page headers
   ========================================================================== */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.74) 48%, rgba(30,22,0,0.7) 100%),
    repeating-linear-gradient(135deg, #161614 0 42px, #0c0c0b 42px 84px);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 116px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -160px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,215,22,0.16), transparent 70%);
  pointer-events: none;
}
.hero.bg-photo {
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 50%, rgba(30,20,0,0.55) 100%),
    url('../images/photo2-hero.jpg');
  background-size: cover;
  background-position: center 35%;
}
.hero-inner { position: relative; max-width: 680px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .tagline {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-200);
  font-size: 0.92rem;
  margin-bottom: 26px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.page-header {
  position: relative;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.78) 100%),
    repeating-linear-gradient(135deg, #161614 0 42px, #0c0c0b 42px 84px);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 84px 0;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 10px; font-size: clamp(2rem, 4.5vw, 3rem); }
.breadcrumb { font-size: 0.8rem; color: var(--gray-400); }
.breadcrumb a { color: var(--gray-200); }
.breadcrumb a:hover { color: var(--gold); }

.page-header.bg-coaching {
  background-image: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.48) 100%), url('../images/coaching-team.jpg');
  background-size: cover;
  background-position: center 30%;
}
.page-header.bg-ladies {
  background-image: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.48) 100%), url('../images/ladies-team.jpg');
  background-size: cover;
  background-position: center 20%;
}
.page-header.bg-academy {
  background-image: linear-gradient(135deg, rgba(0,0,0,0.84) 0%, rgba(0,0,0,0.52) 100%), url('../images/photo1.jpg');
  background-size: cover;
  background-position: center 40%;
}
.page-header.bg-gallery {
  background-image: linear-gradient(135deg, rgba(0,0,0,0.84) 0%, rgba(0,0,0,0.52) 100%), url('../images/photo3.jpg');
  background-size: cover;
  background-position: center 35%;
}

/* Stat strip */
.stat-strip { background: var(--gold); }
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.stat-strip .stat { text-align: center; }
.stat-strip .stat strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--black); }
.stat-strip .stat span { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--charcoal); }
@media (max-width: 720px) { .stat-strip .container { grid-template-columns: repeat(2, 1fr); } }

/* Mini stats — inline stat highlight (e.g. season summary), no full-bleed wrapper needed */
.mini-stats {
  background: var(--gold);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 24px;
}
.mini-stats .stat { text-align: center; }
.mini-stats .stat strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--black); }
.mini-stats .stat span { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--charcoal); }
@media (max-width: 720px) { .mini-stats { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--gray-800); font-size: 0.95rem; }

/* Honours / lists */
.fact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 32px; }
@media (max-width: 640px) { .fact-list { grid-template-columns: 1fr; } }
.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--gray-200);
}
.section-dark .fact-list li { border-bottom-color: var(--charcoal); }
.fact-list li span:first-child { color: var(--gray-600); }
.section-dark .fact-list li span:first-child { color: var(--gray-400); }
.fact-list li span:last-child { font-family: var(--font-display); color: var(--black); text-align: right; }
.section-dark .fact-list li span:last-child { color: var(--white); }

/* Split layout */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 52px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.pull-card {
  background: var(--black-900);
  color: var(--white);
  padding: 34px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold);
}
.pull-card .role { color: var(--gold); font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }

/* Crest swatches (About page — identity section) */
.swatches { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.swatch { text-align: center; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.04em; }
.swatch-color { width: 64px; height: 64px; border-radius: var(--radius); border: 1px solid var(--gray-200); margin-bottom: 6px; box-shadow: var(--shadow-sm); }

/* Empty state — honest placeholder pattern, used instead of fabricated content */
.empty-state {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.empty-state .icon-bar { width: 44px; height: 4px; border-radius: 2px; background: var(--accent-bar); margin: 0 auto 22px; }
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { color: var(--gray-600); margin-bottom: 0; }
.empty-state .btn { margin-top: 22px; }

/* Note banner — factual/process notes, styled as a normal callout (not an apology) */
.note-banner {
  background: var(--off-white);
  border-left: 4px solid var(--red);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-800);
  margin-bottom: 32px;
}

/* Fixture card */
.fixture-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* List panel (downloads/events style rows) */
.list-panel { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
}
.list-row:last-child { border-bottom: none; }
.list-row .info strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.list-row .info span { color: var(--gray-800); font-size: 0.88rem; }
.tag {
  display: inline-block;
  background: var(--off-white);
  color: var(--gray-800);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-right: 6px;
}

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-800);
  margin-bottom: 7px;
}
input, textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(249,215,22,0.28); }

/* CTA banner */
.cta-banner { background: var(--gold); text-align: center; padding: 64px 0; }
.cta-banner h2 { color: var(--black); }
.cta-banner h2::after { margin-left: auto; margin-right: auto; }
.cta-banner p { color: var(--charcoal); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Photo components
   ========================================================================== */
.photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  display: block;
  transition: box-shadow 0.25s ease;
}
.photo-card:hover { box-shadow: var(--shadow-md); }
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-card:hover img { transform: scale(1.06); }
.photo-card .photo-card-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88), rgba(0,0,0,0));
  color: var(--white);
  padding: 36px 18px 16px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Split section with a real photo */
.split-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Chairman / staff portrait card */
.portrait-card {
  display: flex;
  gap: 26px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
}
.portrait-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--gold);
}
@media (max-width: 500px) {
  .portrait-card { flex-direction: column; text-align: center; }
}

/* Gallery grid + lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: zoom-in;
  display: block;
  background: var(--charcoal);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease;
}
.gallery-item:hover { box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-display);
  padding: 24px 10px 9px;
  text-align: left;
}
.album-title { margin: 52px 0 22px; }
.album-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent-bar);
  margin-top: 14px;
}
.album-title:first-child { margin-top: 0; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6,6,4,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
}
.lightbox.open { display: flex; animation: dropdownIn 0.2s ease; }
.lightbox-inner { position: relative; max-width: min(1000px, 92vw); max-height: 88vh; }
.lightbox-inner img { max-width: 100%; max-height: 88vh; display: block; border-radius: var(--radius); margin: 0 auto; }
.lightbox-caption {
  color: var(--gray-200);
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-top: 16px;
}
.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  padding: 6px;
  transition: color 0.15s ease;
}
.lightbox-close:hover { color: var(--gold); }

/* Kit showcase (Shop page) */
.kit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .kit-grid { grid-template-columns: repeat(2, 1fr); } }
.kit-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--white); border: 1px solid var(--gray-100); transition: box-shadow 0.25s ease; }
.kit-card:hover { box-shadow: var(--shadow-md); }
.kit-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.kit-card span { display: block; padding: 14px 16px; font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-800); }

/* Data tables (results / standings) */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  margin-bottom: 20px;
}
table.data-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.9rem; }
table.data-table th, table.data-table td { padding: 12px 16px; text-align: left; white-space: nowrap; }
table.data-table thead th {
  background: var(--black-900);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
table.data-table tbody tr { border-bottom: 1px solid var(--gray-200); }
table.data-table tbody tr:last-child { border-bottom: none; }
table.data-table tbody tr:hover { background: var(--off-white); }
table.data-table td.center, table.data-table th.center { text-align: center; }
table.data-table tr.is-santos { background: rgba(249, 215, 22, 0.16); }
table.data-table tr.is-santos td:first-child, table.data-table tr.is-santos td.team-name { font-weight: 600; }
.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--white);
}
.result-badge.win { background: #2e7d32; }
.result-badge.draw { background: var(--gray-600); }
.result-badge.loss { background: var(--red); }
.table-source { font-size: 0.8rem; color: var(--gray-600); margin-top: -6px; margin-bottom: 40px; }
.table-source a { color: var(--gray-800); text-decoration: underline; }
.table-source a:hover { color: var(--red); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--black-900); color: var(--gray-400); padding-top: 68px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--charcoal); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 11px; font-size: 0.9rem; }
.footer-grid a { transition: color 0.15s ease; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 42px; height: 42px; }
.footer-brand strong { color: var(--white); font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.04em; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 0.78rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: var(--gold); }

/* Utility */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.muted { color: var(--gray-600); }
