/* LDM Cars — custom styles beyond Tailwind */

/* Fonts loaded via index.html <link> from fonts.googleapis.com */

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: #1A1F26;
  background-color: #F4F1EA;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Atmosphere backgrounds ---------- */
.atmosphere-light {
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(201, 163, 104, 0.06) 0%, transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(14, 18, 22, 0.04) 0%, transparent 70%),
    #F4F1EA;
}
.atmosphere-dark {
  background:
    radial-gradient(120% 80% at 30% 0%, rgba(201, 163, 104, 0.10) 0%, transparent 60%),
    radial-gradient(70% 60% at 100% 100%, rgba(201, 163, 104, 0.06) 0%, transparent 70%),
    #0E1216;
  color: #E8E4DA;
}

/* Subtle film grain on light atmosphere panels */
.grain::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Underline link ---------- */
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.link-underline:hover::after,
.link-underline:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
              background-color 200ms ease,
              color 200ms ease,
              box-shadow 220ms ease;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid #C9A368; outline-offset: 3px; }

.btn-primary {
  background: #C9A368; color: #0E1216;
  box-shadow: 0 10px 30px -16px rgba(201, 163, 104, 0.7);
}
.btn-primary:hover { background: #A98850; transform: translateY(-1px); }
.btn-primary:hover:active { transform: scale(0.97); }

.btn-ghost {
  background: transparent; color: #1A1F26;
  border: 1px solid rgba(26, 31, 38, 0.18);
}
.btn-ghost:hover { background: rgba(14, 18, 22, 0.05); border-color: rgba(26, 31, 38, 0.35); }

.btn-on-dark {
  background: transparent; color: #E8E4DA;
  border: 1px solid rgba(232, 228, 218, 0.22);
}
.btn-on-dark:hover { background: rgba(232, 228, 218, 0.08); border-color: rgba(232, 228, 218, 0.45); }

/* ---------- Header / nav ---------- */
#nav {
  background: rgba(244, 241, 234, 0.96);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(14, 18, 22, 0.16);
  box-shadow:
    0 10px 28px -18px rgba(14, 18, 22, 0.32),
    0 2px 8px -4px rgba(14, 18, 22, 0.12);
}
.nav-strip {
  height: 88px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .nav-strip { height: 104px; }
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0E1216;
}
.site-brand .accent { color: #C9A368; }
/* Footer wordmark sits on dark anthracite: outline "LDM" so the dark
   letters stay visible (white edge via layered text-shadow). */
.brand-ldm {
  color: #0E1216;
  text-shadow:
     1px  0   0 #F4F1EA, -1px  0   0 #F4F1EA,
     0    1px 0 #F4F1EA,  0   -1px 0 #F4F1EA,
     1px  1px 0 #F4F1EA, -1px -1px 0 #F4F1EA,
     1px -1px 0 #F4F1EA, -1px  1px 0 #F4F1EA;
}
.brand-mark {
  display: block;
  height: 38px;
  width: auto;
}
@media (min-width: 768px) {
  .site-brand { font-size: 1.4rem; }
  .brand-mark { height: 44px; }
}
#nav nav a.link-underline {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(14, 18, 22, 0.82);
  transition: color 240ms ease;
}
#nav nav a.link-underline:hover { color: #0E1216; }

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  padding: 0; background: transparent; border: 0; cursor: pointer;
  position: relative;
}
.nav-toggle-bar {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background-color: #0E1216;
  border-radius: 1px;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-toggle-bar:nth-child(1) { top: 14px; }
.nav-toggle-bar:nth-child(2) { top: 19.5px; }
.nav-toggle-bar:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-menu {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(244, 241, 234, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(14, 18, 22, 0.1);
  max-height: 0; overflow: hidden;
  transition: max-height 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-menu[data-open="true"] { max-height: 420px; }
.nav-menu ul { padding: 12px 24px 20px; margin: 0; list-style: none; }
.nav-menu li { border-top: 1px solid rgba(14, 18, 22, 0.06); }
.nav-menu li:first-child { border-top: 0; }
.nav-menu a {
  display: block; padding: 14px 4px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(14, 18, 22, 0.85);
}
.nav-menu a:hover { color: #0E1216; }
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-menu   { display: none !important; }
}

/* ---------- Car cards ---------- */
.car-card {
  display: flex; flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(14, 18, 22, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 18px 50px -30px rgba(14, 18, 22, 0.55), 0 4px 14px -8px rgba(14, 18, 22, 0.25);
}
.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px -28px rgba(14, 18, 22, 0.65), 0 6px 18px -8px rgba(14, 18, 22, 0.35);
}
.car-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1A1F26;
}
.car-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.car-card:hover .car-card-img img { transform: scale(1.04); }
.car-card-body { padding: 20px 22px 22px; }
.car-card-brand {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(14, 18, 22, 0.55);
}
.car-card-title {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-top: 4px;
  color: #0E1216;
}
.car-card-meta {
  display: flex; flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: 12.5px;
  color: rgba(14, 18, 22, 0.7);
}
.car-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.car-card-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(14, 18, 22, 0.08);
}
.car-card-price {
  font-weight: 700; font-size: 18px;
  color: #0E1216;
}
.car-card-price .on-request {
  font-weight: 500; font-size: 13px;
  color: rgba(14, 18, 22, 0.7);
  letter-spacing: 0.02em;
}

.status-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.status-beschikbaar {
  background: rgba(201, 163, 104, 0.15);
  color: #815F26;
}
.status-verkocht {
  background: rgba(14, 18, 22, 0.85);
  color: #E8E4DA;
}
.car-card.is-verkocht .car-card-img img { filter: grayscale(0.4) brightness(0.92); }

/* ---------- Detail page ---------- */
.spec-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px;
}
@media (min-width: 768px) {
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
}
.spec-grid dt {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(14, 18, 22, 0.55);
}
.spec-grid dd {
  font-size: 15px; font-weight: 600; color: #0E1216; margin: 2px 0 0;
}

