/* ============================================================
   AL AHLY FOOTBALL ACADEMY - KSA
   Premium landing page styles
   ============================================================ */

/* --- Design Tokens --------------------------------------- */
:root {
  /* Brand */
  --c-red:        #D90A1C;
  --c-red-dark:   #A30E18;
  --c-red-deep:   #6B0710;
  --c-gold:       #C9A227;
  --c-gold-soft:  #E0C36A;

  /* Neutrals */
  --c-black:      #0A0A0A;
  --c-charcoal:   #161616;
  --c-graphite:   #2A2A2A;
  --c-smoke:      #4A4A4A;
  --c-mist:       #8A8A8A;
  --c-cloud:      #D9D9D9;
  --c-paper:      #F7F5F2;
  --c-white:      #FFFFFF;

  /* Typography — local @font-face first, then system-font fallbacks
     so the page still looks great if the woff2 files fail to load. */
  --font-display: 'Anton', 'Bebas Neue', 'Oswald', 'Helvetica Neue Condensed',
                  'Arial Narrow', Impact, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                  'SF Pro Text', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-arabic:  'Cairo', 'Tajawal', 'Noto Sans Arabic', 'Geeza Pro',
                  'GE SS', 'Segoe UI', Arial, sans-serif;

  /* Sizing */
  --container:    1280px;
  --container-w:  1480px;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-pill:  999px;

  /* Motion */
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --d-fast:       180ms;
  --d-med:        360ms;
  --d-slow:       720ms;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.20);
  --shadow-red: 0 20px 50px rgba(217, 10, 28, 0.30);
}

