/* ============================================================
   Sama Najd — design tokens & base styles
   Palette derived from logo: deep navy, mid blue, sky-blue accent
   ============================================================ */
:root {
  --ink-900: #07142e;
  --ink-800: #0f2952;        /* primary deep navy from logo */
  --ink-700: #1a3a6c;
  --ink-600: #2e5ba8;        /* mid blue */
  --ink-500: #4377c4;
  --sky-500: #5bb4d9;        /* bright accent from logo */
  --sky-400: #7cc6e3;
  --sky-100: #e6f4fa;
  --gold-500: #c9a659;       /* warm accent from flyers */
  --gold-400: #d8bb7d;
  --gold-100: #f5ecd7;
  --paper:    #f6f8fc;
  --surface:  #ffffff;
  --line:     #e3e8f1;
  --muted:    #5a6a85;
  --success:  #2f9a6a;
  --danger:   #d24a3a;
  --whatsapp: #25d366;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(15, 41, 82, .06), 0 1px 0 rgba(15,41,82,.04);
  --shadow-md: 0 8px 24px -8px rgba(15, 41, 82, .14), 0 2px 4px rgba(15,41,82,.06);
  --shadow-lg: 0 24px 60px -20px rgba(15, 41, 82, .25);

  --font-ar: "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif;
  --font-en: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink-900); }
body {
  font-family: var(--font-ar);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  min-height: 100vh;
}
body[data-lang="en"] { font-family: var(--font-en); }
body[dir="rtl"]  { direction: rtl; }
body[dir="ltr"]  { direction: ltr; }

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

/* Page chrome — mobile-first */
.shell {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 0 1px var(--line);
}
@media (min-width: 640px) {
  .shell { box-shadow: var(--shadow-lg); margin-top: 24px; margin-bottom: 24px; border-radius: 28px; overflow: hidden; }
  body { padding: 0; }
}

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(8px);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; }
.topbar__brand img { width: 36px; height: 36px; object-fit: contain; }
.topbar__brand .name {
  display: flex; flex-direction: column; line-height: 1.1;
}
.topbar__brand .name b { font-size: 15px; color: var(--ink-800); font-weight: 700; }
.topbar__brand .name span { font-size: 11px; color: var(--muted); }

.lang-toggle {
  display: inline-flex; align-items: center;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  font-size: 12px;
  font-weight: 600;
}
.lang-toggle button {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: all .15s ease;
}
.lang-toggle button.active {
  background: var(--ink-800); color: white;
}

/* Hash route nav (small underbar w/ current page label) */
.route-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sky-100); color: var(--ink-700);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.route-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sky-500); }

/* ============= Hero ============= */
.hero {
  position: relative;
  padding: 28px 20px 24px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(91,180,217,.18), transparent 55%),
    radial-gradient(80% 50% at 0% 100%, rgba(201,166,89,.08), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, #f3f7fc 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__route {
  font-size: 11px; color: var(--ink-600); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
}
.hero__route::before {
  content: ""; width: 18px; height: 2px; background: var(--sky-500); border-radius: 2px;
}
.hero h1 {
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink-800);
  font-weight: 800;
  letter-spacing: -.01em;
}
body[dir="rtl"] .hero h1 { letter-spacing: 0; }
.hero h1 .accent { color: var(--ink-600); }
.hero h1 .pop {
  display: inline-block;
  background: linear-gradient(180deg, transparent 60%, rgba(201,166,89,.35) 60%);
  padding: 0 4px;
}
.hero__sub {
  font-size: 15px; color: var(--muted); margin: 0 0 22px;
  max-width: 38ch;
}
.hero__ctas {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero__art {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/11;
  background: var(--ink-800);
  box-shadow: var(--shadow-md);
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 30% center;
  display: block;
}
body[dir="ltr"] .hero__img { object-position: 30% center; }
body[dir="rtl"] .hero__img { object-position: 30% center; }
.hero__art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,41,82,.28) 0%, transparent 35%);
  pointer-events: none;
}
.hero__amount {
  position: absolute;
  bottom: 12px; inset-inline-start: 12px;
  z-index: 2;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: var(--r-md);
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
}
.hero__amount .num {
  font-size: 22px; font-weight: 800; color: var(--ink-800);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-en);
}
.hero__amount .lbl {
  font-size: 11px; color: var(--muted);
}
.hero__amount .gold-dot { width: 8px; height: 8px; background: var(--gold-500); border-radius: 50%; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--ink-800); color: white;
  box-shadow: 0 6px 18px -6px rgba(15,41,82,.5);
}
.btn--primary:hover { background: var(--ink-700); }
.btn--whatsapp {
  background: var(--whatsapp); color: white;
  box-shadow: 0 6px 18px -6px rgba(37,211,102,.5);
}
.btn--whatsapp:hover { filter: brightness(.96); }
.btn--ghost {
  background: white; color: var(--ink-800); border: 1px solid var(--line);
}
.btn--gold {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: var(--ink-900);
  box-shadow: 0 6px 18px -6px rgba(201,166,89,.5);
}
.btn--block { width: 100%; }

