/* Moiber landing page. Same brand as the Food Africa 2026 booth (v4). */
:root {
  --green: #346A20;
  --red: #E80000;
  --panel-red: #D8141C;
  --ink: #173A12;
  --ground: #F4F9EC;
  --line: rgba(52, 106, 32, .22);
  --head: "Anton", "Tusker Grotesk", "Oswald", Impact, "Arial Narrow", sans-serif;
  --body: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --header-h: 68px;
}
html[lang="ar"] {
  --head: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --body: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 500 1.0625rem/1.6 var(--body);
  background-color: var(--ground);
  /* light chili outline pattern, as on the booth walls */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='220' viewBox='0 0 260 220' fill='none' stroke='%23346A20' stroke-opacity='.13' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(28 30) rotate(-18)'%3E%3Cpath d='M0 26C10 8 32-2 56 0c5 .5 8 3 7 7C44 9 28 18 16 32 9 40 2 40-2 34c-1-3 0-6 2-8z'/%3E%3Cpath d='M61 3c5-6 11-8 17-7'/%3E%3C/g%3E%3Cg transform='translate(170 120) rotate(140)'%3E%3Cpath d='M0 26C10 8 32-2 56 0c5 .5 8 3 7 7C44 9 28 18 16 32 9 40 2 40-2 34c-1-3 0-6 2-8z'/%3E%3Cpath d='M61 3c5-6 11-8 17-7'/%3E%3C/g%3E%3Cg transform='translate(60 170) rotate(35)'%3E%3Cpath d='M0 26C10 8 32-2 56 0c5 .5 8 3 7 7C44 9 28 18 16 32 9 40 2 40-2 34c-1-3 0-6 2-8z'/%3E%3Cpath d='M61 3c5-6 11-8 17-7'/%3E%3C/g%3E%3C/svg%3E");
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(244, 249, 236, .94);
  border-bottom: 1px solid var(--line);
}
.logo img { height: 44px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 600; text-decoration: none; color: var(--ink); }
.lang-toggle {
  font: 700 .95rem/1 "Cairo", "Montserrat", sans-serif;
  color: var(--green); background: transparent;
  border: 2px solid var(--green); border-radius: 999px;
  padding: 9px 16px; min-height: 40px; cursor: pointer;
}
.lang-toggle:hover, .lang-toggle:focus-visible { background: var(--green); color: #fff; }

.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 30; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .progress span { transform-origin: 100% 50%; }

/* ---------- travelling chili ---------- */
.traveller {
  display: none;
  position: fixed; top: 0; left: 0; z-index: 2;
  width: 600px; height: 372px;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(-9999px, 0, 0);
}
.traveller img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0; will-change: opacity;
}
.traveller img.disc, .stage img.disc { filter: drop-shadow(0 14px 22px rgba(23, 58, 18, .28)); }
.travel .traveller { display: block; }
.travel .stage .static { visibility: hidden; }

/* ---------- story panels ---------- */
.panel { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 24px) 0 48px; }
.panel.red { background: var(--panel-red); color: #fff; }
.wrap {
  width: min(1180px, 100% - 2 * clamp(20px, 5vw, 56px));
  margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 72px); align-items: center;
}
.panel.flip .copy { order: 2; }
.hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.copy { position: relative; z-index: 3; }
.stage { min-height: 46vh; display: flex; align-items: center; justify-content: center; }
.stage .static { width: 100%; max-height: 60vh; object-fit: contain; }
.stage .static.disc { width: min(62%, 380px); }