/* --- Reset / Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-black);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--d-fast) var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--c-red); color: var(--c-white); }

/* --- Helpers --------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container-wide {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-red);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: currentColor;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  line-height: 0.98;
  margin-block: 0.75rem 1rem;
}
.section-title .accent { color: var(--c-red); }
.section-lead {
  font-size: 1.0625rem;
  color: var(--c-smoke);
  max-width: 620px;
  line-height: 1.65;
}

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all var(--d-med) var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn-primary {
  background: var(--c-red);
  color: var(--c-white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: var(--c-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(217, 10, 28, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-dark {
  background: var(--c-black);
  color: var(--c-white);
}
.btn-dark:hover { background: var(--c-graphite); transform: translateY(-2px); }
.btn-icon {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform var(--d-med) var(--ease-out);
}
.btn:hover .btn-icon { transform: translateX(3px); }

/* --- Navigation ------------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1rem;
  transition: all var(--d-med) var(--ease-out);
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding-block: 0.625rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--c-white);
}
.nav-brand img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: transform var(--d-med) var(--ease-out);
}
.nav-brand:hover img { transform: scale(1.08) rotate(-2deg); }
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.nav-brand-text .top {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: 0.05em;
  color: var(--c-white);
  padding-bottom: 0.375rem;
}
.nav-brand-text .bot {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--c-gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  inset: auto 0 -6px 0;
  height: 2px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-med) var(--ease-out);
}
.nav-links a:hover { color: var(--c-white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-lang {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  letter-spacing: 0.08em;
  transition: all var(--d-fast) var(--ease);
}
.nav-lang:hover {
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.5);
}
.nav-cta { padding: 0.625rem 1.25rem; font-size: 0.8125rem; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--c-white);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* --- Hero ------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--c-white);
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(217, 10, 28, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 90%, rgba(217, 10, 28, 0.18), transparent 60%),
    linear-gradient(180deg, #0A0A0A 0%, #15090B 50%, #0A0303 100%);
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 4rem;
}
.hero::before {
  /* Subtle stadium-light texture */
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle 2px at 12% 18%, rgba(255,255,255,0.5), transparent),
    radial-gradient(circle 1.5px at 88% 22%, rgba(255,255,255,0.4), transparent),
    radial-gradient(circle 2px at 22% 78%, rgba(255,255,255,0.3), transparent),
    radial-gradient(circle 1.5px at 70% 86%, rgba(255,255,255,0.4), transparent),
    radial-gradient(circle 1px at 50% 50%, rgba(255,255,255,0.2), transparent);
  background-size: 100% 100%;
  opacity: 0.6;
  pointer-events: none;
}
.hero::after {
  /* Diagonal red light streak */
  content: '';
  position: absolute;
  inset: -30% -10% auto auto;
  width: 70%;
  height: 110%;
  background: linear-gradient(135deg, transparent 35%, rgba(217, 10, 28, 0.25) 50%, transparent 65%);
  transform: rotate(-12deg);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 0 0 0 rgba(217, 10, 28, 0.5);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217, 10, 28, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(217, 10, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 10, 28, 0); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.75rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 1.5rem;
}
.hero-title > span { display: block; margin-bottom: 1.67rem; }
.hero-title > span:last-child { margin-bottom: 0; }
.hero-title .stroke {
  -webkit-text-stroke: 1.5px var(--c-white);
  color: transparent;
}
.hero-title .accent { color: var(--c-red); }
.hero-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 540px;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .num-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--c-white);
}
.hero-stat .plus {
  color: var(--c-gold);
  font-size: 1.5rem;
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 10, 28, 0.45) 0%, transparent 65%);
  filter: blur(50px);
  z-index: 0;
  animation: glow-pulse 4s ease-in-out infinite alternate;
}
@keyframes glow-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}
.hero-visual .rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  animation: spin 60s linear infinite;
}
.hero-visual .rings.r2 {
  inset: 8%;
  border-style: dotted;
  border-color: rgba(201, 162, 39, 0.18);
  animation-duration: 40s;
  animation-direction: reverse;
}
.hero-visual .rings.r3 {
  inset: 16%;
  border-color: rgba(217, 10, 28, 0.25);
  animation-duration: 80s;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-logo {
  position: relative;
  z-index: 2;
  width: 70%;
  max-width: 460px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}
.hero-scroll .line {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.hero-scroll .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-white);
  animation: scroll-line 2.5s var(--ease-out) infinite;
}
@keyframes scroll-line {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* --- Trust Strip ----------------------------------------- */
.trust {
  background: var(--c-black);
  color: var(--c-white);
  padding-block: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.trust-item .icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(217, 10, 28, 0.18);
  color: var(--c-red);
}
.trust-item .icon svg { width: 20px; height: 20px; }
.trust-item .label {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}
.trust-item .value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}

/* --- Section ---------------------------------------------- */
section { padding-block: clamp(4rem, 9vw, 8rem); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .section-lead { margin-inline: auto; }

/* --- About ------------------------------------------------ */
.about {
  background:
    linear-gradient(180deg, var(--c-paper) 0%, #FAF8F5 100%);
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.about-text .pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.pillar {
  padding: 1.25rem;
  border-left: 3px solid var(--c-red);
  background: var(--c-white);
  border-radius: 4px 12px 12px 4px;
  box-shadow: var(--shadow-sm);
}
.pillar h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 0.375rem;
  letter-spacing: 0.02em;
}
.pillar p { font-size: 0.9375rem; color: var(--c-smoke); line-height: 1.55; }

.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--c-red-deep) 0%, var(--c-black) 100%);
  box-shadow: var(--shadow-lg);
}
.about-visual::before {
  /* Stadium field pattern */
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,0.04) 40px 41px),
    radial-gradient(ellipse 60% 30% at 50% 100%, rgba(201, 162, 39, 0.25), transparent 60%);
}
.about-visual img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78%;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.5));
}
.about-badge {
  position: absolute;
  bottom: -1.25rem;
  right: -1.25rem;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-black);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
  rotate: -8deg;
  z-index: 3;
  transition: rotate var(--d-slow) var(--ease-out);
}
.about-badge:hover { rotate: 0deg; }
.about-badge .yr {
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
.about-badge .txt {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  margin-top: 0.25rem;
  font-weight: 700;
}

/* --- Programs --------------------------------------------- */
.programs {
  background: var(--c-black);
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}
.programs::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 50% 30% at 90% 10%, rgba(217, 10, 28, 0.15), transparent 70%);
  pointer-events: none;
}
.programs .section-title { color: var(--c-white); }
.programs .section-lead { color: rgba(255, 255, 255, 0.65); }
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}
.program-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--d-med) var(--ease-out);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.program-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-red), var(--c-gold));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--d-med) var(--ease-out);
}
.program-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 10, 28, 0.4);
  background: linear-gradient(180deg, rgba(217,10,28,0.08) 0%, rgba(255,255,255,0.02) 100%);
}
.program-card:hover::before { transform: scaleX(1); }
.program-card .age {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--c-red);
  letter-spacing: 0;
}
.program-card .age-label {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-gold);
  margin-top: 0.25rem;
}
.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: 1.25rem 0 0.625rem;
  color: var(--c-white);
}
.program-card p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  flex: 1;
}
.program-card .features {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.program-card .features li {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.program-card .features li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--c-red);
  flex-shrink: 0;
  transform: rotate(45deg);
}

