/* =====================================================================
   JWAYYA STADIUM — styles
   Night match under the floodlights in the club's colours: warm near-black
   and the gold of the Jwaya S.C. crest (#d7b263). Change the palette in :root.
   ===================================================================== */

:root {
  --bg: #0b0a08;
  --bg-alt: #12100d;
  --surface: #1a1813;
  --surface-2: #23211b;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #f4f2ef;
  --muted: #afa99d;
  --gold: #d7b263;
  --gold-deep: #8c6a2c;
  --gold-light: #f0d38f;
  --ink: #0e0d0a;
  --danger: #ff7a6b;

  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
main { overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas, iframe { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-light); color: var(--ink); }
[hidden] { display: none !important; }

.container { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.alt-name { letter-spacing: 0; text-transform: none; }
.alt-name[lang=ar], .lang-toggle[lang=ar] { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--gold-light); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font: 600 .8125rem/1.2 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 18px;
}
.eyebrow b { font: 700 1rem/1 var(--display); letter-spacing: .08em; color: var(--ink); background: var(--gold-light); padding: 5px 9px 4px; transform: skewX(-10deg); }
.h2 {
  font: italic 800 clamp(2.75rem, 6.4vw, 5.25rem)/.9 var(--display);
  text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance;
}
.h2 .accent { color: transparent; -webkit-text-stroke: 1.5px var(--gold); }
.h3 { font: 700 1.5rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; color: #dbd8d0; max-width: 56ch; }
.prose p { color: var(--muted); max-width: 60ch; }
.prose p + p { margin-top: 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  font: 700 1.0625rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: transform .3s var(--ease), background-color .3s, color .3s, filter .3s;
}
.btn-sm { min-height: 42px; padding: 0 22px; font-size: .9375rem; }
.btn-primary { background: var(--gold-light); color: var(--ink); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: var(--text); backdrop-filter: blur(8px); }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { filter: brightness(1.08) drop-shadow(0 8px 18px rgba(240, 211, 143, .35)); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; translate: 0 30px; }
.js .reveal, .js .reveal.tilt {
  transition: opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s), transform .25s ease-out, border-color .3s, background-color .3s;
}
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- 3D tilt ---------- */
.tilt { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .25s ease-out; }
.glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(240, 211, 143, .16), transparent 60%); }
.tilt:hover .glare { opacity: 1; }

