/* =============================================
   Sarya landing page — bold & appetizing
   Food-delivery redesign · bilingual AR/EN (RTL/LTR)
   ============================================= */

@font-face {
  font-family: 'Thmanyah Sans';
  src: url('../fonts/thmanyahsans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Sans';
  src: url('../fonts/thmanyahsans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Sans';
  src: url('../fonts/thmanyahsans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Sans';
  src: url('../fonts/thmanyahsans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Sans';
  src: url('../fonts/thmanyahsans-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* SARYA brand guidelines v0.1 —
     primary: Aztec Gold #cb993e · Dark Slate Blue #403880 · Russian Violet #251c42
     secondary: Dark Spring Green #1a6f4b · Skobeloff #217574 · Phthalo #0e3a25 · Peacock #073f4c
     (legacy token names kept; values remapped) */
  --cream: #f7f6fb;
  --cream-soft: #efedf8;
  --cream-deep: #e4e1f2;
  --white: #ffffff;
  --ink: #251c42;
  --ink-soft: #4a4370;
  --muted: #7b7699;
  --muted-light: #aca8c6;
  --line: #e7e4f3;
  --line-strong: #d3cfe8;
  --tomato: #403880;
  --tomato-deep: #2e2963;
  --tomato-soft: #ebe8f8;
  --herb: #1a6f4b;
  --herb-deep: #0e3a25;
  --herb-soft: #e1f1e9;
  --amber: #cb993e;
  --amber-soft: #f6ecd9;
  --gold: #cb993e;
  --gold-deep: #a87b2d;
  --gold-light: #e0ba6d;
  --grape: #217574;
  --dark: #1c1535;
  --dark-2: #251c42;
  --font-ar: 'Thmanyah Sans', sans-serif;
  --font-en: 'Outfit', sans-serif;
  --font-en-body: 'Roboto', 'Outfit', sans-serif;
  --container: 1200px;
  --section-pad: 108px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 12px 30px rgba(37, 28, 66, 0.08);
  --shadow-md: 0 26px 60px rgba(37, 28, 66, 0.16);
  --shadow-tomato: 0 16px 34px rgba(64, 56, 128, 0.30);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  background: var(--cream);
  color: var(--ink);
  direction: rtl;
  font-family: var(--font-ar);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lang-en {
  direction: ltr;
  /* brand: Roboto for body copy, display face for headings */
  font-family: var(--font-en-body);
}

body.lang-en h1,
body.lang-en h2,
body.lang-en h3,
body.lang-en h4,
body.lang-en .nav-logo-name,
body.lang-en .footer-logo-name,
body.lang-en .stat-number {
  font-family: var(--font-en);
}

img,
svg {
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

::selection {
  background: rgba(64, 56, 128, 0.20);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: var(--cream-soft);
}

::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4 {
  letter-spacing: 0;
}

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

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 13px;
  border-radius: 999px;
  background: var(--tomato-soft);
  color: var(--tomato-deep);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tomato);
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.10);
  color: var(--gold-light);
}

.eyebrow-light::before {
  background: var(--gold);
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  margin-bottom: 16px;
}

.section-sub {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.07rem;
  margin-bottom: 44px;
}

.section-heading {
  max-width: 760px;
}

.section-heading.center {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.section-heading.center .eyebrow {
  margin-inline: auto;
}

.section-heading.center .section-sub {
  margin-inline: auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--tomato), var(--tomato-deep));
  color: var(--gold);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(37, 28, 66, 0.28);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  fill: var(--gold);
}

/* official logo file (gold hummingbird on brand purple) */
.brand-mark {
  overflow: hidden;
}

.brand-mark img {
  width: 148%;
  height: 148%;
  max-width: none;
  flex: 0 0 auto;
  object-fit: cover;
}

.modal-icon img {
  width: 160%;
  height: 160%;
  max-width: none;
  flex: 0 0 auto;
  object-fit: cover;
}

.modal-icon {
  overflow: hidden;
}

/* ---------- splash screen ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  /* flat brand purple = exact logo background, so the bird blends seamlessly */
  background: #403981;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.splash-logo {
  width: min(220px, 52vw);
  height: auto;
  animation: splashIn 0.9s var(--ease) both;
}

.splash-wordmark {
  display: grid;
  justify-items: center;
  gap: 2px;
  animation: splashIn 0.9s var(--ease) 0.18s both;
}

.splash-name-en {
  color: var(--gold);
  font-family: var(--font-en);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  margin-inline-start: 0.34em;
  line-height: 1.2;
}

.splash-name-ar {
  color: var(--gold);
  font-family: var(--font-ar);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
}

.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes splashIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-logo,
  .splash-wordmark {
    animation: none;
  }
}

.store-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.store-icon svg {
  width: 22px;
  height: 22px;
}

.store-icon-apple svg {
  fill: currentColor;
}

/* ---------- navbar ---------- */
#navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(247, 246, 251, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#navbar.scrolled {
  background: rgba(247, 246, 251, 0.94);
  border-color: var(--line);
  box-shadow: 0 10px 34px rgba(37, 28, 66, 0.07);
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
}

