/* ============================================
   CSS Variables — متغيرات الألوان والخطوط
   ============================================ */
:root {
  --navy-deepest: #050C1A;
  --navy-deep: #0A1628;
  --navy-mid: #112A4C;
  --navy-royal: #1E3A8A;
  --purple-night: #1E1B4B;
  --purple-deep: #2D1B69;

  --gold: #D4AF37;
  --gold-bright: #F4D03F;
  --gold-soft: #E8C585;

  --white: #FFFFFF;
  --white-soft: rgba(255, 255, 255, 0.85);
  --white-muted: rgba(255, 255, 255, 0.65);
  --white-faint: rgba(255, 255, 255, 0.4);

  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.12);
  --gold-border: rgba(212, 175, 55, 0.3);

  --success: #10B981;
  --warning: #F59E0B;

  --font-display: 'Tajawal', sans-serif;
  --font-body: 'Tajawal', sans-serif;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.35);
}

/* ============================================
   Reset & Base
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-deepest);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  font-weight: 400;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse at top right, rgba(30, 27, 75, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(17, 42, 76, 0.6) 0%, transparent 50%),
    linear-gradient(135deg, #050C1A 0%, #0A1628 50%, #112A4C 100%);
}

.bg-layer,
.bg-pattern { display: none; }

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--gold);
  top: -150px;
  right: -100px;
  opacity: 0.15;
  animation: float1 22s ease-in-out infinite;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: var(--purple-deep);
  top: 40%;
  left: -200px;
  opacity: 0.35;
  animation: float2 28s ease-in-out infinite;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: var(--navy-royal);
  bottom: -100px;
  right: 20%;
  opacity: 0.3;
  animation: float3 32s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 60px) scale(1.1); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, -50px) scale(0.9); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0); }
  50% { transform: translate(-50px, -80px) scale(1.15) rotate(180deg); }
}

/* Top notice */
.disclaimer {
  background: rgba(212, 175, 55, 0.12);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--white-soft);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 100;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}

.nav-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-deep);
  font-weight: 800;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--white);
}
.gold { color: var(--gold-soft); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--white-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.3s;
}
.nav-links a:hover {
  color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--navy-deep);
  padding: 12px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
}
.menu-btn {
  display: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: var(--white);
}

/* Hero */
.hero {
  padding: 80px 32px 100px;
}
.hero {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  color: var(--gold-soft);
  font-size: 13px;
  margin-bottom: 24px;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.2;
  margin-bottom: 20px;
}
.gold-text {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--white-muted);
  margin-bottom: 28px;
  max-width: 60ch;
}
.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.check {
  color: var(--gold-soft);
  font-weight: 700;
}

/* Form */
.form-card,
.form-inner {
  background: var(--glass);
  backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid var(--gold-border);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-md);
}
.form-status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
  font-size: 12px;
}
.form-title {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 14px 0 6px;
}
.form-subtitle {
  color: var(--white-muted);
  margin-bottom: 16px;
}
.form-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin-bottom: 20px;
}
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--white-soft);
  font-size: 13px;
}
.form-input,
.form-textarea,
.phone-wrap input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-body);
  min-height: 52px;
}
.form-textarea { min-height: 100px; resize: vertical; }
.phone-wrap {
  display: flex;
  gap: 8px;
  direction: ltr;
}
.phone-code {
  order: -1;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 15px;
  color: var(--white-soft);
  white-space: nowrap;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
}
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--navy-deep);
  border: 0;
  padding: 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 8px;
  min-height: 54px;
}
.form-message {
  min-height: 22px;
  margin-top: 10px;
}
.form-message.ok { color: #86efac; }
.form-message.error { color: #fecaca; }
.form-footer {
  text-align: center;
  font-size: 12px;
  color: var(--white-faint);
  margin-top: 12px;
}

/* Sections */
.section {
  padding: 100px 32px;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
}
.section-subtitle {
  color: var(--white-muted);
  font-size: clamp(15px, 1.7vw, 18px);
}

.trust-bar {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 30px 32px;
}
.trust-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-item {
  display: flex;
  gap: 10px;
}

.services-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
}
.service-title {
  margin: 12px 0 8px;
}
.service-desc {
  color: var(--white-muted);
}

.timeline {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.timeline-step {
  text-align: center;
}
.step-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 2px solid var(--gold-border);
  display: grid;
  place-items: center;
  color: var(--gold-soft);
}

.about-card {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
}
.about-desc { color: var(--white-soft); }

.contact-section {
  padding: 100px 32px;
}
.contact-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}
.why-us {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
}
.why-list { list-style: none; display: grid; gap: 10px; }