/* --- Why Us ------------------------------------------------ */
.why { background: var(--c-paper); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature {
  padding: 2.25rem 1.75rem;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--d-med) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-red);
}
.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--c-red), var(--c-red-dark));
  color: var(--c-white);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-red);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
  letter-spacing: 0.01em;
}
.feature p { font-size: 0.9375rem; color: var(--c-smoke); line-height: 1.6; }

/* --- Coaches ----------------------------------------------- */
.coaches { background: var(--c-white); }
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.coach {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--c-graphite);
  cursor: pointer;
}
.coach::before {
  /* Photo fallback gradient */
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, var(--c-red-dark) 0%, transparent 70%),
    linear-gradient(180deg, #1A1A1A 0%, #0A0A0A 100%);
}
.coach .photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--d-slow) var(--ease-out);
}
.coach:hover .photo { transform: scale(1.06); }
.coach::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
}
.coach-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.75rem;
  color: var(--c-white);
  z-index: 2;
  transition: transform var(--d-med) var(--ease-out);
}
.coach-info .role {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.coach-info h3 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}
.coach-info .bio {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all var(--d-med) var(--ease-out);
}
.coach:hover .coach-info .bio {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.5rem;
}

/* --- Facilities ------------------------------------------ */
.facilities {
  background: var(--c-paper);
  position: relative;
}
.facilities-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 600px;
}
.facility {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--c-graphite);
}
.facility:nth-child(1) { grid-row: span 2; }
.facility::before {
  content: '';
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--d-slow) var(--ease-out);
}
.facility:hover::before { transform: scale(1.08); }
.facility:nth-child(1)::before { background: linear-gradient(135deg, #2a0508, #6b0710 60%, #0a0a0a); }
.facility:nth-child(2)::before { background: linear-gradient(135deg, #1a1a1a, #2a0508); }
.facility:nth-child(3)::before { background: linear-gradient(135deg, #6b0710, #0a0a0a); }
.facility:nth-child(4)::before { background: linear-gradient(135deg, #2a0508, #c9a227 200%); }
.facility:nth-child(5)::before { background: linear-gradient(135deg, #0a0a0a, #2a0508); }
.facility::after {
  /* Stadium field illusion */
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 24px, rgba(255,255,255,0.03) 24px 25px);
  pointer-events: none;
}
.facility-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  color: var(--c-white);
  z-index: 2;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
}
.facility-label .num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--c-gold);
  letter-spacing: 0.18em;
  margin-bottom: 0.25rem;
}
.facility-label h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
}

/* --- Pricing ---------------------------------------------- */
.pricing {
  background: var(--c-black);
  color: var(--c-white);
  position: relative;
}
.pricing::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 40% 60% at 0% 100%, rgba(217, 10, 28, 0.20), transparent 70%);
  pointer-events: none;
}
.pricing .section-title { color: var(--c-white); }
.pricing .section-lead { color: rgba(255, 255, 255, 0.6); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}
.tier {
  padding: 2.5rem 2rem;
  background: var(--c-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--d-med) var(--ease-out);
}
.tier:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 10, 28, 0.4);
}
.tier.featured {
  background: linear-gradient(180deg, var(--c-red) 0%, var(--c-red-dark) 100%);
  transform: scale(1.04);
  box-shadow: var(--shadow-red);
  border-color: var(--c-gold);
}
.tier.featured:hover { transform: scale(1.04) translateY(-8px); }
.tier-tag {
  position: absolute;
  top: -14px;
  right: 1.75rem;
  padding: 0.375rem 0.875rem;
  background: var(--c-gold);
  color: var(--c-black);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: var(--radius-pill);
}
.tier h3 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.tier .summary {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
}
.tier.featured .summary { color: rgba(255, 255, 255, 0.85); }
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-bottom: 2rem;
}
.tier-price .num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
}
.tier-price .currency {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}
.tier-price .period {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}
.tier-features li {
  display: flex;
  gap: 0.625rem;
  padding-block: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tier-features li:last-child { border-bottom: 0; }
.tier-features li svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--c-gold);
  margin-top: 2px;
}
.tier.featured .tier-features li svg { color: var(--c-white); }
.tier .btn { margin-top: 2rem; width: 100%; }

