/* ============================================================
   Gazdinstvo Lazović — Viljamovka
   Static port of viljamovka-farm-story.lovable.app
   Token set mirrors Lovable's design system 1:1.
   ============================================================ */

:root {
  /* ===== Typography scale (from Lovable :root) ===== */
  --text-xs:    .75rem;     --text-xs--lh:   calc(1 / .75);
  --text-sm:    .875rem;    --text-sm--lh:   calc(1.25 / .875);
  --text-base:  1rem;       --text-base--lh: 1.5;
  --text-lg:    1.125rem;   --text-lg--lh:   calc(1.75 / 1.125);
  --text-xl:    1.25rem;    --text-xl--lh:   calc(1.75 / 1.25);
  --text-2xl:   1.5rem;     --text-2xl--lh:  calc(2 / 1.5);
  --text-3xl:   1.875rem;   --text-3xl--lh:  1.2;
  --text-4xl:   2.25rem;    --text-4xl--lh:  calc(2.5 / 2.25);
  --text-5xl:   3rem;       --text-5xl--lh:  1;
  --text-7xl:   4.5rem;     --text-7xl--lh:  1;

  --font-weight-light:    300;
  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;
  --font-weight-extra:    800;
  --font-weight-black:    900;

  --tracking-tight:  -.025em;
  --tracking-wider:   .05em;
  --tracking-widest:  .1em;

  --leading-tight:    1.25;
  --leading-relaxed:  1.625;

  --font-display: "Playfair Display", Georgia, serif;
  --font-sans:    "Inter", system-ui, sans-serif;

  /* ===== Palette ===== */
  --bg:           oklch(98.5% .012 95);
  --bg-elev:      oklch(96% .04 95);
  --bg-card:      #ffffff;
  --ink:          oklch(22% .04 145);
  --ink-soft:     oklch(45% .04 145);
  --muted:        oklch(55% .03 145);
  --border:       oklch(88% .02 95);
  --border-dark:  oklch(100% 0 0 / .14);

  --primary:      oklch(42% .11 145);
  --primary-ink:  oklch(98.5% .012 95);
  --primary-hi:   oklch(50% .12 145);
  --primary-dark: oklch(28% .06 145);

  --accent:       oklch(78% .16 70);
  --accent-ink:   oklch(22% .04 145);
  --accent-hi:    oklch(72% .17 65);

  --gold:         oklch(82% .14 90);

  --gradient-hero: linear-gradient(135deg, oklch(35% .08 145 / .85), oklch(25% .05 145 / .55));
  --gradient-warm: linear-gradient(180deg, var(--bg), oklch(96% .04 95));

  --shadow-soft:  0 10px 40px -12px oklch(35% .08 145 / .25);
  --shadow-card:  0 4px 20px -4px oklch(35% .08 145 / .15);
  --shadow-sm:    0 1px 2px rgba(40, 36, 24, .06), 0 1px 1px rgba(40, 36, 24, .04);

  --radius-sm: 0.125rem;     /* rounded-sm */
  --radius-md: 0.375rem;     /* rounded-md — Lovable buttons (6px) */
  --radius:    0.5rem;       /* rounded-lg */
  --radius-lg: 1rem;         /* rounded-2xl — Lovable cards */
  --radius-xl: 1rem;         /* alias */

  --maxw:  1180px;
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 9999;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Typography ---------- */
/* Match Lovable's exact heading classes — font-family written literally
   so DevTools comparison reads identical to Lovable.
   h1 hero       = text-5xl md:text-7xl font-display font-semibold leading-[1.05]
   h2 sections   = text-4xl md:text-5xl font-display font-semibold
   h2 institute  = text-3xl md:text-4xl font-display font-semibold leading-tight
   h3 small      = font-display text-xl   (no font-weight class → inherits)
   h3 medium     = font-display text-2xl  (no font-weight class → inherits)
*/
h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
}
h1 {
  font-size: var(--text-5xl);
  line-height: 1.05;
  font-weight: 600;             /* hero stays semibold to match Lovable */
}
h2 {
  font-size: var(--text-4xl);
  line-height: var(--text-4xl--lh);
  font-weight: 900;             /* section h2 — Black (max weight) */
}
h3 {
  font-size: var(--text-xl);
  line-height: var(--text-xl--lh);
  font-weight: 600;
}
h4 {
  font-size: var(--text-lg);
  line-height: var(--text-lg--lh);
  font-weight: 600;
}

