/* Le Champignon Royale
   Palette comes from the logo: leaf green + crown gold on a cool off-white.
   Shape rule: buttons and chips are pills, cards are 20px, inputs are 12px. */

:root {
  --bg: #f8f9f4;
  --surface: #ffffff;
  --tint: #edf1e4;
  --tint-gold: #f6efd9;
  --green: #455f2b;
  --green-deep: #213316;
  --ink: #1f251b;
  --muted: #586050;
  --gold: #c99a2d;
  --gold-ink: #7a590c;
  --line: rgba(69, 95, 43, 0.18);
  --error: #a3271f;

  --r-card: 20px;
  --r-input: 12px;
  --r-pill: 999px;

  --nav-h: 84px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 18px 50px -24px rgba(33, 51, 22, 0.35);

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

  /* z-index scale */
  --z-fab: 40;
  --z-nav: 50;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--green-deep);
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green-deep);
  color: #fff;
  border-radius: var(--r-pill);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Watched by the script to know when the page has scrolled. */
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }

::selection { background: var(--green); color: #fff; }
p { text-wrap: pretty; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .ph { font-size: 1.3rem; }

.btn--primary { background: var(--green); color: #fff; box-shadow: 0 10px 22px -14px rgba(33, 51, 22, 0.7); }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn--primary:active { transform: scale(0.98); }

.btn--ghost { border-color: var(--green); color: var(--green-deep); background: transparent; }
.btn--ghost:hover { background: var(--green); color: #fff; }

.btn--block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 4px;
}
.text-link .ph { transition: transform 0.3s var(--ease); }
.text-link:hover .ph { transform: translateX(4px); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  background: rgba(248, 249, 244, 0.94); /* --bg at 94% so the bar matches the page */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.nav.is-stuck { box-shadow: 0 12px 30px -20px rgba(33, 51, 22, 0.45); }
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* The logo file has a solid white background; multiply makes that white take on whatever is behind it. */
.nav__logo img,
.footer__brand img { mix-blend-mode: multiply; }
.nav__logo img { height: 70px; width: auto; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__menu > a {
  position: relative;
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--green-deep);
  text-decoration: none;
  white-space: nowrap;
}
.nav__menu > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__menu > a:hover::after,
.nav__menu > a.is-active::after { transform: scaleX(1); }
.nav__menu > a.is-active { color: var(--green); }

/* About Us dropdown */
.nav__group { position: relative; }
.nav__group-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font: 500 0.95rem/1.65 var(--font-body);
  color: var(--green-deep);
  white-space: nowrap;
  cursor: pointer;
}
.nav__group-btn .ph { font-size: 0.9rem; transition: transform 0.3s var(--ease); }
.nav__group-btn.is-active { color: var(--green); box-shadow: inset 0 -2px 0 var(--gold); }
.nav__sub a.is-active { background: var(--tint); color: var(--green); }
.nav__sub {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 210px;
  display: grid;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.nav__sub a {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--green-deep);
  text-decoration: none;
  white-space: nowrap;
}
.nav__sub a:hover { background: var(--tint); }
.nav__group:hover .nav__sub,
.nav__group:focus-within .nav__sub,
.nav__group.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__group:hover .nav__group-btn .ph,
.nav__group.is-open .nav__group-btn .ph { transform: rotate(180deg); }

.nav__extras { display: flex; align-items: center; gap: 4px; }
.nav__extras .lang { margin-left: 10px; }
.nav__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--green);
  text-decoration: none;
  transition: background-color 0.2s;
}
.nav__icon:hover { background: var(--tint); }

.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.lang button {
  min-width: 40px;
  height: 34px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font: 600 0.8rem/1 var(--font-body);
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.lang button[aria-pressed="true"] { background: var(--green); color: #fff; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 1.4rem;
  color: var(--green-deep);
  cursor: pointer;
}

/* ---------- Banner (1200x600 artwork) ---------- */

.banner { padding: 24px 24px 0; }
.banner__frame {
  position: relative;
  container-type: inline-size;
  max-width: 1200px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--r-card);
  background: #efece4;
  box-shadow: var(--shadow);
}
.banner__frame img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
/* The copy sits in the empty top-left area of the artwork and scales with it. */
.banner__copy {
  position: absolute;
  left: 3.5%;
  top: 13%;
  width: 29%;
  display: grid;
  justify-items: start;
  gap: 1.8cqw;
}
.banner h1 {
  font-size: 4.2cqw;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.banner .btn {
  min-height: 0;
  padding: 1.05cqw 2.2cqw;
  font-size: max(13px, 1.35cqw);
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  background: var(--green-deep);
  color: #f3f5ec;
  padding-block: 18px;
  position: relative;
}
/* Words fade in and out at the edges instead of being cut off. */
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: min(12vw, 120px);
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--green-deep), rgba(33, 51, 22, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--green-deep), rgba(33, 51, 22, 0)); }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track span::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: 34px;
  background: var(--gold);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(44px, 5.5vw, 76px); }

