/* 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; }
section[id] { scroll-margin-top: var(--header-h); }
.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; }
.quote-form {
  margin: 34px auto 0; max-width: 720px; padding: clamp(20px, 4vw, 36px);
  background: #fff; color: var(--ink); border-radius: 18px; text-align: start;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px;
}
.quote-form h3 { grid-column: 1 / -1; margin: 0 0 4px; font: 400 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--head); text-transform: uppercase; color: var(--green); }
html[lang="ar"] .quote-form h3 { font-weight: 900; line-height: 1.3; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 500 1rem/1.4 var(--body); color: var(--ink);
  background: var(--ground); border: 1.5px solid rgba(52, 106, 32, .35); border-radius: 10px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(52, 106, 32, .3); border-color: var(--green); }
.field .invalid { border-color: var(--red); }
.hp { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.quote-form { position: relative; }
.form-end { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-end .btn { border: 0; cursor: pointer; font: 700 1rem/1 var(--body); }
.form-end .btn[disabled] { opacity: .6; cursor: default; }
.form-status { margin: 0; font-weight: 600; flex: 1 1 220px; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #b90000; }
@media (max-width: 600px) { .quote-form { grid-template-columns: 1fr; } }

.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; }
}
