/* Foodo public site: shared by the landing page, the privacy policy and the payment return page.
   Written with logical properties (inline-start/end), so the same rules lay out Arabic (RTL) and English (LTR). */
@font-face { font-family: Plex; font-weight: 400; font-display: swap; src: url(/assets/IBMPlexSansArabic-Regular.ttf) format("truetype"); }
@font-face { font-family: Plex; font-weight: 500; font-display: swap; src: url(/assets/IBMPlexSansArabic-Medium.ttf) format("truetype"); }
@font-face { font-family: Plex; font-weight: 700; font-display: swap; src: url(/assets/IBMPlexSansArabic-Bold.ttf) format("truetype"); }

:root {
  --green: #2F6B45; --green-d: #1F4D31; --green-dd: #163824;
  --leaf: #8FBE73; --leaf-t: #E3EFD8;
  --butter: #F4E7A1; --butter-t: #FBF3CC;
  --cream: #FFF9E8; --paper: #FFFFFF;
  --ink: #1C2B21; --muted: #56665B; --line: #E8E4D2;
  --on-green-muted: #D3E4D8;
  --radius: 22px; --radius-lg: 32px;
  --shadow: 0 18px 44px rgba(31, 77, 49, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: Plex, "Segoe UI", Tahoma, system-ui, sans-serif; font-size: 16px; line-height: 1.7;
  background: var(--cream); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 10px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 12px; }
.ic { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; color: var(--green); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 10px 14px; border-radius: 99px; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--green); background: var(--leaf-t); }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 99px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--green-d); font: 500 15px Plex, system-ui, sans-serif; cursor: pointer;
}
.lang-btn:hover { border-color: var(--leaf); }
.lang-btn .ic { width: 18px; height: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 16px; text-decoration: none; font-weight: 700; font-size: 16.5px; border: 0; cursor: pointer;
  background: var(--green); color: #fff; box-shadow: 0 10px 22px rgba(47, 107, 69, .26);
  transition: transform .18s var(--ease), background .18s, box-shadow .18s;
}
.btn:hover { background: var(--green-d); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(47, 107, 69, .3); }
.btn:active { transform: translateY(0); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 14px; box-shadow: none; }
.btn.butter { background: var(--butter); color: var(--green-dd); box-shadow: none; }
.btn.butter:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--green-d); border: 1.5px dashed var(--leaf); box-shadow: none; cursor: default; }
.btn.ghost:hover { transform: none; background: transparent; }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: .8; line-height: 1.2; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 72px; isolation: isolate; overflow-x: clip; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 62% 38% 70% 30% / 48% 60% 40% 52%; }
.hero::before { inset-inline-start: -180px; top: -140px; width: 520px; height: 520px; background: var(--leaf-t); }
.hero::after { inset-inline-end: -160px; bottom: -120px; width: 440px; height: 440px; background: var(--butter-t); border-radius: 40% 60% 35% 65% / 55% 40% 60% 45%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); color: var(--green-d); font-weight: 500; font-size: 14px; padding: 6px 14px 6px 12px; border-radius: 99px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-t); }
h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.2; margin: 18px 0 16px; color: var(--green-dd); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--green); background: linear-gradient(transparent 62%, var(--butter) 62%); padding-inline: 4px; }
.lead { font-size: 19px; color: var(--muted); max-width: 32em; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--green-d); font-size: 14.5px; font-weight: 500; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .ic { width: 20px; height: 20px; color: var(--green); }