.section__head { max-width: 720px; margin-bottom: 36px; }
/* One short gold rule opens every section heading. */
.section__head::before,
.story__aside::before,
.contact__info::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: var(--gold);
}
.section__head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.section__head .eyebrow + h2 { margin-top: 14px; }
.section__head h2 + p { margin-top: 18px; max-width: 56ch; font-size: 1.15rem; color: var(--muted); }
/* Lets a lead sentence run the full content width (one line on desktop). */
.section__head--wide, .section__head--wide h2 + p { max-width: none; }

/* ---------- Packs ---------- */

.packs__grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 24px;
  align-items: stretch;
}
.packs__tabs { display: grid; gap: 16px; align-content: start; }

.pack-tab {
  display: grid;
  gap: 4px;
  padding: 24px;
  text-align: left;
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pack-tab:hover { transform: translateY(-2px); border-color: var(--green); }
.pack-tab:active { transform: scale(0.99); }
.pack-tab__weight {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--green-deep);
}
.pack-tab__name { margin-top: 8px; font-weight: 600; font-size: 1.05rem; }
.pack-tab__for { font-size: 0.95rem; color: var(--muted); }

.pack-tab[aria-selected="true"] { background: var(--green); border-color: var(--green); }
.pack-tab[aria-selected="true"] .pack-tab__weight,
.pack-tab[aria-selected="true"] .pack-tab__name { color: #fff; }
.pack-tab[aria-selected="true"] .pack-tab__for { color: rgba(255, 255, 255, 0.85); }

.packs__stage {
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.pack-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 100%;
}
.pack-panel[hidden] { display: none; }
.pack-panel__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}
.pack-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pack-panel__body { padding: clamp(28px, 4vw, 56px); }
.pack-panel__body h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.pack-panel__body p { margin-top: 16px; color: var(--muted); max-width: 44ch; }
/* Summary card at the top of a pack: label, weight, format. */
.pack-panel__badge {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--tint);
  color: var(--green);
  font-size: 0.92rem;
}
.pack-panel__badge .eyebrow { color: var(--green); }
.pack-panel__weight {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--green-deep);
}
.pack-panel__body .pack-panel__ideal { margin-top: 20px; }

.chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--tint);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--green-deep);
}
.chips .ph { font-size: 1.15rem; color: var(--green); }

.slot-empty { display: none; }
[data-slot].is-empty .slot-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: var(--tint);
  color: var(--green);
  font-weight: 500;
}
.slot-empty .ph { font-size: 5rem; }

/* ---------- Mission ---------- */

.mission {
  padding-block: clamp(40px, 5vw, 68px);
  border-block: 1px solid var(--line);
  text-align: center;
}
.mission__label {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--green);
}
.mission__text {
  margin: 28px auto 0;
  max-width: min(100%, 1000px);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  text-wrap: balance;
}

/* ---------- Story ---------- */

