/* ============================================================
   CAMPER VAN GOGH — Design System v3
   Shared across: index.html · gallery.html · booking.html
   Mobile-first. One source of truth for every token.
   ============================================================ */

/* ── § 1. Design tokens ─────────────────────────────────── */
:root {
  /* Surfaces (layered dark) */
  --bg-0: #0a0a0b;
  --bg-1: #111113;
  --bg-2: #18181b;
  --bg-3: #202024;

  /* Accent — champagne gold */
  --gold:       #c9a96e;
  --gold-light: #ddc492;
  --gold-dark:  #a0824a;
  --gold-08:    rgba(201, 169, 110, 0.08);
  --gold-15:    rgba(201, 169, 110, 0.15);
  --gold-30:    rgba(201, 169, 110, 0.30);

  /* Text */
  --ink:   #f3eee4;
  --ink-2: rgba(243, 238, 228, 0.68);
  --ink-3: rgba(243, 238, 228, 0.45);

  /* Lines & feedback */
  --line:      rgba(255, 255, 255, 0.08);
  --line-gold: rgba(201, 169, 110, 0.16);
  --success:   #34c77b;
  --error:     #e5484d;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-h1: clamp(2.75rem, 7vw + 1rem, 5.5rem);
  --fs-h2: clamp(1.9rem, 3.5vw + 0.75rem, 3rem);
  --fs-h3: clamp(1.2rem, 1vw + 1rem, 1.45rem);

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: clamp(56px, 10vw, 112px);
  --inline-pad: clamp(20px, 4vw, 32px);

  /* Radii — one for surfaces, one for pills */
  --r-md: 14px;
  --r-pill: 100px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.18s var(--ease);
  --t-base: 0.3s var(--ease);

  /* Shadow */
  --shadow-1: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 16px 48px rgba(0, 0, 0, 0.5);

  /* Layout */
  --content-w: 1180px;
  --header-h: 72px;
}

/* ── § 2. Reset & base ──────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--bg-0);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-0);
  min-height: 100svh;
  overflow-x: clip;
}

::selection { background: var(--gold); color: var(--bg-0); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
svg.icon {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; display: inline-block; vertical-align: -0.12em;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); }
p  { color: var(--ink-2); max-width: 65ch; }

.gold { color: var(--gold); }

/* ── § 3. Layout helpers ────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--inline-pad);
}

.section { padding-block: var(--section-y); }
.bg-raised { background: var(--bg-1); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: var(--s-4);
}
.section-eyebrow::before {
  content: '';
  width: 28px; height: 1.5px;
  background: var(--gold);
  opacity: 0.7;
}
.section-eyebrow--center::after {
  content: '';
  width: 28px; height: 1.5px;
  background: var(--gold);
  opacity: 0.7;
}

.section-head { margin-bottom: clamp(36px, 6vw, 64px); }
.section-head--center { text-align: center; }
.section-head--center .section-sub { margin-inline: auto; }
.section-sub {
  margin-top: var(--s-4);
  color: var(--ink-2);
  max-width: 560px;
}

/* ── § 4. Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 32px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--t-base), box-shadow var(--t-base),
              background var(--t-base), color var(--t-base), border-color var(--t-base);
}
.btn:active { transform: translateY(1px); }

.btn--gold {
  background: var(--gold);
  color: var(--bg-0);
  border: 1.5px solid var(--gold);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg-0);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(243, 238, 228, 0.25);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn--lg { padding: 16px 44px; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* ── § 5. Header ────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t-base), border-color var(--t-base), height var(--t-base);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 60px;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--inline-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand img { height: 46px; width: auto; transition: height var(--t-base); }
.scrolled .brand img { height: 38px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.site-nav { display: flex; align-items: center; gap: var(--s-2); }
.site-nav__link {
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-radius: var(--r-pill);
}
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: var(--gold); }
.site-nav .btn { margin-left: var(--s-3); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
}
.nav-toggle svg.icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: var(--s-3);
    background: rgba(10, 10, 11, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), visibility var(--t-base);
  }
  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav__link {
    font-size: 1.05rem;
    padding: 14px 24px;
    letter-spacing: 0.18em;
  }
  .site-nav .btn { margin: var(--s-4) 0 0; }
  body.nav-locked { overflow: hidden; }
}

/* ── § 6. Mobile sticky CTA bar ─────────────────────────── */
.cta-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 10px var(--inline-pad);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line-gold);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}
.cta-bar.visible { transform: translateY(0); }
.cta-bar__price { font-size: 0.82rem; color: var(--ink-2); line-height: 1.3; }
.cta-bar__price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}
.cta-bar .btn { min-height: 44px; padding: 10px 26px; }
@media (max-width: 860px) { .cta-bar { display: flex; } }

/* ── § 7. Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 68%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10, 10, 11, 0.72) 0%,
    rgba(10, 10, 11, 0.38) 42%,
    rgba(10, 10, 11, 0.3) 62%,
    rgba(10, 10, 11, 0.88) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--header-h) + 24px) var(--inline-pad) 80px;
  max-width: 880px;
}
.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-5);
}
.hero__title { margin-bottom: var(--s-5); }
.hero__title span { display: block; }
.hero__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--ink-2);
  margin: 0 auto var(--s-2);
}
.hero__tag {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin: 0 auto var(--s-7);
}
.hero__actions {
  display: flex;
  gap: var(--s-4);
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__scroll::after {
  content: '';
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
@media (max-width: 860px) {
  .hero__scroll { display: none; }
}

/* ── § 8. Cards & FAQ ───────────────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow-1);
}

.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base);
}
.faq-item[open] { border-color: var(--line-gold); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  min-height: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-item summary svg.icon {
  color: var(--gold);
  transition: transform var(--t-base);
}
.faq-item[open] summary svg.icon { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 22px; font-size: 0.95rem; line-height: 1.75; max-width: none; }
.faq-item p strong { color: var(--ink); }

/* ── § 9. Forms ─────────────────────────────────────────── */
.field { margin-bottom: var(--s-5); }
.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-size: 1rem; /* ≥16px prevents iOS zoom */
  color: var(--ink);
  outline: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }
.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-08);
}

/* ── § 10. Footer ───────────────────────────────────────── */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: var(--s-9) 0 var(--s-6);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1fr 1.1fr; }
}
.site-footer__brand img { height: 88px; width: auto; }
.site-footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-3);
  margin: var(--s-3) 0 var(--s-5);
}
.site-footer__detail {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 0.92rem;
  margin-bottom: var(--s-2);
}
.site-footer__detail svg.icon { color: var(--gold); }
.site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-top: var(--s-4);
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  color: var(--ink-2);
  transition: color var(--t-base), border-color var(--t-base), background var(--t-base);
}
.site-footer__social:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-08);
}
.site-footer__form-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: var(--s-5);
}
.site-footer__bottom {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-3);
}
.site-footer__bottom a:hover { color: var(--gold); }

/* ── § 11. Reveal animations ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.active { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ── § 12. Utilities ────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
