/* ==========================================================================
   Leghari Farms — site stylesheet
   1. Tokens        2. Base & typography   3. Layout primitives
   4. Components    5. Header              6. Sections (in page order)
   7. Footer        8. Motion              9. Responsive adjustments
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --green-950: #0f1f16;
  --green-900: #16301f;
  --green-800: #1f4128;
  --green-700: #2a5436;
  --green-600: #3c6b45;
  --gold: #c19a3a;
  --gold-deep: #a6812a;
  --gold-soft: #e6d3a1;
  --gold-text: #7d6020; /* AA-compliant gold for small text on cream (5.2:1) */
  --cream: #f6f1e3;
  --cream-2: #efe8d5;
  --sand: #ebe1c7;
  --line: #dbd1b6;
  --line-dark: rgba(246, 241, 227, 0.14);
  --earth: #7a5a3a;
  --ink: #1f2a23;
  --ink-soft: #4e5b50;
  --ink-mute: #5f6a5c;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --container: 88rem;
  --header-h: 5rem;
  --section-y: clamp(5rem, 11vw, 9.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;

  --z-header: 50;
  --z-skip: 100;

  color-scheme: light;
}

/* 2. Base --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem); /* keep anchored targets clear of the fixed header */
  -webkit-text-size-adjust: 100%;
}
html.is-locked {
  overflow: hidden;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
dl {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
picture,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
/* The hidden attribute must win over component display values (.field, .btn, …). */
[hidden] {
  display: none !important;
}
::selection {
  background: var(--gold-soft);
  color: var(--green-950);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  background: var(--green-900);
  color: var(--cream);
  font-weight: 500;
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus {
  transform: none;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Typography */
.display,
.title {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.75rem, 6.2vw, 6rem);
}
.title {
  font-size: clamp(2.125rem, 4vw, 3.5rem);
}
.title em,
.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-text);
}
.section--dark .title em,
.display em {
  color: var(--gold);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font: 500 0.75rem/1.5 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.lead {
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  text-wrap: pretty;
}
.copy {
  color: var(--ink-soft);
  max-width: 58ch;
  text-wrap: pretty;
}
.copy + .copy {
  margin-top: 1.125rem;
}
.copy strong {
  color: var(--ink);
  font-weight: 500;
}
.serif-note {
  font: italic 500 clamp(1.25rem, 1.8vw, 1.625rem) / 1.35 var(--serif);
  color: var(--green-800);
  text-wrap: pretty;
}

/* 3. Layout primitives -------------------------------------------------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}
.section {
  padding-block: var(--section-y) calc(var(--section-y) * 1.08);
  position: relative;
}
.section--dark {
  background: var(--green-900);
  color: var(--cream);
}
.section--dark .eyebrow {
  color: var(--gold);
}
.section--dark .lead,
.section--dark .copy {
  color: rgba(246, 241, 227, 0.78);
}
.section--dark .copy strong {
  color: var(--cream);
}
.section--sand {
  background: var(--sand);
}
.section--tint {
  background: var(--cream-2);
}
.section-head {
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head .title {
  max-width: 18ch;
}
.section-head--wide {
  max-width: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem clamp(2rem, 6vw, 6rem);
}
.section-head--wide .lead {
  justify-self: start;
}
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.grain {
  position: relative;
  isolation: isolate;
}
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 4. Components --------------------------------------------------------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--green-950);
  --btn-border: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  font: 500 0.8125rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}
.btn svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover {
  --btn-bg: var(--gold-deep);
  --btn-border: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(15, 31, 22, 0.55);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn:active {
  transform: translateY(0) scale(0.985);
  box-shadow: none;
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
  box-shadow: none;
}
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-border: rgba(246, 241, 227, 0.5);
}
.btn--outline:hover {
  --btn-bg: rgba(246, 241, 227, 0.08);
  --btn-border: var(--cream);
}
.btn--green {
  --btn-bg: var(--green-800);
  --btn-fg: var(--cream);
  --btn-border: var(--green-800);
}
.btn--green:hover {
  --btn-bg: var(--green-900);
  --btn-border: var(--green-900);
}
.btn--whatsapp {
  --btn-bg: transparent;
  --btn-fg: var(--green-800);
  --btn-border: rgba(31, 65, 40, 0.45);
}
.btn--whatsapp:hover {
  --btn-bg: var(--green-800);
  --btn-fg: var(--cream);
  --btn-border: var(--green-800);
}
.btn--whatsapp svg {
  width: 1.125rem;
  height: 1.125rem;
}
.btn--whatsapp:hover svg {
  transform: none;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 500 0.8125rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-800);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid currentColor;
  transition: gap 0.25s var(--ease-out), color 0.25s;
}
.text-link:hover {
  gap: 0.9rem;
  color: var(--gold-text);
}
.section--dark .text-link {
  color: var(--gold-soft);
}

/* Photo plate: framed image with hairline inset — the signature image treatment. */
.plate {
  position: relative;
  overflow: hidden;
  background: var(--green-900);
}
.plate picture {
  height: 100%;
}
.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plate::after {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(246, 241, 227, 0.4);
  pointer-events: none;
}
.plate--gold::after {
  border-color: rgba(193, 154, 58, 0.65);
}
.plate__caption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  padding: 0.6rem 0.9rem;
  background: rgba(15, 31, 22, 0.78);
  color: var(--cream);
  font: 500 0.6875rem/1.3 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Ruled list: typographic alternative to card grids. */
.ruled {
  border-top: 1px solid var(--line);
}
.ruled > li {
  display: grid;
  gap: 0.5rem 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.section--dark .ruled,
.section--dark .ruled > li {
  border-color: var(--line-dark);
}
.ruled__num {
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: 0.2em;
  color: var(--gold-text);
}
.section--dark .ruled__num {
  color: var(--gold);
}
.ruled__title {
  font: 600 clamp(1.5rem, 2vw, 1.875rem) / 1.15 var(--serif);
  color: var(--green-800);
}
.section--dark .ruled__title {
  color: var(--cream);
}
.ruled__text {
  color: var(--ink-soft);
  max-width: 48ch;
  text-wrap: pretty;
}
.section--dark .ruled__text {
  color: rgba(246, 241, 227, 0.72);
}
.ruled--cols > li {
  grid-template-columns: 3.5rem 1fr;
}
.ruled--cols .ruled__num {
  grid-row: 1 / 3;
  padding-top: 0.5rem;
}
.ruled--cols .ruled__title,
.ruled--cols .ruled__text {
  grid-column: 2;
}

/* 5. Header ------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  color: var(--cream);
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 150%;
  background: linear-gradient(180deg, rgba(15, 31, 22, 0.55), transparent);
  pointer-events: none;
  transition: opacity 0.35s;
}
.site-header.is-scrolled {
  background: rgba(246, 241, 227, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(15, 31, 22, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-scrolled::before {
  opacity: 0;
}
.site-header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font: 700 1.125rem/1 var(--serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand svg {
  width: 2.125rem;
  height: 2.125rem;
  flex: none;
}
.brand__mark-bg {
  fill: var(--cream);
  transition: fill 0.35s;
}
.brand__mark-l {
  fill: var(--green-900);
  transition: fill 0.35s;
}
.is-scrolled .brand__mark-bg,
.is-menu-open .brand__mark-bg,
.site-footer .brand__mark-bg {
  fill: var(--green-800);
}
.is-scrolled .brand__mark-l,
.is-menu-open .brand__mark-l,
.site-footer .brand__mark-l {
  fill: var(--cream);
}
.is-menu-open .brand__mark-bg {
  fill: var(--cream);
}
.is-menu-open .brand__mark-l {
  fill: var(--green-900);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.25rem);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.4vw, 1.75rem);
}
.nav__list a {
  position: relative;
  display: block;
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap; /* links must never break onto two lines in the desktop bar */
  padding: 0.5rem 0;
  opacity: 0.86;
  transition: opacity 0.25s;
}
/* Home and Contact are redundant with the brand mark and the CTA in the desktop bar. */
@media (min-width: 1280px) {
  .nav__item--compact {
    display: none;
  }
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__list a:hover,
.nav__list a.is-active {
  opacity: 1;
}
.nav__list a:hover::after,
.nav__list a.is-active::after {
  transform: scaleX(1);
}
.nav__cta.btn {
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.6875rem;
}
.menu-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
}
.menu-toggle span {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.menu-toggle span:nth-child(1) {
  top: 0.95rem;
}
.menu-toggle span:nth-child(2) {
  top: 1.35rem;
}
.menu-toggle span:nth-child(3) {
  top: 1.75rem;
}
.is-menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(0.4rem) rotate(45deg);
}
.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
.is-menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-0.4rem) rotate(-45deg);
}