/* Full-width photo directly under the mission band, with its caption set large on top. */
.story { padding-top: 0; }
.story__figure { position: relative; margin: 0 0 clamp(36px, 5vw, 64px); }
.story__figure img {
  width: 100%;
  height: clamp(300px, 40vw, 540px);
  object-fit: cover;
  object-position: 50% 55%;
}
.story__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 38, 15, 0) 35%, rgba(24, 38, 15, 0.78) 100%);
  pointer-events: none;
}
.story__figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding-bottom: clamp(24px, 4vw, 52px);
}
.story__figure figcaption span {
  display: block;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

.story__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.story__aside { position: sticky; top: calc(var(--nav-h) + 40px); }
.story__aside h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.story__year {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(5rem, 11vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--green);
}
.story__year-label {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--gold);
  display: inline-block;
  color: var(--muted);
}
.story__body { display: grid; gap: 24px; max-width: 62ch; }
.story__body p { color: var(--muted); }
.story__body .story__lead {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--green-deep);
}

/* ---------- Sustainability bento ---------- */

.sustain { padding-top: 0; }

.bento {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.bento__cell {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  border-radius: var(--r-card);
}
.bento__cell--energy { grid-row: span 2; min-height: 440px; background: var(--green-deep); }
.bento__cell--substrate { background: var(--tint-gold); }
.bento__cell--resources { background: var(--tint); }

.bento__cell > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.bento__cell:hover > img { transform: scale(1.05); }
/* When a farm photo is present, a scrim keeps the text readable. */
.bento__cell:not(.is-empty)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 38, 15, 0) 20%, rgba(24, 38, 15, 0.86) 100%);
}
.bento__text { position: relative; z-index: 1; padding: clamp(28px, 3.4vw, 44px); color: #fff; }
.bento__text .ph { font-size: 2.4rem; color: #f0cf7a; }
.bento__text h3 { margin-top: 18px; font-size: clamp(1.5rem, 2.3vw, 2rem); color: inherit; }
.bento__text p { margin-top: 12px; max-width: 46ch; color: rgba(255, 255, 255, 0.9); }

.bento__cell--energy.is-empty {
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(201, 154, 45, 0.5) 0%, rgba(201, 154, 45, 0) 70%),
    var(--green-deep);
}
.bento__cell--energy .bento__text h3 { font-size: clamp(1.9rem, 3vw, 2.7rem); }

.bento__cell--substrate.is-empty .bento__text,
.bento__cell--resources.is-empty .bento__text { color: var(--green-deep); }
.bento__cell--substrate.is-empty .bento__text p,
.bento__cell--resources.is-empty .bento__text p { color: var(--muted); }
.bento__cell--substrate.is-empty .ph { color: var(--gold-ink); }
.bento__cell--resources.is-empty .ph { color: var(--green); }

/* ---------- Recipes ---------- */

.recipes { border-block: 1px solid var(--line); }
.recipes__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--tint-gold);
  color: var(--gold-ink);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.recipes__intro h2 { margin-top: 20px; font-size: clamp(2rem, 4vw, 3.1rem); }
.recipes__intro p { margin-top: 20px; max-width: 50ch; color: var(--muted); }
.recipes__intro .text-link { margin-top: 32px; }

.recipes__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.recipes__list li {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  border-radius: var(--r-card);
  background: var(--bg);
  font-weight: 500;
  line-height: 1.35;
  color: var(--green-deep);
}
.recipes__list .ph { font-size: 1.7rem; color: var(--green); }

/* ---------- Network ---------- */

