/* =========================================================
   Chili Connection — styles
   Palette: heritage cream / soil-charcoal · chilli red · leaf green
   ========================================================= */

/* ---------- Design tokens (light) ---------- */
:root {
  --bg:            #faf7f0;
  --bg-2:          #f2ebdd;
  --surface:       #ffffff;
  --surface-2:     #fbf8f1;
  --text:          #241f18;
  --text-muted:    #6f6658;
  --border:        #e7dfd0;
  --border-strong: #d8cdb8;

  --accent:        #c23b2c;   /* chilli red */
  --accent-ink:    #a52d20;
  --accent-soft:   rgba(194, 59, 44, 0.10);
  --green:         #3f6f2f;   /* leaf */
  --green-soft:    rgba(63, 111, 47, 0.10);
  --wa:            #25d366;
  --wa-ink:        #17a74e;

  --shadow-sm: 0 1px 2px rgba(40, 30, 15, 0.05), 0 2px 6px rgba(40, 30, 15, 0.05);
  --shadow-md: 0 6px 18px rgba(40, 30, 15, 0.08), 0 2px 6px rgba(40, 30, 15, 0.05);
  --shadow-lg: 0 20px 50px rgba(30, 22, 10, 0.16);

  --radius:    16px;
  --radius-sm: 10px;
  --pill:      999px;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1180px;
  --header-h: 72px;

  --hero-ink: #ffffff;
}

/* ---------- Dark: system default ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #141210;
    --bg-2:          #1a1712;
    --surface:       #1e1a15;
    --surface-2:     #231e17;
    --text:          #f2ede3;
    --text-muted:    #ab9f8d;
    --border:        #322c22;
    --border-strong: #40382c;

    --accent:        #e35a4b;
    --accent-ink:    #ef6d5e;
    --accent-soft:   rgba(227, 90, 75, 0.15);
    --green:         #8fbf6f;
    --green-soft:    rgba(143, 191, 111, 0.13);
    --wa:            #25d366;
    --wa-ink:        #2bd66d;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

/* ---------- Dark: manual toggle ---------- */
:root[data-theme="dark"] {
  --bg:            #141210;
  --bg-2:          #1a1712;
  --surface:       #1e1a15;
  --surface-2:     #231e17;
  --text:          #f2ede3;
  --text-muted:    #ab9f8d;
  --border:        #322c22;
  --border-strong: #40382c;

  --accent:        #e35a4b;
  --accent-ink:    #ef6d5e;
  --accent-soft:   rgba(227, 90, 75, 0.15);
  --green:         #8fbf6f;
  --green-soft:    rgba(143, 191, 111, 0.13);
  --wa:            #25d366;
  --wa-ink:        #2bd66d;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea { font: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Language visibility ---------- */
html.lang-en .ms { display: none !important; }
html.lang-ms .en { display: none !important; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }

.section { padding-block: clamp(3.6rem, 9vw, 7rem); }
.section-alt { background: var(--bg-2); }

.skip-link {
  position: absolute; left: 50%; top: -80px; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 0.6rem 1.1rem; border-radius: var(--pill);
  z-index: 1000; transition: top 180ms var(--ease-out); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; font-optical-sizing: auto; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.85rem, 4.4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.16rem; line-height: 1.25; }

.kicker {
  font-family: var(--font-sans); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.85rem;
}
.kicker.light { color: #ffd9b8; }

.lead { font-size: clamp(1.05rem, 1.9vw, 1.24rem); color: var(--text-muted); line-height: 1.6; }
.lead.center { max-width: 46ch; margin-inline: auto; }

.section-head { text-align: center; max-width: 60ch; margin-inline: auto; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head h2 { margin-top: 0.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem; border-radius: var(--pill);
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.005em;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, box-shadow 200ms var(--ease-out), border-color 180ms ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn .wa-ic { width: 1.35em; height: 1.35em; fill: currentColor; }

.btn-wa { background: var(--wa); color: #06331b; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.32); }
.btn-wa:hover { background: var(--wa-ink); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4); }
:root[data-theme="dark"] .btn-wa,
:root:not([data-theme="light"]) .btn-wa { color: #05240f; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08); color: var(--hero-ink);
  border: 1.5px solid rgba(255, 255, 255, 0.55); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }

.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: background-color 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { backdrop-filter: saturate(1.4) blur(12px); background: color-mix(in srgb, var(--bg) 62%, transparent); }
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); flex-shrink: 0; }
.brand-mark { display: inline-block; width: 34px; height: 34px; color: var(--green); flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.24rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.nav a {
  padding: 0.5rem 0.8rem; border-radius: var(--pill); font-weight: 500; font-size: 0.94rem;
  color: var(--text-muted); transition: color 160ms ease, background-color 160ms ease;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); }
.nav a.nav-cta { color: var(--accent); font-weight: 600; }
.nav a.nav-cta:hover { background: var(--accent-soft); }

.header-tools { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.4rem; }
.toggle {
  display: inline-grid; place-items: center; height: 40px; min-width: 40px; padding-inline: 0.5rem;
  border: 1px solid var(--border); border-radius: var(--pill); color: var(--text);
  background: var(--surface); transition: transform 160ms var(--ease-out), border-color 160ms ease, background-color 160ms ease;
  font-weight: 600; font-size: 0.85rem;
}
.toggle:hover { border-color: var(--border-strong); }
.toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun,
:root:not([data-theme="light"]) .theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-moon,
:root:not([data-theme="light"]) .theme-toggle .ic-moon { display: block; }
/* keep sun visible in forced-light even under dark OS */
:root[data-theme="light"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: none; }

.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--radius-sm); flex-direction: column; gap: 4px; align-items: center; justify-content: center; background: var(--surface); }
.menu-btn span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 220ms var(--ease-out), opacity 180ms ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92svh, 820px); display: flex; align-items: flex-end; padding-bottom: clamp(2.5rem, 7vw, 5rem); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 22, 12, 0.36) 0%, rgba(12, 22, 12, 0.12) 34%, rgba(9, 17, 9, 0.72) 100%),
    linear-gradient(90deg, rgba(9, 17, 9, 0.55) 0%, rgba(9, 17, 9, 0.05) 60%);
}
.hero-content { position: relative; color: var(--hero-ink); max-width: 44rem; }
.eyebrow { font-weight: 600; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: #ffe0c4; margin-bottom: 1.1rem; }
.hero-title { font-size: clamp(2.7rem, 8.2vw, 5.4rem); font-weight: 600; line-height: 0.98; letter-spacing: -0.025em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3); }
.hero-lead { margin-top: 1.4rem; font-size: clamp(1.08rem, 2.3vw, 1.35rem); max-width: 40ch; color: #f3efe6; line-height: 1.55; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.hero-lead strong { color: #fff; font-weight: 700; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-scroll { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); color: rgba(255, 255, 255, 0.8); width: 40px; height: 40px; display: grid; place-items: center; animation: bob 2.4s var(--ease-in-out) infinite; }
.hero-scroll svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* ---------- Trust bar ---------- */
.trust { background: var(--green); color: #f4f1e6; }
:root[data-theme="dark"] .trust,
:root:not([data-theme="light"]) .trust { background: #223417; }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; padding-block: clamp(1.6rem, 3.5vw, 2.4rem); text-align: center; }
.trust-item { display: flex; flex-direction: column; gap: 0.15rem; position: relative; }
.trust-item:not(:last-child)::after { content: ""; position: absolute; right: -0.5rem; top: 12%; height: 76%; width: 1px; background: rgba(255, 255, 255, 0.18); }
.trust-big { font-family: var(--font-display); font-size: clamp(1.25rem, 2.9vw, 1.85rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.trust-unit { font-size: 0.5em; font-family: var(--font-sans); font-weight: 500; opacity: 0.9; }
.trust-cap { font-size: 0.82rem; opacity: 0.82; letter-spacing: 0.02em; }

/* ---------- What we grow ---------- */
.grow-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.grow-media { position: relative; }
.grow-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 3 / 4; object-fit: cover; }
.grow-media::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); pointer-events: none; }
.grow-body h2 { margin-bottom: 1rem; }
.grow-body .lead { margin-bottom: 1.6rem; }

.spec { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.1rem 1.5rem; margin-bottom: 1.8rem; border-top: 1px solid var(--border); }
.spec li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); font-size: 0.96rem; }
.spec-k { color: var(--text-muted); }
.spec-v { font-weight: 600; font-family: var(--font-display); }