/* --- Testimonials ----------------------------------------- */
.testimonials { background: var(--c-paper); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.testi {
  padding: 2.25rem;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
}
.testi-quote {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.7;
  color: var(--c-red);
  opacity: 0.12;
  user-select: none;
}
.testi p {
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  color: var(--c-graphite);
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-red), var(--c-red-dark));
  color: var(--c-white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
}
.testi-author .name {
  font-weight: 700;
  margin-bottom: 0.125rem;
}
.testi-author .role {
  font-size: 0.8125rem;
  color: var(--c-mist);
}

/* --- CTA / Registration ----------------------------------- */
.cta {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem);
  color: var(--c-white);
  background:
    radial-gradient(ellipse 70% 50% at 30% 50%, rgba(217, 10, 28, 0.45), transparent 60%),
    linear-gradient(135deg, #0A0A0A 0%, #1A0507 50%, #0A0A0A 100%);
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: -20% auto auto -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.18), transparent 70%);
  pointer-events: none;
}
.cta-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.cta-text .section-title { color: var(--c-white); }
.cta-text .section-lead { color: rgba(255, 255, 255, 0.75); }
.cta-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}
.field input,
.field select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--c-white);
  font-size: 0.9375rem;
  transition: all var(--d-fast) var(--ease);
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--c-red);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 4px rgba(217, 10, 28, 0.15);
}
.field input::placeholder { color: rgba(255, 255, 255, 0.35); }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cta-form .btn { width: 100%; margin-top: 0.5rem; padding-block: 1.125rem; }
.cta-form .small {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* --- Footer ----------------------------------------------- */
.footer {
  background: #050505;
  color: rgba(255, 255, 255, 0.7);
  padding-block: 4rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  color: var(--c-white);
}
.footer-brand .logo img { height: 56px; }
.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--c-white);
  line-height: 1;
}
.footer-brand .logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-gold);
  margin-top: 0.5rem;
}
.footer-brand p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 320px;
  margin-bottom: 1.25rem;
}
.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--d-fast) var(--ease);
}
.footer-socials a:hover {
  border-color: var(--c-red);
  background: var(--c-red);
  color: var(--c-white);
  transform: translateY(-2px);
}
.footer-socials svg { width: 18px; height: 18px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}
.footer-col ul li { margin-bottom: 0.625rem; }
.footer-col ul a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-col ul a:hover { color: var(--c-red); }
.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.55); }
.footer-bottom a:hover { color: var(--c-white); }

