/* ============================================
   Mostashar Alnagah — Shared stylesheet
   Brand: Navy / Teal / Gold on warm off-white
   Type: Cairo (variable, RTL)
   ============================================ */

:root {
  /* Brand */
  --navy:        #0E2A6B;
  --navy-deep:   #081B4A;
  --navy-soft:   #1E3F8F;
  --teal:        #1AB29E;
  --teal-deep:   #129083;
  --gold:        #F2B705;
  --gold-soft:   #FFD24A;

  /* Neutrals */
  --ink:         #0A0F1E;
  --ink-soft:    #1F2638;
  --mute:        #6B7187;
  --line:        #E6E3DA;
  --line-soft:   #F0EDE3;
  --paper:       #F8F6EF;
  --paper-deep:  #EFEBDD;
  --white:       #FFFFFF;

  /* Type scale (clamp for fluid) */
  --fs-xxl: clamp(3.2rem, 7vw, 7rem);
  --fs-xl:  clamp(2.4rem, 5vw, 4.5rem);
  --fs-lg:  clamp(1.8rem, 3.2vw, 2.8rem);
  --fs-md:  clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-sm:  0.95rem;
  --fs-xs:  0.8rem;

  /* Spacing */
  --pad-x: clamp(1.2rem, 5vw, 5rem);
  --section-y: clamp(4rem, 9vw, 8rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* ====== Typography ====== */
.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal-deep);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold);
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); font-weight: 800; }

p { text-wrap: pretty; color: var(--ink-soft); }

/* ====== Container ====== */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

section { padding-block: var(--section-y); position: relative; }

/* ====== Top bar with phones ====== */
.topbar {
  background: var(--navy-deep);
  color: var(--paper);
  font-size: 0.85rem;
  padding: 0.55rem var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 20;
}
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.92;
  transition: opacity .25s;
  direction: ltr;
  unicode-bidi: embed;
}
.topbar a:hover { opacity: 1; color: var(--gold); }
.topbar-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  line-height: 1.4;
}
.topbar .topbar-right { display: flex; gap: 1.5rem; align-items: center; }
.topbar .topbar-left  { display: flex; gap: 1rem; align-items: center; color: var(--gold); font-weight: 700; }
@media (max-width: 720px) {
  .topbar { font-size: 0.78rem; }
  .topbar .topbar-left { display: none; }
}

/* ====== Header / Nav ====== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(248, 246, 239, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(248, 246, 239, 0.96); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.nav-logo img { height: 56px; width: auto; }
.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
  font-weight: 700;
  font-size: 1rem;
}
.nav-links a {
  position: relative;
  padding-block: 0.4rem;
  transition: color .25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy); }

.nav-cta {
  background: var(--navy);
  color: var(--paper);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform .25s var(--ease), background .25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-cta:hover { background: var(--teal-deep); transform: translateY(-2px); }

.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
  }
  .nav-toggle span { width: 26px; height: 2px; background: var(--ink); display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 1.4rem var(--pad-x);
    gap: 1.2rem;
    border-bottom: 1px solid var(--line);
  }
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--paper);
  box-shadow: 0 10px 28px -10px rgba(14, 42, 107, 0.55);
}
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(18, 144, 131, 0.6); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-3px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }

.btn .arrow {
  display: inline-block;
  transition: transform .3s var(--ease);
}
.btn:hover .arrow { transform: translateX(-6px); }

/* ====== Reveal animations ====== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.split-word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease) calc(var(--i, 0) * 0.07s);
}
.split-word.in > span { transform: none; }

/* ====== Footer ====== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.78);
  padding-block: 5rem 2rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(26, 178, 158, 0.18), transparent 70%),
    radial-gradient(50% 50% at 10% 100%, rgba(242, 183, 5, 0.12), transparent 70%);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { transition: color .25s; }
.footer-col a:hover { color: var(--gold); }
.footer-logo { background: var(--paper); padding: 0.8rem 1rem; border-radius: 12px; display: inline-block; margin-bottom: 1.2rem; }
.footer-logo img { height: 64px; width: auto; }

.footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-grid;
  place-items: center;
  transition: background .25s, border-color .25s, transform .25s;
}
.footer-social a:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ====== Floating WhatsApp ====== */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  z-index: 60;
  transition: transform .3s var(--ease);
  animation: waPulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6), 0 0 0 18px rgba(37, 211, 102, 0); }
}

/* ====== Geometric pattern (subtle) ====== */
.geo-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(14, 42, 107, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ====== Page hero (inner pages) ====== */
.page-hero {
  background: var(--navy-deep);
  color: var(--paper);
  padding-block: clamp(5rem, 11vw, 9rem) clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(26, 178, 158, 0.22), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(242, 183, 5, 0.12), transparent 50%);
}
.page-hero h1 { color: var(--paper); line-height: 1.2; }
.page-hero h1 .split-word { padding-top: 0.2em; padding-bottom: 0.18em; }
.page-hero .breadcrumb {
  position: relative;
  display: flex;
  gap: 0.6rem;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 1.4rem;
}
.page-hero p { color: rgba(255,255,255,0.78); max-width: 720px; font-size: 1.15rem; margin-top: 1.4rem; }
.page-hero > .container { position: relative; }

/* ====== Utility ====== */
.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }
.text-navy { color: var(--navy); }
.bg-navy { background: var(--navy-deep); color: var(--paper); }
.bg-paper-deep { background: var(--paper-deep); }
.divider { height: 1px; background: var(--line); margin-block: 1.5rem; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 14px;
  opacity: 0.5;
}
.scroll-indicator::before {
  content: '';
  width: 3px; height: 8px;
  background: currentColor;
  border-radius: 2px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 22px; }
}

/* ====== Reduced motion ====== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .split-word > span { transform: none; }
}
