/* ============================================================
   AJ Garten & Landschaftsbau — Heubach
   Cinematic Portfolio-First · Bento-Grid
   Charcoal #20211d · Frisch-Grün #6f9e3f · Stein · Cream
   FOUNDATION: tokens + reset + nav + footer + base motion
   ============================================================ */

/* --- Self-hosted fonts (zero-tracking) --- */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/spacegrotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/spacegrotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/spacegrotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* --- Design tokens --- */
:root {
  --c-char: #20211d;
  --c-char-deep: #16170f;
  --c-char-soft: #2a2b25;
  --c-char-card: #282922;
  --c-green: #6f9e3f;
  --c-green-bright: #8fc24f;
  --c-green-dark: #4d6e2c;
  --c-green-soft: rgba(111, 158, 63, 0.12);
  --c-stone: #9a958a;
  --c-stone-light: #c8c2b4;
  --c-cream: #ede9de;
  --c-cream-mute: rgba(237, 233, 222, 0.72);
  --c-cream-faint: rgba(237, 233, 222, 0.42);
  --c-rule: rgba(237, 233, 222, 0.14);
  --c-rule-dk: rgba(22, 23, 15, 0.14);

  /* light surfaces (cream sections) */
  --c-paper: #f4f1ea;
  --c-paper-warm: #ece7da;
  --c-ink: #20211d;
  --c-ink-mute: rgba(32, 33, 29, 0.66);
  --c-ink-faint: rgba(32, 33, 29, 0.34);

  --f-display: "Archivo", system-ui, sans-serif;
  --f-ui: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;

  --size-hero: clamp(2.9rem, 8.5vw, 7.6rem);
  --size-h1: clamp(2.2rem, 5vw, 4rem);
  --size-h2: clamp(1.7rem, 3.4vw, 3rem);
  --size-h3: clamp(1.15rem, 2vw, 1.55rem);
  --size-eyebrow: 0.74rem;
  --size-body: clamp(1rem, 1.05vw, 1.08rem);

  --gap-xs: 0.5rem; --gap-sm: 0.9rem; --gap-md: 1.5rem;
  --gap-lg: 2.5rem; --gap-xl: 4rem; --gap-2xl: 7rem;

  --radius: 16px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--c-char);
  color: var(--c-cream);
  font-family: var(--f-body);
  font-size: var(--size-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100vw;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--c-green); color: var(--c-char); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 var(--gap-md);
}
.eyebrow {
  font-family: var(--f-ui);
  font-size: var(--size-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--c-green-bright);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.6em;
  margin-bottom: var(--gap-sm);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--c-green); display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.ink { color: var(--c-green-dark); }