.nav-logo-name {
  font-size: 1.32rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 9px 13px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--tomato-deep);
  background: var(--tomato-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-lang,
.btn-nav-cta,
.btn-primary,
.btn-secondary,
.app-badge-btn,
.footer-app-btn,
.btn-submit,
.btn-reset,
.btn-notify,
.modal-close,
.nav-hamburger,
.back-to-top,
.cat-card {
  border: 0;
  cursor: pointer;
}

.btn-lang {
  min-width: 48px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-lang:hover {
  border-color: var(--tomato);
  color: var(--tomato-deep);
}

.btn-nav-cta {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--tomato), var(--tomato-deep));
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-tomato);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-nav-cta svg,
.btn-primary svg,
.btn-secondary svg {
  width: 18px;
  height: 18px;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(46, 41, 99, 0.38);
}

.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.nav-hamburger span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  padding: 12px 24px 32px;
  background: #f7f6fb;
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-mobile ul {
  display: grid;
  gap: 6px;
}

.nav-mobile a {
  display: block;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-weight: 800;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background: var(--tomato-soft);
  color: var(--tomato-deep);
}

/* ---------- buttons ---------- */
.btn-primary,
.btn-secondary {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  border-radius: var(--radius-md);
  font-weight: 900;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--tomato), var(--tomato-deep));
  color: #fff;
  box-shadow: var(--shadow-tomato);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(46, 41, 99, 0.40);
}

.btn-secondary {
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--tomato);
  color: var(--tomato-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.btn-inline {
  width: fit-content;
}

/* ---------- hero ---------- */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 132px 0 84px;
  overflow: hidden;
  background: linear-gradient(165deg, #403880 0%, #322c6e 55%, #251c42 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 46% at 82% 12%, rgba(203, 153, 62, 0.20), transparent 70%),
    radial-gradient(38% 42% at 88% 78%, rgba(33, 117, 116, 0.22), transparent 72%),
    radial-gradient(46% 50% at 6% 30%, rgba(224, 186, 109, 0.10), transparent 70%);
}

#hero::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  align-items: center;
  gap: 60px;
}

.hero-copy {
  max-width: 640px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 800;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(203, 153, 62, 0.25);
}

.hero-title {
  display: grid;
  gap: 22px;
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  line-height: 1;
  margin-bottom: 22px;
}

.hero-title span {
  display: block;
}

.hero-title span:first-child {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  line-height: 1;
  padding-block: 0.04em 0.12em;
}

.hero-title span:last-child {
  max-width: 12ch;
  color: #fff;
  font-size: clamp(2.05rem, 4.4vw, 3.9rem);
  line-height: 1.12;
}

body.lang-en .hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
}

body.lang-en .hero-title span:last-child {
  max-width: 15ch;
  font-size: clamp(1.9rem, 3.7vw, 3.5rem);
}

/* Arabic glyphs run visually larger/taller than Latin — scale display type down */
body.lang-ar .hero-title {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  gap: 16px;
}

