/* Wadina public home page. Values come from tokens.css (design A "El Midan"); nothing here adds a colour or a font. */

@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/plex-arabic-400Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/plex-arabic-600SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/plex-arabic-700Bold.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 68px; color-scheme: light; accent-color: var(--w-green); }
::selection { background: var(--w-green); color: #fff; }
body {
  margin: 0; background: var(--w-bg); color: var(--w-ink);
  font-family: var(--w-font); font-size: var(--w-text-md); line-height: var(--w-leading);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
a { color: inherit; -webkit-tap-highlight-color: rgba(10, 122, 90, .14); }
.num { font-variant-numeric: tabular-nums; }
bdi { unicode-bidi: isolate; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--w-ink); color: #fff; padding: 10px 14px; border-radius: var(--w-radius-sm); z-index: 20; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--w-green); outline-offset: 3px; border-radius: 6px; }
.work :focus-visible { outline-color: #fff; }
.work ::selection { background: #fff; color: var(--w-green-dark); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--w-tap-min); padding: 0 18px; border-radius: var(--w-radius-sm);
  background: var(--w-green); color: #fff; text-decoration: none;
  font-weight: var(--w-weight-bold); font-size: var(--w-text-sm);
  transition: background var(--w-fast) var(--w-ease), transform var(--w-fast) var(--w-ease);
}
.btn:hover { background: var(--w-green-dark); }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: var(--w-button-h); padding: 0 28px; border-radius: var(--w-radius-md); font-size: var(--w-text-md); }
.btn-lg .i { width: 20px; height: 20px; transition: transform var(--w-base) var(--w-ease); }
.btn-lg:hover .i { transform: translateX(-3px); }
.btn-white { background: #fff; color: var(--w-green-dark); }
.btn-quiet { background: #fff; color: var(--w-ink); box-shadow: inset 0 0 0 1px var(--w-line); }
.btn-quiet:hover { background: var(--w-green-soft); color: var(--w-green-dark); }
.btn-white:hover { background: var(--w-green-soft); }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(243, 246, 249, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
@supports (animation-timeline: scroll()) {
  .top { animation: top-line linear both; animation-timeline: scroll(root); animation-range: 0 80px; }
  @keyframes top-line { to { border-bottom-color: var(--w-line); } }
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand img { height: 38px; width: auto; }
.top-nav { display: flex; align-items: center; gap: 18px; }
.top-link { font-size: var(--w-text-sm); font-weight: var(--w-weight-semibold); color: var(--w-ink-2); text-decoration: none; display: none; }
.top-link:hover { color: var(--w-ink); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 20px 0 56px; overflow: hidden; }
.hero-in { display: grid; gap: 36px; }
.br-wide { display: none; }
.hero h1 {
  font-size: 36px; line-height: 1.32; font-weight: var(--w-weight-bold); letter-spacing: 0;
  text-wrap: balance;
}
.lead { margin-top: 16px; font-size: var(--w-text-md); color: var(--w-ink-2); max-width: 34em; }
.cta-row { margin-top: 26px; display: grid; gap: 10px; justify-items: start; }
.cta-row .btn-lg { width: 100%; }
.cta-note { font-size: var(--w-text-sm); color: var(--w-ink-3); }
.facts { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--w-text-sm); color: var(--w-ink-2); font-weight: var(--w-weight-semibold); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .i { width: 18px; height: 18px; color: var(--w-green); }
.stores { margin-top: 14px; font-size: var(--w-text-xs); color: var(--w-ink-3); display: flex; align-items: center; gap: 8px; }
.soon { display: inline-block; padding: 2px 10px; border-radius: var(--w-radius-pill); background: var(--w-info-soft); color: var(--w-info); font-weight: var(--w-weight-semibold); }

/* the phone: an HTML copy of the real home screen, drawn at 390 px and scaled */
.hero-visual { position: relative; justify-self: center; --s: .78; padding-bottom: 8px; }
.phone-scale { width: calc(410px * var(--s)); height: calc(650px * var(--s)); position: relative; }
.phone {
  position: absolute; top: 0; left: 0; width: 410px; height: 650px; transform: scale(var(--s)); transform-origin: top left;
  border: 10px solid var(--w-ink); border-radius: 48px; background: var(--w-bg); overflow: hidden;
  box-shadow: 0 2px 4px rgba(14, 27, 42, .06), 0 40px 80px -24px rgba(14, 27, 42, .32);
}
.app { position: relative; height: 100%; padding: 30px 18px 0; }
.app-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.app-hi { font-size: 14px; color: var(--w-ink-2); }
.app-q { font-size: 22px; font-weight: 700; line-height: 1.4; }
.app-chip {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px;
  border: 1px solid var(--w-line); background: #fff; border-radius: var(--w-radius-pill);
  font-size: 13px; font-weight: 600; color: var(--w-ink-2); white-space: nowrap;
}
.app-chip .i { width: 16px; height: 16px; }
.tiles { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  background: #fff; border-radius: var(--w-radius-xl); padding: 16px; box-shadow: var(--w-shadow);
  display: flex; flex-direction: column; gap: 18px; min-height: 142px;
}
.tile b { display: block; font-size: 18px; font-weight: 700; line-height: 1.35; }
.tile small, .sheet small, .toast small { display: block; font-size: 14px; color: var(--w-ink-2); line-height: 1.45; }
.tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; min-height: 0; }
.grow { flex: 1; min-width: 0; }
.chev { color: var(--w-ink-3); width: 20px; height: 20px; }
.ico { width: 52px; height: 52px; border-radius: var(--w-radius-md); display: grid; place-items: center; flex: none; }
.ico .i { width: 24px; height: 24px; }
.t-delivery { background: var(--w-delivery-soft); color: var(--w-delivery); }
.t-food { background: var(--w-food-soft); color: var(--w-food); }
.t-market { background: var(--w-market-soft); color: var(--w-market); }
.t-dir { background: var(--w-directory-soft); color: var(--w-directory); }
.tabs {
  position: absolute; inset-inline: 0; bottom: 0; height: 74px; background: #fff; border-top: 1px solid var(--w-line);
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; text-align: center;
}
.tabs span { display: grid; justify-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; color: var(--w-ink-2); }
.tabs .on { color: var(--w-green); }

/* the one motion moment: the order status card slides in once */
.toast {
  position: absolute; inset-inline-start: -6px; bottom: 58px; width: 252px;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px;
  background: #fff; border-radius: var(--w-radius-lg);
  box-shadow: 0 1px 2px rgba(14, 27, 42, .06), 0 18px 40px -10px rgba(14, 27, 42, .28);
  animation: toast-in var(--w-slow) var(--w-ease) 900ms both;
}
.toast .ico { width: 44px; height: 44px; border-radius: 14px; }
.toast .ico .i { width: 22px; height: 22px; }
.toast b { display: block; font-size: 15px; font-weight: 700; }
.toast small { font-size: 13px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- section heads */
.sec-head { display: grid; gap: 6px; margin-bottom: 26px; }
.sec-head h2, .towns h2, .work h2, .closing h2 { font-size: 28px; line-height: 1.35; font-weight: var(--w-weight-bold); }
.sec-head p { color: var(--w-ink-3); font-size: var(--w-text-sm); }

/* ---------------------------------------------------------------- services */
.services { padding: 56px 0 64px; background: var(--w-surface); }
.svc-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
  padding: 4px 20px 18px; scrollbar-width: none;
}
.svc-strip::-webkit-scrollbar { display: none; }
.svc {
  scroll-snap-align: start; background: var(--w-bg); border-radius: 24px; padding: 22px 20px 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.svc-text { display: grid; gap: 8px; justify-items: start; }
.svc h3 { font-size: var(--w-text-lg); font-weight: var(--w-weight-bold); line-height: 1.4; display: flex; align-items: flex-start; gap: 10px; }
.svc h3 .i { width: 24px; height: 24px; margin-top: 1px; }
.svc h3, .steps h3 { text-wrap: balance; }
.c-delivery { color: var(--w-delivery); }
.c-food { color: var(--w-food); }
.c-market { color: var(--w-market); }
.c-dir { color: var(--w-directory); }
.svc p { font-size: var(--w-text-sm); color: var(--w-ink-2); min-height: 3em; }
.shot {
  margin-top: 22px; margin-inline: 8px; position: relative; height: 330px; overflow: hidden;
  border: 7px solid var(--w-ink); border-bottom: 0; border-radius: 30px 30px 0 0; background: var(--w-bg);
}
.shot img { width: 100%; height: auto; }

/* ---------------------------------------------------------------- how it works */
.how { padding: 64px 0; }
.steps { display: grid; gap: 0; position: relative; }
.steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding-bottom: 28px; }
.steps li::before {
  content: ""; position: absolute; inset-inline-start: 21px; top: 44px; bottom: 0; width: 2px; background: var(--w-line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::before { display: none; }
.dot {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--w-green); color: var(--w-green-dark); background: #fff;
  font-weight: var(--w-weight-bold); font-size: var(--w-text-md);
}
.dot.done { background: var(--w-green); color: #fff; }
.dot.done .i { width: 22px; height: 22px; stroke-width: 2.4; }
.steps h3 { font-size: var(--w-text-lg); font-weight: var(--w-weight-bold); line-height: 1.4; padding-top: 6px; }
.steps p { font-size: var(--w-text-sm); color: var(--w-ink-2); margin-top: 2px; }
.notice {
  margin-top: 32px; display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: var(--w-green-soft); color: var(--w-green-dark); border-radius: var(--w-radius-sm);
  font-size: var(--w-text-sm); font-weight: var(--w-weight-semibold);
}
.notice .i { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- work with us */
.work { background: var(--w-green); color: #fff; padding: 64px 0; }
.work-in { display: grid; gap: 36px; }
.work-mark { width: 48px; height: 48px; margin-bottom: 18px; }
.work-copy > p { margin-top: 12px; color: var(--w-green-soft); max-width: 30em; }
.fees { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid rgba(255, 255, 255, .22); }
.fees div { padding: 16px 0; }
.fees div + div { border-inline-start: 1px solid rgba(255, 255, 255, .22); padding-inline-start: 20px; }
.fees dt { font-size: var(--w-text-xl); font-weight: var(--w-weight-bold); line-height: 1.3; }
.fees dd { font-size: var(--w-text-sm); color: var(--w-green-soft); margin-top: 2px; }
.fees-note { margin-top: 14px; font-size: var(--w-text-xs); color: var(--w-green-soft); max-width: 38em; text-wrap: balance; }
.work .btn-lg { margin-top: 28px; width: 100%; }
.sheet { background: var(--w-bg); color: var(--w-ink); border-radius: 28px; padding: 26px 18px 18px; box-shadow: 0 30px 60px -20px rgba(4, 44, 32, .45); }
.sheet-q { font-size: var(--w-text-xl); font-weight: var(--w-weight-bold); }
.sheet-sub { margin-top: 4px; font-size: var(--w-text-sm); color: var(--w-ink-2); }
.sheet ul { margin-top: 18px; display: grid; gap: 12px; }
.sheet li { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--w-radius-xl); padding: 14px 16px; box-shadow: var(--w-shadow); }
.sheet b { display: block; font-size: var(--w-text-md); font-weight: var(--w-weight-bold); line-height: 1.4; }
.sheet small { font-size: 13.5px; }

/* ---------------------------------------------------------------- towns */
.towns { padding: 64px 0; }
.towns-in { display: grid; gap: 32px; }
.towns-copy > p { margin-top: 10px; color: var(--w-ink-2); max-width: 28em; }
.town-list { margin-top: 26px; display: grid; gap: 10px; }
.town-list li { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--w-radius-md); padding: 14px 16px; box-shadow: var(--w-shadow); }
.town-list b { flex: 1; font-size: var(--w-text-md); font-weight: var(--w-weight-semibold); }
.tdot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--w-ink-3); flex: none; }
.town-list .first .tdot { background: var(--w-green); border-color: var(--w-green); box-shadow: 0 0 0 4px var(--w-green-soft); }
.town-list .first b { font-weight: var(--w-weight-bold); }
.badge { font-size: var(--w-text-xs); font-weight: var(--w-weight-semibold); padding: 3px 10px; border-radius: var(--w-radius-pill); }
.badge.green { background: var(--w-green-soft); color: var(--w-green-dark); }
.badge.grey { background: #EEF1F4; color: var(--w-ink-2); }
.map { background: #fff; border-radius: 24px; box-shadow: var(--w-shadow); padding: 12px; width: 100%; max-width: 560px; justify-self: center; }
.map svg { width: 100%; height: auto; }
.road { fill: none; stroke: var(--w-ink-3); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; }
.town circle { fill: #fff; stroke: var(--w-ink-3); stroke-width: 3; }
.town text { font-family: var(--w-font); font-size: 19px; font-weight: 600; fill: var(--w-ink-2); text-anchor: middle; }
.town.on circle { fill: var(--w-green); stroke: #fff; stroke-width: 4; }
.town.on .halo { fill: var(--w-green-soft); stroke: none; }
.map-label { font-family: var(--w-font); font-size: 15px; font-weight: 600; fill: var(--w-ink-3); text-anchor: start; }
.town.on text { fill: var(--w-ink); font-weight: 700; font-size: 21px; }

/* ---------------------------------------------------------------- closing + footer */
.closing { padding: 0 0 64px; }
.closing-in { background: #fff; border-radius: 28px; box-shadow: var(--w-shadow); padding: 36px 22px; text-align: center; display: grid; justify-items: center; gap: 12px; margin-inline: 20px; width: auto; }
.closing-in p { color: var(--w-ink-2); font-size: var(--w-text-md); max-width: 30em; text-wrap: balance; }
.closing .btn-lg { margin-top: 10px; width: 100%; max-width: 360px; }

.foot { border-top: 1px solid var(--w-line); padding: 28px 0 36px; }
.foot-in { display: grid; gap: 16px; justify-items: start; }
.foot-in img { height: 34px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { font-size: var(--w-text-sm); color: var(--w-ink-2); text-decoration: none; min-height: var(--w-tap-min); display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--w-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.copy { font-size: var(--w-text-xs); color: var(--w-ink-3); }

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 600px) {
  .svc-strip { grid-auto-columns: 46%; }
  .cta-row .btn-lg, .work .btn-lg { width: auto; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: var(--w-text-hero); line-height: 1.3; }
  .lead { font-size: var(--w-text-lg); }
  .closing-in { margin-inline: auto; max-width: 1160px; }
}

@media (min-width: 960px) {
  .wrap { padding-inline: 40px; }
  .top-link { display: inline; }
  .top-in { height: 76px; }
  .brand img { height: 42px; }

  .hero { padding: 40px 0 96px; }
  .hero-in { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
  .br-wide { display: inline; }
  .hero h1 { font-size: 56px; line-height: 1.25; }
  .lead { font-size: var(--w-text-lg); margin-top: 22px; }
  .cta-row { margin-top: 34px; grid-auto-flow: column; align-items: center; gap: 18px; justify-content: start; }
  .hero-visual { --s: .92; justify-self: center; }
  .toast { inset-inline-start: -86px; bottom: 96px; width: 270px; }

  .services { padding: 96px 0; }
  .sec-head { margin-bottom: 40px; }
  .sec-head h2, .towns h2, .work h2, .closing h2 { font-size: 40px; line-height: 1.3; }
  .svc-strip { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; max-width: 1200px; margin-inline: auto; padding: 0 40px; gap: 20px; }
  .svc { padding: 32px 32px 0; }
  .shot { height: 380px; margin-inline: 0; align-self: center; width: min(100%, 340px); }

  .how { padding: 96px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { grid-template-columns: 1fr; padding-bottom: 0; row-gap: 14px; }
  .steps li::before { inset-inline-start: 56px; inset-inline-end: -32px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .steps li:last-child::before { display: none; }
  .dot { grid-row: auto; width: 46px; height: 46px; }
  .steps h3 { padding-top: 0; font-size: var(--w-text-xl); }
  .steps p { font-size: var(--w-text-md); }
  .notice { display: inline-flex; margin-top: 44px; }

  .work { padding: 104px 0; }
  .work-in { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .sheet { padding: 32px 26px 26px; max-width: 480px; justify-self: end; width: 100%; }

  .towns { padding: 104px 0; }
  .towns-in { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
  .map { max-width: none; }

  .closing { padding-bottom: 96px; }
  .closing-in { padding: 64px 40px; }

  .foot-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
  .foot-links { justify-content: center; }
}

@media (min-width: 1200px) {
  .svc { flex-direction: row; align-items: stretch; gap: 24px; padding: 32px 32px 0; }
  .svc-text { flex: 1; align-content: start; padding-top: 4px; }
  .svc-text { gap: 10px; }
  .svc h3 { font-size: var(--w-text-xl); }
  .svc h3 .i { width: 26px; height: 26px; margin-top: 2px; }
  .svc p { font-size: var(--w-text-md); }
  .shot { flex: none; width: 272px; height: 384px; margin-top: 0; align-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { animation: none; }
  .btn, .btn-lg .i { transition: none; }
}
