:root {
  --primary: #0f62fe;
  --primary-dark: #0848b8;
  --secondary: #11b981;
  --ink: #172033;
  --muted: #667085;
  --surface: #ffffff;
  --surface-alt: #f5f8ff;
  --line: #e4e8f0;
  --danger: #c62828;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.10);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
}
body[dir="rtl"] {
  font-family: Tahoma, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}
.section { padding: 84px 0; }
.section.alt { background: var(--surface-alt); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
}
h1, h2, h3 { line-height: 1.15; margin-top: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }
.lead { font-size: 1.15rem; max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  min-height: 50px;
  padding: 0 22px;
  font-weight: 800;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 30px rgba(15,98,254,.25); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-outline { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn-block { width: 100%; }

.topbar {
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
}
.topbar .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar span { opacity: .85; }

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228,232,240,.8);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 900;
}
.logo-mark, .logo-mark-img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #5e8cff);
  color: #fff;
  box-shadow: 0 10px 28px rgba(15,98,254,.25);
}
.logo-mark-img {
  display: block;
  height: 42px;
  object-fit: contain;
  background: transparent;
  border-radius: 14px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-btn, .menu-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  height: 44px;
  padding: 0 14px;
  font-weight: 800;
}
.menu-btn { display: none; width: 44px; padding: 0; }

.hero {
  padding: 82px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(17,185,129,.13), transparent 28%),
    radial-gradient(circle at 10% 0%, rgba(15,98,254,.12), transparent 35%),
    #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 58px;
  align-items: center;
}
.hero h1 span { color: var(--primary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  color: var(--muted);
  font-weight: 700;
}
.hero-visual {
  position: relative;
  min-height: 500px;
}
.delivery-card {
  position: absolute;
  inset: 35px 0 0 40px;
  border-radius: 34px;
  padding: 30px;
  background: linear-gradient(145deg, #11233f, #0f62fe);
  color: #fff;
  box-shadow: 0 35px 80px rgba(15,98,254,.28);
  overflow: hidden;
}
.delivery-card:before {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  top: -90px; right: -70px;
}
.delivery-card h3 { font-size: 1.9rem; position: relative; }
.delivery-card p { color: rgba(255,255,255,.75); position: relative; }
.route {
  position: relative;
  margin-top: 38px;
  display: grid;
  gap: 26px;
}
.route-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: center;
}
.route-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16);
}
.route-line {
  position: absolute;
  left: 18px;
  top: 38px;
  bottom: 38px;
  width: 2px;
  background: rgba(255,255,255,.25);
}
body[dir="rtl"] .route-line { left: auto; right: 18px; }
.floating-stat {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 17px 20px;
  font-weight: 900;
}
.floating-stat small { display: block; color: var(--muted); font-weight: 600; }
.stat-one { top: 0; right: -18px; }
.stat-two { bottom: 18px; left: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23,32,51,.05);
}
.icon-box {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: #eaf2ff;
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.step-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  margin-bottom: 18px;
}

.order-layout {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 34px;
  align-items: start;
}
.order-info {
  position: sticky;
  top: 110px;
}
.form-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
  background: #fff;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 800; font-size: .95rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid #d5dbe6;
  border-radius: 13px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: .2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15,98,254,.1);
}
textarea { min-height: 115px; resize: vertical; }
.form-note {
  font-size: .88rem;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f1f7ff;
  color: #405473;
  margin-top: 16px;
}
.error {
  color: var(--danger);
  font-size: .85rem;
  display: none;
}

