/* ===== Agro-Ogród — design tokens ===== */
:root {
  --bg: #F5F2E8;
  --bg-elev: #FBF9F2;
  --ink: #14180F;
  --ink-2: #3B4234;
  --ink-3: #6C7363;
  --line: rgba(20, 24, 15, 0.10);
  --line-2: rgba(20, 24, 15, 0.06);
  --moss: oklch(0.42 0.07 145);
  --moss-2: oklch(0.55 0.08 130);
  --sand: oklch(0.78 0.04 85);
  --accent: oklch(0.48 0.10 145);
  --shadow-sm: 0 2px 8px rgba(20, 24, 15, 0.05), 0 1px 2px rgba(20, 24, 15, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(20, 24, 15, 0.12), 0 4px 12px -4px rgba(20, 24, 15, 0.08);
  --shadow-lg: 0 30px 60px -20px rgba(20, 24, 15, 0.22), 0 10px 25px -10px rgba(20, 24, 15, 0.12);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
.dark {
  --bg: #0E1410;
  --bg-elev: #141B16;
  --ink: #F0EEE3;
  --ink-2: #BFC4B7;
  --ink-3: #858A7D;
  --line: rgba(240, 238, 227, 0.12);
  --line-2: rgba(240, 238, 227, 0.06);
  --moss: oklch(0.78 0.08 140);
  --moss-2: oklch(0.68 0.09 130);
  --sand: oklch(0.62 0.05 85);
  --accent: oklch(0.80 0.11 140);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 14px 36px -10px rgba(0,0,0,0.5);
  --shadow-lg: 0 40px 80px -20px rgba(0,0,0,0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}
.dark body::before { mix-blend-mode: screen; opacity: 0.3; }

.container { max-width: 1360px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--ink-3);
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background-color 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 24px; }
.brand img { height: 34px; width: auto; display: block; transition: filter 0.4s; }
.dark .brand img { filter: brightness(1.6) saturate(1.4); }

.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { color: var(--ink-2); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--moss);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
@media (max-width: 860px) { .nav-links { display: none; } }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), background 0.3s, border-color 0.3s;
  overflow: hidden;
  position: relative;
}
.theme-toggle:hover { transform: rotate(15deg); border-color: var(--ink-3); }
.theme-toggle svg { width: 18px; height: 18px; transition: transform 0.4s; }
.dark .theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: none; }
.dark .theme-toggle .icon-moon { display: block; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--ink);
  color: var(--bg);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-arrow { transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--ink-3); }

/* Hamburger */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  cursor: pointer;
  position: relative;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(.65,.05,.36,1), opacity 0.2s, width 0.35s;
}
.hamburger span:nth-child(1) { width: 18px; }
.hamburger span:nth-child(2) { width: 14px; align-self: flex-end; margin-right: 12px; }
.hamburger span:nth-child(3) { width: 18px; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 18px; }
@media (max-width: 860px) {
  .hamburger { display: flex; }
  .btn-cta-desktop { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 100px 40px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.mobile-menu-inner > a {
  font-family: var(--serif);
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  transition: color 0.2s, padding-left 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.mobile-menu.open .mobile-menu-inner > a {
  animation: menuItem 0.5s cubic-bezier(.2,.7,.2,1) forwards;
}
.mobile-menu.open .mobile-menu-inner > a:nth-child(1) { animation-delay: 0.08s; }
.mobile-menu.open .mobile-menu-inner > a:nth-child(2) { animation-delay: 0.14s; }
.mobile-menu.open .mobile-menu-inner > a:nth-child(3) { animation-delay: 0.20s; }
.mobile-menu.open .mobile-menu-inner > a:nth-child(4) { animation-delay: 0.26s; }
.mobile-menu.open .mobile-menu-inner > a:nth-child(5) { animation-delay: 0.32s; }
.mobile-menu.open .mobile-menu-inner > a:nth-child(6) { animation-delay: 0.38s; }
.mobile-menu.open .mobile-menu-inner > a:nth-child(7) { animation-delay: 0.44s; }
@keyframes menuItem { to { opacity: 1; transform: translateY(0); } }
.mobile-menu-inner > a:hover { color: var(--moss); padding-left: 12px; }
.mobile-menu-inner .btn {
  width: fit-content;
  font-family: var(--sans);
  font-size: 14px;
  border-bottom: none;
  padding: 12px 22px;
}
.mobile-menu-inner .btn:hover { padding-left: 22px; }
.mobile-menu-contact {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
}
.mobile-menu-contact a { color: var(--ink-2); }
body.menu-open { overflow: hidden; }
