/* Al-Omda Farms landing page */
:root {
  --omda: #1d321e;        /* logo green */
  --omda-2: #2b4a2c;
  --field: #5a953a;       /* hill green from the labels */
  --meadow: #d6eea9;
  --sky: #f7fcec;
  --milk: #fffcf8;        /* logo white */
  --sun: #f9b427;
  --vest: #e68b37;        /* Omda's vest */
  --wa: #1f8f4e;
  --text: #1d321e;
  --muted: #4e5f4c;

  --font-ar: "Cairo", system-ui, sans-serif;
  --font-en: "Archivo", system-ui, sans-serif;
  --font: var(--font-ar);
  --display-stretch: 100%;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-pill: 999px;
}
html[lang="en"] { --font: var(--font-en); --display-stretch: 118%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--milk);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50;
  background: var(--omda); color: var(--milk); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.ico { width: 1.25em; height: 1.25em; flex: none; }
html[lang="ar"] .only-en, html[lang="en"] .only-ar { display: none !important; }
body.has-order .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.4em;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  font-weight: 800; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--omda); color: var(--milk); }
.btn--primary:hover { background: var(--omda-2); }
.btn--ghost { border-color: var(--omda); color: var(--omda); background: rgba(255,252,248,.7); }
.btn--ghost:hover { background: var(--milk); }
.btn--wa { width: 100%; background: var(--wa); color: #fff; }
.btn--wa:hover { background: #187a41; }

/* ---------- Header ---------- */
.top { background: var(--sky); position: relative; z-index: 3; }
.top__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; }
.top__brand img { width: 64px; height: auto; }
.top__name { font-size: 1.15rem; }
.top__nav { display: flex; gap: 22px; margin-inline-start: auto; }
.top__nav a { text-decoration: none; font-weight: 700; padding: 6px 0; border-bottom: 2px solid transparent; }
.top__nav a:hover { border-color: var(--field); }
.lang {
  border: 2px solid var(--omda); background: transparent; border-radius: var(--radius-pill);
  padding: 4px 16px; font-weight: 800; cursor: pointer; min-height: 40px;
}
.lang:hover { background: var(--omda); color: var(--milk); }
.lang[lang="en"] { font-family: var(--font-en); }
.lang[lang="ar"] { font-family: var(--font-ar); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  background: var(--sky);
  padding-block: clamp(24px, 5vw, 56px) clamp(150px, 16vw, 230px);
  overflow: hidden;
}
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
html[dir="ltr"] .hero__scene { transform: scaleX(-1); }
.hero__grid {
  display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(16px, 4vw, 64px);
}
.hero__title {
  margin: 0 0 .35em;
  font-weight: 900; font-stretch: var(--display-stretch);
  font-size: clamp(2.6rem, 6.6vw, 5.6rem);
  line-height: 1.12; letter-spacing: -0.01em;
  color: var(--omda);
}
html[lang="en"] .hero__title { line-height: 1.0; letter-spacing: -0.025em; }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34em; margin: 0 0 1.6em; color: var(--omda-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badge { margin: 0; justify-self: center; width: min(100%, 340px); }
.hero__badge img { filter: drop-shadow(0 18px 24px rgba(29,50,30,.28)); }

@media (prefers-reduced-motion: no-preference) {
  .hero .sun { animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
  .hero .hill--back { animation: lift 1.1s .1s cubic-bezier(.2,.7,.2,1) both; }
  .hero .trees { animation: lift 1.1s .18s cubic-bezier(.2,.7,.2,1) both; }
  .hero .hill--mid { animation: lift 1s .22s cubic-bezier(.2,.7,.2,1) both; }
  .hero__badge img { animation: drop .9s .45s cubic-bezier(.2,.9,.25,1.2) both; }
}
@keyframes rise { from { transform: translateY(120px); } }
@keyframes lift { from { transform: translateY(60px); } }
@keyframes drop { from { transform: translateY(-24px) rotate(-4deg); } }

/* ---------- Category bar ---------- */
.catbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--omda); color: var(--milk);
  box-shadow: 0 6px 18px -10px rgba(0,0,0,.4);
}
.catbar__scroll {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  max-width: var(--wrap); margin-inline: auto; padding: 10px var(--gutter);
}
.catbar__scroll::-webkit-scrollbar { display: none; }
.catbar__scroll {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.catbar a {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap;
  border: 1.5px solid rgba(255,252,248,.25);
}
.catbar a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.catbar a:hover, .catbar a[aria-current="true"] { background: var(--milk); color: var(--omda); border-color: var(--milk); }

/* ---------- Product bands ---------- */
.band {
  --bg: #eee; --ink: #222; --accent: #444;
  position: relative; background: var(--bg); color: var(--ink);
  padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px);
  scroll-margin-top: 56px;
}
.band + .band { margin-top: 0; }
.band__edge {
  position: absolute; left: 0; right: 0; bottom: calc(100% - 1px);
  width: 100%; height: clamp(28px, 4vw, 60px); color: var(--bg); display: block;
}
.band:first-child .band__edge { display: none; }
.band__head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.band__title {
  margin: 0; font-weight: 900; font-stretch: var(--display-stretch);
  font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1.25; letter-spacing: -0.01em;
}
html[lang="en"] .band__title { line-height: 1.02; letter-spacing: -0.02em; }
.band__alt { margin: .25em 0 0; font-weight: 700; color: var(--accent); font-size: 1.05rem; }
html[lang="ar"] .band__alt { font-family: var(--font-en); font-stretch: 112%; }
html[lang="en"] .band__alt { font-family: var(--font-ar); }

.stickers { display: flex; align-items: center; justify-content: flex-end; padding-inline-end: 12px; max-width: min(560px, 52vw); }
.stickers img {
  height: var(--sticker-h, 118px); width: auto; max-width: none; min-width: 0;
  border-radius: 14px; background: #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 14px 26px -12px rgba(0,0,0,.35);
  margin-inline-start: -36px;
  transform: rotate(var(--r, 0deg));
}
.stickers img:first-child { margin-inline-start: 0; }
.stickers img:nth-child(1) { --r: -4deg; }
.stickers img:nth-child(2) { --r: 3deg; z-index: 1; }
.stickers img:nth-child(3) { --r: -2deg; }
.stickers img:nth-child(4) { --r: 4deg; }
.stickers--wide img { --sticker-h: 104px; }
.stickers--tall img { --sticker-h: 168px; margin-inline-start: -14px; }

/* Body: price list + photo */
.band__body {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(24px, 5vw, 64px); align-items: start;
}
.band__body--solo { grid-template-columns: 1fr; }
.band__media { position: sticky; top: 72px; display: grid; gap: 16px; }
.band__media img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 22px; background: color-mix(in srgb, var(--ink) 12%, var(--bg));
  box-shadow: 0 24px 40px -24px color-mix(in srgb, var(--ink) 70%, transparent);
}
.band__media--pair img:nth-child(2) { width: 72%; justify-self: end; margin-top: -64px; border: 6px solid var(--bg); }

