/* ==========================================================================
   Laika Ecovip Evoluzione x Camper Brühwiler — Landingpage
   Font: Red Hat Display (self-hosted)
   Accent: #d5342f — echtes Camper-Brühwiler-CD (nicht die Laika-Eigenfarbe),
   aber hochwertig/editorial im "Laika-Stil" umgesetzt: grosse Bilder,
   grosszuegiger Weissraum, ruhige aber reichhaltige Bewegung.
   ========================================================================== */

@font-face {
  font-family: "Red Hat Display";
  src: url("../assets/fonts/redhatdisplay-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #d5342f;
  --accent-strong: #b8241f;
  --accent-soft: #fbe7e6;

  --bg: #faf9f6;
  --bg-alt: #f2ede8;
  --surface: #ffffff;
  --ink: #1c1a19;
  --ink-soft: #5c5551;
  --line: rgba(28, 26, 25, 0.12);
  --radius: 14px;

  --shadow-soft: 0 30px 70px -30px rgba(28, 26, 25, 0.4);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Fine film-grain, laid over dark surfaces only: the texture that separates a
   flat digital photo from something that feels shot and graded. Cheap single
   SVG noise tile, blended so it reads as texture, not visible speckle. */
.grain { position: relative; }
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05; mix-blend-mode: overlay;
}

/* Subtle cinematic grade on photography: a touch more contrast and
   saturation than the raw file, consistent across every photo on the page. */
.hero-media img, .feature-media img, .break-img img, .booking-media img, .spec-strip-media img {
  filter: saturate(1.08) contrast(1.04);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
p { margin: 0; color: var(--ink-soft); line-height: 1.7; }

/* ---------------------------------- buttons ------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  white-space: nowrap; padding: 1em 2.1em; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 0.96rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  position: relative; overflow: hidden;
  background: var(--accent); color: #fffdfc; box-shadow: 0 16px 34px -16px rgba(184, 36, 31, 0.55);
}
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 253, 252, 0.32), transparent);
  transform: skewX(-18deg); transition: left 0.65s var(--ease-out);
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(184, 36, 31, 0.65); }
.btn-ghost { background: transparent; color: #fffdfc; border-color: rgba(255, 253, 252, 0.5); }
.btn-ghost:hover { background: rgba(255, 253, 252, 0.14); transform: translateY(-2px); }

/* ---------------------------------- nav ---------------------------------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 76px;
  display: flex; align-items: center;
  background: rgba(250, 249, 246, 0);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.nav.is-scrolled { background: rgba(250, 249, 246, 0.9); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }

.nav .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img.dealer { height: 26px; width: auto; filter: brightness(0) invert(1); transition: filter 0.4s var(--ease-out); }
.nav.is-scrolled .logo img.dealer { filter: none; }
.logo-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.4); transition: background 0.4s var(--ease-out); }
.nav.is-scrolled .logo-divider { background: var(--line); }
.logo img.laika { height: 22px; width: auto; filter: brightness(0) invert(1); transition: filter 0.4s var(--ease-out); }
.nav.is-scrolled .logo img.laika { filter: none; }
.nav-cta { padding: 0.7em 1.5em; font-size: 0.86rem; }

/* ---------------------------------- hero (centered manifesto) ------------- */

.hero {
  position: relative; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
  transform: scale(1.06); animation: kenburns-slow 28s ease-in-out infinite alternate;
}
@keyframes kenburns-slow {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-1%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) { .hero-media img { animation: none; transform: none; } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.35) 0%, rgba(10, 8, 6, 0.22) 40%, rgba(8, 6, 5, 0.72) 100%);
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; padding: 0 20px; }

/* Staggered entrance on load: the hero is visible immediately (no scroll
   needed to trigger it), so this runs as a plain CSS animation instead of
   the IntersectionObserver-driven .reveal system used further down. */
.hero-eyebrow,
.hero h1,
.hero p.lead,
.hero-actions {
  opacity: 0;
  animation: heroRise 1s var(--ease-out) forwards;
}
.hero-eyebrow { animation-delay: 0.15s; }
.hero h1 { animation-delay: 0.3s; }
.hero p.lead { animation-delay: 0.45s; }
.hero-actions { animation-delay: 0.6s; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero p.lead, .hero-actions { animation: none; opacity: 1; transform: none; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 253, 252, 0.85); margin-bottom: 24px;
}
.hero h1 { color: #fffdfc; font-size: clamp(2.6rem, 6.4vw, 5rem); text-wrap: balance; margin-bottom: 20px; text-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.hero p.lead { color: rgba(255, 253, 252, 0.88); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 52ch; margin: 0 auto 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 40px; background: rgba(255,255,255,0.4);
  z-index: 1;
}
.hero-scroll::after {
  content: ""; position: absolute; top: 0; left: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: #fff; animation: scrollDot 2.2s ease-in-out infinite;
}
@keyframes scrollDot { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll::after { animation: none; top: 50%; } }

/* ---------------------------------- reveal -------------------------------- */

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Directional slide-in for the feature rows: copy slides in from the side it
   sits on, crossing past the image, which motivates the movement (it
   reinforces which side the text "belongs" to) instead of a generic fade. */