@media (min-width: 768px) {
  h1 { font-size: var(--text-7xl); }
  h2 { font-size: var(--text-5xl); line-height: var(--text-5xl--lh); }
}
p { color: var(--ink-soft); }
.muted { color: var(--muted); }

.kicker {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: var(--text-xs--lh);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--primary);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 12px;
}
.kicker.center, .center { text-align: center; }

section { padding: 96px 0; }

/* ---------- Buttons (match Lovable: h-10 rounded-md px-8 text-sm font-medium) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 2.5rem;           /* h-10 = 40px */
  padding: 0 2rem;          /* px-8 */
  border-radius: var(--radius-md);  /* rounded-md = 6px */
  font-weight: var(--font-weight-medium);
  font-size: var(--text-sm);
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn.lg { height: 2.75rem; padding: 0 2rem; font-size: var(--text-sm); }
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-card);
}
.btn.primary:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn.ghost {
  background: transparent; color: var(--ink); border-color: var(--border);
}
.btn.ghost:hover { background: var(--bg-elev); border-color: var(--ink); }
.btn.ghost-light {
  background: transparent;
  color: #fbf6e7;
  border-color: rgba(255,255,255,0.35);
}
.btn.ghost-light:hover { background: rgba(255,255,255,0.10); border-color: #fbf6e7; }

/* Hero ghost button is on a dark green overlay — force light variant */
.hero .btn.ghost {
  color: #fbf6e7;
  border-color: rgba(255,255,255,0.35);
}
.hero .btn.ghost:hover {
  background: rgba(255,255,255,0.10);
  border-color: #fbf6e7;
  color: #fbf6e7;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--primary);
  flex: 0 0 24px;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text {
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-lg);
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--ink-soft);
  position: relative; padding: 6px 2px;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.nav-cta {
  display: inline-flex; align-items: center;
  height: 2rem;                /* h-8 = 32px */
  padding: 0 0.75rem;          /* px-3 */
  border-radius: var(--radius-md);  /* rounded-md = 6px */
  background: var(--primary);
  color: var(--primary-ink);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--shadow-sm);
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--primary-hi); }

.nav-toggle, .nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 880px);
  display: flex; align-items: center;
  isolation: isolate; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, oklch(35% .08 145 / .55), oklch(25% .05 145 / .25)),
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35));
}
.hero-inner {
  color: #fbf6e7;
  padding: 80px 0;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--text-xs); line-height: var(--text-xs--lh);
  letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: #fbf6e7;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 16px; border-radius: 999px;
  backdrop-filter: blur(8px);
}
.hero h1 { color: #fbf6e7; margin-top: 24px; }
.hero .lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--text-xl), 2vw, var(--text-2xl));
  line-height: var(--text-2xl--lh);
  color: var(--gold);
  margin-top: 18px;
  font-weight: var(--font-weight-medium);
}
.hero .hero-sub {
  color: rgba(255,255,255,0.86);
  font-size: var(--text-lg);
  line-height: var(--text-lg--lh);
  margin: 18px auto 0;
  max-width: 620px;
}
.hero-cta {
  display: flex; gap: 14px; margin-top: 36px;
  flex-wrap: wrap; justify-content: center;
}
.hero-features {
  list-style: none; padding: 0;
  margin: 48px auto 0;
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; justify-content: center;
  font-size: var(--text-sm); line-height: var(--text-sm--lh);
  color: rgba(255,255,255,0.92);
  max-width: 820px;
}
.hero-features li {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: var(--font-weight-medium);
}
.hero-features li svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex: 0 0 18px;
}

/* ---------- Stats ---------- */
.stats {
  padding: 56px 0;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-value {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  line-height: var(--text-4xl--lh);
  color: var(--primary);
  letter-spacing: var(--tracking-tight);
}
.stat-label {
  font-size: var(--text-sm); line-height: var(--text-sm--lh);
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--muted);
  font-weight: var(--font-weight-medium);
}

/* ---------- Generic two-column layout ---------- */
.two-col {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px; align-items: center;
}
.two-col figure img {
  width: 100%; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/5; object-fit: cover;
}
.story-text p + p { margin-top: 16px; }