/* =====================================================================
   NAVIGATION
   ===================================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background-color .4s, backdrop-filter .4s, box-shadow .4s; }
.nav.is-stuck { background: rgba(11, 10, 8, .82); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-inline-end: auto; position: relative; z-index: 2; }
.brand-crest { height: 46px; flex: none; transition: transform .5s var(--ease); }
.brand:hover .brand-crest { transform: rotateY(180deg); }
.brand-crest svg, .brand-crest img, .footer-crest svg, .footer-crest img { height: 100%; width: auto; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font: italic 800 1.375rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.brand-text em { font: 500 .6875rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.nav-links a:not(.btn) { position: relative; padding: 8px 0; font: 600 1.0625rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #dbd8d0; transition: color .25s; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-light); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav-links a:not(.btn):hover, .nav-links a.is-current { color: #fff; }
.nav-links a:not(.btn):hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
.lang-toggle { position: relative; z-index: 2; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font: 600 .9375rem/1 var(--body); color: #dbd8d0; transition: color .25s, border-color .25s; }
.lang-toggle:hover { color: var(--gold-light); border-color: var(--gold-light); }
.nav-cta-mobile, .nav-toggle { display: none; }
.nav-toggle { width: 44px; height: 44px; position: relative; z-index: 2; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: 96px var(--gutter) 40px;
    background: radial-gradient(120% 80% at 100% 0%, #2b261c 0%, var(--bg) 60%);
    opacity: 0; visibility: hidden; transform: translateY(-16px);
    transition: opacity .35s, transform .45s var(--ease), visibility .35s;
    overflow-y: auto;
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn) { font: italic 800 clamp(2.25rem, 9vw, 3.25rem)/1.15 var(--display); letter-spacing: 0; color: #fff; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links a.is-current { color: var(--gold-light); }
  .nav-cta-mobile { display: inline-flex; margin-top: 24px; }
}
@media (max-width: 420px) { .brand-text em { display: none; } }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; --mx: 0; --my: 0; }
.hero-scene { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 70% at 50% 0%, #221e16 0%, #100e0a 55%, var(--bg) 100%); }
.hero-scene > * { position: absolute; }

/* Floodlights */
.glow { top: -22vh; width: 70vmax; height: 70vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 229, 205, .30), rgba(215, 178, 99, .10) 45%, transparent 70%); animation: flicker 7s ease-in-out infinite; }
.glow-l { left: -30vmax; }
.glow-r { right: -30vmax; animation-delay: -3s; }
.beam { top: 9%; width: 60vw; height: 120%; opacity: .5; background: linear-gradient(to bottom, rgba(242, 233, 213, .22), transparent 70%); filter: blur(18px); }
.beam-l { left: 4%; transform-origin: 0 0; transform: rotate(-24deg) translateX(calc(var(--mx) * 12px)); clip-path: polygon(0 0, 4% 0, 100% 100%, 20% 100%); }
.beam-r { right: 4%; transform-origin: 100% 0; transform: rotate(24deg) translateX(calc(var(--mx) * 12px)); clip-path: polygon(96% 0, 100% 0, 80% 100%, 0 100%); }
.mast { top: 9%; width: 6px; height: 46%; background: linear-gradient(#161410, #090807); transform: translate(calc(var(--mx) * -10px), calc(var(--my) * -6px)); }
.mast-l { left: 2.5%; }
.mast-r { right: 2.5%; }
.mast i { position: absolute; left: 50%; top: -6px; width: 74px; height: 40px; margin-left: -37px; border-radius: 5px; background: radial-gradient(circle, #fff 0 34%, transparent 38%) 0 0 / 14.8px 13.33px, #11100d; box-shadow: 0 0 60px 12px rgba(242, 233, 213, .45), 0 0 160px 60px rgba(215, 178, 99, .18); }

/* Crowd band on the horizon */
.stands { left: -5%; right: -5%; bottom: 43%; height: 13%; background: radial-gradient(circle, rgba(255, 255, 255, .34) 0 1px, transparent 1.6px) 0 0 / 13px 9px, radial-gradient(circle, rgba(240, 211, 143, .3) 0 1px, transparent 1.6px) 6px 4px / 17px 11px, linear-gradient(#0a0907, #15130f); -webkit-mask: linear-gradient(to bottom, transparent, #000 35%); mask: linear-gradient(to bottom, transparent, #000 35%); transform: translateX(calc(var(--mx) * -8px)); }

/* The pitch, laid flat in 3D */
.pitch-wrap { inset: auto 0 0 0; height: 44%; perspective: 620px; perspective-origin: calc(50% + var(--mx) * 40px) 0%; overflow: hidden; }
.pitch { left: 50%; bottom: 0; width: 180%; min-width: 1100px; height: 260%; translate: -50% 0; transform-origin: 50% 100%; transform: rotateX(66deg); position: absolute; color: rgba(255, 255, 255, .8); background: repeating-linear-gradient(90deg, #7c5e1d 0 6.25%, #5a4b2c 6.25% 12.5%); box-shadow: inset 0 0 200px rgba(0, 0, 0, .5); }
.pitch svg { width: 100%; height: 100%; }
.hero-fade { inset: 0; background: linear-gradient(90deg, rgba(11, 10, 8, .6), transparent 58%), linear-gradient(to bottom, transparent 55%, rgba(11, 10, 8, .55) 82%, var(--bg) 100%), radial-gradient(90% 60% at 50% 40%, transparent 40%, rgba(11, 10, 8, .55) 100%); }
@keyframes flicker { 0%, 100% { opacity: 1; } 48% { opacity: .88; } 52% { opacity: .96; } }

.hero-grid { flex: 1; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 24px; padding-top: 112px; padding-bottom: 32px; }
/* The divider belongs to the first item so it follows the page direction, not the other-language name's */
.hero-eyebrow > span:first-child:not(:only-child) { padding-inline-end: 12px; border-inline-end: 1px solid var(--line-strong); }
.hero-eyebrow .alt-name { color: var(--text); opacity: .75; font-size: .9375rem; }
.hero-title { font: italic 800 clamp(4.25rem, 10vw + 1rem, 10.5rem)/.82 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.hero-title .line { display: block; overflow: hidden; padding: .06em .12em .04em 0; }
.hero-title .line > span { display: inline-block; }
.hero-title .outline { color: transparent; -webkit-text-stroke: 2px var(--gold-light); margin-inline-start: .35em; }
.js .hero-title .line > span { transform: translateY(110%); transition: transform 1.1s var(--ease); }
.js .hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.js .is-ready .hero-title .line > span { transform: none; }
.hero-sub { margin-top: 26px; max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.1875rem); color: #dbd8d0; }
.hero-sub strong { display: block; font: 700 clamp(1.25rem, 2vw, 1.625rem)/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.js .hero-eyebrow, .js .hero-sub, .js .hero-actions, .js .hero-foot { opacity: 0; translate: 0 20px; transition: opacity .9s var(--ease) .35s, translate .9s var(--ease) .35s; }
.js .hero-foot { transition-delay: .55s; }
.js .is-ready :is(.hero-eyebrow, .hero-sub, .hero-actions, .hero-foot) { opacity: 1; translate: 0 0; }

.hero-ball { justify-self: center; width: min(100%, 460px); transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 10px)); transition: transform .3s ease-out; }
.hero-ball canvas { width: 100%; aspect-ratio: 1; filter: drop-shadow(0 0 60px rgba(215, 178, 99, .25)); }

.hero-foot { padding-bottom: 28px; display: grid; gap: 14px; }
.hero-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; padding: 16px 22px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(15, 14, 11, .62); backdrop-filter: blur(14px); }
.hero-bar-label, .tag { display: inline-flex; align-items: center; gap: 9px; font: 700 .875rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 0 rgba(240, 211, 143, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(240, 211, 143, 0); } }
.hero-bar-teams { display: flex; align-items: center; gap: 10px; font: 700 1.25rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.hero-bar-teams em { font: italic 700 .9375rem var(--display); color: var(--muted); padding: 0 2px; }
.hero-bar-meta { color: var(--muted); font-size: .9375rem; margin-inline-end: auto; }

.badge { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; font: 700 .875rem/1 var(--display); letter-spacing: .02em; color: #fff; background: linear-gradient(140deg, hsl(var(--h, 150) 55% 42%), hsl(var(--h, 150) 60% 20%)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22); }
.badge-home { display: inline-flex; align-items: center; justify-content: center; background: none; box-shadow: none; border-radius: 0; }
.badge-home svg, .badge-home img { height: 92%; width: auto; max-width: 100%; object-fit: contain; }

.countdown { display: flex; gap: 6px; }
.countdown span { display: grid; justify-items: center; min-width: 46px; padding: 7px 6px 6px; border-radius: 9px; background: rgba(255, 255, 255, .07); }
.countdown b { font: 700 1.375rem/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown small { font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15, 14, 11, .5); backdrop-filter: blur(14px); overflow: hidden; }
.stats li { padding: 16px 22px; border-inline-start: 1px solid var(--line); }
.stats li:first-child { border-inline-start: 0; }
.stats b, .stat-suffix { font: italic 800 clamp(1.75rem, 3.4vw, 2.75rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.stat-suffix { color: var(--gold-light); }
.stats small { display: block; margin-top: 4px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 96px; gap: 0; align-content: center; }
  .hero-ball { order: -1; justify-self: start; width: clamp(120px, 30vw, 190px); margin: 0 0 6px; margin-inline-start: -10px; }
  .mast { height: 40%; }
  .mast-l { left: 5%; }
  .mast-r { right: 5%; }
  .mast i { width: 52px; height: 28px; margin-left: -26px; background-size: 10.4px 9.33px, auto; }
  .hero-bar-meta { margin-inline-end: 0; flex-basis: 100%; order: 3; }
  .hero-bar .countdown { order: 4; }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li { padding: 14px 16px; }
  .stats li:nth-child(3) { border-inline-start: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hero-bar { padding: 14px 16px; }
  .hero-bar-teams { font-size: 1.0625rem; }
  .hero-bar-teams .badge { display: none; }
  .hero-eyebrow > span:first-child:not(:only-child) { padding-inline-end: 0; border-inline-end: 0; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--gold-light); color: var(--ink); transform: rotate(-1.2deg) scale(1.02); margin: 18px 0 -6px; position: relative; z-index: 2; }
.marquee-track { display: flex; align-items: center; width: max-content; padding: 13px 0 11px; animation: marquee 38s linear infinite; }
.marquee span { font: italic 800 clamp(1.25rem, 2.4vw, 1.875rem)/1 var(--display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.marquee i { width: 10px; height: 10px; margin: 0 28px; background: var(--ink); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-25%); } }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { position: relative; padding: clamp(76px, 10vw, 144px) 0; overflow: hidden; }
.section-alt { background: linear-gradient(180deg, var(--bg-alt), #0e0d0b); }
.section-alt::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.section-head { display: grid; grid-template-columns: 1fr minmax(0, .8fr); gap: 24px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head > .chips { justify-self: end; }
.pitch-mark { position: absolute; right: -18vw; top: 50%; width: 60vw; aspect-ratio: 1; translate: 0 -50%; border: 2px solid rgba(255, 255, 255, .04); border-radius: 50%; pointer-events: none; }
.pitch-mark::before { content: ''; position: absolute; left: 50%; top: -30%; bottom: -30%; width: 2px; background: rgba(255, 255, 255, .04); }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head > .chips { justify-self: start; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font: 600 .9375rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: background-color .25s, color .25s, border-color .25s; }
.chip:hover { color: #fff; border-color: #fff; }
.chip.is-active { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-visual { position: relative; }
.about-frame { aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow), 0 0 0 10px rgba(255, 255, 255, .02); }
.about-frame > svg, .about-frame > img { width: 100%; height: 100%; object-fit: cover; }
.about-chips { position: absolute; inset-inline-end: -14px; bottom: 28px; display: grid; gap: 10px; }
.chip-card { padding: 14px 20px; border-radius: 14px; background: rgba(15, 14, 11, .82); border: 1px solid var(--line-strong); backdrop-filter: blur(12px); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.chip-card:nth-child(2) { margin-inline-start: 28px; animation-delay: -3s; }
.chip-card b { display: block; font: italic 800 1.625rem/1 var(--display); color: var(--gold-light); }
.chip-card span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@keyframes float { 50% { transform: translateY(-8px); } }
.about-copy .lead { margin: 24px 0 18px; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line-strong); }
.timeline li { position: relative; padding: 28px 0 0; padding-inline-end: 24px; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: 0; top: -6px; width: 11px; height: 11px; background: var(--gold-light); transform: rotate(45deg); }
.timeline-year { font: italic 800 2.5rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.2px var(--gold); }
.timeline h3 { font: 700 1.25rem/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; margin: 8px 0 6px; }
.timeline p { color: var(--muted); font-size: .9375rem; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-frame { aspect-ratio: 4 / 3; }
  .about-chips { position: static; grid-template-columns: 1fr 1fr; margin-top: 12px; }
  .chip-card, .chip-card:nth-child(2) { margin: 0; animation: none; box-shadow: none; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 36px; border-top: 0; }
  .timeline li { border-top: 1px solid var(--line-strong); }
}
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.values { display: grid; gap: 14px; }
.value { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.value:hover { border-color: rgba(215, 178, 99, .5); }
.value span { grid-row: span 2; font: italic 800 2.25rem/1 var(--display); color: var(--gold); }
.value h3 { font: 700 1.375rem/1.1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.value p { color: var(--muted); font-size: .9688rem; }
.honours-wrap { padding: 28px; border-radius: 22px; background: linear-gradient(150deg, #2b271d, var(--surface) 60%); border: 1px solid var(--line-strong); }
.honours { margin-top: 14px; }
.honours li { display: flex; align-items: center; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); }
.honours li > div { flex: 1; min-width: 0; }
.honour-year { font: italic 800 1.5rem/1 var(--display); color: var(--gold-light); min-width: 3.2ch; }
.honours h4 { font: 700 1.1875rem/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.honours p { color: var(--muted); font-size: .875rem; }
.honours .icon { width: 26px; height: 26px; color: var(--gold-light); opacity: .7; }

/* The season's kits */
.kits-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 16px; margin: clamp(48px, 7vw, 88px) 0 24px; }
.kits-maker { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.kits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kit { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(170deg, var(--surface-2), var(--surface)); }
.kit-art { display: grid; place-items: center; aspect-ratio: 1 / .78; background: radial-gradient(65% 60% at 50% 42%, rgba(215, 178, 99, .2), transparent 70%); }
.kit-art svg { width: 62%; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .5)); transition: transform .5s var(--ease); }
.kit:hover .kit-art svg { transform: translateY(-6px) scale(1.04); }
.kit figcaption { display: grid; gap: 2px; padding: 14px 18px 16px; border-top: 1px solid var(--line); }
.kit figcaption b { font: 700 1.25rem/1.1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--gold-light); }
.kit figcaption small { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang=ar] .kit figcaption small, html[lang=ar] .kits-maker { letter-spacing: 0; }
@media (max-width: 600px) { .kits { grid-template-columns: 1fr 1fr; gap: 12px; } .kit:last-child { grid-column: 1 / -1; } .kit:last-child .kit-art { aspect-ratio: 2 / .9; } .kit:last-child .kit-art svg { width: 34%; } }
.squad-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: clamp(48px, 7vw, 88px) 0 24px; }
.squad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.player { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(170deg, var(--surface-2), var(--surface)); }
.player:hover { border-color: rgba(240, 211, 143, .5); }
.player-art { position: relative; aspect-ratio: 1 / .92; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 40%, rgba(215, 178, 99, .22), transparent 70%), repeating-linear-gradient(-24deg, transparent 0 22px, rgba(255, 255, 255, .025) 22px 44px); }
.player-art svg { width: 68%; transform: translateZ(40px); transition: transform .5s var(--ease); filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .5)); }
.player:hover .player-art svg { transform: translateZ(40px) translateY(-6px) scale(1.05); }
.player-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.player-info { display: flex; align-items: center; gap: 14px; padding: 14px 18px 16px; border-top: 1px solid var(--line); }
.player-num { font: italic 800 2.125rem/1 var(--display); color: var(--gold-light); min-width: 1.6ch; }
.player h4 { font: 700 1.1875rem/1.15 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.player p { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.is-hidden { display: none !important; }
.coach { margin-top: 24px; display: flex; align-items: baseline; gap: 12px; color: var(--muted); font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; }
.coach b { font: 700 1.25rem/1 var(--display); letter-spacing: .05em; color: var(--text); }
@media (max-width: 1000px) { .squad { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .squad { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .player-info { padding: 12px; gap: 10px; }
  .player-num { font-size: 1.625rem; }
  .player h4 { font-size: 1.0313rem; }
  .honours-wrap { padding: 22px 18px; }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 19vw, 250px); grid-auto-flow: dense; gap: 14px; }
.shot { position: relative; overflow: hidden; border-radius: var(--radius); text-align: start; background: var(--surface); }
.shot.wide { grid-column: span 2; }
.shot.tall { grid-row: span 2; }
.shot.big { grid-column: span 2; grid-row: span 2; }
.shot > svg, .shot > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .5s; }
.shot:hover > svg, .shot:hover > img { transform: scale(1.07); filter: brightness(1.12); }
.shot-cap { position: absolute; inset: auto 0 0 0; display: grid; gap: 2px; padding: 46px 18px 16px; background: linear-gradient(transparent, rgba(8, 7, 5, .9)); transform: translateY(8px); opacity: .92; transition: transform .45s var(--ease), opacity .45s; }
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { transform: none; opacity: 1; }
.shot-cap small { font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.shot-cap b { font: 700 1.25rem/1.15 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.shot::after { content: '+'; position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-light); color: var(--ink); font: 600 1.375rem/1 var(--body); transform: scale(0) rotate(-90deg); transition: transform .4s var(--ease); }
.shot:hover::after, .shot:focus-visible::after { transform: none; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(140px, 42vw, 220px); gap: 10px; }
  .shot-cap b { font-size: 1.0625rem; }
}

/* ---------- Facilities ---------- */
.facilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.facility { padding: 30px 28px 28px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface-2), var(--surface) 55%); overflow: hidden; }
.facility:hover { border-color: rgba(240, 211, 143, .45); }
.facility-index { position: absolute; top: 14px; inset-inline-end: 22px; font: italic 800 4.5rem/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .1); }
.facility-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--gold-light); color: var(--ink); margin-bottom: 22px; transform: translateZ(36px); box-shadow: 0 14px 30px -10px rgba(240, 211, 143, .5); }
.facility-icon .icon { width: 28px; height: 28px; }
.facility h3 { font: 700 1.625rem/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; transform: translateZ(22px); }
.facility p { color: var(--muted); margin: 10px 0 20px; font-size: .9688rem; }
.facility ul { display: flex; flex-wrap: wrap; gap: 8px; }
.facility li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: .8125rem; color: #dbd8d0; }
@media (max-width: 1000px) { .facilities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .facilities { grid-template-columns: 1fr; } .facility { padding: 24px 20px; } }

/* ---------- Matches ---------- */
.next-match { display: grid; grid-template-columns: 1fr auto; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-strong); background: radial-gradient(90% 140% at 0% 0%, #403826 0%, #211d15 45%, var(--surface) 100%); box-shadow: var(--shadow); }
.next-match-main { padding: clamp(24px, 4vw, 44px); background: repeating-linear-gradient(90deg, transparent 0 80px, rgba(255, 255, 255, .022) 80px 160px); }
.next-match-comp { margin: 14px 0 22px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: .8125rem; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(12px, 3vw, 36px); }
.versus-team { display: grid; justify-items: center; gap: 12px; text-align: center; }
.versus-team .badge { width: clamp(64px, 9vw, 96px); height: clamp(64px, 9vw, 96px); font-size: clamp(1.5rem, 3vw, 2.25rem); }
.versus-team b { font: italic 800 clamp(1.25rem, 2.6vw, 2rem)/1.05 var(--display); text-transform: uppercase; }
.versus-vs { font: italic 800 clamp(2rem, 5vw, 3.75rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--gold-light); }
.next-match-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; color: #dbd8d0; font-size: .9375rem; }
.next-match-meta .icon { color: var(--gold-light); }
.next-match-meta span { color: var(--muted); }
.next-match-side { display: grid; align-content: center; justify-items: start; gap: 14px; padding: clamp(24px, 4vw, 44px); background: rgba(8, 7, 5, .5); border-inline-start: 1px solid var(--line); }
.next-match-side > small { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.next-match-side .countdown span { min-width: 62px; padding: 12px 8px 10px; }
.next-match-side .countdown b { font-size: 2.125rem; }

.tabs { display: inline-flex; gap: 4px; margin: clamp(32px, 5vw, 56px) 0 18px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tab { min-height: 42px; padding: 0 24px; border-radius: 999px; font: 700 1rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: background-color .25s, color .25s; }
.tab.is-active { background: var(--gold-light); color: var(--ink); }
.match-list { display: grid; gap: 10px; }
.match { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: clamp(14px, 3vw, 32px); padding: 16px clamp(16px, 2.5vw, 28px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .4s var(--ease), background-color .3s; animation: rise .6s var(--ease) var(--d, 0s) both; }
.match:hover { border-color: rgba(215, 178, 99, .55); transform: translateX(6px); background: var(--surface-2); }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }
.match-date { display: grid; justify-items: center; line-height: 1; padding-inline-end: clamp(14px, 3vw, 32px); border-inline-end: 1px solid var(--line); }
.match-date b { font: italic 800 2.25rem/1 var(--display); }
.match-date span { font: 700 .9375rem/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.match-date small { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.match-comp { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; max-width: 640px; }
.match-teams em { font: italic 700 1rem/1 var(--display); color: var(--muted); text-transform: uppercase; }
.match-teams .score { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; background: var(--ink); font: 700 1.375rem/1 var(--display); color: #fff; font-style: normal; font-variant-numeric: tabular-nums; }
.score i { color: var(--muted); font-style: normal; }
.team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team b { font: 700 1.1875rem/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.team-home { justify-content: flex-end; text-align: end; }
.match-time { font: 700 1.375rem/1 var(--display); letter-spacing: .04em; padding: 9px 14px; border-radius: 9px; background: rgba(255, 255, 255, .06); font-variant-numeric: tabular-nums; }
.result { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font: 700 1.125rem/1 var(--display); }
.result-W { background: var(--gold); color: var(--ink); }
.result-D { background: rgba(255, 255, 255, .16); }
.result-L { background: rgba(255, 122, 107, .2); color: var(--danger); }
.empty { color: var(--muted); padding: 24px 0; }
@media (max-width: 820px) {
  .next-match { grid-template-columns: 1fr; }
  .next-match-side { border-inline-start: 0; border-top: 1px solid var(--line); justify-items: stretch; }
  .next-match-side .countdown span { flex: 1; }
}
@media (max-width: 640px) {
  .match { grid-template-columns: 58px 1fr; gap: 14px; padding: 14px; }
  .match:hover { transform: none; }
  .match-date { padding-inline-end: 14px; }
  .match-date b { font-size: 1.75rem; }
  .match-teams { grid-template-columns: 1fr; gap: 6px; justify-items: start; }
  .match-teams > em:not(.score) { display: none; }
  .team-home { flex-direction: row-reverse; text-align: start; }
  .team b { font-size: 1.0625rem; }
  .match-time, .result { grid-column: 2; justify-self: start; }
  .match-teams .score { order: 3; font-size: 1.125rem; padding: 5px 12px; }
  .next-match-meta span { display: none; }
}

/* ---------- Location ---------- */
.location-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.map { position: relative; min-height: 460px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-canvas { position: absolute; inset: 0; background: var(--surface); font: inherit; }
.map.is-full { position: fixed; inset: 0; z-index: 300; min-height: 0; border-radius: 0; border: 0; }
/* Satellite / Map switch, tools and hint, in the site's style */
.map-switch { position: absolute; z-index: 500; top: 14px; inset-inline-start: 14px; display: flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(11, 10, 8, .78); backdrop-filter: blur(8px); border: 1px solid var(--line-strong); }
.map-switch button { padding: 7px 16px; border-radius: 999px; font: 700 .8125rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: background .2s, color .2s; }
.map-switch button.is-active { background: var(--gold-light); color: var(--ink); }
.map-tools { position: absolute; z-index: 500; bottom: 34px; inset-inline-end: 14px; display: grid; gap: 8px; }
.map-tools button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(11, 10, 8, .78); backdrop-filter: blur(8px); border: 1px solid var(--line-strong); color: var(--gold-light); transition: background .2s; }
.map-tools button:hover { background: rgba(11, 10, 8, .95); }
.map-tools svg { width: 20px; height: 20px; }
.map-hint { position: absolute; z-index: 500; bottom: 34px; left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(11, 10, 8, .78); color: var(--text); font-size: .8125rem; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .3s; }
.map:hover .map-hint { opacity: 1; }
.map.is-engaged .map-hint, .map.is-full .map-hint { opacity: 0; }
@media (hover: none) { .map-hint { display: none; } }
/* Leaflet's own controls */
.map .leaflet-container { background: #1a1813; font-family: var(--body); }
.map .leaflet-control-zoom { border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; margin: 14px; }
.map .leaflet-control-zoom a { width: 40px; height: 40px; line-height: 40px; background: rgba(11, 10, 8, .78); color: var(--gold-light); border-color: var(--line); font-size: 20px; backdrop-filter: blur(8px); }
.map .leaflet-control-zoom a:hover { background: rgba(11, 10, 8, .95); color: var(--gold-light); }
.map .leaflet-control-attribution { background: rgba(11, 10, 8, .7); color: var(--muted); font-size: 10px; }
.map .leaflet-control-attribution a { color: var(--gold-light); }
/* The pin: the club crest in a gold drop, with a pulse under it */
.map-marker { background: none; border: 0; }
.map-marker-pin { position: absolute; left: 3px; top: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #0b0a08; border: 3px solid var(--gold); box-shadow: 0 10px 24px rgba(0, 0, 0, .6); }
.map-marker-pin::after { content: ''; position: absolute; left: 50%; top: 100%; margin: 1px 0 0 -8px; border: 8px solid transparent; border-top: 10px solid var(--gold); border-bottom: 0; }
.map-marker-pin img { height: 30px; width: auto; }
.map-marker-pulse { position: absolute; left: 21px; top: 58px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 0 rgba(240, 211, 143, .7); animation: pin 2s infinite; z-index: -1; }
@keyframes pin { to { box-shadow: 0 0 0 26px rgba(240, 211, 143, 0); } }
.map-popup .leaflet-popup-content-wrapper { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); }
.map-popup .leaflet-popup-tip { background: var(--surface-2); }
.map-popup .leaflet-popup-content { display: grid; gap: 4px; margin: 14px 16px; font: 400 .875rem/1.4 var(--body); }
.map-popup strong { font: 700 1.0625rem/1.15 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--gold-light); }
.map-popup span { color: var(--muted); }
.map-popup a { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--gold-light); font-weight: 600; }
.map-popup a .icon { width: 1em; height: 1em; }
.map-popup .leaflet-popup-close-button { color: var(--muted); }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.location-info { display: grid; align-content: start; gap: 22px; padding: clamp(22px, 3vw, 36px); border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.address { display: flex; gap: 16px; }
.address > .icon { width: 30px; height: 30px; color: var(--gold-light); margin-top: 2px; }
.address p { color: var(--muted); margin-top: 6px; }
.coords { display: flex; gap: 10px; }
.coords div { flex: 1; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); }
.coords dt { font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.coords dd { font: 700 1.25rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.direction h4 { font: 700 1.0625rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 4px; }
.direction p { color: var(--muted); font-size: .9375rem; }
.location-info .btn { justify-self: start; }
html[dir=rtl] .map-hint { transform: translateX(50%); left: auto; right: 50%; }
@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .map { min-height: 340px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.contact-cards { display: grid; gap: 10px; }
.contact-cards a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .4s var(--ease); }
.contact-cards a:hover { border-color: var(--gold-light); transform: translateX(6px); }
.contact-cards .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(240, 211, 143, .12); color: var(--gold-light); }
.contact-cards span { display: grid; min-width: 0; }
.contact-cards small { font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-cards b { font: 700 1.25rem/1.25 var(--display); letter-spacing: .03em; overflow-wrap: anywhere; }
.hours { margin: 12px 0 28px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--muted); }
.hours dd { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease); }
.socials a:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); transform: translateY(-3px) rotate(-8deg); }

@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 0; background: #080705; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-crest { height: 132px; flex: none; }
.footer-brand div { display: grid; gap: 2px; justify-items: start; }
.footer-brand strong { font: italic 800 1.625rem/1.05 var(--display); text-transform: uppercase; }
.footer-brand span { color: var(--muted); font-size: .9375rem; text-align: start; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { font: 600 1rem/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #dbd8d0; transition: color .25s; }
.footer-nav a:hover, .footer-base a:hover { color: var(--gold-light); }
.footer-base { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: clamp(32px, 5vw, 56px); padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-word { font: italic 800 clamp(6rem, 27vw, 24rem)/.72 var(--display); text-transform: uppercase; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .1); margin-bottom: -.06em; user-select: none; pointer-events: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: clamp(12px, 3vw, 40px); background: rgba(6, 5, 4, .94); backdrop-filter: blur(10px); animation: fade .3s both; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { display: grid; gap: 14px; justify-items: center; }
.lb-media { width: min(100%, 1100px); max-height: 76vh; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.lb-media svg, .lb-media img { width: 100%; height: 100%; object-fit: contain; }
.lb-media svg { object-fit: cover; }
.lightbox figcaption { display: grid; gap: 2px; text-align: center; }
.lightbox figcaption small { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.lightbox figcaption b { font: 700 1.5rem/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-size: 1.5rem; line-height: 1; transition: background-color .25s, color .25s; }
.lb-btn:hover { background: var(--gold-light); color: var(--ink); }
.lb-close { position: absolute; top: 16px; inset-inline-end: 16px; font-size: 1.125rem; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr 1fr; align-content: center; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { justify-self: end; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; translate: 0 0; }
}

/* =====================================================================
   ARABIC / RIGHT-TO-LEFT
   The layout mirrors itself through logical properties; this block only
   handles what cannot flip on its own, and Arabic typography.
   ===================================================================== */
html[lang=ar] {
  --display: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --body: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}
/* Arabic script is joined-up: letter-spacing breaks the joins, and it has no italic */
html[lang=ar] * { letter-spacing: 0 !important; font-style: normal !important; }
html[lang=ar] body { line-height: 1.8; }

/* Outlined (stroke-only) display type shows every letter join in Arabic, so use solid colour instead */
html[lang=ar] :is(.hero-title .outline, .h2 .accent, .versus-vs) { -webkit-text-stroke: 0; }
html[lang=ar] .hero-title .outline { color: var(--gold-light); }
html[lang=ar] .h2 .accent { color: var(--gold); }
html[lang=ar] .versus-vs { color: var(--gold-light); font-size: clamp(1.5rem, 3.4vw, 2.5rem); }
html[lang=ar] .footer-word { -webkit-text-stroke: 0; color: rgba(255, 255, 255, .05); font-size: clamp(5rem, 24vw, 21rem); line-height: 1.1; margin-bottom: -.32em; }

/* Cairo is wider and taller than Barlow Condensed */
html[lang=ar] .hero-title { font-size: clamp(3rem, 6vw + .75rem, 6.5rem); line-height: 1.16; }
html[lang=ar] .hero-title .line { padding: 0 0 .1em; }
html[lang=ar] .h2 { font-size: clamp(2.125rem, 4.6vw, 3.75rem); line-height: 1.3; }
html[lang=ar] :is(.h3, .hero-sub strong, .brand-text strong, .footer-brand strong, .marquee span, .timeline h3, .value h3, .honours h4, .player h4, .shot-cap b, .facility h3, .versus-team b, .team b, .chip-card b, .direction h4, .contact-cards b, .lightbox figcaption b, .coach b, .hero-bar-teams) { line-height: 1.45; }
html[lang=ar] .eyebrow { font-size: .9375rem; }
html[lang=ar] .nav-links a:not(.btn) { font-size: 1rem; }
html[lang=ar] :is(.brand-text em, .stats small, .player p, .match-comp, .countdown small, .shot-cap small, .contact-cards small, .coords dt) { font-size: .8125rem; }
html[lang=ar] .btn { font-size: 1rem; }
html[lang=ar] .match { grid-template-columns: 104px 1fr auto; }
html[lang=ar] .match-date span { font-size: .8125rem; text-align: center; margin-top: 4px; }
@media (max-width: 960px) { html[lang=ar] .nav-links a:not(.btn) { font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.6; } }
@media (max-width: 640px) { html[lang=ar] .match { grid-template-columns: 78px 1fr; } }

/* Things that do not mirror by themselves */
[dir=rtl] .hero-fade { transform: scaleX(-1); }
[dir=rtl] .progress { transform-origin: 100% 50%; }
[dir=rtl] .nav-links a:not(.btn)::after { transform-origin: 100% 50%; }
[dir=rtl] .marquee { direction: ltr; }
[dir=rtl] .pitch-mark { right: auto; left: -18vw; }
[dir=rtl] :is(.icon-arrow, .lb-prev, .lb-next) { transform: scaleX(-1); }
[dir=rtl] .contact-cards b { text-align: right; }
[dir=rtl] .contact-cards a:hover { transform: translateX(-6px); }
@media (min-width: 641px) { [dir=rtl] .match:hover { transform: translateX(-6px); } }