/* --- Reveal ----------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 800ms var(--ease-out),
    transform 800ms var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 500px; margin-inline: auto; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .tier.featured { transform: none; }
  .tier.featured:hover { transform: translateY(-8px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .coaches-grid { grid-template-columns: repeat(2, 1fr); }
  .facilities-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 220px);
    height: auto;
  }
  .facility:nth-child(1) { grid-row: span 2; grid-column: span 2; }
  .about-grid, .cta-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 460px; margin-inline: auto; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Only hide the lang button in the top bar — keep the one inside the drawer */
  .nav-actions .nav-lang { display: none; }
  .nav-cta { display: none; }
  .hero { padding-top: 5rem; padding-bottom: 2rem; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }
  .hero-stat .num { font-size: 2rem; }
  .trust-inner { justify-content: center; gap: 1.75rem; }
  .programs-grid, .why-grid, .coaches-grid, .testi-grid { grid-template-columns: 1fr; }
  .about-text .pillars { grid-template-columns: 1fr; }
  .facilities-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 220px);
  }
  .facility:nth-child(1) { grid-row: span 1; grid-column: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .about-badge { width: 130px; height: 130px; right: 0; bottom: -1rem; }
  .about-badge .yr { font-size: 2.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Mobile nav drawer — driven by the .menu-open class on <body>, which is
   toggled by JS. (The previous CSS-only sibling-selector approach broke
   because the checkbox sits OUTSIDE <header> while .nav-drawer lives INSIDE.) */
#nav-toggle-check { display: none; }
.nav-drawer { display: none; }
.nav-toggle svg.close { display: none; }

@media (max-width: 768px) {
  /* Backdrop — dim layer behind the drawer. Tap to close. */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--d-med) var(--ease-out),
                visibility var(--d-med);
  }
  body.menu-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Drawer — half-screen on the inline-end edge, leaving space at the
     start that doubles as a tap-to-close target via the backdrop. */
  .nav-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: 78%;
    max-width: 340px;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    padding: 6rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform var(--d-med) var(--ease-out);
    pointer-events: none;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  }
  .nav-drawer a {
    color: var(--c-white);
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
  }
  /* Open state — class added to <body> by main.js */
  body.menu-open .nav-drawer {
    transform: translateX(0);
    pointer-events: auto;
  }
  body.menu-open .nav-toggle svg.menu  { display: none; }
  body.menu-open .nav-toggle svg.close { display: inline-block; }

  /* RTL — drawer pinned to the left edge, slides in from -100% */
  html[dir="rtl"] .nav-drawer {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
  }
  html[dir="rtl"] body.menu-open .nav-drawer { transform: translateX(0); }

  /* Lock background scroll while drawer is open */
  body.menu-open { overflow: hidden; }
}

/* --- Print / Reduced Motion ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RTL / ARABIC LANGUAGE STYLES
   ============================================================ */

/* Arabic font stack — Cairo for everything when in RTL */
html.ar,
html.ar body {
  font-family: var(--font-arabic);
}
/* Arabic mode: keep the SAME font weights and sizes as English.
   We only switch the font-family to Cairo (so Arabic glyphs render)
   and give a tiny line-height bump so Cairo's diacritics don't clip. */
html.ar .section-title,
html.ar .hero-title,
html.ar .program-card .age,
html.ar .program-card h3,
html.ar .feature h3,
html.ar .coach-info h3,
html.ar .facility-label h3,
html.ar .tier h3,
html.ar .tier-price .num,
html.ar .nav-brand-text .top,
html.ar .footer-brand .logo-text,
html.ar .footer-col h4,
html.ar .pillar h4,
html.ar .trust-item .value,
html.ar .about-badge .yr,
html.ar .hero-stat .num,
html.ar .testi-quote {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}