/* ---------- Institute — separate section ---------- */
.institute {
  background: var(--bg);
  padding-top: 0;
  padding-bottom: 96px;
}
.institute-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-card);
}
.institute-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  margin-bottom: 24px;
}
.institute-icon svg { width: 28px; height: 28px; }
.institute-body .kicker { margin-bottom: 10px; }
.institute-body h2 {
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .institute-body h2 { font-size: var(--text-4xl); }
}
.institute-body p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
.institute-body .inline-pills { margin-top: 22px; }

.inline-pills {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.inline-pills li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-sm); line-height: 1;
  font-weight: var(--font-weight-medium);
  color: var(--primary);
  background: color-mix(in oklab, var(--primary) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--primary) 20%, transparent);
  padding: 8px 14px; border-radius: 999px;
}
.inline-pills li svg {
  width: 16px; height: 16px;
  color: var(--primary);
  flex: 0 0 16px;
}

/* ---------- Product / check list ---------- */
.product { background: var(--bg-elev); }
.check-list { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 14px; }
.check-list li {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-base);
}
.check-list .ci-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  flex: 0 0 40px;
}
.check-list .ci-icon svg { width: 20px; height: 20px; }

/* ---------- Process / steps ---------- */
.steps {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 48px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-align: left;
}
.step:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-card);
  border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
}
.step-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  border-radius: 14px;
  margin-bottom: 18px;
}
.step-icon svg { width: 26px; height: 26px; }
.step h3 {
  margin: 0; font-size: var(--text-xl);
  line-height: var(--text-xl--lh);
}
.step p { margin-top: 10px; font-size: var(--text-sm); line-height: 1.55; }

/* ---------- Harvest ---------- */
.harvest { background: var(--bg-elev); }
.harvest-intro {
  font-size: var(--text-lg);
  line-height: var(--text-lg--lh);
  margin: 14px auto 0;
  color: var(--ink); max-width: 640px;
}
.harvest-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  margin-top: 48px;
}
.harvest-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
}
.harvest-card.class-ii { border-left-color: var(--accent); }
.harvest-card h3 {
  font-size: var(--text-2xl);
  line-height: var(--text-2xl--lh);
  margin-bottom: 18px;
}
.harvest-numbers {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 14px;
}
.harvest-card .big-number {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-5xl));
  line-height: var(--text-5xl--lh);
  font-weight: var(--font-weight-bold);
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
}
.harvest-card .percent {
  font-size: var(--text-sm); color: var(--muted);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
}
.harvest-card p { font-size: var(--text-base); }

.harvest-bar {
  display: flex; height: 12px; margin-top: 36px;
  border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}
.harvest-bar-i  { background: var(--primary); }
.harvest-bar-ii { background: var(--accent); }

/* ---------- Gallery (bento) ---------- */
.gallery-intro { margin-top: 14px; max-width: 640px; margin-left: auto; margin-right: auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 16px;
  margin-top: 48px;
}
.gallery-grid figure {
  margin: 0; overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.gallery-trigger {
  display: block; width: 100%; height: 100%;
  padding: 0; margin: 0; border: 0; background: none;
  cursor: zoom-in;
  position: relative;
}
.gallery-trigger img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.gallery-trigger::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,40,22,.35) 100%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.gallery-trigger:hover img { transform: scale(1.06); }
.gallery-trigger:hover::after { opacity: 1; }
.gallery-grid .gallery-big { grid-column: span 2; grid-row: span 2; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 25, 18, 0.92);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  backdrop-filter: blur(8px);
  animation: lb-fade .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox-img {
  max-width: 100%; max-height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  animation: lb-zoom .25s ease;
}
@keyframes lb-zoom { from { transform: scale(.96); } to { transform: scale(1); } }

.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fbf6e7;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.22); transform: rotate(90deg);
}
.lightbox-close svg { width: 24px; height: 24px; }

/* ---------- Wholesale ---------- */
.wholesale-intro {
  font-size: var(--text-lg);
  line-height: var(--text-lg--lh);
  max-width: 760px; margin: 14px auto 0;
}
.buyer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 48px;
}
.buyer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.buyer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.buyer-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  border-radius: 14px;
  margin-bottom: 16px;
}
.buyer-icon svg { width: 24px; height: 24px; }
.buyer-card h3 {
  font-size: var(--text-xl); line-height: var(--text-xl--lh);
  color: var(--ink);
}
.buyer-card p {
  margin-top: 10px; font-size: var(--text-sm); line-height: 1.55;
}