.grades { display: grid; gap: 0.9rem; }
.grade { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.grade-tag { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; font-family: var(--font-display); font-weight: 700; color: #fff; }
.grade-a { background: var(--green); }
.grade-b { background: var(--accent); }
.grade h3 { margin-bottom: 0.15rem; }
.grade p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Cards (why) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); } }
.card-ic { font-size: 1.7rem; line-height: 1; display: inline-block; margin-bottom: 0.9rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Our land band ---------- */
.land { position: relative; color: #fff; padding-block: clamp(4.5rem, 12vw, 8.5rem); overflow: hidden; isolation: isolate; }
.land-bg { position: absolute; inset: 0; z-index: -2; }
.land-bg img { width: 100%; height: 100%; object-fit: cover; }
.land-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(10, 20, 10, 0.86) 0%, rgba(10, 20, 10, 0.62) 48%, rgba(10, 20, 10, 0.34) 100%); }
.land-content { max-width: 40rem; }
.land-title { font-size: clamp(2rem, 5.2vw, 3.4rem); margin-bottom: 1.2rem; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3); }
.land-text { font-size: clamp(1.05rem, 2vw, 1.24rem); line-height: 1.7; color: #f0ede4; }
.land-sign { margin-top: 1.4rem; font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: #ffdcbe; }

/* ---------- Process steps ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; counter-reset: step; }
.step { position: relative; text-align: left; }
.step img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 0.9rem; }
.step-no { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2; background: var(--surface); color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; padding: 0.2rem 0.55rem; border-radius: var(--pill); box-shadow: var(--shadow-sm); }
.step h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.step p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* ---------- Gallery (masonry) ---------- */
.gallery { columns: 3; column-gap: 1rem; }
.g-item { break-inside: avoid; margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: zoom-in; position: relative; }
.g-item img { width: 100%; transition: transform 500ms var(--ease-out); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.14)); opacity: 0; transition: opacity 300ms ease; }
@media (hover: hover) and (pointer: fine) { .g-item:hover img { transform: scale(1.05); } .g-item:hover::after { opacity: 1; } }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; }
.faq { display: grid; gap: 0.7rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 1.2rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 0; font-weight: 600; font-family: var(--font-display); font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); font-weight: 400; transition: transform 240ms var(--ease-out); flex-shrink: 0; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.15rem; color: var(--text-muted); margin-top: -0.15rem; }