/* Section spacing/eyebrow indicator flips to right side */
html[dir="rtl"] .eyebrow::before {
  display: none;
}
html[dir="rtl"] .eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: currentColor;
  margin-inline-start: 0.625rem;
}

/* Buttons: arrow icons should point in the direction of motion */
html[dir="rtl"] .btn-icon { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .btn-icon { transform: scaleX(-1) translateX(3px); }

/* Pillar borders flip side */
html[dir="rtl"] .pillar {
  border-left: 0;
  border-right: 3px solid var(--c-red);
  border-radius: 12px 4px 4px 12px;
}

/* About badge — sits on left in RTL */
html[dir="rtl"] .about-badge {
  right: auto;
  left: -1.25rem;
}
@media (max-width: 768px) {
  html[dir="rtl"] .about-badge { left: 0; right: auto; }
}

/* Tier "Most popular" tag flips side */
html[dir="rtl"] .tier-tag {
  right: auto;
  left: 1.75rem;
}

/* Tier-features check icon — keep its inline margin on the correct side */
html[dir="rtl"] .tier-features li svg { transform: scaleX(-1); }

/* Testimonial decorative quote */
html[dir="rtl"] .testi-quote {
  right: auto;
  left: 1.5rem;
}

/* Hero scroll indicator stays centered, no flip needed */

/* Underline animation for nav links should grow from the right in RTL */
html[dir="rtl"] .nav-links a::after { transform-origin: right; }

/* Nav-brand image keeps margin via gap (flex), no explicit flip needed.
   Make sure nav-brand text aligns to right in RTL. */
html[dir="rtl"] .nav-brand-text { text-align: right; }

/* Hero stat layout reads naturally in RTL because flex auto-reverses,
   but the .plus inline span should sit next to the number from the
   correct side. We just adjust spacing. */
html[dir="rtl"] .hero-stat .num { direction: ltr; }

/* The Arabic logos are designed on black bg, so they show best on
   the dark hero already. The about-visual stays dark, so AR vertical
   reads correctly there too. */

/* Inputs / selects: text alignment */
html[dir="rtl"] .field input,
html[dir="rtl"] .field select { text-align: right; }
html[dir="rtl"] .field input[type="email"],
html[dir="rtl"] .field input[type="tel"] {
  direction: ltr;
  text-align: right;
}

/* Footer columns become RTL automatically. Sub-text alignment OK. */

/* Lang toggle button — make sure it sits on the correct side */
.nav-lang {
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}

/* Arabic-mode: program ages stay LTR (we still use "U-8" etc. semantically) */
html.ar .program-card .age { direction: ltr; }

/* In Arabic mode the eyebrow font weight feels lighter; bump it */
html.ar .eyebrow { font-weight: 800; letter-spacing: 0.04em; }

/* Pricing currency on RTL — sits to right side correctly via flex order */
html[dir="rtl"] .tier-price { direction: ltr; justify-content: flex-end; }
html.ar .tier-price { direction: ltr; }

/* Trust strip: in RTL, the icon ends up on the right side of label which is
   correct visually. No additional fix needed. */


/* ============================================================
   TEMPORARILY HIDDEN SECTIONS (remove this block to re-enable)
   ============================================================ */
.coaches,
.facilities,
.pricing,
.cta {
  display: none !important;
}

/* Hide their nav links + footer references */
.nav-links a[href="#coaches"],
.nav-links a[href="#pricing"],
.nav-links a[href="#contact"],
.nav-drawer a[href="#coaches"],
.nav-drawer a[href="#pricing"],
.nav-drawer a[href="#contact"],
.footer-col ul a[href="#coaches"],
.footer-col ul a[href="#pricing"] {
  display: none !important;
}

/* Hide the "Register Now" CTA button (in both nav + drawer) since the
   registration form is hidden. Re-enable when the form returns. */
.nav-cta,
.nav-drawer .btn-primary {
  display: none !important;
}