/* Item list */
.items { list-style: none; margin: 0; padding: 0; columns: 2 300px; column-gap: clamp(20px, 3vw, 40px); }
.band__body--solo .items { columns: 2 420px; column-gap: clamp(24px, 5vw, 64px); }
.item {
  break-inside: avoid;
  padding: 14px 0;
  border-bottom: 2px dotted color-mix(in srgb, var(--ink) 30%, transparent);
}
.item__name { margin: 0 0 8px; font-weight: 800; font-size: 1.15rem; line-height: 1.35; }
.item__alt { display: block; font-weight: 500; font-size: .85rem; opacity: .72; }
html[lang="ar"] .item__alt { font-family: var(--font-en); }
html[lang="en"] .item__alt { font-family: var(--font-ar); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.72); border-radius: var(--radius-pill);
  padding: 4px 4px 4px 4px; padding-inline-start: 14px;
  min-height: 44px;
}
.opt__size { font-size: .9rem; font-weight: 600; }
.opt__price { font-weight: 900; font-size: 1.05rem; white-space: nowrap; }
.opt__price small { font-weight: 700; font-size: .75em; }
.step { display: inline-flex; align-items: center; }
.step button {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); font-size: 1.25rem; font-weight: 800; line-height: 1;
  display: inline-grid; place-items: center;
}
.step button:hover { background: var(--accent); color: #fff; }
.step .step__minus { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.step output { min-width: 2ch; text-align: center; font-weight: 900; }
.opt[data-qty="0"] .step__minus, .opt[data-qty="0"] output { display: none; }
.opt:not([data-qty="0"]) { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }

.price-note { font-size: .9rem; color: var(--muted); padding-block: 18px 0; margin: 0 auto; }
.products { padding-bottom: 8px; }

/* ---------- Branches ---------- */
.branches {
  position: relative; background: var(--omda); color: var(--milk);
  margin-top: clamp(40px, 6vw, 80px);
  padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 80px);
}
.branches .edge { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(28px, 4vw, 60px); color: var(--omda); }
.section-title {
  margin: 0 0 .6em; font-weight: 900; font-stretch: var(--display-stretch);
  font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1;
}
.branches__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.branch { padding-block: 8px; padding-inline: 0 clamp(20px, 4vw, 48px); }
.branch + .branch { border-inline-start: 1.5px solid rgba(255,252,248,.25); padding-inline: clamp(20px, 4vw, 48px) 0; }
.branch h3 { margin: 0 0 .4em; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; color: var(--sun); }
.branch p { margin: 0; }
.branch__landmark { opacity: .8; margin-top: 4px !important; }
.branch__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: var(--radius-pill); border: 1.5px solid rgba(255,252,248,.5);
  text-decoration: none; font-weight: 700;
}
.chip:hover { background: var(--milk); color: var(--omda); }
.chip--solid { background: var(--sun); color: var(--omda); border-color: var(--sun); }
.chip--solid:hover { background: #ffc94f; }

/* ---------- Contact ---------- */
.contact { background: var(--meadow); padding-block: clamp(40px, 6vw, 72px); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 64px); align-items: start; }
.contact__lede { margin: 0; max-width: 30em; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact__list a {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  text-decoration: none; font-weight: 800; font-size: 1.15rem;
  border-bottom: 2px dotted rgba(29,50,30,.3);
}
.contact__list a:hover { color: var(--field); }
.contact__list .ico { width: 1.5em; height: 1.5em; }
.contact__list small { display: block; font-weight: 600; font-size: .8rem; opacity: .7; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Footer ---------- */
.foot { background: var(--omda); color: var(--milk); padding-block: 32px calc(32px + env(safe-area-inset-bottom)); }
.foot__inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot__inner img { width: 72px; }
.foot p { margin: 0; font-weight: 700; }
.foot__small { margin-inline-start: auto !important; opacity: .7; font-weight: 500 !important; font-size: .9rem; }

/* ---------- Order bar + sheet ---------- */
.orderbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 20;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; pointer-events: none;
}
.orderbar[hidden] { display: none; }
.orderbar__btn {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px; width: min(100%, 520px);
  min-height: 58px; padding: 0 10px 0 10px; padding-inline: 10px 22px;
  border: 0; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--wa); color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.5);
}
.orderbar__btn:hover { background: #187a41; }
.orderbar__count {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 20px;
  background: #fff; color: var(--wa); font-weight: 900;
}
.orderbar__total { margin-inline-start: auto; }
@media (prefers-reduced-motion: no-preference) {
  .orderbar:not([hidden]) .orderbar__btn { animation: pop .35s cubic-bezier(.2,.9,.3,1.3); }
}
@keyframes pop { from { transform: translateY(80px); } }

.sheet {
  border: 0; padding: 0; width: min(560px, 100vw); max-height: min(92vh, 900px);
  border-radius: 24px; background: var(--milk); color: var(--text);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.sheet::backdrop { background: rgba(20,34,21,.55); }
.sheet__inner { display: flex; flex-direction: column; gap: 14px; padding: 22px clamp(16px, 4vw, 28px) 24px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__head h2 { margin: 0; font-weight: 900; font-size: 1.8rem; }
.sheet__close {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--omda);
  background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.sheet__list { list-style: none; margin: 0; padding: 0; }
.sheet__list li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 12px 0; border-bottom: 2px dotted rgba(29,50,30,.25);
}
.sheet__list .s-name { font-weight: 800; }
.sheet__list .s-size { font-size: .9rem; opacity: .75; }
.sheet__list .s-line { grid-row: span 2; display: flex; align-items: center; gap: 10px; }
.sheet__list .s-sum { font-weight: 900; min-width: 5.5em; text-align: end; }
.sheet .step button { --ink: var(--omda); --bg: var(--milk); width: 32px; height: 32px; }
.sheet .step .step__minus { color: var(--omda); border-color: var(--omda); }
.sheet .step button:not(.step__minus) { background: var(--omda); color: var(--milk); }
.sheet__empty { margin: 0; color: var(--muted); }
.sheet__total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; padding-top: 4px; }
.sheet__total strong { font-size: 1.5rem; font-weight: 900; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; border: 2px solid rgba(29,50,30,.3); border-radius: 12px; padding: 10px 12px;
  background: #fff; font-weight: 500; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--omda); outline: none; }
.sheet__clear { background: none; border: 0; text-decoration: underline; cursor: pointer; color: var(--muted); align-self: center; padding: 8px; }

/* ---------- Responsive ---------- */
@media (min-width: 861px) and (max-width: 1100px) {
  .band__body { grid-template-columns: 1fr; }
  .band__media { position: static; order: -1; grid-template-columns: 1fr; max-width: 760px; }
  .band__media--pair { grid-template-columns: 1.4fr 1fr; align-items: end; max-width: none; }
  .band__media--pair img:nth-child(2) { width: 100%; margin-top: 0; border: 0; }
  .items { columns: 2 300px; }
}

@media (max-width: 860px) {
  .hero .trees { display: none; }
  .top__nav { display: none; }
  .lang { margin-inline-start: auto; }
  .hero__grid { grid-template-columns: 1fr; text-align: start; }
  .hero__badge { order: -1; width: 136px; justify-self: start; }
  .band__head { grid-template-columns: 1fr; }
  .band__body { grid-template-columns: 1fr; }
  .band__media { position: static; order: -1; }
  .band__media--pair { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .band__media--pair img:nth-child(2) { width: 100%; margin-top: 0; border: 0; }
  .stickers { order: -1; padding-inline-start: 6px; }
  .stickers img { --sticker-h: 104px; }
  .stickers--wide img { --sticker-h: 84px; }
  .stickers--tall img { --sticker-h: 120px; }
  .branches__grid, .contact__grid { grid-template-columns: 1fr; }
  .branch, .branch + .branch { padding-inline: 0; border: 0; }
  .branch + .branch { border-top: 1.5px solid rgba(255,252,248,.25); margin-top: 24px; padding-top: 28px; }
  .sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92vh; }
}
@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
  .stickers img { --sticker-h: 86px; margin-inline-start: -18px; }
  .stickers--wide img { --sticker-h: 64px; }
  .stickers--tall img { --sticker-h: 104px; margin-inline-start: -10px; }
  .item__name { font-size: 1.08rem; }
}