body.lang-ar .hero-title span:last-child {
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
}

body.lang-ar .hero-sub {
  font-size: 1.06rem;
}

body.lang-ar .section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
}

body.lang-ar .section-sub {
  font-size: 1rem;
}

body.lang-ar .showcase-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

body.lang-ar .showcase-sub {
  font-size: 1rem;
}

.hero-sub {
  max-width: 570px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.16rem;
  line-height: 1.85;
  margin-bottom: 30px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

/* gold CTA on the purple hero (brand: gold on dark slate blue) */
#hero .btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--dark-2);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

#hero .btn-primary:hover {
  box-shadow: 0 22px 44px rgba(203, 153, 62, 0.35);
}

#hero .btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

#hero .btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.hero-app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 28px;
}

.app-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px 9px 14px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.app-badge-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(28, 21, 53, 0.28);
}

.app-badge-btn .store-icon {
  color: #fff;
}

.app-text {
  display: grid;
  text-align: start;
  line-height: 1.2;
}

.app-text small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 700;
}

.app-text strong {
  color: #fff;
  font-size: 1rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-trust-item svg {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.12);
}

/* hero visual */
.hero-visual {
  position: relative;
  min-height: 600px;
}

.hero-photo-card {
  position: absolute;
  inset-inline-start: 0;
  top: 30px;
  width: min(340px, 62%);
  border: 8px solid var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: rotate(-3deg);
}

body.lang-en .hero-photo-card {
  transform: rotate(3deg);
}

.hero-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 4.1;
  object-fit: cover;
}

.hero-photo-card figcaption {
  padding: 13px 16px 15px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--white);
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
}

.float-chip-rating {
  top: 8px;
  inset-inline-start: -8px;
}

.float-chip-eta {
  bottom: 26px;
  inset-inline-start: -18px;
}

.float-chip-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--amber-soft);
  color: #a87b2d;
}

.float-chip-icon-herb {
  background: var(--herb-soft);
  color: var(--herb-deep);
}

.float-chip-icon svg {
  width: 20px;
  height: 20px;
}

.float-chip-text {
  display: grid;
  line-height: 1.2;
}

.float-chip-text strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.float-chip-text small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

/* phone mockup */
.phone-mockup {
  position: absolute;
  inset-inline-end: 0;
  top: 58px;
  width: 290px;
  min-height: 560px;
  padding: 20px;
  border: 11px solid var(--ink);
  border-radius: 42px;
  background: linear-gradient(180deg, var(--white), var(--cream));
  box-shadow: var(--shadow-md);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  width: 92px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}

.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.phone-topbar strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
}

.phone-pin {
  width: 15px;
  height: 15px;
  color: var(--tomato);
}

.phone-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 14px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.phone-search svg {
  width: 17px;
  height: 17px;
  color: var(--tomato);
}

.phone-cats {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.phone-cats span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  font-size: 1.15rem;
}

.phone-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  margin-bottom: 15px;
  border-radius: 17px;
  background: linear-gradient(120deg, var(--tomato), var(--tomato-deep));
  color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-tomato);
}

.phone-highlight-copy {
  display: grid;
  gap: 2px;
  font-size: 0.78rem;
}

.phone-highlight strong {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.phone-highlight-emoji {
  font-size: 1.7rem;
}

.phone-list {
  display: grid;
  gap: 11px;
}

.phone-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border-radius: 15px;
  background: var(--white);
  border: 1px solid var(--line);
}

.dish-thumb {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--tomato-soft);
  font-size: 1.5rem;
}

.dish-two {
  background: var(--herb-soft);
}

.phone-card > div {
  flex: 1;
  min-width: 0;
}

.phone-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-card small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.dish-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: #a87b2d;
  font-size: 0.74rem;
  font-weight: 900;
}

.dish-tag svg {
  width: 12px;
  height: 12px;
  fill: var(--amber);
}

.phone-route {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border-radius: 15px;
  background: var(--herb-soft);
}