/* Section */
.section {
  padding: 34px 20px;
  border-bottom: 1px solid var(--line);
}
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink-800); color: white; }
.section--ink .eyebrow { color: var(--sky-400); }
.section__head { margin-bottom: 20px; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--ink-600); text-transform: uppercase;
  margin-bottom: 8px;
}
.section h2 {
  font-size: clamp(22px, 6vw, 26px);
  margin: 0 0 6px;
  color: var(--ink-800);
  font-weight: 800;
  letter-spacing: -.005em;
}
.section--ink h2 { color: white; }
.section__lede {
  font-size: 14px; color: var(--muted); margin: 0;
  max-width: 42ch;
}
.section--ink .section__lede { color: rgba(255,255,255,.7); }

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 420px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex; flex-direction: column;
  gap: 12px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-align: start;
  position: relative;
  overflow: hidden;
}
.service:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-500);
}
.service--active {
  border-color: var(--ink-800);
  background: linear-gradient(180deg, #fff, #f4f8fd);
}
.service--active::before {
  content: ""; position: absolute; top: 0; inset-inline-end: 0;
  width: 8px; height: 8px; margin: 12px;
  background: var(--gold-500); border-radius: 50%;
}
.service__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--ink-700);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.service__icon svg { width: 22px; height: 22px; }
.service h3 {
  font-size: 16px; margin: 0; font-weight: 700; color: var(--ink-800);
  line-height: 1.3;
}
.service p {
  font-size: 13px; margin: 0; color: var(--muted); line-height: 1.5;
  flex: 1;
}
.service__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--ink-600);
  margin-top: auto;
}
.service__cta::after {
  content: "←"; transition: transform .15s ease;
}
body[dir="ltr"] .service__cta::after { content: "→"; }
.service:hover .service__cta::after { transform: translateX(-3px); }
body[dir="ltr"] .service:hover .service__cta::after { transform: translateX(3px); }

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 520px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 12px;
  position: relative;
  text-align: center;
}
.step__num {
  position: absolute;
  top: -10px; inset-inline-start: 12px;
  width: 24px; height: 24px;
  background: var(--ink-800); color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  font-family: var(--font-en);
  box-shadow: 0 2px 6px rgba(15,41,82,.3);
}
.step__icon {
  width: 40px; height: 40px;
  margin: 4px auto 10px;
  background: var(--sky-100);
  color: var(--ink-700);
  border-radius: 50%;
  display: grid; place-items: center;
}
.step__icon svg { width: 20px; height: 20px; }
.step__title { font-size: 13px; font-weight: 700; color: var(--ink-800); line-height: 1.3; }
.step__sub { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Lead form */
.lead {
  background: linear-gradient(160deg, var(--ink-800) 0%, var(--ink-700) 100%);
  color: white;
  padding: 32px 20px 36px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.lead::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 100% 0%, rgba(91,180,217,.25), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(201,166,89,.12), transparent 70%);
  pointer-events: none;
}
.lead__inner { position: relative; }
.lead .eyebrow { color: var(--sky-400); }
.lead h2 { color: white; margin-bottom: 6px; }
.lead__lede { font-size: 14px; color: rgba(255,255,255,.7); margin: 0 0 22px; max-width: 36ch; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85);
}
.field__label .req { color: var(--gold-400); margin-inline-start: 2px; }
.field input[type="text"], .field input[type="tel"] {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: white;
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 15px;
  transition: border-color .15s, background .15s;
}
.field input::placeholder { color: rgba(255,255,255,.4); }
.field input:focus {
  outline: none;
  border-color: var(--sky-500);
  background: rgba(255,255,255,.12);
}
.field input.err { border-color: var(--danger); background: rgba(210,74,58,.08); }
.field__hint { font-size: 12px; color: rgba(255,255,255,.5); }
.field__err { font-size: 12px; color: #ff9c8f; }

.choice {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.choice button {
  padding: 13px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  color: white;
  font-weight: 600;
  font-size: 14px;
  transition: all .15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.choice button:hover { background: rgba(255,255,255,.1); }
.choice button.on {
  background: white; color: var(--ink-800);
  border-color: white;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.3);
}
.choice button .check {
  width: 16px; height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.choice button.on .check { background: var(--success); border-color: var(--success); color: white; }

.lead__submit {
  margin-top: 6px;
}

.lead__success {
  background: rgba(47,154,106,.15);
  border: 1px solid rgba(47,154,106,.4);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.lead__success .ok {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--success); color: white;
  border-radius: 50%;
  display: grid; place-items: center;
}
.lead__success h3 { margin: 0 0 4px; font-size: 16px; }
.lead__success p { margin: 0; font-size: 13px; color: rgba(255,255,255,.8); }

/* Trust & contact */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.trust {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 8px;
  text-align: center;
}
.trust__icon {
  width: 36px; height: 36px;
  margin: 0 auto 8px;
  background: var(--sky-100);
  color: var(--ink-700);
  border-radius: 50%;
  display: grid; place-items: center;
}
.trust__icon svg { width: 18px; height: 18px; }
.trust__title { font-size: 12px; font-weight: 700; color: var(--ink-800); line-height: 1.3; }

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  background: var(--surface);
  display: flex; align-items: center; gap: 12px;
}
.contact-card__icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  color: white;
}
.contact-card--phone .contact-card__icon { background: var(--ink-700); }
.contact-card--wa .contact-card__icon { background: var(--whatsapp); }
.contact-card__body { flex: 1; min-width: 0; }
.contact-card__lbl { font-size: 11px; color: var(--muted); }
.contact-card__val {
  font-size: 14px; font-weight: 700; color: var(--ink-800);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-en);
  direction: ltr;
}

