/* ── SHARED STYLES ──────────────────────────────────── */
:root {
  --navy:      #213789;
  --navy-dark: #172860;
  --navy-deep: #0d1a4a;
  --navy-mid:  #1a2760;
  --sky:       #87d4f5;
  --sky-pale:  #c9eafc;
  --white:     #ffffff;
  --bg:        #0d1a4a;
  --bg-alt:    #121f5a;
  --text:      #ffffff;
  --muted:     rgba(255,255,255,0.6);
  --border:    rgba(135,212,245,0.15);
  --glass-bg:  rgba(255,255,255,0.07);
  --glass-border: rgba(135,212,245,0.2);
  --shadow:    0 8px 32px rgba(0,0,0,0.3);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.4);
  --radius:    16px;
  --font: 'Cairo', 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
body[dir="ltr"] { font-family: 'Space Grotesk', 'Cairo', sans-serif; }

/* ── SCROLL PROGRESS ── */
#progress-bar {
  position: fixed; top: 0; right: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--sky), var(--navy));
  z-index: 9999; transition: width 0.08s linear; border-radius: 0 0 2px 0;
}

/* ── LOADER ── */
#loader {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9998; transition: opacity 0.5s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
#loader img { width: 200px; margin-bottom: 32px; filter: brightness(0) invert(1); }
#loader-text { color: var(--muted); font-size: 14px; margin-bottom: 20px; letter-spacing: 0.05em; }
#loader-bar-wrap { width: 220px; height: 4px; background: rgba(135,212,245,0.2); border-radius: 4px; overflow: hidden; }
#loader-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--sky), var(--navy)); border-radius: 4px; }

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 12px; right: 0; left: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 40px;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
#navbar.scrolled {
  max-width: 880px; margin: 0 auto;
  background: rgba(13,26,74,0.85);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  border-radius: 50px; padding: 10px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.nav-logo img { height: 36px; filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--sky); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta {
  background: var(--sky); color: var(--navy-deep);
  border: none; padding: 10px 22px; border-radius: 24px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  text-decoration: none; white-space: nowrap;
}
.nav-cta:hover { background: var(--sky-pale); transform: translateY(-1px); }
.lang-toggle {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--sky); padding: 7px 14px; border-radius: 20px;
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.lang-toggle:hover { background: rgba(135,212,245,0.15); }
@media (max-width: 768px) {
  .nav-links { display: none; }
  #navbar { padding: 10px 16px; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }
}

/* ── SECTIONS SHARED ── */
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block; background: rgba(135,212,245,0.12);
  color: var(--sky); font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.section-title {
  font-size: clamp(28px,4vw,44px); font-weight: 900;
  color: var(--white); margin-bottom: 16px; line-height: 1.2;
}
.section-sub {
  font-size: 16px; color: var(--muted); max-width: 540px;
  line-height: 1.75; margin-bottom: 56px;
}

/* ── GLASS CARD ── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
  border-color: rgba(135,212,245,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sky); color: var(--navy-deep);
  text-decoration: none; padding: 13px 28px; border-radius: 12px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--sky-pale); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--sky);
  border: 1px solid var(--sky); text-decoration: none;
  padding: 13px 28px; border-radius: 12px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  transition: background 0.2s, transform 0.15s;
}
.btn-outline:hover { background: rgba(135,212,245,0.1); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: #080f2a;
  color: rgba(255,255,255,0.65); padding: 60px 24px 28px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-brand img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; max-width: 240px; line-height: 1.7; }
.footer-links h4 { color: var(--sky); font-size: 12px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--sky); }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--sky); text-decoration: none; font-size: 16px;
  transition: background 0.2s, transform 0.15s;
}
.social-btn:hover { background: rgba(135,212,245,0.15); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
}
.footer-bottom p { font-size: 12px; }
.footer-bottom a { color: var(--sky); text-decoration: none; }
.saudi-made {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.saudi-made .flag { font-size: 16px; }
.cr-badge {
  background: rgba(135,212,245,0.08);
  border: 1px solid rgba(135,212,245,0.15);
  border-radius: 8px; padding: 3px 10px;
  font-size: 11px; color: rgba(255,255,255,0.45);
  font-family: 'Space Grotesk', sans-serif;
}

/* ── SCROLL TO TOP ── */
#scroll-top {
  position: fixed; bottom: 28px; left: 28px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sky); color: var(--navy-deep); border: none;
  font-size: 18px; cursor: pointer; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(135,212,245,0.3);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  min-height: 40vh; display: flex; align-items: center;
  justify-content: center; text-align: center;
  padding: 140px 24px 80px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--navy-mid) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(135,212,245,0.08) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 2; max-width: 640px; }
.page-hero h1 { font-size: clamp(36px,6vw,60px); font-weight: 900; color: var(--white); line-height: 1.15; margin-bottom: 16px; }
.page-hero p { font-size: 17px; color: var(--muted); line-height: 1.7; }

/* ── UTILITY ── */
.text-sky { color: var(--sky); }
.mt-0 { margin-top: 0 !important; }
