:root {
  --green-900: #0f3d22;
  --green-800: #14532d;
  --green-600: #23803f;
  --green-200: #b7e4c7;
  --green-50: #f0f7f1;
  --white: #ffffff;
  --ink: #16241b;
  --muted: #55655a;
  --line: #d9e6dc;
  --radius: 18px;
  --wrap: 1140px;
  --display: "Fraunces", "Mukta", Georgia, serif;
  --body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--green-800); }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }

/* Language switching: only the active language is shown */
html[data-lang="en"] [lang="ne"],
html[data-lang="ne"] [lang="en"] { display: none !important; }
html[data-lang="ne"] { --display: "Mukta", sans-serif; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--green-600); outline-offset: 3px; border-radius: 6px; }

h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; color: var(--green-900); text-wrap: balance; }
html[data-lang="ne"] h1, html[data-lang="ne"] h2 { font-weight: 700; line-height: 1.3; letter-spacing: 0; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 22px; }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--green-900); line-height: 1.3; }
.eyebrow { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--green-600); margin-bottom: 14px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; margin-top: 22px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-900); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text strong { display: block; font-size: 1.14rem; line-height: 1.15; font-weight: 700; }
.brand-text small { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.25; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--green-600); color: var(--green-800); }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--green-50); }
.lang-switch button { border: 0; background: none; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--muted); padding: 4px 13px; border-radius: 999px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--green-800); color: var(--white); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--green-900); margin: 4px auto; border-radius: 2px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--green-800); transition: background .15s, color .15s; }
.btn-solid { background: var(--green-800); color: var(--white); }
.btn-solid:hover { background: var(--green-900); }
.btn-line { color: var(--green-800); background: transparent; }
.btn-line:hover { background: var(--green-50); }

/* Photos: show a labelled slot until the real file is added */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--green-50); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.missing { border: 2px dashed var(--green-200); display: grid; place-items: center; }
.photo.missing::after { content: "Add photo: images/" attr(data-file); color: var(--green-600); font-size: 0.9rem; font-weight: 500; padding: 12px; text-align: center; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 84px) 0 0; background: linear-gradient(180deg, var(--green-50), var(--white) 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-photo { aspect-ratio: 5 / 5.400; border-radius: 28px 28px 28px 120px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 26px 24px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-size: 2.1rem; font-weight: 600; color: var(--green-800); line-height: 1.2; }
.facts dd { color: var(--muted); font-size: 0.98rem; margin-top: 4px; }

/* Sections */
.section { padding: clamp(60px, 9vw, 112px) 0; }
.tint { background: var(--green-50); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section p + p { margin-top: 16px; }

.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.about-photo { aspect-ratio: 4 / 5; }
.about-grid p:not(.eyebrow) { color: #33443a; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 22px; }
.card .photo { border-radius: 12px; margin-bottom: 18px; }
.card h3, .card p { padding-inline: 8px; }
.card p { color: var(--muted); font-size: 1rem; margin-top: 4px; }

.crops-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.steps { counter-reset: step; border-top: 1px solid var(--line); margin-top: 8px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--green-50); color: var(--green-800); font-weight: 700; display: grid; place-items: center; }
.steps p { color: var(--muted); font-size: 1rem; margin-top: 2px; }
.crops-photos { display: grid; gap: 22px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery .photo { aspect-ratio: 1; border-radius: 12px; }
.gallery .photo:not(.missing) { cursor: zoom-in; }
.gallery .photo:not(.missing) img { transition: transform .3s; }
.gallery .photo:not(.missing):hover img { transform: scale(1.04); }

/* Contact */
.contact { background: var(--green-800); color: var(--white); }
.contact h2 { color: var(--white); }
.contact .eyebrow { color: var(--green-200); }
.contact p:not(.eyebrow) { color: #dcefe2; max-width: 30em; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.contact-list { border-top: 1px solid rgba(255,255,255,.22); }
.contact-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.contact-list dt { color: var(--green-200); font-size: 0.95rem; }
.contact-list dd { font-weight: 600; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-list dd a { color: var(--white); }
.contact-list dd.todo { font-weight: 400; font-style: italic; opacity: .7; }

/* Footer */
.site-footer { background: var(--green-900); color: #cfe3d5; font-size: 0.95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0; }
.site-footer a { color: var(--white); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(8, 28, 16, .88); }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 10px; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--white); color: var(--green-900); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Tablet and phone */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  body { font-size: 17px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
  .lang-switch { align-self: flex-start; margin-top: 16px; }
  .hero-grid, .about-grid, .crops-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; border-radius: 22px 22px 22px 70px; }
  .about-photo { aspect-ratio: 4 / 3; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { padding: 18px 4px; }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .crops-photos { grid-template-columns: 1fr 1fr; gap: 14px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