/* ---------- Contact ---------- */
.section-contact { background: var(--bg-2); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-intro h2 { margin-bottom: 1rem; }
.contact-intro .lead { margin-bottom: 1.8rem; }
.contact-intro .btn-wa { margin-bottom: 2rem; }
.contact-meta { list-style: none; padding: 0; display: grid; gap: 1rem; }
.contact-meta li { display: flex; align-items: center; gap: 0.8rem; font-size: 1rem; }
.contact-meta a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cm-ic { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--green-soft); color: var(--green); }
.cm-ic svg { width: 20px; height: 20px; }

.contact-form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-md); }
.form-note { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.3rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: var(--surface); box-shadow: 0 0 0 3px var(--green-soft); }
.field input.invalid, .field textarea.invalid { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-fallback { margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); text-align: center; }
.form-fallback a { color: var(--accent); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: clamp(2.6rem, 6vw, 4rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.4rem; }
.footer-brand .brand-mark { width: 40px; height: 40px; color: var(--green); margin-bottom: 0.7rem; }
.footer-name { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1; }
.footer-legal { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.footer-tag { font-family: var(--font-display); font-style: italic; color: var(--green); font-size: 1rem; max-width: 26ch; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-h { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.3rem; }
.footer-nav a, .footer-contact a { color: var(--text-muted); font-size: 0.95rem; transition: color 150ms ease; width: fit-content; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-loc { font-size: 0.9rem; color: var(--text-muted); }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 1.4rem; }
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; background: rgba(8, 10, 8, 0.9); padding: 4vh 4vw; opacity: 0; transition: opacity 220ms var(--ease-out); }
@supports (backdrop-filter: blur(4px)) { .lightbox { backdrop-filter: blur(6px); } }
.lightbox.open { display: flex; }
.lightbox.visible { opacity: 1; }
.lb-img { max-width: 100%; max-height: 92vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); transform: scale(0.97); transition: transform 260ms var(--ease-out); }
.lightbox.visible .lb-img { transform: scale(1); }
.lb-close, .lb-nav { position: absolute; color: #fff; width: 52px; height: 52px; border-radius: var(--pill); display: grid; place-items: center; font-size: 2rem; line-height: 1; background: rgba(255, 255, 255, 0.1); transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lb-close:active, .lb-nav:active { transform: scale(0.92); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 2.4rem; }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
.lb-nav:active { transform: translateY(-50%) scale(0.92); }

/* ---------- Reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal[data-reveal-delay="1"] { transition-delay: 70ms; }
html.js .reveal[data-reveal-delay="2"] { transition-delay: 140ms; }
html.js .reveal[data-reveal-delay="3"] { transition-delay: 210ms; }
html.js .reveal[data-reveal-delay="4"] { transition-delay: 280ms; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grow-layout { grid-template-columns: 1fr; }
  .grow-media { max-width: 460px; margin-inline: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0.15rem; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    padding: 0.8rem clamp(1.15rem, 4vw, 2.5rem) 1.2rem; margin-left: 0;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 240ms var(--ease-out), opacity 200ms ease;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 0.85rem 0.6rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav a:hover { background: var(--surface-2); }
  .menu-btn { display: flex; }
  .header-tools { margin-left: auto; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .trust-item:nth-child(odd):last-child { grid-column: 1 / -1; }
  .trust-item:nth-child(even)::after, .trust-item:last-child::after { display: none; }
  .trust-item:nth-child(2)::after { display: none; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .spec { grid-template-columns: 1fr; }
  .hero { min-height: 88svh; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 430px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}

/* ---------- Reduced motion ---------- */
/* ---------- Up next (greenhouse under construction) ---------- */
.upnext {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.1rem, 2.6vw, 1.8rem);
  align-items: start;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--green); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.3rem, 2.8vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.upnext-ic {
  width: 50px; height: 50px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: var(--radius-sm); background: var(--green-soft); font-size: 1.5rem; line-height: 1;
}
.upnext p { color: var(--text-muted); font-size: 0.97rem; align-self: center; }
@media (max-width: 720px) {
  .upnext { grid-template-columns: 1fr; gap: 1rem; }
  .upnext-ic { width: 44px; height: 44px; font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-scroll { animation: none; }
  .g-item img, .card { transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