/* Vehicle description: paragraphs + bullet list */
.car-desc { margin-top: 14px; max-width: 66ch; }
.car-desc > :first-child { margin-top: 0; }
.car-desc p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(14, 18, 22, 0.72);
  margin: 0 0 14px;
}
.car-desc p:first-child {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0E1216;
  line-height: 1.5;
}
.car-desc > p:last-child { margin-bottom: 0; }
.car-desc ul.desc-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.car-desc ul.desc-list li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(14, 18, 22, 0.78);
}
.car-desc ul.desc-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 12px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #C9A368;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #1A1F26;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery a:hover img { transform: scale(1.04); }

/* ---------- Lightbox (same pattern as Lamsoor 63, simplified) ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(14, 18, 22, 0.82) 0%, rgba(0, 0, 0, 0.96) 70%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.lb-open { display: flex; opacity: 1; }
.lb-figure {
  position: relative; margin: 0;
  max-width: min(88vw, 1280px); max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding-top: 28px;
}
.lb-img {
  display: block; max-width: 100%; max-height: 72vh;
  object-fit: contain; border-radius: 12px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), 0 8px 24px -10px rgba(0, 0, 0, 0.4);
}
.lb-counter {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  color: rgba(232, 228, 218, 0.6);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.lb-btn {
  position: absolute; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; padding: 0;
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.96); color: #0E1216;
  border: 1px solid rgba(244, 241, 234, 0.2);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background-color 160ms ease;
}
.lb-btn:hover { background: #ffffff; }
.lb-btn:focus-visible { outline: 2px solid #C9A368; outline-offset: 3px; }
.lb-close { top: 20px; right: 20px; width: 44px; height: 44px; }
.lb-close:hover { transform: scale(1.06); }
.lb-close:active { transform: scale(0.94); }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(0.94); }

@media (max-width: 640px) {
  .lightbox { padding: 12px; }
  .lb-btn { width: 44px; height: 44px; }
  .lb-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
}

/* ---------- Services (diensten) ---------- */
.svc-anchor { scroll-margin-top: 120px; }

