/* ============================================= */
/* Globale variabelen voor header/footer hoogtes */
/* ============================================= */
:root {
  --header-height: 60px;
  --footer-height: 100px;
}

/* ============================================= */
/* Body & html basis (voor sticky footer + fixed elements) */
/* ============================================= */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #000;
  font-family: 'Montserrat', sans-serif;
  /* Geen extra padding-top/bottom meer nodig, want we regelen het in main */
}

/* ============================================= */
/* Fixed header & footer */
/* ============================================= */


footer,
.fixed-footer {
  position: relative !important;
  bottom: auto !important;
  height: auto !important;
  min-height: var(--footer-height);
  width: 100%;
  margin-top: auto;
  z-index: 10;
  background: #000;
}

/* ============================================= */
/* Hoofd content (main) */
/* ============================================= */
main {
  flex-grow: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 90px 1rem 80px !important;
  box-sizing: border-box;
  color: white;
}

/* ============================================= */
/* Categorie & keuze buttons */
/* ============================================= */
.category-button {
  background: linear-gradient(to bottom, #222, #333);
  color: #D4AF37;
  padding: 0.5rem;
  border-radius: 1rem;
  border: 3px solid #D4AF37;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  transition: all 0.3s;
  margin: 0 auto;
  max-width: 600px;
}

.category-button:hover {
  background: linear-gradient(to bottom, #333, #444);
  transform: translateY(-5px);
}

.sub-choices-container {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .sub-choices-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.choice-button {
  background: #222;
  color: #fff;
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 2px solid #444;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background 0.2s;
}

.choice-button:hover {
  background: #333;
}

/* ============================================= */
/* Resultaat box & gallery */
/* ============================================= */
.result-box {
  background: #222;
  font-size: 1rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-top: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.preview {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid #444;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  cursor: pointer;
  position: relative;
}

.preview::after {
  content: "⬀";
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-size: 1rem;
  color: #D4AF37;
  background: rgba(0,0,0,0.6);
  padding: 0.5rem;
  border-radius: 0.375rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.preview:hover::after {
  opacity: 1;
}

/* ============================================= */
/* Afspraak buttons */
/* ============================================= */
.appointment-buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.appointment-btn {
  background: linear-gradient(to bottom, #b8860b, #8b6914);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  transition: all 0.3s;
  border: 4px solid #D4AF37;
}

.appointment-btn:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(212,175,55,0.5);
  background: linear-gradient(to bottom, #d4af37, #b8860b);
}

/* ============================================= */
/* Lightbox */
/* ============================================= */
#lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}

#lightbox.show {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: #A0A0A0;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 20px; }
.lightbox-next  { right: 20px; }

/* ============================================= */
/* Algemene helper classes */
/* ============================================= */
.hidden {
  display: none !important;
}

.result-box p {
    margin: 0.5rem 0;
}
.result-box br {
    margin-bottom: 1rem; /* of 1.5rem voor meer lucht */
}

.gallery img.preview { max-width: 100%; height: auto; border-radius: 8px; cursor: pointer; margin: 0.5rem auto; /* auto links/rechts → centreren */ display: block; /* nodig om auto‑margins te laten werken */ }

.gallery img.preview:hover {
    transform: scale(1.03);
    transition: transform 0.2s ease;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}
.lightbox.open {
    display: flex;
}
.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
}
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* Zorg dat de browser automatisch ruimte vrijhoudt boven scroll-targets */
html {
    scroll-padding-top: 155px;   /* header ~80px + main padding-top 80px + 20px buffer */
}

/* Extra voor de elementen zelf */
.submenu-item,
.info-box {
    scroll-margin-top: 155px;    /* idem */
}

/* Optioneel: zorg dat de info-box zelf niet te dicht tegen de header plakt */
.info-box {
    margin-top: 20px;   /* extra visuele ruimte als het te strak voelt */
}

.category-button {
    scroll-margin-top: 155px;  /* buffer voor de knop "Vingers" zelf */
}

#vingers-foto {
    scroll-margin-top: 155px;  /* buffer voor de foto */
}

#vinger-titel {
    scroll-margin-top: 155px;   /* exact dezelfde afstand als de andere keuzes */
}