/* ============================================================
   Schust Gartenbau — Pool/Schwimmteich-Luxe-Cinematic
   Brand layer: tokens · self-hosted fonts · base · nav · footer
   Palette: deep Petrol/Aqua + Slate + warm Sand + Cream
   ============================================================ */

/* --- Self-hosted fonts (Zero-Tracking) --- */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* --- Design Tokens --- */
:root {
  --c-brand: #163d44;        /* deep petrol */
  --c-brand-dark: #0e2b30;
  --c-brand-deep: #081c20;
  --c-brand-light: #2f6d76;
  --c-aqua: #3fa3b3;
  --c-aqua-glow: #6fc7d4;
  --c-aqua-soft: rgba(63, 163, 179, 0.10);

  --c-sand: #cdb58a;
  --c-sand-dark: #a8895a;

  --c-cream: #f4efe4;        /* page bg */
  --c-cream-2: #ebe3d2;
  --c-cream-3: #ddd2bb;
  --c-slate: #2b3338;
  --c-ink: #1a1f22;
  --c-ink-mute: rgba(26, 31, 34, 0.64);
  --c-ink-faint: rgba(26, 31, 34, 0.34);
  --c-rule: rgba(22, 61, 68, 0.18);

  /* Aged cream for text on dark */
  --c-on-dark: #e9e0cc;
  --c-on-dark-mute: rgba(233, 224, 204, 0.78);
  --c-on-dark-faint: rgba(233, 224, 204, 0.52);

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

  --f-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-ui: "Inter", system-ui, -apple-system, sans-serif;

  --size-hero: clamp(3.4rem, 10vw, 9rem);
  --size-h1: clamp(2.3rem, 5vw, 4.4rem);
  --size-h2: clamp(1.7rem, 3vw, 2.7rem);
  --size-h3: clamp(1.2rem, 2vw, 1.6rem);
  --size-eyebrow: 0.76rem;
  --size-body: clamp(1rem, 1.05vw, 1.08rem);

  --line-tight: 1.04;
  --line-normal: 1.6;
  --radius: 14px;
  --shadow-soft: 0 18px 50px -28px rgba(8, 28, 32, 0.55);
}

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: var(--line-tight);
  letter-spacing: -0.012em;
  margin: 0 0 var(--gap-md);
  color: var(--c-ink);
}
.h-1 { font-size: var(--size-h1); }
.h-2 { font-size: var(--size-h2); }
.h-3 { font-size: var(--size-h3); }
p { margin: 0 0 var(--gap-md); }
em, .italic { font-style: italic; }

.eyebrow {
  font-family: var(--f-ui);
  font-size: var(--size-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--c-aqua);
  font-weight: 600;
  display: inline-block;
  margin-bottom: var(--gap-sm);
}
.kicker {
  font-family: var(--f-ui); font-size: 0.7rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--c-brand-light); font-weight: 600;
}
.dateline {
  font-family: var(--f-ui); font-size: 0.72rem; letter-spacing: 0.18em;
  color: var(--c-ink-faint); text-transform: uppercase;
}

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

.rule-haircline { height: 1px; background: var(--c-rule); position: relative; }
.rule-haircline::after {
  content: ""; position: absolute; left: 0; top: 0; height: 1px; background: var(--c-aqua);
  width: 0; transition: width 1.3s cubic-bezier(.2,.7,.2,1);
}
.in-view .rule-haircline::after, .rule-haircline.in-view::after { width: 100%; }

