* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #0057ff;
  --blue-dark: #0041cc;
  --blue-light: #60a5fa;
  --blue-tint: #e8f0ff;
  --ink: #0f172a;
  --mid-blue: #1e2d5a;
  --muted: #475569;
  --gray: #94a3b8;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --nav-bg: rgba(255, 255, 255, 0.75);
  --nav-border: #e2e8f0;
  --card-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
  --dropdown-shadow: 0 8px 32px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.08);
  --blue-shadow: rgba(0, 87, 255, 0.28);
  --hover-border: #cbd5e1;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-pill: 100px;
}

/* dark variant, toggled via [data-theme="dark"] */
:root[data-theme="dark"] {
  --ink: #f5f6fa;
  --muted: #a8b3cf;
  --gray: #8891ab;
  --border: rgba(255, 255, 255, 0.09);
  --bg: #0b0d17;
  --bg-alt: #10121f;
  --surface: #161927;
  --surface-alt: #1c2033;
  --blue-tint: rgba(96, 165, 250, 0.14);
  --nav-bg: rgba(11, 13, 23, 0.6);
  --nav-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  --dropdown-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  --hover-border: rgba(255, 255, 255, 0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, "system-ui", sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { letter-spacing: -1px; }

/* ---------- navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.nav-inner {
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; color: var(--ink); white-space: nowrap; }
.logo .accent { color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 8px;
  border: 1.5px solid var(--border); background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1; padding: 0;
  transition: border-color 0.2s;
}
.theme-toggle:hover { border-color: var(--blue); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

.nav-menu-btn {
  width: 40px; height: 40px; border-radius: 8px;
  border: 1.5px solid var(--border); background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0;
  transition: border-color 0.2s;
}
.nav-menu-btn:hover { border-color: var(--blue); }
.nav-menu-btn span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; transform-origin: 50% 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-menu-btn.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.nav-dropdown {
  position: absolute; top: 64px; right: 32px; width: 220px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px;
  box-shadow: var(--dropdown-shadow);
  display: none; flex-direction: column; padding: 8px; z-index: 99;
}
.nav-dropdown.open { display: flex; }
.nav-dropdown a { padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--ink); border-radius: 8px; transition: all 0.15s; }
.nav-dropdown a:hover { background: var(--surface-alt); color: var(--blue); }
.nav-dropdown .dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 15px;
  padding: 14px 28px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-solid { background: var(--blue); color: #fff; box-shadow: 0 4px 16px var(--blue-shadow); }
.btn-solid:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 20px var(--blue-shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { padding: 88px 24px 80px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 87, 255, 0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { max-width: 700px; margin: 0 auto; position: relative; }
h1 { font-size: clamp(32px, 5.6vw, 52px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 18px; }
h1 .accent { color: var(--blue); }
.hero-subtitle { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0 auto; line-height: 1.7; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- generic section ---------- */
section { padding: 72px 24px; }
section.alt { background: var(--bg-alt); }
.eyebrow {
  color: var(--blue); font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px;
}
h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; letter-spacing: -0.8px; margin-bottom: 10px; }
.section-sub { color: var(--muted); font-size: 16px; max-width: 560px; margin: 0 auto 44px; line-height: 1.65; }
.center { text-align: center; }
.eyebrow.center, h2.center, p.center { margin-left: auto; margin-right: auto; }

/* ---------- aanbod grid ---------- */
.aanbod-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.car-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex; flex-direction: column;
}
.car-card:hover { transform: translateY(-4px); border-color: var(--hover-border); }

.car-photo {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(135deg, var(--surface-alt) 0px, var(--surface-alt) 14px, var(--bg-alt) 14px, var(--bg-alt) 28px);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
  color: var(--gray); position: relative;
}
.car-photo svg { width: 46px; height: 46px; opacity: 0.55; }
.car-photo span { font-size: 12px; font-weight: 600; color: var(--gray); }

.car-status {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}
.car-status[data-status="binnenkort"] { color: var(--blue); background: var(--blue-tint); border-color: transparent; }
.car-status[data-status="te-koop"] { color: #15803d; background: #dcfce7; border-color: transparent; }
:root[data-theme="dark"] .car-status[data-status="te-koop"] { color: #4ade80; background: rgba(74, 222, 128, 0.14); }
.car-status[data-status="verkocht"] { color: var(--gray); background: var(--surface-alt); border-color: transparent; text-decoration: line-through; }

.car-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.car-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.car-sub { font-size: 13px; color: var(--muted); }

.car-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.car-spec {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  background: var(--surface-alt); border: 1px solid var(--border);
  padding: 4px 9px; border-radius: 7px;
}

.car-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.car-footer {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.car-price {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 19px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums;
}
.car-price.tbd { font-size: 13px; font-weight: 600; color: var(--muted); font-family: inherit; }

/* empty-state card */
.car-card.more-soon {
  align-items: center; justify-content: center; text-align: center;
  padding: 40px 24px; color: var(--muted); gap: 8px;
  border-style: dashed;
}
.car-card.more-soon .icon { font-size: 26px; margin-bottom: 6px; }
.car-card.more-soon h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.car-card.more-soon p { font-size: 13px; }

/* ---------- over ons ---------- */
.about-text { max-width: 680px; margin: 0 auto; text-align: center; }
.about-text p { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 18px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--ink); }

.trait-row {
  max-width: 780px; margin: 36px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.trait {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px 18px; text-align: center; box-shadow: var(--card-shadow);
}
.trait .icon { font-size: 20px; margin-bottom: 8px; }
.trait h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.trait p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- contact ---------- */
.contact-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 40px 32px; box-shadow: var(--card-shadow);
}
.contact-row { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.contact-item {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  transition: border-color 0.15s, color 0.15s;
}
.contact-item:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- family closing ---------- */
.closing { text-align: center; }
.closing p { color: var(--muted); font-size: 16px; max-width: 540px; margin: 0 auto 28px; line-height: 1.7; }

/* ---------- footer ---------- */
.footer { padding: 40px 24px 28px; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-link { font-size: 14px; font-weight: 600; color: var(--muted); }
.footer-link:hover { color: var(--ink); }
.footer-bottom {
  max-width: 1140px; margin: 16px auto 0; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--gray); text-align: center; line-height: 1.7;
}

/* ---------- whatsapp floating button ---------- */
.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease;
}
.whatsapp-fab:hover { transform: translateY(-2px) scale(1.04); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  section { padding: 56px 20px; }
  .trait-row { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
}