.network__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
/* Each card: photo on top, then label, title, text and a button pinned to the bottom. */
.network__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-card);
}
.network__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.network__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.network__card:hover .network__photo { transform: scale(1.05); }
.network__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 3.4vw, 44px);
}
.network__card h3 { margin-top: 12px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.network__body p:not(.eyebrow) { margin-top: 12px; }
.network__body .btn { margin-top: auto; }
.network__body p:not(.eyebrow) { margin-bottom: 28px; }

.network__card--chefs { background: var(--green); color: #fff; }
.network__card--chefs h3 { color: #fff; }
.network__card--chefs .eyebrow { color: #f0cf7a; }
.network__card--chefs p:not(.eyebrow) { color: rgba(255, 255, 255, 0.88); }
.network__card--retail { background: var(--tint-gold); }
.network__card--retail p:not(.eyebrow) { color: var(--muted); }

/* Cream button for dark backgrounds. */
.btn--light { background: #f3ebd3; color: var(--green-deep); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }

.network__ask {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.network__ask h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--green-deep); }
.network__ask p { margin-top: 6px; color: var(--muted); }

/* ---------- Contact ---------- */

.contact { border-top: 1px solid var(--line); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact__info h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.contact__info > p { margin-top: 18px; max-width: 44ch; color: var(--muted); }

.contact__list { margin-top: 40px; display: grid; gap: 22px; }
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__list .ph {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--green);
  font-size: 1.4rem;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.contact__list li:hover .ph { background: var(--green); color: #fff; }
.contact__label { display: block; font-size: 0.85rem; color: var(--muted); }
.contact__list a, .contact__list div > span:last-child {
  font-weight: 600;
  color: var(--green-deep);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact__list a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.contact__emails { display: grid; gap: 2px; }

.form {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--green-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #b9c2ab;
  border-radius: var(--r-input);
  background: var(--bg);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input, .field select { min-height: 52px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(69, 95, 43, 0.22);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field__help { font-size: 0.88rem; color: var(--muted); }
.field__error { font-size: 0.88rem; font-weight: 500; color: var(--error); }
.form__note { text-align: center; font-size: 0.88rem; color: var(--muted); }
.form__status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-input);
  background: var(--tint);
  font-size: 0.95rem;
  color: var(--green-deep);
}
.form__status[hidden] { display: none; }
.form__status .ph { flex: none; margin-top: 1px; font-size: 1.5rem; color: var(--green); }
.form__status a { display: block; margin-top: 2px; font-weight: 600; color: var(--green); text-underline-offset: 4px; }

.map {
  position: relative;
  margin-top: clamp(28px, 4vw, 44px);
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.map iframe { display: block; width: 100%; height: clamp(300px, 38vw, 440px); border: 0; }
.map__link { position: absolute; left: 16px; top: 16px; }

/* ---------- Footer ---------- */

.footer { padding-top: 44px; border-top: 1px solid var(--line); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}
.footer__brand img { height: 92px; width: auto; }
.footer__tag { margin-top: 14px; font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-ink); }
.footer__blurb { margin-top: 8px; max-width: 38ch; font-size: 0.95rem; color: var(--muted); }
.footer__col { display: grid; justify-items: start; gap: 2px; }
.footer__title {
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--green-deep);
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.footer__col a .ph { flex: none; font-size: 1.2rem; color: var(--green); }
.footer__col a:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
/* Right margin keeps the icons clear of the floating WhatsApp button. */
.footer__social { display: flex; gap: 8px; margin-right: 76px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.35rem;
  color: var(--green);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.footer__social a:hover { background: var(--green); color: #fff; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Floating WhatsApp ---------- */

.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-fab);
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.9rem;
  text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(33, 51, 22, 0.6);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.fab:hover { transform: translateY(-3px); background: var(--green-deep); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .banner__frame { animation: rise 0.9s var(--ease) both; }
  .banner__copy > * { animation: rise 0.8s var(--ease) both; animation-delay: 0.35s; }
  .banner__copy > :nth-child(2) { animation-delay: 0.45s; }

  /* Grouped items arrive one after another instead of all at once. */
  .js .bento .reveal:nth-child(2),
  .js .network__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
  .js .bento .reveal:nth-child(3) { transition-delay: 0.2s; }
  .js .recipes__inner.is-in .recipes__list li { animation: rise 0.6s var(--ease) both; }
  .js .recipes__inner.is-in .recipes__list li:nth-child(2) { animation-delay: 0.06s; }
  .js .recipes__inner.is-in .recipes__list li:nth-child(3) { animation-delay: 0.12s; }
  .js .recipes__inner.is-in .recipes__list li:nth-child(4) { animation-delay: 0.18s; }
  .js .recipes__inner.is-in .recipes__list li:nth-child(5) { animation-delay: 0.24s; }
  .js .recipes__inner.is-in .recipes__list li:nth-child(6) { animation-delay: 0.3s; }

  .pack-panel.is-active .pack-panel__media img { animation: pack-in 0.7s var(--ease) both; }
  .pack-panel.is-active .pack-panel__body > * { animation: rise 0.6s var(--ease) both; }
  .pack-panel.is-active .pack-panel__body > :nth-child(2) { animation-delay: 0.06s; }
  .pack-panel.is-active .pack-panel__body > :nth-child(3) { animation-delay: 0.12s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes pack-in { from { opacity: 0; transform: translateX(-36px) scale(0.94); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  * { transition-duration: 0.01ms !important; }
  .bento__cell:hover > img,
  .network__card:hover .network__photo,
  .btn--primary:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu > a { padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav__menu > a::after { display: none; }
  .nav__menu > a.is-active { font-weight: 600; }
  .nav__group-btn.is-active { box-shadow: none; }
  .nav__sub a.is-active { background: transparent; font-weight: 600; }
  .nav__extras { margin-top: 18px; justify-content: space-between; }
  .lang button { min-width: 48px; height: 44px; }

  /* On small screens the About Us group is always expanded. */
  .nav__group { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .nav__group-btn { width: 100%; padding: 16px 0 6px; font-size: 1.1rem; cursor: default; }
  .nav__group-btn .ph { display: none; }
  .nav__sub {
    position: static;
    min-width: 0;
    padding: 0 0 0 14px;
    border: 0;
    border-left: 2px solid var(--gold);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__sub a { padding: 11px 10px; font-size: 1.02rem; color: var(--muted); }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .packs__grid { grid-template-columns: 1fr; }
  .packs__tabs { grid-template-columns: 1fr 1fr; }
  .pack-tab { padding: 18px; }
  .pack-tab__weight { font-size: 1.8rem; }

  .story__grid { grid-template-columns: 1fr; gap: 28px; }
  .story__aside { position: static; }

  .bento { grid-template-columns: 1fr; }
  .bento__cell--energy { grid-row: auto; min-height: 340px; }

  .recipes__inner, .network__grid, .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  /* Too small to read over the artwork: the copy moves below the image. */
  .banner { padding: 16px 18px 0; }
  .banner__copy { position: static; width: auto; gap: 18px; padding: 22px 2px 4px; }
  .banner__frame { overflow: visible; background: transparent; box-shadow: none; }
  .banner__frame img { border-radius: var(--r-card); box-shadow: var(--shadow); }
  .banner h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .banner .btn { min-height: 52px; padding: 0 28px; font-size: 1rem; }
  .wrap { padding-inline: 18px; }
  body { font-size: 1rem; }
  .section__head { margin-bottom: 26px; }
  .pack-panel { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .recipes__list { grid-template-columns: 1fr; }
  .recipes__list li { grid-template-columns: auto 1fr; align-items: center; padding: 16px 18px; }
  .banner .btn, .network__ask .btn { width: 100%; }
  .fab { right: 14px; bottom: 14px; }
}

/* ---------- Arabic (right-to-left) ---------- */
/* main.js sets dir="rtl" on <html> when Arabic is chosen. */
:root[dir="rtl"] {
  --font-display: "IBM Plex Sans Arabic", "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "DM Sans", "Segoe UI", system-ui, sans-serif;
}
/* Letter spacing breaks the joins between Arabic letters. */
[dir="rtl"] body, [dir="rtl"] body * { letter-spacing: 0 !important; }
[dir="rtl"] .nav__menu > a::after { transform-origin: right; }
[dir="rtl"] .nav__sub { left: auto; right: -18px; }
[dir="rtl"] .nav__extras .lang { margin-left: 0; margin-right: 10px; }
[dir="rtl"] .pack-tab { text-align: right; }
/* Keep the banner copy in the empty top-left of the artwork, clear of the mushroom character. */
@media (min-width: 600px) {
  [dir="rtl"] .banner__copy { width: 22%; justify-items: end; text-align: left; }
}
[dir="rtl"] .ph-arrow-right,
[dir="rtl"] .ph-arrow-up-right { transform: scaleX(-1); }
[dir="rtl"] .text-link:hover .ph-arrow-right { transform: scaleX(-1) translateX(4px); }
/* In Arabic the strip moves left to right, with the phrases ordered so they read right to left. */
[dir="rtl"] .marquee { direction: ltr; }
[dir="rtl"] .marquee__track { flex-direction: row-reverse; animation-direction: reverse; }
@media (max-width: 1023px) {
  [dir="rtl"] .nav__sub { padding: 0 14px 0 0; border-left: 0; border-right: 2px solid var(--gold); }
}