/* 6. Sections ----------------------------------------------------------- */

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 200px);
  padding-bottom: 200px !important;
  background: var(--green-950);
  color: var(--cream);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(60% 55% at 85% 10%, rgba(60, 107, 69, 0.55), transparent 70%),
    radial-gradient(45% 40% at 5% 95%, rgba(193, 154, 58, 0.14), transparent 70%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  row-gap: clamp(2rem, 4.5vh, 3rem);
  column-gap: 1.5rem;
  align-items: end;
}
.hero__copy {
  grid-column: 1 / 8;
  grid-row: 1;
  display: grid;
  gap: 1.5rem;
  align-content: end;
  padding-right: clamp(0rem, 2vw, 2rem);
}
.hero .eyebrow {
  color: var(--gold-soft);
}
.hero__title {
  font-size: clamp(2.9rem, 4.6vw, 4.6rem);
}
.hero__lead {
  color: rgba(246, 241, 227, 0.78);
  max-width: 62ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 0.25rem;
}
.hero__media {
  position: relative;
}
.hero__media--wide {
  grid-column: 1 / 8;
  grid-row: 2;
}
.hero__media--wide .plate {
  aspect-ratio: 969 / 224;
}
.hero__media--wide .plate img {
  object-position: center bottom;
}
.hero__media--tall {
  grid-column: 8 / 13;
  grid-row: 1 / 3;
  align-self: end;
}
.hero__media--tall .plate {
  aspect-ratio: 400 / 342;
}
.scroll-cue {
  position: absolute;
  right: calc(var(--gutter) / 2 - 0.4rem); /* centred in the gutter, clear of the hero plates */
  bottom: clamp(2.5rem, 6vh, 4.5rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(246, 241, 227, 0.6);
  font: 500 0.625rem/1 var(--sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.2s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  35% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1) translateY(1.5rem);
    opacity: 0;
  }
}

