/* ============================================================
   PRO PADEL — Design System
   Aesthetic: Premium industrial editorial — black + electric lime + chrome
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Instrument+Serif:ital@0;1&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --bg: #0A0A0C;
  --bg-elevated: #14141A;
  --bg-card: #1A1A22;
  --lime: #C1E513;
  --lime-glow: rgba(193, 229, 19, 0.2);
  --lime-dim: rgba(193, 229, 19, 0.4);
  --silver: #E7E8E8;
  --silver-dim: rgba(231, 232, 232, 0.55);
  --white: #FFFFFF;
  --line: rgba(193, 229, 19, 0.18);
  --line-strong: rgba(193, 229, 19, 0.45);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-italic: 'Instrument Serif', serif;
  --font-arabic: 'Noto Naskh Arabic', serif;

  /* Sizing */
  --max-width: 1280px;
  --gutter-h: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 12vw, 160px);

  /* Motion */
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--silver);
  line-height: 1.6;
  font-weight: 400;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* Arabic / RTL support */
html[lang="ar"] body { font-family: var(--font-arabic); }
html[dir="rtl"] body { letter-spacing: 0; }

/* ----- Background atmosphere ----- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(193, 229, 19, 0.04), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(193, 229, 19, 0.03), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.012) 2px, rgba(255,255,255,0.012) 3px);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter-h);
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease);
}
.nav.scrolled { padding: 12px var(--gutter-h); }
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--white);
}
.nav-logo img { height: 28px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-dim);
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--lime);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--lime); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

/* ============================================================
   Social media icons in nav (WhatsApp + Instagram + Facebook + TikTok + X)
   ============================================================ */
.nav-social {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 8px;
  border-right: 1px solid var(--line);
  margin-right: 4px;
}
html[dir="rtl"] .nav-social {
  border-right: none;
  border-left: 1px solid var(--line);
  padding-right: 0;
  padding-left: 8px;
  margin-right: 0;
  margin-left: 4px;
}
.nav-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--silver-dim);
  transition: all 0.25s var(--ease);
  border-radius: 8px;
  position: relative;
}
.nav-social-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}
.nav-social-link:hover {
  color: var(--lime);
  background: rgba(193, 229, 19, 0.08);
}
.nav-social-link:hover svg {
  transform: scale(1.15);
}

/* WhatsApp gets special treatment — green accent */
.nav-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
}
.nav-whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 1px solid rgba(37, 211, 102, 0.4);
  animation: whatsapp-pulse 2.4s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.nav-whatsapp:hover {
  background: #25D366;
  color: #fff;
}
.nav-whatsapp svg { width: 16px; height: 16px; }

/* Hide social icons on mobile (they take too much space) — replaced by burger menu access */
@media (max-width: 880px) {
  .nav-social {
    display: none;
  }
}

/* ============================================================
   Floating WhatsApp button (mobile only — fills the gap when nav-social hides)
   ============================================================ */
.whatsapp-float {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45),
              0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease);
}
html[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 20px;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: whatsapp-pulse 2.4s var(--ease-out) infinite;
}
@media (max-width: 880px) {
  .whatsapp-float {
    display: flex;
  }
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,0.2);
}
.lang-switch button {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--silver-dim);
  transition: all 0.2s;
}
.lang-switch button.active {
  background: var(--lime);
  color: var(--bg);
}
.lang-switch button:hover:not(.active) { color: var(--white); }

.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(10, 10, 12, 0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 32px var(--gutter-h);
    gap: 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.4s var(--ease);
    align-items: flex-start;
    z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 16px; }
  /* Hide lang-switch from main nav on mobile — too wide. It will be visible in the burger menu instead. */
  .nav .lang-switch {
    display: none;
  }
  /* When cloned into the burger menu, show it — using non-mobile styles */
  .nav-links .lang-switch-mobile-wrap {
    margin-top: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    width: 100%;
    list-style: none;
  }
  .nav-links .lang-switch-mobile {
    display: flex !important;
    gap: 4px;
  }
}

/* ============================================================
   HEADER MARGIN
   ============================================================ */
main { padding-top: 72px; }

/* ============================================================
   PAGE HEADER STRIP (top tags)
   ============================================================ */
.strip {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--lime);
  font-weight: 500;
  padding: 16px var(--gutter-h);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}
html[dir="rtl"] .strip { letter-spacing: 0; }

/* ============================================================
   SHARED CONTAINER
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter-h);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.italic { font-family: var(--font-italic); font-style: italic; color: var(--lime); font-weight: 400; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--lime);
}
html[lang="ar"] .eyebrow { letter-spacing: 0.04em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
h1 { font-size: clamp(40px, 7vw, 96px); }
h2 { font-size: clamp(32px, 5vw, 64px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); letter-spacing: 0.05em; }
h4 { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; }

p { font-size: clamp(15px, 1vw, 16px); line-height: 1.7; color: var(--silver-dim); }

.tracked { letter-spacing: 0.18em; text-transform: uppercase; }
html[lang="ar"] .tracked { letter-spacing: 0; text-transform: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--white);
  background: transparent;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn:hover { color: var(--bg); border-color: var(--lime); }
.btn:hover::before { transform: translateY(0); }
.btn-primary {
  background: var(--lime);
  color: var(--bg);
  border-color: var(--lime);
}
.btn-primary::before { background: var(--white); }
.btn-primary:hover { color: var(--bg); border-color: var(--white); }
html[lang="ar"] .btn { letter-spacing: 0; text-transform: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  margin-top: var(--section-y);
  padding: 60px 0 32px;
  background: rgba(0,0,0,0.4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
.footer-brand img { height: 48px; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; font-size: 14px; }
.footer-col h4 { color: var(--lime); margin-bottom: 18px; font-size: 11px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--silver-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--silver-dim);
  text-transform: uppercase;
}
.footer-bottom .monogram {
  width: 32px; height: 32px;
  border: 1px solid var(--lime);
  display: grid;
  place-items: center;
  color: var(--lime);
  font-weight: 800;
  font-size: 14px;
}

/* ============================================================
   COURT SVG (utility — used on multiple pages)
   ============================================================ */
.court-bg {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
  width: 100%; height: 100%;
  inset: 0;
}

/* ============================================================
   HELPERS / ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes drawLine {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Subtle marquee for hero ticker */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
html[dir="rtl"] @keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
