/* ============================================================
   De Leest Detailing — dark premium theme
   ============================================================ */

:root {
  --bg: #0b0d10;
  --bg-alt: #0e1116;
  --panel: #14171c;
  --panel-border: #23282f;
  --text: #e9ecf1;
  --muted: #9aa3ad;
  --accent: #7fb4d8;
  --accent-2: #a8cbe4;
  --accent-grad: linear-gradient(120deg, #7fb4d8, #a8cbe4);
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font-head: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3.group-title {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 3.5rem 0 1.5rem;
}

.container { width: min(1140px, 92%); margin: 0 auto; }

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.9rem;
}

.section { padding: 6rem 0; scroll-margin-top: calc(var(--header-h) + 0.5rem); }
.section-alt { background: var(--bg-alt); }
.section-intro { max-width: 620px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--accent-grad);
  color: #0b0d10;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(127, 180, 216, 0.35); }
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--panel-border);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.logo-text em { font-style: normal; color: var(--accent); }

.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* ---------- Social links ---------- */
.social-links { display: flex; align-items: center; gap: 1.15rem; }
.social-links a {
  display: inline-flex;
  color: #fff;
  transition: color 0.2s ease, transform 0.2s ease;
}
.social-links a svg { width: 20px; height: 20px; }
.social-links a:hover { color: var(--accent-2); transform: translateY(-2px); }
.footer-social a svg { width: 22px; height: 22px; }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.lang-toggle { display: flex; align-items: center; gap: 0.3rem; }
.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  font: 600 0.82rem var(--font-head);
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  transition: color 0.2s ease;
}
.lang-btn.active { color: var(--accent); }
.lang-btn:hover { color: var(--text); }
.lang-sep { color: var(--panel-border); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg, .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(11, 13, 16, 0.35) 55%),
    linear-gradient(100deg, rgba(11, 13, 16, 0.88) 20%, rgba(11, 13, 16, 0.35) 75%);
}
.hero-content { position: relative; z-index: 1; padding: calc(var(--header-h) + 3rem) 0 5rem; max-width: 720px; }
.hero-sub { color: #c3cad3; font-size: 1.12rem; margin: 1.4rem 0 2.4rem; max-width: 540px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 2.4rem 1.8rem 1.8rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(127, 180, 216, 0.4); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card h4 { font-size: 1.15rem; margin-bottom: 0.7rem; padding-right: 2.6rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card-num {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.2rem;
  color: rgba(127, 180, 216, 0.16);
}
.card-flat { padding-top: 1.8rem; }
.card-flat:hover { transform: none; }

/* ---------- Motorcycle block ---------- */
.moto-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
.moto-media img {
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.moto-body { display: flex; flex-direction: column; gap: 1.4rem; }

.lube-box {
  background: linear-gradient(145deg, rgba(127, 180, 216, 0.10), rgba(127, 180, 216, 0.03));
  border: 1px solid rgba(127, 180, 216, 0.35);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.lube-box > h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.lube-box > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; }
.lube-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.lube-option {
  background: rgba(11, 13, 16, 0.55);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.lube-option h5 { font-size: 0.95rem; color: var(--accent-2); margin-bottom: 0.35rem; }
.lube-option p { color: var(--muted); font-size: 0.87rem; }

/* ---------- Pricing page ---------- */
.pricing-hero { padding-top: calc(var(--header-h) + 4rem); }
.pricing-hero .section-intro, .pricing-intro { margin-bottom: 3rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding-top: 1.8rem;
}
.price-card:hover { transform: none; }
.price-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.price-tag { color: var(--muted); font-size: 0.9rem; min-height: 3.6em; }
.price {
  margin: 1.1rem 0 1.3rem;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.price-from { color: var(--muted); font-size: 0.85rem; }
.price-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: -0.01em;
}
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #c3cad3;
}
.check { width: 17px; height: 17px; flex: none; color: var(--accent); margin-top: 0.2em; }
.price-card .btn { margin-top: auto; }

.price-card-featured {
  border-color: rgba(127, 180, 216, 0.55);
  background: linear-gradient(160deg, rgba(127, 180, 216, 0.10), rgba(127, 180, 216, 0.02) 45%), var(--panel);
}
.price-card-featured::before { opacity: 1; }
.price-card-featured h3 { padding-right: 5.4rem; }
.price-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--accent-grad);
  color: #0b0d10;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}