.footer {
  background: #060D1A;
  border-top: 1px solid var(--glass-border);
  padding: 60px 32px 20px;
}
.footer-wrap {
  max-width: 1320px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-col h4 { color: var(--gold-soft); margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col a, .footer-col p { color: var(--white-muted); text-decoration: none; }
.footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}
.footer-legal-notice {
  margin-top: 10px;
  padding: 12px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  color: var(--white-soft);
  font-size: 13px;
}

/* Legal pages centralized */
.legal-page .legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px;
}
.legal-back-link {
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  padding: 8px 16px;
  background: rgba(212,175,55,0.1);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
}
.legal-card {
  background: var(--glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.legal-title {
  font-size: 38px;
  font-family: var(--font-display);
  margin-bottom: 12px;
  background: linear-gradient(135deg,var(--gold-soft),var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.legal-updated {
  font-size: 13px;
  color: var(--white-muted);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}
.legal-page h2 {
  font-size: 22px;
  color: var(--gold-soft);
  margin: 32px 0 12px;
}
.legal-page p,
.legal-page li {
  color: var(--white-soft);
  font-size: 15px;
}
.legal-page ul {
  list-style: none;
  margin: 12px 0;
}
.legal-page ul li {
  position: relative;
  padding: 8px 20px 8px 0;
}
.legal-page ul li::before {
  content: '◆';
  position: absolute;
  right: 0;
  color: var(--gold);
  font-size: 10px;
  top: 12px;
}
.legal-contact-box,
.legal-highlight-box {
  margin-top: 20px;
  padding: 20px;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 16px;
  font-size: 14px;
}
.legal-cookie-type {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
}
.legal-cookie-type h3 {
  display: flex;
  gap: 10px;
  align-items: center;
}
.legal-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(212,175,55,0.15);
  color: var(--gold-soft);
}
.legal-warning-box {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
}
.legal-info-list {
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
}
.legal-info-list .row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
}
.legal-info-list .row:last-child { border-bottom: none; }

/* Thank you page */
.thankyou-page .top-alert {
  position: relative;
  z-index: 5;
}

.thankyou-main {
  min-height: calc(100vh - 52px);
  display: grid;
  place-items: center;
  padding: 28px 16px 40px;
}

.thankyou-container {
  width: min(760px, 100%);
  margin: 0 auto;
}

.thankyou-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 52px);
  box-shadow: var(--shadow-lg);
  text-align: center;
  backdrop-filter: blur(26px);
}

.thankyou-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.thankyou-icon {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 44px;
  background: linear-gradient(135deg, rgba(16,185,129,0.95), rgba(5,150,105,0.95));
  box-shadow: 0 12px 34px rgba(16,185,129,0.35);
}

.thankyou-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
  margin: 8px 0 10px;
  color: var(--white);
}

.thankyou-subtitle {
  color: var(--white-soft);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 48ch;
  margin: 0 auto 16px;
}

.thankyou-reference {
  margin: 0 auto 18px;
  padding: 12px 16px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid var(--gold-border);
  background: rgba(212,175,55,0.12);
  color: var(--gold-soft);
  font-weight: 800;
  font-size: 15px;
}

.thankyou-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.thankyou-btn {
  text-decoration: none;
  border-radius: 14px;
  min-height: 52px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.thankyou-btn:hover {
  transform: translateY(-2px);
}

.thankyou-btn-whatsapp {
  color: #fff;
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

.thankyou-btn-secondary {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero,
  .contact-card,
  .about-card {
    grid-template-columns: 1fr;
  }
  .services-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    background: rgba(10, 22, 40, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 10px;
    flex-direction: column;
    gap: 4px;
    z-index: 120;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    display: block;
    width: 100%;
  }
  .nav-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .hero { padding: 34px 16px 50px; gap: 28px; }
  .hero-content h1 { font-size: 34px; line-height: 1.25; }
  .hero-desc { font-size: 16px; margin-bottom: 22px; }
  .features,
  .services-grid,
  .timeline,
  .trust-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .section,
  .contact-section { padding: 52px 16px; }
  .form-card,
  .form-inner { border-radius: 18px; padding: 18px 14px; }
  .phone-wrap { gap: 6px; }
  .phone-code { padding: 12px 10px; font-size: 14px; min-height: 48px; }
  .form-input,
  .form-textarea,
  .phone-wrap input { min-height: 48px; font-size: 14px; }
  .submit-btn { min-height: 50px; font-size: 15px; }
  .legal-card { padding: 24px 16px; }
  .legal-title { font-size: 26px; }

  .thankyou-main {
    min-height: calc(100vh - 48px);
    padding: 16px 12px 28px;
  }

  .thankyou-card {
    border-radius: 20px;
    padding: 22px 14px;
  }

  .thankyou-icon {
    width: 74px;
    height: 74px;
    font-size: 36px;
    border-radius: 18px;
  }

  .thankyou-actions {
    flex-direction: column;
  }

  .thankyou-btn {
    width: 100%;
  }
}