/* Uslovi veleprodaje — dark green card with 2x2 grid + CTA */
.terms-card {
  margin-top: 48px;
  background: var(--primary);
  color: var(--primary-ink);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-soft);
  position: relative; overflow: hidden;
}
.terms-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, oklch(78% .16 70 / .12), transparent 60%);
  pointer-events: none;
}
.terms-card > * { position: relative; }
.terms-card h3 {
  color: #fbf6e7;
  font-size: clamp(var(--text-2xl), 2.6vw, var(--text-3xl));
  line-height: var(--text-3xl--lh);
  margin-bottom: 32px;
  text-align: center;
}
.terms-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin-bottom: 36px;
}
.terms-grid li {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.term-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  color: var(--accent);
  flex: 0 0 40px;
}
.term-icon svg { width: 20px; height: 20px; }
.terms-grid li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.terms-grid li strong {
  color: #fbf6e7;
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
}
.terms-grid li span {
  color: rgba(255,255,255,0.78);
  font-size: var(--text-sm);
  line-height: 1.4;
}
.terms-cta { display: flex; justify-content: center; }

/* ---------- Contact (dark green section) ---------- */
.contact {
  background: var(--primary-dark);
  color: #fbf6e7;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top left, oklch(42% .11 145 / .35), transparent 50%),
    radial-gradient(ellipse at bottom right, oklch(78% .16 70 / .12), transparent 50%);
  pointer-events: none;
}
.contact > .container { position: relative; }
.contact h2 { color: #fbf6e7; }
.contact-intro {
  font-size: var(--text-lg); line-height: var(--text-lg--lh);
  margin: 16px auto 0; max-width: 640px;
  color: rgba(255,255,255,0.86);
}
.contact-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin: 36px 0 56px;
  justify-content: center;
}

.contact-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 48px;
}
.info-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(6px);
}
.info-icon {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.10);
  color: var(--accent);
  border-radius: 14px;
  margin-bottom: 14px;
}
.info-icon svg { width: 24px; height: 24px; }
.info-label {
  font-size: var(--text-xs); line-height: var(--text-xs--lh);
  letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 8px;
}
.info-value {
  color: #fbf6e7;
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
}
.info-value a { color: #fbf6e7; }
.info-value a:hover { color: var(--accent); }

.contact-map {
  margin-top: 8px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-soft);
  background: var(--primary-dark);
}
.contact-map iframe {
  width: 100%; height: 380px; border: 0; display: block;
  filter: contrast(1.05) saturate(.85);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 32px 0;
  border-top: 1px solid var(--border-dark);
}
.footer-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-row p { color: rgba(255,255,255,0.7); font-size: var(--text-sm); }
.back-top { color: var(--accent); font-weight: var(--font-weight-medium); font-size: var(--text-sm); }
.back-top:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .buyer-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 260px 200px 200px;
  }
  .gallery-grid .gallery-big { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }

  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow-card);
    z-index: 49;
  }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.nav-cta {
    margin-top: 10px;
    justify-content: center;
    height: 2.5rem;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 6px;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    cursor: pointer;
    border-radius: var(--radius-md);
    background: color-mix(in oklab, var(--primary) 8%, transparent);
  }
  .nav-burger:hover { background: color-mix(in oklab, var(--primary) 14%, transparent); }
  .nav-burger span {
    display: block; width: 22px; height: 2.5px;
    background: var(--primary); border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col figure img { aspect-ratio: 4/3; }

  .steps { grid-template-columns: 1fr; }
  .harvest-grid { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 220px);
  }
  .gallery-grid .gallery-big { grid-column: span 1; grid-row: span 1; }

  .terms-card { padding: 32px; }
  .terms-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .institute-card { padding: 32px; }
  .lightbox { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-4xl); }   /* shrink hero h1 so it fits */
  h2 { font-size: var(--text-3xl); }   /* shrink section h2 too */
  .hero-inner { padding: 60px 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-features { flex-direction: column; gap: 10px; align-items: flex-start; }
  .stats-grid { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