.pricing-note { color: var(--muted); font-size: 0.88rem; margin-top: 1.4rem; max-width: 620px; }
.pricing-note + .pricing-note { margin-top: 0.4rem; }
.services-pricing-cta { margin-top: 3rem; text-align: center; }

/* Comparison table */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  margin-top: 2.2rem;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.compare-table th, .compare-table td {
  padding: 0.8rem 1.1rem;
  text-align: center;
  border-bottom: 1px solid var(--panel-border);
}
.compare-table th:first-child, .compare-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--bg-alt);
  min-width: 200px;
}
.compare-table thead th {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  background: var(--panel);
  border-bottom: 2px solid rgba(127, 180, 216, 0.35);
  white-space: nowrap;
}
.compare-table thead th:first-child { background: var(--panel); }
.compare-table tbody tr { transition: background 0.15s ease; }
.compare-table tbody tr:hover { background: rgba(127, 180, 216, 0.05); }
.compare-table tbody tr:hover td:first-child { background: #12161b; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .check { margin: 0 auto; }
.no-check { color: #4a525b; }
.compare-table .col-featured { background: rgba(127, 180, 216, 0.07); }
.compare-table tfoot td {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 2px solid rgba(127, 180, 216, 0.35);
  border-bottom: none;
  background: var(--panel);
}
.compare-table tfoot td:first-child { background: var(--panel); }

/* CTA band */
.cta-band {
  background: linear-gradient(145deg, rgba(127, 180, 216, 0.10), rgba(127, 180, 216, 0.03));
  border: 1px solid rgba(127, 180, 216, 0.35);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.7rem; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 1.8rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-body p { color: var(--muted); margin-bottom: 1.1rem; }
.about-media img {
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.standards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.standards li {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.standards strong { font-family: var(--font-head); font-size: 0.95rem; color: var(--accent-2); }
.standards span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-grid figure {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  aspect-ratio: 1;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(0.9);
}
.gallery-grid figure:hover img { transform: scale(1.06); filter: saturate(1.15); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-body p { color: var(--muted); }
.contact-note { margin-top: 1.2rem; font-size: 0.9rem; }

.hours {
  margin-top: 1.6rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.hours-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 0.8rem;
}
.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}
.hours-list li span:first-child { color: var(--muted); }
.hours-list li span:last-child { color: var(--text); white-space: nowrap; }
.hours-note {
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--panel-border);
  font-size: 0.88rem;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-2);
}
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 9px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font: 400 0.95rem var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(127, 180, 216, 0.18);
}
.field input::placeholder,
.field textarea::placeholder { color: #5d6670; }

.form-status { font-size: 0.92rem; min-height: 1.2em; }
.form-status.success { color: #8fd6a0; }
.form-status.error { color: #e89a9a; }

.form-call {
  border-top: 1px solid var(--panel-border);
  padding-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.form-call a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.form-call a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-tag { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }
.site-footer .logo { margin-bottom: 0.9rem; }
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.2rem;
}
.footer-social-top { display: none; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { color: #fff; text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--accent-2); }
.footer-copy {
  text-align: center;
  color: #5d6670;
  font-size: 0.82rem;
  margin-top: 2.5rem;
}

/* ---------- Reveal animations ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .moto-block,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .moto-media img { aspect-ratio: 16 / 10; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .about-media { order: -1; }
  .header-social { display: none; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 13, 16, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--panel-border);
    padding: 0.5rem 0;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 0.9rem 6%; font-size: 1rem; border-top: 1px solid rgba(255,255,255,0.05); }
  .main-nav a:first-child { border-top: none; }
  /* Anchor hero content to the bottom on mobile so there is no long
     black stretch between the CTA buttons and the services section */
  .hero { align-items: flex-end; }
  .hero-content { padding-bottom: 3rem; }
  /* Mobile footer: socials move above the tagline, everything left-aligned */
  .footer-inner { flex-direction: column; }
  .footer-right { align-items: flex-start; }
  .footer-right .footer-social { display: none; }
  .footer-social-top { display: flex; margin: 0.9rem 0; }
}

@media (max-width: 560px) {
  .section { padding: 4rem 0; }
  .pricing-hero { padding-top: calc(var(--header-h) + 2.5rem); }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-tag { min-height: 0; }
  .cta-band { padding: 2rem 1.4rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lube-options, .standards { grid-template-columns: 1fr; }
  .contact-form { padding: 1.4rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; text-align: center; }
}

/* ---------- Floating page navigation (top / bottom) ---------- */
.page-nav {
  position: fixed;
  right: max(1.1rem, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.page-nav-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: rgba(20, 23, 28, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--accent-2);
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}
.page-nav-btn svg { width: 19px; height: 19px; }
.page-nav-btn:hover {
  border-color: rgba(127, 180, 216, 0.55);
  background: rgba(127, 180, 216, 0.14);
  transform: scale(1.06);
}
.page-nav-btn.hidden { opacity: 0; pointer-events: none; transform: scale(0.85); }

/* ---------- Mobile & touch improvements (iOS / Android) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }
a, button, select { -webkit-tap-highlight-color: transparent; }
.btn, .lang-btn, .nav-toggle, .page-nav-btn { touch-action: manipulation; }

/* 16px minimum on form fields prevents iOS Safari auto-zoom on focus */
.field input, .field select, .field textarea { font-size: 1rem; }

/* Stable viewport height: keep svh (NOT dvh) so the hero does not resize
   and reflow the page when mobile browser chrome collapses during scroll */

/* Notched devices: keep header content clear of the curved corners */
.site-header {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Comfortable touch targets for the language toggle */
.lang-btn { padding: 0.5rem 0.55rem; }

@media (max-width: 560px) {
  .page-nav { right: max(0.8rem, env(safe-area-inset-right)); gap: 0.45rem; }
  .page-nav-btn { width: 40px; height: 40px; }
  .page-nav-btn svg { width: 17px; height: 17px; }
}

/* ---------- Gallery items (clickable) ---------- */
.gallery-item {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery-item:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: -2px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 10, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox-stage {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 92vw);
}
.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  object-fit: contain;
}
.lightbox-counter {
  margin-top: 0.8rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.lightbox-btn {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: rgba(20, 23, 28, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--accent-2);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.lightbox-btn svg { width: 19px; height: 19px; }
.lightbox-btn:hover {
  border-color: rgba(127, 180, 216, 0.55);
  background: rgba(127, 180, 216, 0.14);
  transform: scale(1.06);
}
.lightbox-close { top: 1.1rem; right: max(1.1rem, env(safe-area-inset-right)); }
.lightbox-prev { left: max(1.1rem, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: max(1.1rem, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-btn.hidden { display: none; }

body.lightbox-open { overflow: hidden; }

@media (max-width: 560px) {
  .lightbox-btn { width: 42px; height: 42px; }
  .lightbox { padding: 0.6rem; }
}

/* Hide floating page-nav arrows on phones/tablets (must come after the
   base .page-nav rules to win the cascade) */
@media (max-width: 768px) {
  .page-nav { display: none; }
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: max(1.25rem, env(safe-area-inset-left));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 150;
  width: min(400px, calc(100vw - 2.5rem));
  background: rgba(20, 23, 28, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
  animation: cookie-in 0.45s cubic-bezier(0.22, 0.9, 0.3, 1) 0.6s backwards;
}
.cookie-banner[hidden] { display: none; }
.cookie-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1rem;
}
.cookie-actions { display: flex; gap: 0.6rem; }
.cookie-actions .btn {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  text-align: center;
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}
@media (max-width: 560px) {
  .cookie-banner {
    left: max(0.8rem, env(safe-area-inset-left));
    right: max(0.8rem, env(safe-area-inset-right));
    bottom: max(0.8rem, env(safe-area-inset-bottom));
    width: auto;
    padding: 1.1rem 1.15rem;
  }
}

/* ---------- Legal page (algemene voorwaarden) ---------- */
.legal-body {
  padding: calc(var(--header-h) + 3.5rem) 0 5.5rem;
}
.legal-content { max-width: 760px; }
.legal-content h1 { margin-bottom: 2.5rem; }
.legal-content h2 {
  font-size: 1.15rem;
  margin: 2.4rem 0 0.7rem;
  color: var(--accent-2);
}
.legal-content p { color: var(--muted); margin-bottom: 0.9rem; }
.legal-content p strong { color: var(--text); }
.legal-content ul {
  color: var(--muted);
  margin: 0.4rem 0 1rem 1.4rem;
}
.legal-content li { margin-bottom: 0.3rem; }