.phone-route-dot {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--herb);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.32);
  animation: pulseDot 1.8s var(--ease) infinite;
}

.phone-route p {
  color: var(--herb-deep);
  font-size: 0.8rem;
  font-weight: 800;
}

/* ---------- categories ---------- */
#categories {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1.5px solid var(--line);
  box-shadow: 0 4px 14px rgba(37, 28, 66, 0.04);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--tomato);
  box-shadow: 0 16px 36px rgba(64, 56, 128, 0.14);
}

.cat-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  max-width: 80px;
  max-height: 80px;
  flex: 0 0 80px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--cream-soft);
  border: 2px solid var(--white);
  box-shadow: 0 8px 20px rgba(37, 28, 66, 0.12);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cat-thumb img,
.cat-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border-radius: inherit;
}

.cat-card:hover .cat-thumb {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 12px 26px rgba(64, 56, 128, 0.22);
}

.cat-name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

/* ---------- coverage map ---------- */
.coverage-map-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

#coverage-map {
  width: 100%;
  height: 460px;
  background: var(--cream-soft);
}

.coverage-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.coverage-area-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.94rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.coverage-area-btn::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(203, 153, 62, 0.22);
}

.coverage-area-btn:hover,
.coverage-area-btn.active {
  border-color: var(--tomato);
  background: var(--tomato-soft);
  color: var(--tomato-deep);
}

.coverage-soon {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.coverage-popup .leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-family: inherit;
}

.coverage-popup .leaflet-popup-content {
  margin: 12px 18px;
  font-weight: 800;
  color: var(--ink);
  direction: inherit;
  text-align: center;
  font-family: inherit;
}

/* let the map UI inherit the page direction (RTL in Arabic) */
#coverage-map.leaflet-container {
  font-family: inherit;
}

@media (max-width: 720px) {
  #coverage-map {
    height: 320px;
  }

  .coverage-soon {
    width: 100%;
    margin-inline-start: 0;
  }
}

/* ---------- stats ---------- */
#stats-strip {
  padding: 30px 0;
  background: var(--dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 24px;
  background: var(--dark);
  text-align: center;
}

.stat-number {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.stat-number { color: var(--gold-light); }

.stat-label {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  font-weight: 700;
}

/* ---------- sections base ---------- */
#how,
#about,
#services,
#why,
#partners,
.join-section,
#contact {
  padding: var(--section-pad) 0;
}

#about,
#why,
#join-restaurant,
#contact {
  background: var(--white);
}

#how,
#services,
#partners,
#join-driver {
  background: var(--cream-soft);
  border-block: 1px solid var(--line);
}

/* ---------- how it works ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.how-step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1.5px solid var(--line);
  box-shadow: 0 8px 24px rgba(37, 28, 66, 0.05);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.how-step:hover {
  transform: translateY(-6px);
  border-color: var(--tomato-soft);
  box-shadow: 0 20px 45px rgba(37, 28, 66, 0.12);
}

.how-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(37, 28, 66, 0.08);
}

.how-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.how-step:hover .how-img {
  transform: scale(1.06);
}

.how-step-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tomato), var(--tomato-deep));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(64, 56, 128, 0.35);
}

.how-step h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}

.how-step p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---------- about ---------- */
.about-grid,
.join-grid,
.contact-grid,
.partners-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.about-visual {
  position: relative;
}

.about-image {
  width: min(100%, 520px);
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.about-note {
  position: absolute;
  inset-inline-start: 20px;
  bottom: 20px;
  width: min(290px, 80%);
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 16px 36px rgba(37, 28, 66, 0.16);
  z-index: 2;
}

.about-note-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--tomato-soft);
  color: var(--tomato-deep);
}

.about-note-icon svg {
  width: 20px;
  height: 20px;
}

.about-note strong {
  display: block;
  color: var(--tomato-deep);
  font-size: 0.94rem;
  margin-bottom: 4px;
}

.about-note span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.6;
}

.about-content p:not(.eyebrow) {
  font-size: 1.06rem;
  margin-bottom: 16px;
}