h1, h2 {
  font-family: var(--head); font-weight: 400; text-transform: uppercase;
  color: var(--green); margin: 0; line-height: .98; letter-spacing: .005em;
  text-wrap: balance;
}
html[lang="ar"] h1, html[lang="ar"] h2 { font-weight: 900; line-height: 1.25; letter-spacing: 0; }
h1 { font-size: clamp(3.2rem, 7.4vw, 7.2rem); text-wrap: initial; }
h2 { font-size: clamp(2.7rem, 6.4vw, 5.6rem); }
html[lang="ar"] h1 { font-size: clamp(2.6rem, 6.6vw, 6rem); }
html[lang="ar"] h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.panel.red h2 { color: #fff; }

.eyebrow { margin: 0 0 14px; font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 1rem; }
.lead { margin: 20px 0 0; font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 30em; }
.step { margin: 0 0 6px; }
.step span { font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 "Anton", Impact, sans-serif; color: var(--red); }
.panel.red .step span { color: #fff; opacity: .75; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px;
  background: var(--red); color: #fff; font-weight: 700; text-decoration: none; border-radius: 999px;
}
.btn:hover, .btn:focus-visible { background: #b90000; }
.link { font-weight: 600; color: var(--green); text-decoration: none; padding: 12px 0; }
.link:hover { text-decoration: underline; }

.thumb { margin-top: 28px; width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: 0 8px 20px rgba(23, 58, 18, .18); }

.products { list-style: none; margin: 22px 0 0; padding: 0; max-width: 460px; }
.products li {
  font-family: var(--head); text-transform: uppercase; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.15;
  padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .35);
}
html[lang="ar"] .products li { font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
.products li:last-child { border-bottom: 0; }

.facts { margin: 22px 0 0; max-width: 460px; }
.facts div { padding: 13px 0; border-bottom: 1px dashed var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .82rem; font-weight: 600; opacity: .7; }
html[lang="ar"] .facts dt { font-size: .95rem; }
.facts dd { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 600; line-height: 1.25; }

/* ---------- certifications + contact ---------- */
.band { position: relative; z-index: 3; padding: clamp(64px, 10vw, 120px) 0; text-align: center; }
.wrap-narrow { width: min(980px, 100% - 2 * clamp(20px, 5vw, 56px)); margin-inline: auto; }
.certs { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.certs li {
  aspect-ratio: 1; border: 2.5px solid var(--green); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .6); color: var(--green); line-height: 1.15;
}
.certs b { font-size: clamp(.95rem, 1.6vw, 1.25rem); font-weight: 700; }
.certs span { font-size: .75rem; font-weight: 600; }

.contact { background: var(--green); color: #fff; }
.contact h2 { color: #fff; }
.big-phone {
  display: inline-block; margin-top: 18px; padding: 8px 0;
  font: 400 clamp(2rem, 6vw, 4rem)/1.1 "Anton", Impact, sans-serif; color: #fff; text-decoration: none;
}
.big-phone:hover { text-decoration: underline; }
.addresses { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; text-align: start; }
.addresses h3 { margin: 0 0 6px; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
html[lang="ar"] .addresses h3 { letter-spacing: 0; font-size: 1rem; }
.addresses p { margin: 0; font-size: 1.1rem; }

.site-footer { position: relative; z-index: 3; padding: 36px 20px 44px; text-align: center; background: var(--ground); }
.site-footer img { height: 54px; width: auto; margin: 0 auto 10px; }
.site-footer p { margin: 0; font-size: .9rem; opacity: .75; }

/* ---------- phones and small tablets ---------- */
@media (max-width: 820px) {
  :root { --header-h: 60px; }
  .logo img { height: 36px; }
  .header-phone { display: none; }
  .panel { align-items: stretch; padding-bottom: 36px; }
  .wrap, .hero .wrap { grid-template-columns: 1fr; gap: 8px; align-content: center; }
  .panel .stage { order: 1; min-height: 34svh; }
  .panel .copy, .panel.flip .copy { order: 2; }
  .stage .static { max-height: 34svh; }
  .stage .static.disc { width: auto; height: 30svh; }
  .thumb { width: 104px; height: 104px; margin-top: 20px; }
  .certs { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .addresses { grid-template-columns: 1fr; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- contact form ---------- */
.form {
  position: relative; margin: 36px auto 0; max-width: 720px; text-align: start;
  background: #fff; color: var(--ink); border-radius: 24px;
  padding: clamp(22px, 4vw, 40px); box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.form-title { margin: 0 0 18px; font-family: var(--head); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; color: var(--green); }
html[lang="ar"] .form-title { font-weight: 900; }
.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .92rem; font-weight: 700; }
.field label small { font-weight: 500; opacity: .65; }
.req { color: var(--red); font-style: normal; }
.field input, .field textarea {
  width: 100%; font: 500 1rem/1.4 var(--body); color: var(--ink);
  background: var(--ground); border: 2px solid var(--line); border-radius: 14px;
  padding: 13px 16px; min-height: 52px; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(23, 58, 18, .45); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px rgba(52, 106, 32, .18); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); background: #fff7f7; }
[dir="rtl"] .field input[type="email"], [dir="rtl"] .field input[type="tel"] { text-align: right; }
.err { margin: 6px 0 0; min-height: 0; font-size: .85rem; font-weight: 600; color: var(--red); }
.err:empty { display: none; }
.hp { position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-btn { width: 100%; justify-content: center; border: 0; cursor: pointer; font: 700 1.05rem/1 var(--body); margin-top: 4px; }
.form-btn:disabled { opacity: .65; cursor: progress; }
.form-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.form-status { margin: 14px 0 0; font-weight: 600; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--green); background: rgba(52, 106, 32, .1); border-radius: 14px; padding: 14px 16px; }
.form-status.bad { color: var(--red); }
.form.sent .field, .form.sent .form-btn { display: none; }
@media (max-width: 820px) {
  .field-row { grid-template-columns: 1fr; }
}
/* keep email / phone (and their hints) left-to-right even on the Arabic page */
.field input[dir="ltr"], .field input[dir="ltr"]::placeholder { direction: ltr; unicode-bidi: isolate; }

/* =====================================================================
   Landing-page additions: header CTA, benefits, FAQ, WhatsApp, docs
   ===================================================================== */
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 60; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* header */
.lang-toggle { display: inline-flex; align-items: center; text-decoration: none; }
.nav-link { font-weight: 600; text-decoration: none; color: var(--ink); padding: 8px 2px; }
.nav-link:hover { color: var(--green); text-decoration: underline; }
.header-cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px;
  background: var(--red); color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; border-radius: 999px;
}
.header-cta:hover, .header-cta:focus-visible { background: #b90000; }
html[lang="ar"] .nav-link, html[lang="ar"] .header-cta { font-family: "Cairo", "Segoe UI", Tahoma, sans-serif; }

/* hero chips + WhatsApp buttons */
.chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: .9rem; font-weight: 700; color: var(--green); background: rgba(255, 255, 255, .75); border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.btn-wa { gap: 10px; background: #1faa59; }
.btn-wa:hover, .btn-wa:focus-visible { background: #178a47; }
.btn-wa svg { flex: none; }

/* why Moiber */
.why { background: #fff; border-block: 1px solid var(--line); }
.why-intro { margin: 22px auto 0; max-width: 44em; font-size: 1.12rem; }
.why-grid { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: start; }
.card { background: var(--ground); border: 2px solid var(--line); border-radius: 20px; padding: 24px 24px 26px; }
.card h3 { margin: 0 0 8px; font-family: var(--head); font-weight: 400; text-transform: uppercase; font-size: 1.55rem; line-height: 1.1; color: var(--green); }
html[lang="ar"] .card h3 { font-weight: 900; font-size: 1.35rem; line-height: 1.35; }
.card p { margin: 0; font-size: 1rem; }
.why-cta { margin: 40px 0 0; }

/* FAQ */
.faq-list { margin: 36px auto 0; max-width: 780px; text-align: start; }
.faq-item { background: #fff; border: 2px solid var(--line); border-radius: 16px; margin-bottom: 12px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 700; position: relative; }
html[dir="rtl"] .faq-item summary { padding: 18px 22px 18px 54px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 500; color: var(--red); line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 22px 20px; }
.faq-a p { margin: 0; }

/* contact additions */
.contact-lead { margin: 18px auto 0; max-width: 34em; }
.field select {
  width: 100%; font: 500 1rem/1.4 var(--body); color: var(--ink); background-color: var(--ground);
  border: 2px solid var(--line); border-radius: 14px; padding: 13px 44px 13px 16px; min-height: 52px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%23346A20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
[dir="rtl"] .field select { padding: 13px 16px 13px 44px; background-position: left 16px center; }
.field select:focus { outline: none; background-color: #fff; border-color: var(--green); box-shadow: 0 0 0 4px rgba(52, 106, 32, .18); }
.consent { margin: 14px 0 0; font-size: .85rem; opacity: .8; text-align: center; }
.consent a { color: var(--green); font-weight: 600; }

/* floating WhatsApp */
.wa-float {
  position: fixed; inset-inline-end: 18px; inset-block-end: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 20px;
  background: #1faa59; color: #fff; font: 700 1rem/1 var(--body); text-decoration: none;
  border-radius: 999px; box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}
.wa-float:hover, .wa-float:focus-visible { background: #178a47; }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.site-footer { padding-bottom: 100px; }
.site-footer a { color: var(--green); font-weight: 600; }

/* privacy / plain documents */
.doc { padding: calc(var(--header-h) + 48px) 0 56px; position: relative; z-index: 3; }
.prose { text-align: start; max-width: 760px; }
.prose h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
html[lang="ar"] .prose h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 34px; text-transform: none; line-height: 1.2; }
html[lang="ar"] .prose h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.prose p { margin: 10px 0 0; }

@media (max-width: 1100px) { .nav-link { display: none; } }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .header-actions { gap: 10px; }
  .lang-toggle { padding: 8px 12px; min-height: 36px; font-size: .9rem; }
  .header-cta { padding: 0 14px; min-height: 36px; font-size: .88rem; }
  .why-grid { grid-template-columns: 1fr; }
  .wa-float { padding: 0 16px; min-height: 50px; inset-inline-end: 12px; inset-block-end: 12px; }
}
@media (max-width: 420px) {
  .header-cta { display: none; }
}
@media (max-width: 820px) {
  .hero .stage { margin-bottom: 26px; }   /* keep the travelling chili clear of the text under it */
}