.socials {
  display: flex; gap: 10px; justify-content: center;
  margin-top: 8px;
}
.socials a {
  width: 42px; height: 42px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--ink-700);
  transition: all .15s;
}
.socials a:hover {
  background: var(--ink-800); color: white; border-color: var(--ink-800);
  transform: translateY(-2px);
}

/* Footer */
.foot {
  padding: 22px 20px 36px;
  text-align: center;
  background: var(--ink-900);
  color: rgba(255,255,255,.55);
  font-size: 12px;
}
.foot__brand {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  color: white;
  font-weight: 700;
  font-size: 13px;
}
.foot__brand img { width: 26px; height: 26px; object-fit: contain; filter: brightness(1.1); }
.foot__nav {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin: 12px 0;
}
.foot__nav a { font-size: 12px; color: rgba(255,255,255,.7); }
.foot__nav a:hover { color: white; }

 .foot__credits {
   display: flex; align-items: center; justify-content: center; gap: 8px;
   margin-top: 20px; font-size: 11px; color: rgba(255,255,255,.4);
 }
 .foot__credits img { height: 22px; width: auto; opacity: .8; transition: opacity .2s; }
 .foot__credits a:hover img { opacity: 1; }

/* Page nav (sticky bottom on the design canvas) — used for the prototype navigator only */
.nav-rail {
  position: sticky;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  z-index: 25;
  box-shadow: 0 -4px 12px rgba(15,41,82,.04);
}
.nav-rail a {
  padding: 8px 4px;
  border-radius: 10px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: all .15s;
}
.nav-rail a svg { width: 18px; height: 18px; }
.nav-rail a.active {
  color: var(--ink-800); background: var(--sky-100);
}

/* Hero placeholder visual — actual placeholder for real photo */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.04) 0,
      rgba(255,255,255,.04) 8px,
      rgba(255,255,255,.08) 8px,
      rgba(255,255,255,.08) 16px),
    linear-gradient(135deg, var(--ink-700), var(--ink-800));
  display: grid; place-items: center;
  color: rgba(255,255,255,.6);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.placeholder__inner {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.placeholder__inner svg { width: 32px; height: 32px; opacity: .5; }
.placeholder__tag {
  position: absolute; top: 10px; inset-inline-end: 10px;
  background: rgba(255,255,255,.12);
  color: white;
  padding: 3px 8px; border-radius: 999px;
  font-size: 9px; letter-spacing: .1em;
}

/* Util */
.row { display: flex; gap: 10px; align-items: center; }
.spacer { flex: 1; }
.hidden { display: none !important; }

/* small reveal on route change */
.fade-in { animation: fadeIn .35s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ad-tag badge — top-corner showing this version is meant for a specific ad */
.ad-tag {
  position: absolute; top: 10px; inset-inline-end: 10px;
  background: rgba(15,41,82,.92); color: white;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--font-en);
  display: inline-flex; gap: 6px; align-items: center;
  z-index: 4;
}
.ad-tag .dot { width: 6px; height: 6px; background: var(--gold-400); border-radius: 50%; }
