/* ===== DESIGN TOKENS ===== */
:root {
  --navy: #1B2A4A;
  --navy-deep: #0F1A2E;
  --navy-light: #2A3D66;
  --sand: #F5E6D3;
  --sand-dark: #E8D5B8;
  --teal: #2A9D8F;
  --teal-dark: #1F7A6E;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-800: #1F2937;
  --font: 'Cairo', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 14px rgba(0,0,0,.1);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.15);
  --transition: 0.25s ease;
  --container: 1160px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== UTILITIES ===== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--gray-400); font-size: 0.85rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1DA851; transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 100;
  transition: all var(--transition);
}
.nav.scrolled {
  background: rgba(27,42,74,.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--white);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; inset-inline-start: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,42,74,.92) 0%, rgba(15,26,46,.85) 60%, rgba(42,157,143,.35) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding-top: 80px;
  max-width: 700px;
}
.hero-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--sand); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-scroll {
  position: absolute;
  bottom: 32px; inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll span {
  display: block;
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 12px;
  position: relative;
}
.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 8px; inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 0; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(10px); }
}

/* ===== STATS ===== */
.stats {
  background: var(--navy);
  padding: 60px 0;
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--teal);
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  color: rgba(255,255,255,.7);
}

/* ===== SECTIONS COMMON ===== */
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.eyebrow {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

/* ===== SERVICES ===== */
.services { padding: 100px 0; background: var(--white); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.card:hover {
  border-color: var(--sand-dark);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.card-icon {
  width: 52px; height: 52px;
  background: var(--navy);
  color: var(--teal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ===== HOW IT WORKS ===== */
.how { padding: 100px 0; background: var(--gray-100); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.step {
  text-align: center;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
  border-radius: 50%;
  margin-bottom: 20px;
}
.step h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.step p { color: var(--gray-600); font-size: 0.95rem; }

/* ===== REGISTER ===== */
.register { padding: 100px 0; background: var(--white); }
.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.register-copy .section-title { text-align: start; margin-bottom: 16px; }
.register-lead {
  color: var(--gray-600);
  margin-bottom: 28px;
  font-size: 1.05rem;
}
.register-list { display: flex; flex-direction: column; gap: 14px; }
.register-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--navy);
}
.register-list svg {
  width: 22px; height: 22px;
  color: var(--teal);
  flex-shrink: 0;
}

/* ===== FORM ===== */
.form {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.req { color: #DC2626; }
.form-row input,
.form-row select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--teal);
}
.form-note {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.8rem;
  margin-top: 12px;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.7); margin-bottom: 32px; font-size: 1.05rem; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.6); padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer .brand { color: var(--white); }

/* ===== WHATSAPP FAB ===== */
.fab {
  position: fixed;
  bottom: 24px; inset-inline-start: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: all var(--transition);
}
.fab:hover { transform: scale(1.1); box-shadow: 0 16px 40px rgba(37,211,102,.35); }
.fab svg { width: 28px; height: 28px; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px; inset-inline-end: 32px;
  background: var(--navy);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 68px; inset-inline: 0;
    background: var(--navy-deep);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    color: rgba(255,255,255,.85);
  }
  .nav-toggle { display: flex; }

  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .register-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
}