/* --- Navigation --- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 239, 228, 0.86);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--c-rule);
  transition: background .4s, box-shadow .4s;
}
.nav.scrolled { background: rgba(244, 239, 228, 0.96); box-shadow: 0 8px 30px -20px rgba(8,28,32,0.5); }
.nav-inner {
  max-width: 1500px; 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; gap: 12px; }
.nav-mark {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(140deg, var(--c-brand) 0%, var(--c-aqua) 130%);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 14px -6px rgba(22,61,68,0.6);
  transition: transform .4s;
  position: relative; overflow: hidden;
}
.nav-mark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.5), transparent 45%);
}
.nav-mark span {
  font-family: var(--f-display); font-weight: 600; color: #fff; font-size: 1.15rem;
  position: relative; z-index: 1;
}
.nav-brand:hover .nav-mark { transform: scale(1.06) rotate(-4deg); }
.nav-wordmark { display: flex; flex-direction: column; line-height: 1.04; }
.nav-wordmark strong { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; color: var(--c-brand); letter-spacing: -0.01em; }
.nav-wordmark .sub { font-family: var(--f-ui); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-ink-mute); margin-top: 2px; }

.nav-menu { display: flex; gap: var(--gap-md); align-items: center; }
.nav-menu a {
  font-family: var(--f-ui); font-size: 0.85rem; font-weight: 500;
  color: var(--c-ink); padding: 0.4rem 0; position: relative; letter-spacing: 0.01em;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1.5px; background: var(--c-aqua); transition: right .3s;
}
.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.6rem 1.1rem; border-radius: 999px;
  background: var(--c-brand); color: var(--c-cream) !important;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--c-brand-dark); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(22,61,68,0.8); }

.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-brand); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-mobile {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--c-cream); border-bottom: 1px solid var(--c-rule);
  padding: var(--gap-sm) clamp(1.25rem, 4vw, 2.5rem) var(--gap-md);
}
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 0.7rem 0; font-family: var(--f-ui); font-size: 1rem; border-bottom: 1px solid var(--c-rule); }
.nav-mobile a:last-child { border-bottom: 0; }

@media (max-width: 940px) {
  .nav-menu { display: none; }
  .nav-burger { display: inline-flex; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0.9rem 1.5rem;
  font-family: var(--f-ui); font-size: 0.83rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px; transition: all .28s; cursor: pointer; border: 0;
}
.btn-primary { background: var(--c-brand); color: var(--c-cream); box-shadow: 0 14px 30px -16px rgba(22,61,68,0.7); }
.btn-primary:hover { background: var(--c-brand-dark); color: var(--c-cream); transform: translateY(-2px); box-shadow: 0 18px 38px -16px rgba(22,61,68,0.85); }
.btn-aqua { background: linear-gradient(135deg, var(--c-aqua), var(--c-brand-light)); color: #fff; box-shadow: 0 14px 30px -16px rgba(63,163,179,0.7); }
.btn-aqua:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(63,163,179,0.9); }
.btn-ghost { background: transparent; color: var(--c-ink); border: 1px solid var(--c-rule); }
.btn-ghost:hover { background: var(--c-brand); color: var(--c-cream); border-color: var(--c-brand); }
.btn-light { background: rgba(244,239,228,0.14); color: var(--c-on-dark); border: 1px solid rgba(233,224,204,0.4); backdrop-filter: blur(4px); }
.btn-light:hover { background: var(--c-cream); color: var(--c-brand); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(5px); }

/* --- Section header --- */
.section-head { max-width: 760px; margin: 0 auto var(--gap-xl); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { margin: 0 auto var(--gap-sm); }
.section-head p { color: var(--c-ink-mute); font-size: 1.08rem; }
.section-head.left h2, .section-head.left p { margin-left: 0; }

/* --- Footer --- */
.footer {
  background: var(--c-brand-deep);
  color: var(--c-on-dark);
  padding: var(--gap-2xl) 0 var(--gap-lg);
  margin-top: 0;
  position: relative;
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-aqua), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: var(--gap-xl); align-items: start; }
.footer-brand h3 { font-family: var(--f-display); font-size: 1.7rem; color: var(--c-cream); margin-bottom: var(--gap-sm); }
.footer-brand p { color: var(--c-on-dark-mute); font-size: 0.94rem; line-height: 1.7; }
.footer-col h4 { font-family: var(--f-ui); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-aqua-glow); margin-bottom: var(--gap-md); font-weight: 600; }
.footer-col a, .footer-col p { display: block; padding: 0.32rem 0; font-family: var(--f-ui); font-size: 0.92rem; color: var(--c-on-dark-mute); line-height: 1.6; margin: 0; }
.footer-col a:hover { color: var(--c-cream); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--gap-md);
  padding-top: var(--gap-md); margin-top: var(--gap-xl);
  border-top: 1px solid rgba(233,224,204,0.14);
  font-family: var(--f-ui); font-size: 0.76rem; color: var(--c-on-dark-faint); letter-spacing: 0.04em;
}
.footer-bottom a { color: var(--c-on-dark-mute); }
.footer-bottom a:hover { color: var(--c-cream); }
.footer-zero { font-size: 0.72rem; color: var(--c-on-dark-faint); margin-top: var(--gap-sm); letter-spacing: 0.04em; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: var(--gap-lg); } }

/* --- Reveal entrance --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }
.reveal[data-delay="500"] { transition-delay: 500ms; }

/* --- Demo notice pill --- */
.demo-notice {
  position: fixed; bottom: 14px; left: 14px; z-index: 90;
  background: rgba(14, 43, 48, 0.92);
  color: var(--c-on-dark);
  font-family: var(--f-ui); font-size: 0.7rem; letter-spacing: 0.04em;
  padding: 0.5rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(111, 199, 212, 0.4);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,0.5);
  max-width: 290px; line-height: 1.4;
  backdrop-filter: blur(6px);
}
.demo-notice strong { color: var(--c-aqua-glow); }
@media (max-width: 600px) { .demo-notice { font-size: 0.62rem; max-width: 200px; bottom: 70px; } }

/* --- Sticky mobile CTA --- */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  padding: 0.7rem 1rem; gap: 0.6rem;
  background: rgba(14, 43, 48, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(111,199,212,0.3);
}
.mobile-cta a {
  flex: 1; text-align: center; padding: 0.85rem 0.5rem;
  font-family: var(--f-ui); font-size: 0.8rem; font-weight: 600; border-radius: 999px;
  letter-spacing: 0.04em;
}
.mobile-cta .call { background: rgba(244,239,228,0.12); color: var(--c-on-dark); border: 1px solid rgba(233,224,204,0.35); }
.mobile-cta .quote { background: var(--c-aqua); color: #06262b; }
@media (max-width: 760px) { .mobile-cta { display: flex; } body { padding-bottom: 64px; } }

:focus-visible { outline: 2px solid var(--c-aqua); outline-offset: 3px; }

@media print { .nav, .footer, .demo-notice, .mobile-cta, .scroll-progress { display: none; } }
