/* ==========================================================================
   microgreenfarm — site stylesheet
   Type and palette follow the Lusso Leaf reference:
     display  Playfair Display   (hero + section headlines)
     label    Cinzel             (small-caps section labels)
     body     Mulish             (stands in for Avenir Light)
   ========================================================================== */

:root {
  /* palette lifted from the reference site's theme variables */
  --paper:     #ffffff;
  --ink:       #272521;
  --ink-2:     #4e4a42;
  --muted:     #756f63;
  --sand:      #ada9a0;
  --sand-lt:   #d9d5ca;
  --sand-pale: #f2f0ea;
  --cream:     #eae0c3;
  --gold:      #bfa760;
  --olive:     #918766;
  --olive-dk:  #615a44;
  --dark:      #302d22;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-label:   "Cinzel", "Playfair Display", Georgia, serif;
  --font-body:    "Mulish", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --wrap-narrow: 860px;
  --header-h: 92px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--olive-dk); text-decoration: none; }
a:hover { color: var(--gold); }

/* ---------- layout helpers ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--sand { background: var(--sand-pale); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--dark); color: var(--sand-lt); }
.section--dark h2, .section--dark h3 { color: #fff; }

.center { text-align: center; }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }

p { margin: 0 0 1.35em; }

/* the small Cinzel label above each section — the reference's "our products" */
.label {
  font-family: var(--font-label);
  font-size: .95rem;
  letter-spacing: .34em;
  text-transform: lowercase;
  font-variant: small-caps;
  color: var(--olive);
  margin: 0 0 1.4rem;
  text-align: center;
}

.label::after {
  content: "";
  display: block;
  width: 54px;
  height: 1px;
  background: var(--gold);
  margin: 1.1rem auto 0;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--ink-2);
}

.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--olive);
  margin-top: 1.6rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 16px 38px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--gold { border-color: var(--gold); color: var(--gold); }
.btn--gold:hover { background: var(--gold); color: #fff; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(39, 37, 33, .1);
  transition: background .3s ease, height .3s ease, border-color .3s ease;
}

/* transparent over a hero, until scrolled */
.site-header--over {
  background: transparent;
  border-bottom-color: transparent;
}
.site-header--over .brand-name,
.site-header--over .brand-sub,
.site-header--over .nav a { color: #fff; }
/* over a hero the gold current-page colour has too little contrast on light
   photography, so mark the current page with the cream + a persistent rule */
.site-header--over .nav a[aria-current="page"] { color: var(--cream); }
.site-header--over .nav a[aria-current="page"]::after { background: var(--cream); }
.site-header--over .nav a::after { background: #fff; }
.site-header--over .brand-mark path { fill: #fff; }
.site-header--over .nav-toggle span { background: #fff; }

.site-header.is-stuck {
  background: rgba(255, 255, 255, .97);
  border-bottom-color: rgba(39, 37, 33, .1);
  height: 74px;
}
.site-header.is-stuck .brand-name,
.site-header.is-stuck .brand-sub,
.site-header.is-stuck .nav a { color: var(--ink); }
.site-header.is-stuck .brand-mark path { fill: var(--olive); }
.site-header.is-stuck .nav-toggle span { background: var(--ink); }

/* ---------- language switch ---------- */

/* Nav and switch travel together on the right; on a phone the nav becomes a
   fixed drawer and leaves the switch sitting beside the menu button. */
.header-right { display: flex; align-items: center; gap: 26px; }

.lang { margin: 0; display: flex; align-items: center; gap: 10px; }

/* Inline SVG flags, not emoji: Windows has no flag-emoji font, so the Unicode
   flags would render as the bare letters "GB" and "VN" there. */
.flag {
  display: block;
  width: 25px;
  height: 17px;
  border-radius: 2px;
}

/* The language you are not reading is greyed back, so the pair reads as one
   control with a current state rather than as two competing buttons. */
.lang a {
  display: block;
  border-radius: 2px;
  filter: grayscale(1);
  opacity: .5;
  transition: opacity .25s ease, filter .25s ease, box-shadow .25s ease;
}
.lang a:hover { filter: none; opacity: .9; }
.lang a.is-current {
  filter: none;
  opacity: 1;
  box-shadow: 0 0 0 1.5px rgba(39, 37, 33, .35);
}

/* over a hero the header is transparent, so the ring has to go pale */
.site-header--over .lang a.is-current { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); }

/* once scrolled the header has a white background again */
.site-header.is-stuck .lang a.is-current { box-shadow: 0 0 0 1.5px rgba(39, 37, 33, .35); }

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ---------- logo ---------- */

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 38px; flex: none; }
.brand-mark path { fill: var(--olive); transition: fill .3s ease; }

.brand-text { line-height: 1; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  letter-spacing: .02em;
  color: var(--ink);
  display: block;
  transition: color .3s ease;
}
.brand-name b { font-weight: 400; }

.brand-sub {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--olive);
  margin-top: 3px;
  transition: color .3s ease;
}

/* ---------- nav ---------- */

.nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  transition: color .3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--gold); }