/* --- Containers --- */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.shell-wide { max-width: 1480px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.shell-tight { max-width: 860px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
section { padding: var(--gap-2xl) 0; position: relative; }
section.tight { padding: var(--gap-xl) 0; }

/* sections on cream */
.on-paper { background: var(--c-paper); color: var(--c-ink); }
.on-paper h1, .on-paper h2, .on-paper h3 { color: var(--c-ink); }
.on-paper .eyebrow { color: var(--c-green-dark); }

/* --- Scroll progress bar --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-green), var(--c-green-bright));
  transform-origin: left center; transform: scaleX(0);
  z-index: 200; pointer-events: none;
}

/* --- Navigation --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(22, 23, 15, 0.78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--c-rule);
}
.nav-inner {
  max-width: 1480px; margin: 0 auto;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md);
}
.nav-brand { display: inline-flex; align-items: center; }
.nav-logo { height: 42px; width: auto; transition: transform .4s var(--ease); }
.nav-brand:hover .nav-logo { transform: scale(1.04); }
.nav-menu { display: flex; gap: clamp(1rem, 2vw, 1.9rem); align-items: center; }
.nav-menu a {
  font-family: var(--f-ui); font-size: 0.84rem; font-weight: 500;
  color: var(--c-cream); padding: 0.4rem 0; position: relative; letter-spacing: 0.01em;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px;
  height: 2px; background: var(--c-green-bright); transition: right .32s var(--ease);
}
.nav-menu a:hover::after, .nav-menu a.active::after { right: 0; }
.nav-cta {
  font-family: var(--f-ui); font-size: 0.82rem; font-weight: 600;
  padding: 0.58rem 1.2rem; background: var(--c-green); color: #fff;
  border-radius: 999px; transition: transform .25s var(--ease), background .25s, box-shadow .25s;
  box-shadow: 0 6px 20px -8px rgba(111,158,63,0.7);
}
.nav-cta:hover { background: var(--c-green-bright); transform: translateY(-2px); color: #fff; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer;
  background: transparent; border: 0;
}
.nav-burger span { width: 24px; height: 2px; background: var(--c-cream); transition: .3s; }

/* mobile menu drawer */
.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: rgba(22,23,15,0.97); backdrop-filter: blur(8px);
  flex-direction: column; justify-content: center; align-items: center; gap: 1.6rem;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.nav-mobile.open { display: flex; opacity: 1; pointer-events: auto; }
.nav-mobile a { font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; color: var(--c-cream); }
.nav-mobile a:hover { color: var(--c-green-bright); }
.nav-mobile .close { position: absolute; top: 1.4rem; right: 1.6rem; font-size: 2.2rem; background: none; border: 0; color: var(--c-cream); cursor: pointer; }

@media (max-width: 920px) {
  .nav-menu, .nav .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--f-ui); font-weight: 600; font-size: 0.95rem;
  padding: 0.95rem 1.7rem; border-radius: 999px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--c-green); color: #fff; box-shadow: 0 10px 28px -10px rgba(111,158,63,0.75); }
.btn-primary:hover { background: var(--c-green-bright); transform: translateY(-3px); color: #fff; box-shadow: 0 16px 36px -10px rgba(111,158,63,0.85); }
.btn-ghost { border-color: var(--c-cream-faint); color: var(--c-cream); }
.btn-ghost:hover { border-color: var(--c-green-bright); color: var(--c-green-bright); transform: translateY(-2px); }
.btn-ghost.ink { border-color: var(--c-ink-faint); color: var(--c-ink); }
.btn-ghost.ink:hover { border-color: var(--c-green-dark); color: var(--c-green-dark); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* --- Footer --- */
.footer { background: var(--c-char-deep); color: var(--c-cream-mute); padding: var(--gap-2xl) 0 var(--gap-lg); border-top: 1px solid var(--c-rule); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap-xl); }
.footer-logo { height: 48px; margin-bottom: var(--gap-md); }
.footer h4 { font-family: var(--f-ui); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--c-green-bright); margin-bottom: var(--gap-md); }
.footer a:hover { color: var(--c-green-bright); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.95rem; }
.footer .f-contact { font-size: 0.95rem; line-height: 1.8; }
.footer-bottom {
  margin-top: var(--gap-xl); padding-top: var(--gap-md); border-top: 1px solid var(--c-rule);
  display: flex; justify-content: space-between; gap: var(--gap-md); flex-wrap: wrap;
  font-size: 0.8rem; color: var(--c-cream-faint);
}
.footer-bottom a:hover { color: var(--c-green-bright); }
.no-track { display: inline-flex; align-items: center; gap: 0.4em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: var(--gap-lg); } }

/* --- Reveal base motion --- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.stagger.in-view > * { opacity: 1; transform: none; }
.stagger.in-view > *:nth-child(2){transition-delay:.07s} .stagger.in-view > *:nth-child(3){transition-delay:.14s}
.stagger.in-view > *:nth-child(4){transition-delay:.21s} .stagger.in-view > *:nth-child(5){transition-delay:.28s}
.stagger.in-view > *:nth-child(6){transition-delay:.35s} .stagger.in-view > *:nth-child(7){transition-delay:.42s}
.stagger.in-view > *:nth-child(8){transition-delay:.49s}

/* --- Demo notice pill --- */
.demo-notice {
  position: fixed; bottom: 14px; left: 14px; z-index: 180;
  background: rgba(22,23,15,0.92); color: var(--c-cream-mute);
  border: 1px solid var(--c-rule); border-radius: 999px;
  padding: 0.5rem 0.95rem; font-family: var(--f-ui); font-size: 0.72rem;
  display: inline-flex; align-items: center; gap: 0.5em; max-width: calc(100vw - 28px);
  backdrop-filter: blur(8px);
}
.demo-notice .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green-bright); flex-shrink: 0; }
@media (max-width: 600px) { .demo-notice { font-size: 0.66rem; padding: 0.42rem 0.7rem; } }

/* --- Sticky mobile offer CTA --- */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 170;
  background: rgba(22,23,15,0.96); border-top: 1px solid var(--c-rule);
  padding: 0.7rem 1rem; gap: 0.7rem; backdrop-filter: blur(10px);
}
.sticky-cta a { flex: 1; justify-content: center; padding: 0.85rem 1rem; font-size: 0.9rem; }
@media (max-width: 920px) { .sticky-cta { display: flex; } body { padding-bottom: 72px; } .demo-notice { bottom: 80px; } }

/* --- reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