.visual { position: relative; }
.visual .photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--paper); aspect-ratio: 4 / 3; }
.visual .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.float { position: absolute; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.float b { display: block; font-size: 15px; color: var(--green-dd); }
.float span { color: var(--muted); }
.float .badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--leaf-t); color: var(--green); }
.float.track { inset-inline-start: -28px; bottom: 28px; }
.float.paid { inset-inline-end: -18px; top: 22px; }
.float.paid .badge { background: var(--butter-t); color: var(--green-d); }
.progress { display: flex; gap: 4px; margin-top: 6px; }
.progress i { width: 26px; height: 5px; border-radius: 9px; background: var(--leaf-t); }
.progress i.on { background: var(--green); }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.kicker { color: var(--green); font-weight: 700; font-size: 14px; letter-spacing: .04em; margin: 0 0 8px; }
h2 { font-size: clamp(28px, 3.8vw, 40px); color: var(--green-dd); margin: 0 0 12px; line-height: 1.25; text-wrap: balance; }
.sub { color: var(--muted); font-size: 17.5px; margin: 0 0 40px; max-width: 38em; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .2s var(--ease), box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--leaf-t); color: var(--green); margin-bottom: 16px; }
.card:nth-child(3n+2) .badge { background: var(--butter-t); color: var(--green-d); }
.card h3 { margin: 0 0 6px; font-size: 19px; color: var(--green-dd); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; background: var(--green); color: #fff; border-radius: var(--radius); padding: 30px 26px 26px; overflow: hidden; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--butter); color: var(--green-dd); font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.steps li::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(143, 190, 115, .18); }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--on-green-muted); font-size: 15.5px; }

.band { background: var(--green); color: #fff; border-radius: var(--radius-lg); padding: 52px 48px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.band::after { content: ""; position: absolute; z-index: -1; inset-inline-start: -90px; bottom: -120px; width: 320px; height: 320px; background: rgba(143, 190, 115, .22); border-radius: 50%; }
.band h2 { color: #fff; }
.band .sub { color: var(--on-green-muted); margin-bottom: 24px; }
.band .actions .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.install { background: rgba(255, 255, 255, .1); border-radius: 20px; padding: 22px 24px; }
.install h3 { margin: 0 0 8px; font-size: 17px; color: var(--butter); }
.install ol { margin: 0; padding-inline-start: 22px; color: #E6F0E9; font-size: 15px; }
.install li { margin: 6px 0; }

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; font-weight: 700; font-size: 17px; color: var(--green-dd); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s var(--ease); color: var(--green); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.foot a { color: var(--green); text-decoration: none; font-weight: 500; }
.foot a:hover { text-decoration: underline; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- reveal on scroll (only when JS runs and motion is allowed) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- document pages (privacy) ---------- */
.doc { width: min(780px, 100% - 32px); margin-inline: auto; padding: 20px 0 64px; line-height: 1.9; }
.doc h1 { font-size: clamp(30px, 4.6vw, 40px); margin: 28px 0 4px; }
.doc h2 { font-size: 21px; margin: 34px 0 6px; color: var(--green); }
.doc p, .doc li { font-size: 16.5px; color: #2C3B31; }
.doc ul { padding-inline-start: 22px; }
.doc .date { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.doc a { color: var(--green); font-weight: 700; }

/* ---------- small pages (payment return) ---------- */
.notice { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px 20px; }
.notice .tick { width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: var(--butter); display: grid; place-items: center; margin: 0 auto 18px; }
.notice .tick .ic { width: 40px; height: 40px; stroke-width: 2.4; }
.notice h1 { font-size: 24px; margin: 0 0 8px; }
.notice p { color: var(--muted); margin: 0 0 20px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .float.track { inset-inline-start: 12px; }
  .float.paid { inset-inline-end: 12px; }
}
@media (max-width: 820px) {
  .hero { padding: 28px 0 56px; }
  .hero-grid, .band { grid-template-columns: 1fr; gap: 32px; }
  .visual .photo { aspect-ratio: 16 / 10; }
  .nav a { display: none; }
  .steps { grid-template-columns: 1fr; }
  .band { padding: 36px 22px; }
  section { padding: 64px 0; }
  .lead { font-size: 17.5px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .float { font-size: 13px; padding: 10px 12px; }
  .float.paid { display: none; }
  .bar { gap: 10px; }
  .brand { font-size: 20px; }
  .head-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
