/* ─────────────────────────────────────────────────────────────
   كارواتس طلبات — public site stylesheet
   Brand: warm cream page (#F7EFDB) + orange CTAs (#FF6A00)
   Mirrors the in-app theme so the marketing surface and the app
   share one visual language. Cairo for Arabic body, falls back to
   system stack on rendering failure.
   ───────────────────────────────────────────────────────────── */

:root {
  --primary: #FF6A00;
  --primary-dark: #E55500;
  --primary-light: #FF8C42;
  --primary-surface: #FFF1E5;

  --bg: #F7EFDB;          /* cream page */
  --surface: #FFFFFF;     /* card */
  --surface-variant: #FAF3E2;
  --border: #E5D9B8;
  --divider: #EFE5CB;

  --text-primary: #1A1A1A;
  --text-secondary: #5A5040;
  --text-tertiary: #8A8275;
  --on-primary: #FFFFFF;

  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 26, 26, 0.10);
  --shadow-lg: 0 16px 48px rgba(255, 106, 0, 0.20);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

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

html, body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ─────── Buttons ─────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease,
              background-color 120ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--on-primary);
  transform: translateY(-1px);
  box-shadow: 0 20px 56px rgba(255, 106, 0, 0.28);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-surface);
  color: var(--primary-dark);
}

/* ─────── Navbar ─────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 239, 219, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 19px;
}
.brand img { width: 42px; height: 42px; border-radius: 10px; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.btn) {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:not(.btn):hover { color: var(--primary); }

.menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.menu-btn:hover { background: var(--primary-surface); }

/* ─────── Hero ─────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--on-primary);
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 span {
  display: block;
  font-weight: 600;
  font-size: 36px;
  opacity: 0.92;
  margin-top: 4px;
}
.hero .lead {
  font-size: 18px;
  opacity: 0.95;
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}
.hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
}
.hero-stat span {
  font-size: 14px;
  opacity: 0.9;
}
.hero-visual img {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.18));
  border-radius: 24px;
  background: #ffffff;
  padding: 32px 28px;
  display: block;
}

/* ─────── Section blocks ─────── */
.block {
  padding: 96px 0;
}
.block-alt {
  background: var(--surface-variant);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-surface);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
}
.section-head p {
  font-size: 17px;
  color: var(--text-secondary);
}

/* ─────── Feature cards ─────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-surface);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─────── How-it-works steps ─────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--border);
  position: relative;
  text-align: center;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -22px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--shadow-md);
}
[dir="rtl"] .step::before { transform: translateX(50%); }
.step h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 18px 0 8px;
}
.step p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ─────── Audience cards (customer / merchant / driver) ─────── */
.audiences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.audience {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.audience-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--primary);
  color: var(--on-primary);
  display: grid;
  place-items: center;
}
.audience h3 { font-size: 21px; font-weight: 800; }
.audience ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 15px;
}
.audience li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.audience li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}

/* ─────── Download CTA ─────── */
.download-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--on-primary);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.download-cta h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}
.download-cta p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 32px;
}
.download-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.download-buttons .btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border-color: rgba(255, 255, 255, 0.95);
}
.download-buttons .btn:hover {
  background: #fff;
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ─────── Footer ─────── */
footer {
  background: #1A1410;
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 32px;
  font-size: 14px;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}
footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer a {
  color: rgba(255, 255, 255, 0.78);
}
footer a:hover { color: var(--primary-light); }

footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
footer .footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
footer .footer-brand span { color: #fff; font-weight: 800; font-size: 19px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}

/* ─────── Responsive ─────── */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    inset-inline-end: 0;
    flex-direction: column;
    background: var(--surface);
    padding: 16px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--divider);
    box-shadow: var(--shadow-md);
  }
  .menu-btn { display: inline-flex; }

  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual img { max-width: 240px; }
  .hero h1 { font-size: 34px; }
  .hero h1 span { font-size: 26px; }

  .block { padding: 64px 0; }
  .section-head h2 { font-size: 28px; }
  .download-cta { padding: 48px 24px; }
  .download-cta h2 { font-size: 28px; }

  footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  footer .footer-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   Legal pages (privacy / terms / delete-account)
   Reused from the cargo template, adapted to talabat's variable
   names so the same markup works on both brands.
   ───────────────────────────────────────────────────────────── */

.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
  position: relative;
}
.page-header h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 800;
  margin-bottom: 10px;
}
.page-header p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
}

.legal {
  background: var(--bg);
  padding: 64px 0 96px;
}
.legal-wrap {
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
  line-height: 1.85;
}
.legal-wrap h2 {
  color: var(--primary);
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-wrap h2:first-child { margin-top: 0; }
.legal-wrap p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.legal-wrap ul {
  padding-inline-start: 22px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.legal-wrap ul li { margin-bottom: 6px; }
.legal-wrap a { font-weight: 700; }

.callout {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 18px 0;
  border-inline-start: 4px solid var(--primary);
  background: var(--surface-variant);
}
.callout-info { border-inline-start-color: #2E6B9E; background: #E1EDF7; color: #1A4068; }
.callout-warn { border-inline-start-color: #D4A017; background: #FDF6E3; color: #6F5400; }

.legal-meta {
  text-align: center;
  margin-top: 32px;
  color: var(--text-tertiary);
  font-size: 13px;
}

.lang-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-variant);
  border-radius: 999px;
}
.lang-switcher a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13px;
}
.lang-switcher a[aria-current="true"] {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 720px) {
  .legal-wrap { padding: 32px 22px; }
}