.about-vision-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.vision-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  border: 1px solid var(--line);
}

.vision-card-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--herb-soft);
  color: var(--herb-deep);
}

.vision-card:nth-child(2) .vision-card-icon {
  background: var(--tomato-soft);
  color: var(--tomato-deep);
}

.vision-card-icon svg {
  width: 21px;
  height: 21px;
}

.vision-card h4 {
  color: var(--ink);
  font-size: 1.04rem;
  margin-bottom: 8px;
}

.vision-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 268px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 26px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1.5px solid var(--line);
  box-shadow: 0 6px 20px rgba(37, 28, 66, 0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(64, 56, 128, 0.3);
  box-shadow: 0 20px 42px rgba(64, 56, 128, 0.12);
}

.service-icon {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.service-card:nth-child(2) .service-icon {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.35);
}

.service-card:nth-child(3) .service-icon {
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}

.service-card:nth-child(4) .service-icon {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-4deg);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}

.why-card:hover,
.partner-card:hover,
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(64, 56, 128, 0.3);
  box-shadow: 0 16px 36px rgba(37, 28, 66, 0.08);
}

/* ---------- why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1.5px solid var(--line);
  box-shadow: 0 6px 20px rgba(37, 28, 66, 0.04);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tomato), var(--gold));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.why-card:hover {
  transform: translateY(-8px);
  border-color: rgba(64, 56, 128, 0.3);
  box-shadow: 0 20px 42px rgba(64, 56, 128, 0.12);
}

.why-card:hover::before {
  opacity: 1;
}

.why-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.why-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--cream-soft);
  color: var(--tomato);
  font-size: 0.95rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}

.why-icon-pill {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(64, 56, 128, 0.1), rgba(64, 56, 128, 0.05));
  color: var(--tomato-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.why-icon-pill svg {
  width: 20px;
  height: 20px;
}

.why-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}

.why-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ---------- app showcase ---------- */
#app-showcase {
  padding: var(--section-pad) 0;
  background:
    radial-gradient(34% 50% at 90% 6%, rgba(203, 153, 62, 0.16), transparent 62%),
    radial-gradient(30% 42% at 4% 96%, rgba(33, 117, 116, 0.28), transparent 64%),
    linear-gradient(160deg, var(--dark-2), var(--dark));
  color: #fff;
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 60px;
}

.showcase-title {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  margin-bottom: 16px;
}

.showcase-sub {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
  margin-bottom: 28px;
}

.showcase-features {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.showcase-features li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.showcase-feature-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--amber);
}

.showcase-feature-icon svg {
  width: 21px;
  height: 21px;
}

.showcase-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-badge-btn-dark {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.app-badge-btn-dark:hover {
  background: rgba(255, 255, 255, 0.16);
}

.showcase-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup-showcase {
  position: relative;
  inset: auto;
  top: auto;
  transform: rotate(-3deg);
}

body.lang-en .phone-mockup-showcase {
  transform: rotate(3deg);
}

/* ---------- partners ---------- */
.partners-layout {
  align-items: start;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.partner-card {
  min-height: 122px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.partner-mark {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 1.6rem;
}

.partner-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.04rem;
}

.partner-card small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.partners-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
  padding: 26px 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--white), var(--cream));
}

.partners-cta-copy {
  max-width: 620px;
  color: var(--ink-soft);
  font-weight: 700;
}

/* ---------- join sections ---------- */
.join-grid-reverse {
  align-items: start;
}

.join-info h2,
.contact-info h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 16px;
}

.join-info > p,
.contact-info > p {
  font-size: 1.07rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.join-benefits {
  display: grid;
  gap: 12px;
}

.join-benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--line);
}

.join-benefit-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--herb-soft);
  color: var(--herb-deep);
}

.join-benefit-icon svg {
  width: 19px;
  height: 19px;
}

.join-benefit-text {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.5;
}

/* ---------- forms ---------- */
.form-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.form-card h3 {
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-group textarea {
  min-height: 112px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--tomato);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(64, 56, 128, 0.15);
}