.slide-right { opacity: 0; transform: translateX(52px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.slide-right.is-visible { opacity: 1; transform: none; }
.slide-left { opacity: 0; transform: translateX(-52px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.slide-left.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .slide-right, .slide-left { opacity: 1; transform: none; transition: none; }
}

/* Bigger zoom-into-place for photography: image starts noticeably larger and
   settles as it enters view, on top of the slow ambient Kenburns loop. */
.fade-img { opacity: 0; transform: scale(1.16); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
.fade-img.is-visible { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .fade-img { opacity: 1; transform: none; transition: none; } }

/* Staggered children: apply to a .reveal parent to cascade its direct
   children in one after another instead of popping in together. */
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) { .stagger > * { opacity: 1; transform: none; transition: none; } }

/* ---------------------------------- sections ------------------------------ */

section { padding: clamp(72px, 10vw, 148px) 0; }

.section-eyebrow { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 16px; }

/* ---------------------------------- spec strip ----------------------------- */

.spec-strip { position: relative; background: #14100e; color: #fffdfc; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0; }
.spec-strip-media { position: absolute; inset: 0; z-index: 0; opacity: 0.22; }
.spec-strip-media img { width: 100%; height: 100%; object-fit: cover; }
.spec-strip .wrap { position: relative; z-index: 2; }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.spec-item { text-align: center; }
.spec-item .v { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 8px; }
.spec-item .l { font-size: 0.86rem; color: rgba(255, 253, 252, 0.62); }

/* ---------------------------------- feature rows --------------------------- */

.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(72px, 10vw, 128px); }
.feature-row.reverse .feature-media { order: 2; }
.feature-row.reverse .feature-copy { order: 1; }

.feature-media {
  --py: 0px;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255, 253, 252, 0.14);
  transform: translateY(var(--py));
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.feature-media:hover img { transform: scale(1.06); }

.feature-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 16px; }
.feature-copy p { max-width: 42ch; font-size: 1.02rem; }

/* ---------------------------------- grundriss ------------------------------ */

.plan-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.plan-media {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(16px, 3vw, 32px);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.plan-copy h2 { margin-bottom: 14px; }
.plan-intro { margin-bottom: 28px; max-width: 46ch; }

.plan-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.plan-list li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; font-size: 0.94rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.plan-list li:last-child { border-bottom: none; padding-bottom: 0; }
.plan-list li span:first-child { font-weight: 700; color: var(--ink); }
.plan-list li span:last-child { color: var(--ink-soft); }

.plan-dims { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan-dims li { display: flex; flex-direction: column; gap: 4px; }
.plan-dims li span:first-child { font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; }
.plan-dims li span:last-child { font-weight: 800; font-size: 1.05rem; }

/* ---------------------------------- design & material ----------------------- */

.materials { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 84px) 0; }
.materials .section-eyebrow { text-align: center; }
.materials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 8px; }
.material-item { text-align: center; padding: 0 12px; border-left: 1px solid var(--line); }
.material-item:first-child { border-left: none; }
.material-item .l { display: block; font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; }
.material-item .v { font-size: 1.1rem; font-weight: 700; color: var(--ink); }

/* ---------------------------------- dolce vita ----------------------------- */

.dolcevita { background: var(--bg-alt); text-align: center; }
.dolcevita-inner { max-width: 760px; margin: 0 auto; }
.dolcevita h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 24px; }
.dolcevita h2 em { color: var(--accent-strong); font-style: italic; }
.dolcevita p { font-size: clamp(1.02rem, 1.6vw, 1.15rem); max-width: 56ch; margin: 0 auto 34px; }

/* ---------------------------------- image break ---------------------------- */

.break-img { width: 100%; aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.break-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  transform: scale(1.04); animation: kenburns-slow 24s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) { .break-img img { animation: none; transform: none; } }

/* ---------------------------------- booking -------------------------------- */

.booking { position: relative; overflow: hidden; color: #fffdfc; }
.booking-media { position: absolute; inset: 0; z-index: -2; }
.booking-media img { width: 100%; height: 100%; object-fit: cover; }
.booking-media::after { content: ""; position: absolute; inset: 0; background: rgba(10, 8, 6, 0.88); }
.booking .wrap { position: relative; z-index: 2; }

.booking-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.booking-head .section-eyebrow { color: #f4cdca; }
.booking-head h2 { color: #fffdfc; margin-bottom: 16px; }
.booking-head p { color: rgba(255, 253, 252, 0.78); max-width: 52ch; margin: 0 auto; }

.cal-embed-placeholder {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  border-radius: var(--radius); padding: clamp(32px, 5vw, 56px);
  border: 1px dashed rgba(255, 253, 252, 0.3); max-width: 640px; margin: 0 auto;
}
.cal-embed-placeholder strong { font-size: 1.2rem; color: #fffdfc; }
.cal-embed-placeholder p { max-width: 44ch; font-size: 0.96rem; color: rgba(255, 253, 252, 0.72); }
.cal-placeholder-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; justify-content: center; }
.cal-placeholder-actions .btn-ghost:hover { background: #fff; color: var(--accent-strong); }

/* ---------------------------------- footer -------------------------------- */

footer { position: relative; background: #14100e; color: rgba(255, 253, 252, 0.82); padding: clamp(56px, 8vw, 96px) 0 32px; }
footer .wrap { position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 253, 252, 0.14); }
.footer-brand .logo img { height: 26px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255, 253, 252, 0.6); max-width: 34ch; font-size: 0.92rem; margin: 16px 0 0; }
footer h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 253, 252, 0.55); margin-bottom: 18px; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 0.94rem; color: rgba(255, 253, 252, 0.78); }
footer a { text-decoration: none; color: inherit; transition: color 0.2s; }
footer a:hover { color: var(--accent-strong); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.82rem; color: rgba(255, 253, 252, 0.5); }

/* ---------------------------------- responsive ---------------------------- */

@media (max-width: 900px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-dims { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .materials-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .material-item:nth-child(3) { border-left: none; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media,
  .feature-row.reverse .feature-copy { order: initial; }
  .footer-grid { grid-template-columns: 1fr; }
}