.svc-row + .svc-row { margin-top: 56px; }
@media (min-width: 768px) { .svc-row + .svc-row { margin-top: 92px; } }

.svc-panel {
  position: relative;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(201, 163, 104, 0.12) 0%, transparent 55%),
    #0E1216;
  color: #E8E4DA;
  border: 1px solid rgba(201, 163, 104, 0.16);
  border-radius: 24px;
  padding: 38px 34px;
  box-shadow:
    0 28px 70px -34px rgba(14, 18, 22, 0.6),
    0 6px 18px -10px rgba(14, 18, 22, 0.3);
  overflow: hidden;
}
.svc-num {
  display: inline-block;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  color: rgba(201, 163, 104, 0.85);
}
.svc-list { list-style: none; padding: 0; margin: 20px 0 0; }
.svc-list li {
  position: relative;
  padding: 13px 0 13px 28px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(232, 228, 218, 0.9);
  border-top: 1px solid rgba(232, 228, 218, 0.1);
}
.svc-list li:first-child { border-top: 0; }
.svc-list li::before {
  content: "";
  position: absolute; left: 3px; top: 20px;
  width: 7px; height: 7px; border-radius: 999px;
  background: #C9A368;
  box-shadow: 0 0 0 4px rgba(201, 163, 104, 0.15);
}

/* ---------- Partner-logo's ---------- */
.partner-logo {
  display: block;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  margin-bottom: 22px;
}
.partner-logo--rs     { height: 60px; }
.partner-logo--tint   { height: 56px; }
.partner-logo--import { height: 46px; }

/* ---------- Coating-pakketten (partners) ---------- */
.pkg-card {
  position: relative;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(201, 163, 104, 0.08) 0%, transparent 55%),
    #1A1F26;
  border: 1px solid rgba(232, 228, 218, 0.12);
  border-radius: 22px;
  padding: 30px 28px 32px;
  box-shadow:
    0 24px 60px -34px rgba(0, 0, 0, 0.6),
    0 6px 18px -10px rgba(0, 0, 0, 0.35);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 320ms ease;
}
.pkg-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 163, 104, 0.35);
  box-shadow:
    0 34px 80px -34px rgba(0, 0, 0, 0.7),
    0 8px 22px -10px rgba(0, 0, 0, 0.45);
}
.pkg-card--featured {
  border-color: rgba(201, 163, 104, 0.55);
  box-shadow:
    0 30px 76px -30px rgba(201, 163, 104, 0.28),
    0 8px 22px -10px rgba(0, 0, 0, 0.5);
}
.pkg-badge {
  position: absolute; top: -11px; left: 28px;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #C9A368; color: #0E1216;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.pkg-tier {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(201, 163, 104, 0.9);
}
.pkg-price {
  margin-top: 10px;
  font-size: 2.1rem; font-weight: 700;
  letter-spacing: -0.025em;
  color: #F4F1EA;
}
.pkg-price-note {
  margin-left: 8px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(232, 228, 218, 0.4);
  vertical-align: middle;
}
.pkg-list { list-style: none; padding: 0; margin: 22px 0 0; }
.pkg-list li {
  position: relative;
  padding: 11px 0 11px 26px;
  font-size: 14.5px; line-height: 1.55;
  color: rgba(232, 228, 218, 0.88);
  border-top: 1px solid rgba(232, 228, 218, 0.08);
}
.pkg-list li:first-child { border-top: 0; }
.pkg-list li em { color: #C9A368; font-style: normal; font-weight: 600; }
.pkg-list li::before {
  content: "";
  position: absolute; left: 2px; top: 18px;
  width: 6px; height: 6px; border-radius: 999px;
  background: #C9A368;
  box-shadow: 0 0 0 4px rgba(201, 163, 104, 0.15);
}

/* ---------- Skeleton / loading state ---------- */
.skeleton {
  position: relative;
  background: linear-gradient(90deg, rgba(14, 18, 22, 0.04) 0%, rgba(14, 18, 22, 0.08) 50%, rgba(14, 18, 22, 0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 14px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Reveal-on-scroll (handled by JS) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1; transform: translateY(0);
}
