* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #e0e0e0;
  background:
    radial-gradient(black 15%, transparent 16%) 0 0,
    radial-gradient(black 15%, transparent 16%) 8px 8px,
    radial-gradient(rgba(255,255,255,.05) 15%, transparent 20%) 0 1px,
    radial-gradient(rgba(255,255,255,.05) 15%, transparent 20%) 8px 9px;
  background-color: #121212; background-size: 16px 16px; line-height: 1.6;
  min-height: 100vh; overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a, button, input, textarea { font: inherit; }

h1, h2, h3 { color: #ffffff; text-transform: uppercase; letter-spacing: 1px; text-align: center; }

header { background-color: rgba(10, 10, 10, 0.95); padding: 20px 50px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; position: sticky; top: 0; z-index: 100; }
.logo { font-size: 1.5rem; font-weight: bold; color: #fff; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
nav ul li a { color: #e0e0e0; text-decoration: none; font-weight: bold; transition: color 0.3s ease; }
nav ul li a:hover { color: #25D366; }

.hero {
  text-align: center;
  padding: 80px 20px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(18,18,18,0.75) 60%, #121212 100%),
    url('../img/werkplaats-overzicht.jpg') center/cover no-repeat;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 4rem); margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: #aaa; max-width: 760px; margin: 0 auto; }
.services-sectie, .ba-sectie, .gallery, .contact-sectie, .faq-sectie { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }

/* Flex i.p.v. grid, zodat een onvolledige laatste rij (Polijsten + Coating) in het midden staat */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.services-grid .service-card { box-sizing: border-box; flex: 0 1 calc((100% - 40px) / 3); }
@media (max-width: 900px) { .services-grid .service-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .services-grid .service-card { flex-basis: 100%; } }
.service-card { background: linear-gradient(145deg, #1f1f1f, #151515); border: 2px solid #333; padding: 30px 25px; border-radius: 12px; box-shadow: 5px 5px 15px rgba(0,0,0,0.8); cursor: pointer; transition: all 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; }
.service-card:hover { transform: translateY(-5px); border-color: #555; }
.service-card.has-selection { border-color: #25D366; }
.card-foto { margin: -30px -25px 20px; aspect-ratio: 16 / 10; border-radius: 10px 10px 0 0; overflow: hidden; background: #111; }
.card-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.service-card:hover .card-foto img { transform: scale(1.05); }
.card-foto.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.card-foto.duo img { min-height: 0; }
.service-card:hover .card-foto.duo img { transform: none; }
.card-foto.geen-foto { display: flex; align-items: center; justify-content: center; border-bottom: 1px dashed #333; }
.card-foto.geen-foto::after { content: 'Foto volgt'; color: #555; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.card-footer { margin-top: auto; padding-top: 20px; }
.price { display: block; text-align: center; background-color: #25D366; color: #000; padding: 10px; border-radius: 6px; font-weight: bold; text-transform: uppercase; }

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(5px); justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; }
.modal-content { background-color: #121212; border: 1px solid #333; border-radius: 12px; padding: 40px; width: 100%; max-width: 1000px; position: relative; max-height: 90vh; overflow-y: auto; }
.close-modal { position: absolute; right: 20px; top: 15px; font-size: 30px; font-weight: bold; color: #aaa; cursor: pointer; }
.close-modal:hover { color: #fff; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.tier-card { background-color: #1a1a1a; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #333; }
.tier-header { background: linear-gradient(135deg, #111, #222); padding: 20px; text-align: center; border-bottom: 2px solid #25D366; }
.tier-header h3 { margin: 0; color: #fff; font-size: 1.2rem; line-height: 1.4; }
.tier-header .tier-price { font-size: 2.2rem; font-weight: bold; color: #25D366; display: block; margin-top: 10px; line-height: 1.2; }
.tier-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.tier-body ul { list-style: none; padding: 0; margin: 0 0 20px 0; display: flex; flex-direction: column; gap: 10px; }
.tier-body ul li { position: relative; padding-left: 30px; margin: 0; font-size: 0.95rem; color: #ccc; line-height: 1.6; }
.tier-body ul li::before { content: '✓'; position: absolute; left: 0; top: 0.1em; color: #25D366; font-weight: bold; font-size: 1.1rem; line-height: 1; }
.tier-extra { font-size: 0.85rem; color: #888; margin-bottom: 20px; border-top: 1px solid #333; padding-top: 15px; line-height: 1.5; }
.select-tier-btn { width: 100%; background-color: #333; color: #fff; border: none; padding: 15px; font-weight: bold; text-transform: uppercase; cursor: pointer; transition: 0.3s; margin-top: auto; }
.select-tier-btn:hover { background-color: #25D366; color: #000; }

/* Uitgelicht pakket ("Meest gekozen") */
.tier-card.is-populair { border: 2px solid #25D366; box-shadow: 0 0 25px rgba(37, 211, 102, 0.25); }
.tier-card.is-populair .tier-header { background: linear-gradient(135deg, #0f2a1a, #1a3a26); }
.tier-card.is-populair .select-tier-btn { background-color: #25D366; color: #000; }
.tier-card.is-populair .select-tier-btn:hover { background-color: #20b858; }
/* Gekozen pakket: witte rand + witte knop, zodat het ook bij het groene Premium-pakket opvalt */
.tier-card.is-gekozen { border: 3px solid #fff; box-shadow: 0 0 25px rgba(255, 255, 255, 0.3); transform: translateY(-4px); }
.tier-card.is-gekozen .select-tier-btn,
.tier-card.is-gekozen .select-tier-btn:hover { background-color: #fff; color: #000; }
.tier-badge { background-color: #25D366; color: #000; text-align: center; padding: 8px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.extras-section {
  margin-top: 22px;
  padding: 20px 8px 14px;
  border-top: 1px solid #333;
  width: 100%;
  box-sizing: border-box;
}

.extras-section.inside-tier {
  margin-top: auto;
}

.extras-section h3 {
  margin: 0 0 16px 0;
  font-size: 1.05rem;
  color: #fff;
  text-align: left;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.extras-section .extras-hint {
  margin: 0 10px 12px 10px;
  padding: 0 4px;
  color: #c4c4c4;
  font-size: 0.9rem;
  line-height: 1.6;
  display: block;
  box-sizing: border-box;
}

.extras-section .extras-hint.disabled {
  color: #888;
}

.extras-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  width: 100%;
}

.select-extra-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: linear-gradient(145deg, #191919, #111111);
  color: #f2f2f2;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-weight: 600;
  line-height: 1.5;
}

.select-extra-btn:hover:not(:disabled) {
  border-color: #25D366;
  transform: translateY(-1px);
}

.select-extra-btn.is-selected {
  background: rgba(37, 211, 102, 0.12);
  border-color: #25D366;
  box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.35);
}

.select-extra-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #171717;
  border-color: #2d2d2d;
}

.select-extra-btn strong {
  color: #25D366;
  font-weight: 800;
}

.faq-sectie { max-width: 800px; } 
.faq-container { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: linear-gradient(145deg, #1f1f1f, #151515); border: 1px solid #333; border-radius: 8px; overflow: hidden; }
.faq-item summary { padding: 20px; font-size: 1.1rem; font-weight: bold; color: #fff; cursor: pointer; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #25D366; font-size: 1.5rem; font-weight: normal; }
.faq-item[open] summary::after { content: '-'; }
.faq-content { padding: 0 20px 20px 20px; color: #bbb; line-height: 1.6; border-top: 1px dashed #333; margin-top: 5px; padding-top: 15px; }

.contact-container { display: grid; grid-template-columns: 3fr 2fr; gap: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.9); border: 1px solid #333; }
.contact-form-side { background: linear-gradient(145deg, #1f1f1f, #181818); padding: 40px; }
.form-header h2 { text-align: left; margin-top: 0; font-size: 2rem; color: #25D366; }
.form-header p { color: #aaa; margin-bottom: 30px; }
.geselecteerde-diensten-weergave { background-color: #111; padding: 20px; border-radius: 8px; border: 1px solid #333; margin-bottom: 30px; }
.geselecteerde-diensten-weergave label { font-weight: bold; color: #fff; display: block; margin-bottom: 10px; }
.geselecteerde-diensten-weergave ul { list-style: none; padding: 0; margin: 0; color: #bbb; }
.geselecteerde-diensten-weergave ul li { margin-bottom: 8px; }
.selected-service-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 6px; background-color: #1a1a1a; border: 1px solid #2a2a2a; }
.selected-service-item.is-pakket { border-color: #25D366; background-color: rgba(37, 211, 102, 0.08); }
.selected-service-item.is-extra { margin-left: 22px; border-style: dashed; }
.service-item-tekst { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.service-item-naam { color: #eee; }
.service-item-prijs { color: #25D366; font-weight: bold; }
.service-badge { font-size: 0.7rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 20px; }
.badge-pakket { background-color: #25D366; color: #0a0a0a; }
.badge-extra { background-color: #333; color: #ddd; border: 1px solid #555; }
.selected-total-item { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 12px 10px 0; border-top: 1px dashed #444; color: #fff; font-weight: bold; }
.selected-total-item strong { color: #25D366; font-size: 1.1rem; }
.remove-service-btn { background: transparent; color: #ff7777; border: 1px solid #663333; border-radius: 4px; padding: 4px 8px; cursor: pointer; flex-shrink: 0; }
.remove-service-btn:hover { background-color: #ff7777; color: #111; }
.input-row { display: flex; gap: 20px; margin-bottom: 20px; }
.input-group { flex: 1; display: flex; flex-direction: column; }
.input-group.full-width { margin-bottom: 20px; }
.input-group label { margin-bottom: 8px; font-weight: bold; color: #bbb; font-size: 0.9rem; }
.input-group input, .input-group textarea { padding: 15px; border-radius: 6px; border: 1px solid #444; background-color: #111; color: #fff; font-family: inherit; font-size: 1rem; transition: border-color 0.3s; }
.input-group input:focus, .input-group textarea:focus { border-color: #25D366; outline: none; }
.whatsapp-btn-large { width: 100%; background-color: #25D366; color: #000; padding: 18px; border: none; border-radius: 6px; font-weight: 800; font-size: 1rem; text-transform: uppercase; cursor: pointer; transition: background-color 0.3s, transform 0.2s; margin-top: 10px; }
.whatsapp-btn-large:hover { background-color: #20b858; transform: scale(1.02); }

.contact-info-side { background-color: #111; padding: 40px; border-left: 1px solid #333; }
.contact-info-side h2 { text-align: left; margin-top: 0; font-size: 2rem; color: #fff; }
.contact-info-side p { color: #aaa; margin-bottom: 40px; }
.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 30px; }
.info-item .icon { background-color: rgba(37, 211, 102, 0.1); width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; color: #25D366; border: 1px solid rgba(37, 211, 102, 0.3); }
.info-text strong { font-size: 1.1rem; color: #fff; display: inline-block; margin-bottom: 5px; }
.info-text { color: #bbb; line-height: 1.5; }
.opening-hours { margin-top: 50px; background-color: #181818; padding: 20px; border-radius: 8px; border: 1px solid #333; }
.opening-hours h3 { text-align: left; margin-top: 0; font-size: 1.2rem; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 15px; }
.hours-row { display: flex; justify-content: space-between; color: #bbb; margin-bottom: 10px; }
.hours-row:last-child { margin-bottom: 0; }

@media (max-width: 1100px) {
  header {
    padding: 18px 20px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  nav ul {
    gap: 10px 16px;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-form-side,
  .contact-info-side {
    padding: 30px 24px;
  }
}

@media (max-width: 700px) {
  .services-sectie,
  .ba-sectie,
  .gallery,
  .contact-sectie,
  .faq-sectie {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .hero {
    padding: 60px 18px;
    min-height: 45vh;
  }

  .hero p {
    font-size: 1rem;
  }

  nav ul {
    gap: 8px 12px;
  }

  nav ul li a {
    font-size: 0.8rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .input-row {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
  }

  .input-group {
    margin-bottom: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 220px;
  }

  .form-header h2,
  .contact-info-side h2 {
    font-size: 1.6rem;
  }

  .faq-item summary {
    font-size: 1rem;
    padding-right: 40px;
  }

  .hours-row {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 14px 16px;
  }

  .logo {
    font-size: 1.2rem;
  }

  nav ul {
    width: 100%;
  }

  nav ul li {
    width: calc(50% - 8px);
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 8px 0;
    border-radius: 4px;
  }

  .modal-content {
    padding: 28px 16px 18px;
  }

  .tier-header .tier-price {
    font-size: 1.7rem;
  }

  .contact-form-side,
  .contact-info-side {
    padding: 22px 16px;
  }

  .whatsapp-btn-large,
  .route-btn {
    width: 100%;
  }

  .map-container {
    height: 300px;
  }
}

.ba-slider { position: relative; width: 100%; max-width: 800px; overflow: hidden; border-radius: 8px; border: 2px solid #333; margin: 0 auto; }
.ba-img { display: block; width: 100%; height: auto; }
.ba-foreground { position: absolute; top: 0; left: 0; width: 50%; height: 100%; overflow: hidden; }
.ba-foreground .ba-img { width: 200%; max-width: none; }
.ba-slider-input { position: absolute; appearance: none; width: 100%; height: 100%; top: 0; left: 0; background: transparent; cursor: ew-resize; z-index: 10; margin: 0; }
.ba-slider-input::-webkit-slider-runnable-track { background: transparent; }
.ba-slider-input::-webkit-slider-thumb { appearance: none; width: 24px; height: 100%; background: transparent; cursor: ew-resize; }
.ba-slider-input::-moz-range-track { background: transparent; border: none; }
.ba-slider-input::-moz-range-thumb { appearance: none; width: 24px; height: 100%; background: transparent; border: none; cursor: ew-resize; }

.ba-handle { position: absolute; top: 0; left: 50%; width: 3px; height: 100%; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.6); transform: translateX(-50%); pointer-events: none; z-index: 9; }
.ba-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; box-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.ba-label { position: absolute; top: 12px; padding: 4px 10px; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(0,0,0,0.6); color: #fff; border-radius: 4px; pointer-events: none; z-index: 8; }
.ba-label-left { left: 12px; }
.ba-label-right { right: 12px; }

/* Stoel- en koplamp-slider naast elkaar, op mobiel onder elkaar */
.ba-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; align-items: start; }
@media (max-width: 700px) {
  .ba-container { grid-template-columns: 1fr; }
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; }
.gallery-grid img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; border: 1px solid #333; }
footer { text-align: center; padding: 30px; background-color: rgba(10, 10, 10, 0.9); border-top: 1px solid #333; color: #777; }

.map-container { margin-top: 40px; width: 100%; height: 400px; border-radius: 12px; overflow: hidden; border: 1px solid #333; box-shadow: 0 15px 30px rgba(0,0,0,0.9); }
.map-container iframe { width: 100%; height: 100%; display: block; }
.route-btn { display: block; width: fit-content; margin: 20px auto 0; padding: 12px 20px; background-color: #25D366; color: #000; border-radius: 6px; font-weight: bold; text-decoration: none; text-transform: uppercase; transition: background-color 0.3s, transform 0.2s; }
.route-btn:hover { background-color: #20b858; transform: translateY(-2px); }