.btn-submit {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--tomato), var(--tomato-deep));
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow-tomato);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(46, 41, 99, 0.40);
}

.form-success {
  display: none;
  min-height: 320px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.form-success.show {
  display: flex;
}

.success-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--herb-soft);
  color: var(--herb-deep);
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

.success-msg {
  max-width: 360px;
  color: var(--ink);
  font-weight: 800;
}

.btn-reset {
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  background: var(--cream-deep);
  color: var(--ink);
  font-weight: 800;
}

/* ---------- contact ---------- */
.contact-grid {
  align-items: start;
  grid-template-columns: 0.82fr 1.18fr;
}

.contact-cards {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  border: 1px solid var(--line);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-card-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--tomato-soft);
  color: var(--tomato-deep);
  font-weight: 900;
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
}

.contact-card small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.contact-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.contact-success-banner {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--herb-soft);
  color: var(--herb-deep);
  font-weight: 900;
  text-align: center;
}

.form-inline-message {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-inline-message.is-error {
  background: var(--tomato-soft);
  color: var(--tomato-deep);
  border: 1px solid rgba(64, 56, 128, 0.28);
}

.form-inline-message.is-success {
  background: var(--herb-soft);
  color: var(--herb-deep);
  border: 1px solid rgba(26, 111, 75, 0.26);
  text-align: center;
}

/* ---------- footer ---------- */
#footer {
  padding: 66px 0 30px;
  background: var(--dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
  margin-bottom: 44px;
}

.footer-logo .brand-mark {
  background: linear-gradient(135deg, var(--tomato), var(--tomato-deep));
  color: #fff;
}

.footer-logo-name {
  color: #fff;
  font-size: 1.34rem;
  font-weight: 900;
}

.footer-desc {
  max-width: 330px;
  margin: 16px 0 22px;
  color: rgba(255, 255, 255, 0.66);
}

.footer-social,
.footer-app-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.social-btn:hover {
  background: linear-gradient(135deg, var(--tomato), var(--tomato-deep));
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  margin-bottom: 15px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-rights,
.footer-rights span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.88rem;
}

.footer-app-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  transition: background 0.2s var(--ease);
}

.footer-app-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.footer-app-btn .store-icon {
  width: 22px;
  height: 22px;
  color: #fff;
}

.footer-app-btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- modal ---------- */
/* ---------- modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 21, 53, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  width: min(100%, 500px);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 36px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(37, 28, 66, 0.25);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s var(--ease);
}

.modal-card-lg {
  width: min(100%, 620px);
  padding: 40px 36px;
}

.modal-overlay.show .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  margin-bottom: 24px;
  text-align: start;
}

.modal-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--tomato-soft);
  color: var(--tomato);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-header h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.modal-header p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}

.modal-close:hover {
  background: var(--tomato-soft);
  border-color: var(--tomato);
  color: var(--tomato-deep);
  transform: rotate(90deg);
}

.modal-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--tomato), var(--tomato-deep));
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow-tomato);
}

.modal-icon svg {
  width: 34px;
  height: 34px;
  fill: var(--gold);
}

.modal-card h3 {
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.modal-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

.modal-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.modal-platform {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.modal-platform .store-icon {
  color: var(--ink);
}

.platform-name {
  color: var(--ink);
  font-weight: 900;
}

.platform-badge {
  display: none;
}

.modal-notify-form {
  display: flex;
  gap: 10px;
}

.modal-notify-form input {
  min-width: 0;
  flex: 1;
  min-height: 50px;
  padding: 0 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  outline: none;
}

.modal-notify-form input:focus {
  border-color: var(--tomato);
  box-shadow: 0 0 0 4px rgba(64, 56, 128, 0.15);
}

.btn-notify {
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--tomato), var(--tomato-deep));
  color: #fff;
  font-weight: 900;
}

/* ---------- Action Cards (On-Page Triggers) ---------- */
.action-card {
  background: linear-gradient(145deg, var(--white), var(--cream-soft));
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.action-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--tomato-soft);
}

