:root {
  --bg: #edf1e9;
  --surface: #e3eadf;
  --card: #f1f6ed;
  --border: #cbd9c6;
  --text: #16261c;
  --muted: #3b4d41;
  --emerald: #397a4e;
  --emerald-dark: #2a5d3b;
  --emerald-2: #2a5d3b;
  --tint: rgba(57, 122, 78, 0.11);
  --gold: #a97840;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(31, 58, 38, 0.10);
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:root { color-scheme: light; }
[hidden] { display: none !important; }

body {
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--emerald-2); outline-offset: 3px; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 246, 239, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; padding: 4px; border: 1px solid var(--border);
  display: grid; place-items: center; flex: none;
}
.brand-badge img { width: 100%; height: 100%; object-fit: contain; }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.1; }
.brand-text span { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--emerald-2); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a.link {
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: var(--muted); transition: 0.2s;
}
.nav-links a.link:hover { color: var(--text); background: var(--card); }
.nav-links a.link.active { color: #fff; background: var(--emerald); }
.menu-btn { display: none; background: none; border: 1px solid var(--border); color: var(--text); width: 44px; height: 44px; border-radius: 12px; font-size: 1.4rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--emerald); color: #fff; font-weight: 700; font-size: 0.98rem;
  padding: 13px 26px; border-radius: 14px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s; font-family: inherit;
}
.btn:hover { background: var(--emerald-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(57, 122, 78, 0.3); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { background: var(--tint); color: var(--text); box-shadow: none; }
.hero .btn.ghost { background: #dfead9; color: #24392b; border-color: #dfead9; box-shadow: 0 8px 22px rgba(10, 30, 17, 0.18); }
.hero .btn.ghost:hover { background: #cfe0c8; color: #1f4d31; border-color: #cfe0c8; }
.btn.small { padding: 9px 18px; font-size: 0.88rem; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 70px; color: #fff; background: linear-gradient(90deg, rgba(17, 43, 26, 0.91) 0%, rgba(17, 43, 26, 0.78) 44%, rgba(17, 43, 26, 0.30) 100%), url("../images/farm-hero-highres.jpg") center 48% / cover no-repeat; }
.hero-grid { display: grid; grid-template-columns: 1fr minmax(0, 580px); gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--emerald-dark); background: var(--tint); border: 1px solid rgba(57, 122, 78, 0.3);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero .eyebrow { color: #eff7e8; background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.28); }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.12; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #c8e4a8; }
.hero p.lead { color: rgba(255, 255, 255, 0.88); font-size: 1.08rem; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font-size: 0.85rem; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--text); }

/* Showcase carousel (3D coverflow) */
.showcase { --w: clamp(200px, 62vw, 330px); width: 100%; max-width: 580px; margin-left: auto; user-select: none; -webkit-user-select: none; }
.stage {
  --gap: calc(var(--w) * 0.43);
  position: relative; height: calc(var(--w) * 1.385 + 64px); perspective: 1500px;
  touch-action: pan-y; cursor: grab; border-radius: 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.stage:active { cursor: grabbing; }
.cf {
  position: absolute; left: 50%; top: 18px; width: var(--w); aspect-ratio: 1000 / 1385;
  border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 26px 50px rgba(20, 60, 40, 0.26);
  transform: translateX(calc(-50% + var(--d) * var(--gap))) translateZ(calc(var(--a) * -140px)) rotateY(calc(var(--d) * -30deg)) scale(calc(1 - var(--a) * 0.05));
  opacity: var(--o); z-index: var(--z); filter: brightness(var(--b));
  transition: transform 0.8s cubic-bezier(0.22, 0.8, 0.24, 1), opacity 0.5s ease, filter 0.5s ease;
  will-change: transform;
}
.cf.on { cursor: zoom-in; box-shadow: 0 34px 64px rgba(42, 93, 59, 0.35); }
.cf:not(.on) { cursor: pointer; }
.cf img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.cf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0.28), transparent 40%); pointer-events: none; }
.sc-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 22px; }
.sc-text { min-width: 0; }
.sc-count { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; color: #d2e7b8; font-variant-numeric: tabular-nums; }
.sc-text h3 { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.25; margin: 4px 0 2px; }
.sc-text p { color: rgba(255, 255, 255, 0.88); font-size: 0.92rem; }
.sc-ctrl { display: flex; gap: 10px; flex: none; }
.sc-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-size: 1rem; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 12px rgba(20, 60, 40, 0.08);
}
.sc-btn:hover { background: var(--emerald); color: #fff; border-color: var(--emerald); }
.sc-progress { height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 18px; }
.sc-progress span { display: block; height: 100%; width: 100%; background: var(--emerald); transform: scaleX(0); transform-origin: left; }
.sc-progress span.run { animation: scFill 5s linear forwards; }
.showcase.paused .sc-progress span { animation-play-state: paused; }
@keyframes scFill { to { transform: scaleX(1); } }
.sc-thumbs { display: flex; gap: 10px; margin-top: 16px; }
.sc-thumb {
  flex: 1; max-width: 70px; aspect-ratio: 1000 / 1385; border-radius: 8px; overflow: hidden; padding: 0; background: #fff;
  border: 2px solid transparent; opacity: 0.55; cursor: pointer; transition: 0.25s; box-shadow: 0 0 0 1px var(--border);
}
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sc-thumb:hover { opacity: 0.9; }
.sc-thumb.active { opacity: 1; border-color: var(--emerald); transform: translateY(-3px); }


/* ---------- Farm photo gallery ---------- */
.farm-gallery { display: grid; grid-template-columns: 1.18fr 1fr 1fr; grid-template-rows: repeat(2, minmax(170px, 220px)); gap: 16px; }
.farm-tile { position: relative; min-height: 170px; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: 0 8px 22px rgba(26, 58, 34, 0.10); }
.farm-tile:first-child { grid-row: span 2; }
.farm-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.farm-tile:hover img { transform: scale(1.045); }
.farm-tile::after { content: ""; position: absolute; inset: 25% 0 0; background: linear-gradient(transparent, rgba(16, 35, 21, 0.72)); pointer-events: none; }
.farm-tile figcaption { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; color: #fff; font-weight: 700; font-size: 1rem; text-shadow: 0 1px 8px rgba(0,0,0,.28); }
.farm-tile .photo-credit { display: block; margin-top: 3px; font-size: 0.66rem; line-height: 1.35; font-weight: 500; opacity: 0.92; }
.farm-tile .photo-credit a { text-decoration: underline; text-underline-offset: 2px; }
.gallery-section .section-title { margin-bottom: 32px; }
.gallery-section .eyebrow { margin-bottom: 12px; }
.scroll-reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }
/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.tight { padding: 40px 0; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-title h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.2; }
.section-title p { color: var(--muted); margin-top: 10px; }

.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.five { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid.products { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.glass {
  background: linear-gradient(145deg, #e5eee1, #d9e7d5);
  border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(20, 60, 40, 0.06); border-radius: var(--radius); padding: 30px 26px; text-align: center; transition: 0.25s;
}
.glass:hover { transform: translateY(-5px); border-color: rgba(57, 122, 78, 0.5); box-shadow: var(--shadow); }
.glass .ico {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: rgba(185, 121, 54, 0.14); font-size: 1.4rem;
}
.glass h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 8px; }
.glass p { color: var(--muted); font-size: 0.96rem; }
.glass .more { display: inline-block; margin-top: 14px; color: var(--emerald-2); font-weight: 700; font-size: 0.9rem; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img.photo { border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.split h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.2; margin-bottom: 14px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 24px; }
.tag { font-size: 0.82rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--tint); border: 1px solid rgba(57, 122, 78, 0.3); color: var(--emerald-dark); }

/* Videos */
.video-card { background: var(--card); box-shadow: 0 6px 18px rgba(20, 60, 40, 0.06); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.video-card video { width: 100%; background: #000; aspect-ratio: 16 / 10; object-fit: contain; }
.video-card .vinfo { padding: 18px 22px 22px; }
.video-card h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 4px; }
.video-card p { color: var(--muted); font-size: 0.93rem; }

/* CTA */
.cta {
  text-align: center; border-radius: 26px; padding: 54px 28px; border: 1px solid rgba(57, 122, 78, 0.3);
  background: radial-gradient(500px 220px at 50% 0, rgba(57, 122, 78, 0.16), transparent 70%), var(--surface);
}
.cta h2 { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; }

/* ---------- Page banner ---------- */
.page-banner { padding: 64px 0 48px; text-align: center; color: #fff; background: linear-gradient(90deg, rgba(17, 43, 26, 0.82), rgba(17, 43, 26, 0.58)), url("../images/farm-hero-highres.jpg") center 48% / cover no-repeat; }
.page-banner h1 { font-family: var(--font-head); font-size: clamp(2rem, 4.5vw, 3rem); }
.page-banner p { color: rgba(255,255,255,0.88); margin-top: 8px; }

/* ---------- Products ---------- */
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.filter-btn {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text);
  cursor: pointer; font-weight: 600; font-family: inherit; font-size: 0.92rem; transition: 0.2s;
}
.filter-btn:hover { border-color: var(--emerald); }
.filter-btn.active { background: var(--emerald); color: #fff; border-color: var(--emerald); }
.product { background: var(--card); box-shadow: 0 6px 18px rgba(20, 60, 40, 0.06); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: 0.25s; }
.product:hover { transform: translateY(-6px); border-color: rgba(57, 122, 78, 0.5); box-shadow: var(--shadow); }
.product .pimg { aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.product .pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product:hover .pimg img { transform: scale(1.05); }
.product .pimg.poster img { object-position: top center; }
.product .info { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product .cat { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald-dark); font-weight: 700; margin-bottom: 6px; }
.product h3 { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.3; margin-bottom: 6px; }
.product p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; flex: 1; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 34px; align-items: start; }
.info-card { background: var(--card); box-shadow: 0 6px 18px rgba(20, 60, 40, 0.06); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; }
.info-card h3 { font-size: 0.98rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 20px; }
.info-card .row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; color: var(--text); }
.info-card .row svg { width: 20px; height: 20px; color: var(--emerald); flex: none; margin-top: 3px; }
.info-card .row b { font-weight: 700; }
.info-card .row a:hover { color: var(--emerald-dark); }
.info-card p.sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.info-card .btn { width: 100%; }
.logo-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.logo-card img { max-width: 230px; margin: 0 auto; }

form.enquiry { background: var(--card); box-shadow: 0 6px 18px rgba(20, 60, 40, 0.06); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
form.enquiry h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 6px; }
form.enquiry .hint { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
form.enquiry label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
form.enquiry input, form.enquiry select, form.enquiry textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: #f4f6ef;
  color: var(--text); font: inherit; margin-bottom: 16px;
}
form.enquiry select option { background: #fff; }
form.enquiry textarea { min-height: 120px; resize: vertical; }
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus { outline: 2px solid var(--emerald); border-color: transparent; }
.form-error { color: #b42318; font-weight: 600; font-size: 0.9rem; margin-top: 12px; display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.88); display: none; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 92vw; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox .x { position: absolute; top: 16px; right: 20px; color: #fff; font-size: 2rem; background: none; border: 0; cursor: pointer; }

/* ---------- Footer ---------- */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 54px 0 20px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1.2fr; gap: 40px; margin-bottom: 34px; }
footer h4 { font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
footer p, footer li { color: var(--muted); font-size: 0.94rem; margin-bottom: 8px; }
footer a:hover { color: var(--emerald-dark); }
footer .brand { margin-bottom: 14px; }
.copy { text-align: center; border-top: 1px solid var(--border); padding-top: 18px; color: var(--muted); font-size: 0.86rem; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); transition: 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-wrap, .footer-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .showcase { margin: 0 auto; }
  .hero { padding-top: 34px; }
  section { padding: 56px 0; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 12px 4%; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a.link { padding: 13px 16px; }
  .nav-cta { display: none; }
}
@media (max-width: 720px) {
  .farm-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(220px, 1fr) repeat(2, minmax(150px, 190px)); }
  .farm-tile:first-child { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .farm-gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .farm-tile, .farm-tile:first-child { grid-column: auto; grid-row: auto; min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}













/* ---- Readability boost ---- */
h1,h2,h3,h4,.brand-text strong { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
body { font-size: 17px; line-height: 1.65; }
.product h3 { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.product p { font-size: 1rem; color: var(--muted); line-height: 1.6; }
.product .cat { font-size: 0.78rem; color: var(--emerald-dark); }
.glass p, .video-card p, .info-card p.sub, form.enquiry .hint { font-size: 1rem; }
footer p, footer li { font-size: 1rem; }