.nav-toggle {
  display: none;
  width: 30px; height: 22px;
  border: 0; background: none; padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 100%;
  background: var(--ink);
  transition: background .3s ease, transform .3s ease, opacity .3s ease;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero--short { min-height: 62vh; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,19,16,.55) 0%, rgba(20,19,16,.3) 45%, rgba(20,19,16,.65) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 40px) 28px 60px;
  max-width: 900px;
}

.hero h1 {
  color: #fff;
  margin-bottom: .15em;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}

.hero .hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  color: var(--cream);
  margin: 0 0 1.6rem;
}

.hero .hero-tag {
  font-size: .82rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 2.6rem;
}

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .85;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px; height: 40px;
  background: rgba(255,255,255,.7);
  margin: 12px auto 0;
}

/* ---------- full-bleed image band ---------- */

.band {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}
.band::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(24, 22, 18, .48);
}
.band-inner { position: relative; z-index: 1; width: 100%; }
.band h2 { color: #fff; max-width: 720px; }
.band p { color: rgba(255,255,255,.9); max-width: 560px; }

/* ---------- split (image + text) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}
.split--reverse .split-media { order: 2; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.split-body h2 { margin-bottom: .6em; }

/* ---------- cards / product grid ---------- */

.grid {
  display: grid;
  gap: 34px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--paper); }

.card-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand-pale);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.card:hover .card-media img { transform: scale(1.06); }

.card-body { padding: 22px 4px 0; }

.card h3 {
  font-size: 1.3rem;
  /* .2em was tight because the botanical name used to sit here and carry its
     own margin; with that gone the heading needs its own breathing room. */
  margin-bottom: .5em;
}

.card p { font-size: .96rem; margin-bottom: 0; }

.card .card-note {
  display: block;
  margin-top: .9em;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--olive);
}

/* ---------- numbered value list (mission / sustainability) ---------- */

.values { list-style: none; margin: 0; padding: 0; }

.values li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid rgba(39,37,33,.12);
  align-items: start;
}
.values li:last-child { border-bottom: 1px solid rgba(39,37,33,.12); }

.values .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--gold);
  line-height: 1;
}
.values h3 { font-size: 1.3rem; margin-bottom: .35em; }
.values p { margin-bottom: 0; font-size: 1rem; }

.section--dark .values li { border-color: rgba(255,255,255,.16); }
.section--dark .values p { color: rgba(255,255,255,.78); }

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat .stat-label {
  display: block;
  margin-top: .8rem;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .stat .stat-label { color: rgba(255,255,255,.65); }

/* ---------- carousel (matches the reference's product slider) ---------- */

.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * {
  flex: 0 0 calc((100% - 60px) / 3);
  scroll-snap-align: start;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}
.carousel-btn {
  width: 46px; height: 46px;
  border: 1px solid rgba(39,37,33,.25);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background .25s, color .25s, border-color .25s;
}
.carousel-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }

.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid rgba(39,37,33,.12); }
.contact-list .k {
  display: block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: .35rem;
}
.contact-list .v { font-size: 1.05rem; color: var(--ink); overflow-wrap: anywhere; }

.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: .55rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  padding: 13px 14px;
  border: 1px solid rgba(39,37,33,.22);
  background: #fff;
  border-radius: 0;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row textarea { min-height: 150px; resize: vertical; }

.form-note { font-size: .85rem; color: var(--muted); }

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--cream);
  color: var(--olive-dk);
  font-size: .95rem;
}
.form-status[hidden] { display: none !important; }

/* ---------- newsletter strip ---------- */

.subscribe { display: flex; gap: 0; max-width: 480px; }
.subscribe input {
  flex: 1;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
  border-radius: 0;
}
.subscribe input::placeholder { color: rgba(255,255,255,.55); }
.subscribe input:focus { outline: none; border-color: var(--gold); }
.subscribe button {
  padding: 15px 26px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.subscribe button:hover { background: transparent; color: var(--gold); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.72);
  padding: 76px 0 34px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-mark path { fill: var(--gold); }

.footer-grid h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
/* the email address is long; let it wrap rather than overflow the column */
.footer-grid li { margin-bottom: .7rem; overflow-wrap: anywhere; }
.footer-grid a { color: rgba(255,255,255,.72); }
.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
}

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .band { background-attachment: scroll; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .split--reverse .split-media { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .carousel-track > * { flex-basis: calc((100% - 30px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .band { background-attachment: scroll; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .carousel-track > * { flex-basis: 82%; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .values li { grid-template-columns: 1fr; gap: 8px; }
  .values .num { font-size: 1.6rem; }

  .nav-toggle { display: flex; }
  .header-right { gap: 18px; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    background: var(--paper);
    padding: calc(var(--header-h) + 20px) 32px 32px;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -14px 0 40px rgba(0,0,0,.14);
  }
  .nav.is-open { transform: none; }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav a { display: block; padding: 14px 0; color: var(--ink) !important; border-bottom: 1px solid rgba(39,37,33,.08); }
  .site-header--over .nav a { color: var(--ink) !important; }
  .subscribe { flex-direction: column; max-width: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