.action-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.action-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--tomato), var(--tomato-deep));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-tomato);
}

.action-card-icon svg {
  width: 32px;
  height: 32px;
}

.action-card-icon-bike {
  background: linear-gradient(135deg, var(--herb), var(--herb-deep));
  color: #fff;
  box-shadow: 0 16px 34px rgba(26, 111, 75, 0.25);
}

.action-card-icon-mail {
  background: linear-gradient(135deg, var(--grape), #164d4c);
  color: #fff;
  box-shadow: 0 16px 34px rgba(33, 117, 116, 0.25);
}

.action-card h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 4px;
}

.action-card p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 8px;
}

.btn-action-trigger {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-tomato);
  margin-top: 4px;
}

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed;
  inset-inline-end: 24px;
  bottom: 24px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tomato), var(--tomato-deep));
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--shadow-tomato);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ---------- loading dots ---------- */
.loading-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: loadingDot 0.9s infinite ease-in-out;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.12s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.24s;
}

/* ---------- reveal on scroll (progressive; safe without JS) ---------- */
[data-reveal] {
  opacity: 1;
  transform: none;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html.js [data-reveal='left'] {
  transform: translateX(-28px);
}

html.js [data-reveal='right'] {
  transform: translateX(28px);
}

html.js body.lang-en [data-reveal='left'] {
  transform: translateX(28px);
}

html.js body.lang-en [data-reveal='right'] {
  transform: translateX(-28px);
}

html.js [data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* =============================================
   Legal page (privacy policy & terms)
   ============================================= */

/* Footer legal link */
.footer-legal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 0.2s var(--ease);
}

.footer-legal-link:hover {
  color: #fff;
}

.footer-bottom-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-bottom-legal .footer-dot {
  color: rgba(255, 255, 255, 0.32);
}

/* Language visibility toggle for the legal documents */
.legal-doc-en { display: none; }
body.lang-en .legal-doc-ar { display: none; }
body.lang-en .legal-doc-en { display: block; }

/* Legal hero */
.legal-hero {
  position: relative;
  padding: calc(var(--section-pad) + 40px) 0 64px;
  background:
    radial-gradient(120% 140% at 85% -10%, var(--tomato-soft), transparent 55%),
    linear-gradient(180deg, var(--cream-soft), var(--cream));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

.legal-crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 18px;
}

.legal-crumbs a {
  color: var(--tomato-deep);
}

.legal-crumbs a:hover {
  text-decoration: underline;
}

.legal-hero-title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
  max-width: 20ch;
}

.legal-hero-sub {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

/* Legal body */
.legal-body {
  padding: 72px 0 var(--section-pad);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* Table of contents */
.legal-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.legal-toc h2 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.legal-toc ul {
  list-style: none;
  display: grid;
  gap: 4px;
}

.legal-toc a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.legal-toc a:hover {
  background: var(--cream-soft);
  color: var(--tomato-deep);
}

/* Document content */
.legal-doc {
  max-width: 760px;
}

.legal-intro {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--ink-soft);
  padding: 20px 24px;
  background: var(--cream-soft);
  border-radius: var(--radius-md);
  border-inline-start: 4px solid var(--tomato);
  margin-bottom: 40px;
}

.legal-section {
  scroll-margin-top: 96px;
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.legal-section h2 .legal-num {
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--tomato);
}

.legal-section h3 {
  font-size: 1.12rem;
  color: var(--ink);
  margin: 22px 0 10px;
}

.legal-section p {
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 14px;
}

.legal-section ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 6px 0 18px;
}

.legal-section ul li {
  position: relative;
  padding-inline-start: 26px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  inset-inline-start: 6px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tomato);
}

.legal-section a {
  color: var(--tomato-deep);
  font-weight: 600;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-doc-title {
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--tomato);
  display: inline-block;
}

.legal-doc + .legal-doc-divider {
  height: 40px;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-toc {
    position: static;
    top: auto;
  }

  .legal-hero {
    padding-top: calc(var(--section-pad) - 8px);
  }
}