.banner {
  border-radius: 32px;
  padding: 42px;
  background: linear-gradient(135deg, #0f62fe, #0b49b5);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.banner p { color: rgba(255,255,255,.75); max-width: 640px; }

.faq { display: grid; gap: 12px; max-width: 850px; margin: 30px auto 0; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 20px;
  font-weight: 900;
  text-align: inherit;
}
.faq-answer { display: none; padding: 0 20px 20px; }
.faq-item.open .faq-answer { display: block; }

.page-hero {
  padding: 76px 0;
  background: linear-gradient(180deg, #f4f8ff, #fff);
}
.story-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.metric {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface-alt);
  text-align: center;
}
.metric strong { display: block; font-size: 1.8rem; color: var(--primary); }

.contact-card { display: grid; gap: 18px; }
.contact-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
}
.contact-row .icon-box { margin: 0; width: 48px; height: 48px; }

.email-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}
.contact-email {
  color: var(--primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.contact-email:hover { text-decoration: underline; }
.copy-email-btn {
  border: 1px solid var(--line);
  background: #f4f8ff;
  color: var(--primary);
  border-radius: 9px;
  padding: 6px 11px;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}
.copy-email-btn:hover { background: #eaf2ff; }
.copy-email-btn.copied {
  background: #e9f9ef;
  border-color: #bce8ca;
  color: #18733a;
}

footer {
  background: #111827;
  color: #fff;
  padding: 58px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .8fr .8fr 1fr;
  gap: 36px;
}
footer p, footer a { color: #aeb8c8; }
footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 10px; }
.footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #8f9bad;
  font-size: .9rem;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366;
  color: #fff;
  font-size: 1.65rem;
  box-shadow: 0 15px 35px rgba(37,211,102,.35);
  z-index: 40;
}
body[dir="rtl"] .whatsapp-float { right: auto; left: 20px; }

@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    background: #fff;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .nav-actions .btn { display: none; }
  .hero-grid, .order-layout, .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 430px; }
  .order-info { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .topbar .container { justify-content: center; }
  .topbar span:last-child { display: none; }
  .section { padding: 62px 0; }
  .hero { padding-top: 54px; }
  .hero h1 { font-size: 2.75rem; }
  .delivery-card { inset: 25px 0 0 0; }
  .stat-one { right: 0; }
  .grid-3, .grid-4, .form-grid, .metric-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-card { padding: 20px; }
  .banner { padding: 28px; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}


/* =========================================================
   RESPONSIVE FIXES
   Prevent hero delivery-card/stat overlays from colliding
   at tablet and mobile widths.
   ========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 1100px) {
  .hero-grid {
    gap: 34px;
  }

  .delivery-card {
    inset-left: 0;
  }

  .stat-one {
    right: 0;
  }

  .stat-two {
    left: 0;
  }
}

@media (max-width: 960px) {
  .hero {
    padding: 54px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-visual {
    min-height: 0;
    padding: 48px 0 52px;
  }

  /* The card becomes part of the normal layout instead of being
     absolutely positioned behind the floating stat cards. */
  .delivery-card {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 430px;
    padding: 34px;
    border-radius: 30px;
  }

  .delivery-card h3 {
    font-size: clamp(1.55rem, 4vw, 2rem);
    padding-right: 0;
  }

  .delivery-card > p {
    font-size: 1rem;
  }

  .route {
    margin-top: 30px;
  }

  .floating-stat {
    z-index: 2;
    padding: 14px 18px;
    font-size: 1.15rem;
    white-space: nowrap;
  }

  .stat-one {
    top: 0;
    right: 0;
  }

  .stat-two {
    bottom: 0;
    left: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .nav {
    min-height: 68px;
    gap: 10px;
  }

  .nav-links {
    top: 68px;
  }

  .logo-mark, .logo-mark-img {
    width: 38px;
    height: 38px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .lang-btn {
    height: 40px;
    padding: 0 10px;
  }

  .menu-btn {
    height: 40px;
    width: 40px;
  }

  .hero {
    padding: 42px 0 50px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-visual {
    padding: 42px 0 48px;
  }

  .delivery-card {
    min-height: 390px;
    padding: 26px 22px;
    border-radius: 26px;
  }

  .delivery-card h3 {
    font-size: 1.45rem;
  }

  .delivery-card p {
    font-size: .95rem;
  }

  .route {
    margin-top: 24px;
    gap: 20px;
  }

  .route-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .route-icon {
    width: 34px;
    height: 34px;
  }

  .route-line {
    left: 16px;
  }

  body[dir="rtl"] .route-line {
    left: auto;
    right: 16px;
  }

  .floating-stat {
    border-radius: 16px;
    padding: 11px 14px;
    font-size: 1rem;
  }

  .floating-stat small {
    font-size: .78rem;
  }

  .stat-one {
    top: 0;
    right: 0;
  }

  .stat-two {
    bottom: 0;
    left: 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-points {
    display: grid;
    gap: 9px;
  }

  .section {
    padding: 54px 0;
  }

  .form-card {
    padding: 18px;
    border-radius: 22px;
  }

  .banner {
    border-radius: 24px;
    padding: 26px 22px;
  }
}

@media (max-width: 400px) {
  .topbar {
    font-size: .78rem;
  }

  .nav-actions {
    gap: 6px;
  }

  .lang-btn {
    font-size: .82rem;
  }

  .hero-visual {
    padding-top: 38px;
    padding-bottom: 44px;
  }

  .delivery-card {
    min-height: 370px;
    padding: 24px 18px;
  }

  .delivery-card h3 {
    font-size: 1.3rem;
  }

  .floating-stat {
    padding: 9px 11px;
    font-size: .9rem;
  }

  .floating-stat small {
    font-size: .7rem;
  }
}


/* Arabic hero-card spacing and localized floating stats */
.floating-stat > span {
  display: block;
  line-height: 1.15;
}

body[dir="rtl"] .delivery-card h3 {
  padding-right: 165px;
  min-height: 52px;
}

body[dir="rtl"] .stat-one {
  right: -18px;
  left: auto;
  text-align: center;
  direction: rtl;
}

body[dir="rtl"] .stat-two {
  left: 0;
  right: auto;
  text-align: center;
  direction: rtl;
}

@media (max-width: 960px) {
  body[dir="rtl"] .delivery-card h3 {
    padding-right: 175px;
    min-height: 58px;
  }
  body[dir="rtl"] .stat-one {
    right: 0;
  }
}

@media (max-width: 520px) {
  body[dir="rtl"] .delivery-card {
    padding-top: 92px;
  }
  body[dir="rtl"] .delivery-card h3 {
    padding-right: 0;
    min-height: 0;
  }
  body[dir="rtl"] .stat-one {
    top: 10px;
    right: 14px;
  }
  body[dir="rtl"] .stat-two {
    left: 14px;
  }
}

/* Properly mirror the delivery preview in Arabic */
body[dir="rtl"] .delivery-card {
  text-align: right;
}
body[dir="rtl"] .delivery-card h3,
body[dir="rtl"] .delivery-card > p {
  text-align: right;
}
body[dir="rtl"] .route-row {
  grid-template-columns: 1fr 38px;
}
body[dir="rtl"] .route-row .route-icon {
  grid-column: 2;
  grid-row: 1;
}
body[dir="rtl"] .route-row > div {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}
body[dir="rtl"] .stat-one {
  right: auto;
  left: -18px;
}
body[dir="rtl"] .stat-two {
  left: auto;
  right: 0;
}

/* Important restriction notice on order form */
.restricted-docs-note {
  background: #fff4e5;
  color: #7a3e00;
  border: 1px solid #f0c36d;
  font-weight: 700;
  line-height: 1.6;
}
body[dir="rtl"] .restricted-docs-note { text-align: right; }

/* Final Arabic hero heading alignment: keep heading flush to the right */
body[dir="rtl"] .delivery-card h3 {
  text-align: right;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}
@media (max-width: 960px) {
  body[dir="rtl"] .delivery-card h3 {
    padding-right: 0;
  }
}

/* Final RTL fix: mirror the hero card and keep the 7-days badge outside bottom-right. */
body[dir="rtl"] .delivery-card {
  inset: 35px 40px 0 0;
}
body[dir="rtl"] .stat-two {
  left: auto;
  right: 0;
  direction: rtl;
  text-align: center;
}
/* Preserve the intended visual order: ٧ أيام (number first). */
body[dir="rtl"] .stat-two > span {
  direction: ltr;
  unicode-bidi: isolate;
}
@media (max-width: 960px) {
  body[dir="rtl"] .delivery-card {
    inset: auto;
  }
  body[dir="rtl"] .stat-two {
    right: 0;
    left: auto;
  }
}
@media (max-width: 520px) {
  body[dir="rtl"] .stat-two {
    right: 14px;
    left: auto;
  }
}


/* Legal pages */
[data-lang-content] { display: none; }
html[lang="en"] [data-lang-content="en"] { display: block; }
html[lang="ar"] [data-lang-content="ar"] { display: block; }
.legal-hero {
  padding: 72px 0 54px;
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); margin: 10px 0 14px; }
.legal-updated { font-size: .92rem; margin-top: 18px; }
.legal-section { padding-top: 54px; }
.legal-wrap { max-width: 920px; }
.legal-card {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.legal-card h2 { font-size: 1.35rem; margin: 34px 0 10px; letter-spacing: -.015em; }
.legal-card h2:first-of-type { margin-top: 28px; }
.legal-card p { margin: 0 0 14px; }
.legal-card a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-callout {
  padding: 20px 22px;
  border-radius: 16px;
  background: #fff5f5;
  border: 1px solid #ffd6d6;
  border-inline-start: 5px solid var(--danger);
  margin-bottom: 30px;
}
.legal-callout strong { display: block; color: #8f1d1d; font-size: 1.05rem; margin-bottom: 5px; }
.legal-callout p { color: #694040; margin: 0; }
.privacy-callout { background: #eef6ff; border-color: #cfe2ff; border-inline-start-color: var(--primary); }
.privacy-callout strong { color: var(--primary-dark); }
.privacy-callout p { color: #38546f; }
body[dir="rtl"] .legal-card { text-align: right; }
body[dir="rtl"] .legal-card h2 { letter-spacing: 0; }
@media (max-width: 640px) {
  .legal-hero { padding: 48px 0 36px; }
  .legal-section { padding-top: 34px; }
  .legal-card { border-radius: 18px; }
}


/* Floating back-to-top control */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--primary, #1769e0);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(15, 55, 110, .22);
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 3px solid rgba(23,105,224,.28); outline-offset: 3px; }
body[dir="rtl"] .back-to-top { right: auto; left: 20px; }
@media (max-width: 640px) {
  .back-to-top { width: 48px; height: 48px; right: 14px; bottom: 14px; font-size: 25px; }
  body[dir="rtl"] .back-to-top { right: auto; left: 14px; }
}