/* Story / heritage — two plates on one row, shared top and bottom edges. */
.story__media {
  grid-column: 1 / 7;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.story__media .plate--main {
  aspect-ratio: 400 / 342;
  align-self: start;
}
/* Fill plates take the row height set by their sibling; the picture is taken out of
   flow so its intrinsic height cannot stretch the row. */
.plate--fill picture {
  position: absolute;
  inset: 0;
}
.story__media .plate--side {
  min-height: 100%;
}
.story__body {
  grid-column: 7 / 13;
  display: grid;
  gap: 1.5rem;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.facts dt {
  font: 600 clamp(1.375rem, 1.8vw, 1.75rem) / 1.15 var(--serif);
  color: var(--green-800);
}
.facts dd {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}

/* Farms — panorama + boxes share one row with flush top and bottom edges. */
.farms__band {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.farms__panorama {
  grid-column: 1 / 9;
  aspect-ratio: 969 / 224;
  align-self: start;
}
.farms__panorama img {
  object-position: center bottom;
}
.farms__boxes {
  grid-column: 9 / 13;
  min-height: 100%;
}
.farms__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 5vw, 5rem);
  margin-top: clamp(4rem, 8vw, 6.5rem);
}
.farms__grid .serif-note {
  grid-column: 1 / 6;
}
.farms__grid .ruled {
  grid-column: 6 / 13;
}

/* Mangoes */
.mangoes__media {
  grid-column: 1 / 6;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.mangoes__media .plate {
  aspect-ratio: 250 / 218;
}
.mangoes__body {
  grid-column: 7 / 13;
}
.varieties > li {
  grid-template-columns: minmax(0, 1fr);
  padding: 2rem 0;
}
.varieties__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.varieties__title {
  font: 600 clamp(1.75rem, 2.6vw, 2.5rem) / 1.1 var(--serif);
  color: var(--green-800);
}
.varieties__tag {
  flex: none;
  font: 500 0.6875rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.mangoes__note {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
}

/* Quality / process */
.process__intro {
  grid-column: 1 / 7;
  display: grid;
  gap: 1.5rem;
  align-content: start;
}
.process__media {
  grid-column: 7 / 13;
  position: relative;
}
.process__media .plate {
  aspect-ratio: 462 / 218;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding-top: 2.5rem;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(193, 154, 58, 0.15));
}
.step {
  position: relative;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.step::before {
  content: "";
  position: absolute;
  top: -2.5rem;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.25rem;
  background: var(--gold);
  border-radius: 50%;
}
.step__num {
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: 0.22em;
  color: var(--gold);
}
.step__title {
  font: 600 clamp(1.5rem, 2vw, 2rem) / 1.1 var(--serif);
}
.step__text {
  font-size: 0.9375rem;
  color: rgba(246, 241, 227, 0.72);
  max-width: 24ch;
  text-wrap: pretty;
}

/* Dehydrated */
.dehydrated {
  overflow: hidden;
}
.dehydrated__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.dehydrated__body {
  grid-column: 1 / 7;
  display: grid;
  gap: 1.5rem;
}
.dehydrated__sub {
  font: italic 500 clamp(1.375rem, 2.2vw, 2rem) / 1.25 var(--serif);
  color: var(--earth);
  margin-top: -0.5rem;
}
.dehydrated__media {
  grid-column: 7 / 13;
  position: relative;
}
.dehydrated__media .plate {
  aspect-ratio: 524 / 271;
}
.partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(122, 90, 58, 0.3);
}
.partners li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(122, 90, 58, 0.3);
  font: 600 1.125rem/1.3 var(--serif);
  color: var(--green-800);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.partners li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  background: var(--gold);
  flex: none;
}
.dehydrated__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 0.5rem;
}
.dehydrated__origin {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(122, 90, 58, 0.3);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}
.dehydrated__origin .eyebrow {
  grid-column: 1 / 4;
}
.dehydrated__origin-text {
  grid-column: 4 / 11;
  font: 500 clamp(1.25rem, 1.9vw, 1.75rem) / 1.4 var(--serif);
  color: var(--ink);
  text-wrap: pretty;
}

/* Why */
.why__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 5vw, 5rem);
}
.why__grid .section-head {
  grid-column: 1 / 5;
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  align-self: start;
}
.why__list {
  grid-column: 5 / 13;
}
.why__list > li {
  grid-template-columns: 4rem 1fr;
  align-items: baseline;
}

/* Global */
.global__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.global__body {
  grid-column: 1 / 7;
  display: grid;
  gap: 1.5rem;
}
.global__visual {
  grid-column: 7 / 13;
  color: var(--gold-soft);
}
.global__visual svg {
  width: 100%;
  height: auto;
}
.audience {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.audience li {
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-dark);
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.global__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 0.75rem;
}

/* Vision */
.vision {
  position: relative;
  min-height: min(80vh, 46rem);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.vision__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.vision__bg picture {
  height: 100%;
}
.vision__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(0.85);
  transform: scale(1.04);
}
.vision::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 31, 22, 0.82), rgba(15, 31, 22, 0.72) 50%, rgba(15, 31, 22, 0.9));
}
.vision__inner {
  display: grid;
  justify-items: center;
  gap: 2rem;
  padding-block: var(--section-y);
  max-width: 60rem;
}
.vision .eyebrow {
  color: var(--gold);
}
.vision .eyebrow::before {
  display: none;
}
.vision__text {
  font: 500 clamp(1.875rem, 4.2vw, 3.75rem) / 1.18 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.vision__text em {
  font-style: italic;
  color: var(--gold-soft);
}
.vision__tagline {
  font: italic 500 clamp(1.125rem, 1.6vw, 1.375rem) / 1.5 var(--serif);
  color: rgba(246, 241, 227, 0.78);
}

/* Contact */
.contact__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact__intro {
  grid-column: 1 / 6;
  display: grid;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.contact__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.contact__details {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.contact__details dt {
  font: 500 0.6875rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.35rem;
}
.contact__details dd {
  margin: 0;
  font: 500 1.125rem/1.4 var(--serif);
  color: var(--green-800);
}
.contact__details a:hover {
  color: var(--gold-text);
}
.contact__form {
  grid-column: 6 / 13;
  background: #fff;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  border: 1px solid var(--line);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.field {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font: 500 0.6875rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field label abbr {
  text-decoration: none;
  color: var(--gold-text);
  margin-left: 0.2rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: 400 1rem/1.5 var(--sans);
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234e5b50' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
  cursor: pointer;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #c9bd9c;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-700);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(42, 84, 54, 0.14);
}
.field [aria-invalid="true"] {
  border-color: #a8412f;
  background: #fff8f6;
}
.field__error {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #a8412f;
}
.field__error:empty {
  display: none;
}
.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.75rem;
}
.form-footer small {
  font-size: 0.8125rem;
  color: var(--ink-mute);
  max-width: 34ch;
}
/* Live region stays in the accessibility tree at all times; it only collapses while empty. */
.form-status {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-left: 3px solid transparent;
}
.form-status:empty {
  margin: 0;
  padding: 0;
  border: 0;
}
.form-status[data-state="pending"] {
  color: var(--ink-soft);
  background: var(--cream-2);
  border-color: var(--gold);
}
.form-status[data-state="success"] {
  color: var(--green-800);
  background: #edf3ea;
  border-color: var(--green-600);
}
.form-status[data-state="error"] {
  color: #8a3323;
  background: #fbf0ed;
  border-color: #a8412f;
}
.captcha {
  margin-top: 1.5rem;
}
.captcha__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.6rem;
}
.captcha__question {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.85rem 1.1rem;
  font: italic 500 1.05rem/1.3 var(--serif);
  color: var(--green-800);
  background: var(--cream-2);
  border: 1px dashed #c9bd9c;
  white-space: nowrap;
  user-select: none;
}
.captcha__row input {
  max-width: 9rem;
}
@media (max-width: 480px) {
  .captcha__row {
    align-items: stretch;
    flex-direction: column;
    gap: 0.6rem;
  }
  .captcha__row input {
    max-width: none;
  }
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.is-submitting .btn[type="submit"]::after {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 7. Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--green-950);
  color: rgba(246, 241, 227, 0.72);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}
.site-footer__brand {
  grid-column: 1 / 6;
  display: grid;
  gap: 1.25rem;
  align-content: start;
}
.site-footer__brand .brand {
  color: var(--cream);
}
.site-footer__brand p {
  max-width: 40ch;
  font-size: 0.9375rem;
}
.site-footer__col {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.site-footer__col--nav {
  grid-column: 7 / 9;
}
.site-footer__col--contact {
  grid-column: 9 / 13;
}
.site-footer__col h3 {
  font: 500 0.6875rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.site-footer__col a {
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.site-footer__col a:hover {
  color: var(--cream);
}
.site-footer__col address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.site-footer__credit a {
  color: rgba(246, 241, 227, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(246, 241, 227, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
  color: #fff;
  text-decoration-color: #fff;
}

/* Floating WhatsApp button (bottom-right, desktop + mobile) */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 4px 14px rgba(15, 31, 22, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.whatsapp-float svg {
  width: 1.9rem;
  height: 1.9rem;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1fb457;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 31, 22, 0.4);
}
@media (max-width: 640px) {
  .whatsapp-float {
    width: 3rem;
    height: 3rem;
  }
  .whatsapp-float svg {
    width: 1.6rem;
    height: 1.6rem;
  }
}

/* 8. Motion ------------------------------------------------------------- */
/* Hero entrance runs as a plain CSS animation (no observer, no clip) so the
   largest contentful paint is not held back. */
.hero-in {
  animation: hero-in 0.9s var(--ease-out) both;
  animation-delay: var(--delay, 0s);
}
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--delay, 0s);
}
html.js [data-reveal="fade"] {
  transform: none;
}
/* Plate reveal clips the inner frame, not the observed element — a clip-path on the
   observed element itself stops IntersectionObserver from ever reporting it visible. */
html.js [data-reveal="plate"] {
  transform: none;
  transition: opacity 0.5s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
html.js [data-reveal="plate"] .plate,
html.js [data-reveal="plate"].plate {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
html.js [data-reveal="plate"] img {
  transform: scale(1.08);
  transition: transform 1.4s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
html.js [data-reveal="plate"].is-visible .plate,
html.js [data-reveal="plate"].plate.is-visible {
  clip-path: inset(0 0 0 0);
}
html.js [data-reveal="plate"].is-visible img {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-in {
    animation: none;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  html.js [data-reveal="plate"] .plate,
  html.js [data-reveal="plate"].plate {
    clip-path: none;
  }
  html.js [data-reveal="plate"] img {
    transform: none;
  }
}

/* 9. Responsive --------------------------------------------------------- */
@media (max-width: 1180px) {
  .hero__copy {
    grid-column: 1 / 8;
  }
}

/* Header: the one-line desktop bar needs ~1100px, so the panel menu takes over below 1280px.
   Keep in sync with desktopQuery in js/modules/header.js. */
@media (max-width: 1279px) {
  .menu-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2.5rem;
    padding: 2.5rem var(--gutter) 3rem;
    background: var(--green-900);
    color: var(--cream);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s 0.3s;
    overflow-y: auto;
  }
  .is-menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .site-header.is-menu-open {
    background: var(--green-900);
    color: var(--cream);
    box-shadow: none;
    /* backdrop-filter would make the header the containing block of the fixed nav panel */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.is-menu-open::before {
    opacity: 0;
  }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .nav__list li {
    width: 100%;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav__list a {
    padding: 1.1rem 0;
    font: 600 1.75rem/1.1 var(--serif);
    letter-spacing: 0;
    text-transform: none;
    opacity: 1;
  }
  .nav__list a::after {
    display: none;
  }
  .nav__cta.btn {
    min-height: 3.25rem;
    padding: 0.9rem 1.75rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 1023px) {
  :root {
    --header-h: 4.5rem;
  }
  .hero {
    min-height: 0; /* portrait tablets: no empty band above the headline */
  }
  .hero__inner {
    row-gap: 2.5rem;
  }
  .hero__copy {
    grid-column: 1 / -1;
  }
  .hero__media--wide {
    grid-column: 1 / -1;
  }
  .hero__media--tall {
    display: none;
  }
  .scroll-cue {
    display: none;
  }
  /* Stacked 12-column grids: 11 fixed gaps must fit inside small viewports. */
  .split,
  .hero__inner,
  .farms__band,
  .farms__grid,
  .dehydrated__inner,
  .dehydrated__origin,
  .why__grid,
  .global__inner,
  .contact__inner,
  .site-footer__grid {
    column-gap: 1rem;
  }
  .split {
    row-gap: 3rem;
  }
  .story__media,
  .story__body,
  .mangoes__media,
  .mangoes__body,
  .process__intro,
  .process__media,
  .dehydrated__body,
  .dehydrated__media,
  .global__body,
  .global__visual,
  .contact__intro,
  .contact__form,
  .farms__grid .serif-note,
  .farms__grid .ruled,
  .why__grid .section-head,
  .why__list {
    grid-column: 1 / -1;
  }
  .contact__intro,
  .why__grid .section-head {
    position: static;
  }
  .mangoes__media {
    position: relative; /* stays the containing block for its caption once no longer sticky */
  }
  .mangoes__media .plate {
    max-width: 30rem;
  }
  .section-head--wide {
    grid-template-columns: 1fr;
  }
  .farms__panorama {
    grid-column: 1 / 9;
    aspect-ratio: 16 / 7;
  }
  .hero__media--wide .plate {
    aspect-ratio: 16 / 7;
  }
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .step::before {
    display: none; /* two-row grid: markers would land inside the first row's text */
  }
  .dehydrated__media {
    order: -1;
  }
  .dehydrated__origin {
    grid-template-columns: 1fr;
  }
  .dehydrated__origin .eyebrow,
  .dehydrated__origin-text {
    grid-column: 1 / -1;
  }
  .global__visual {
    max-width: 28rem;
    margin-inline: auto;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
  .site-footer__col--nav {
    grid-column: 1 / 6;
  }
  .site-footer__col--contact {
    grid-column: 6 / 13;
  }
}

@media (max-width: 719px) {
  body {
    font-size: 1rem;
  }
  .eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    gap: 0.625rem;
  }
  .eyebrow::before {
    width: 1.25rem;
  }
  .hero {
    padding-top: calc(var(--header-h) + 1.5rem);
    min-height: 0;
  }
  .hero__title {
    font-size: clamp(2.6rem, 11.5vw, 3.6rem);
  }
  .hero__actions .btn {
    flex: 1 1 100%;
  }
  .hero__media--wide .plate {
    aspect-ratio: 4 / 3;
  }
  .story__media {
    grid-template-columns: 1fr;
  }
  .story__media .plate--side {
    aspect-ratio: 250 / 218;
    min-height: 0;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  /* Stack the farm images full-width so every edge lines up with the text column. */
  .farms__band {
    grid-template-columns: 1fr;
  }
  .farms__panorama,
  .farms__boxes {
    grid-column: 1 / -1;
  }
  .farms__panorama {
    aspect-ratio: 4 / 3;
  }
  .farms__boxes {
    aspect-ratio: 241 / 218;
    min-height: 0;
  }
  .ruled--cols > li,
  .why__list > li {
    grid-template-columns: 2.5rem 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
    margin-top: 3.5rem;
  }
  .steps::before {
    display: none;
  }
  .step {
    grid-template-columns: 3.5rem 1fr;
    gap: 0.35rem 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line-dark);
  }
  .step::before {
    display: none;
  }
  .step__num {
    grid-row: 1 / 3;
    padding-top: 0.5rem;
  }
  .step__title,
  .step__text {
    grid-column: 2;
  }
  .step__text {
    max-width: none;
  }
  .partners {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .contact__form {
    padding: 1.75rem 1.25rem;
  }
  .form-footer .btn,
  .contact__cta .btn {
    width: 100%;
  }
  .site-footer__col--nav,
  .site-footer__col--contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
  }
  .facts {
    grid-template-columns: 1fr;
  }
}
