/* ==========================================================================
   1. VARIABELEN & BASIS
   ========================================================================== */
:root {
  --primary-color: #f0671d;
  --bs-warning: #ffc107;
  --text-main: #333333;
  --text-muted: #6c757d;
  --bg-light: #f5f5f5;
  --border-color: #e5e5e5;
}

body {
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  scroll-behavior: smooth;
}


/* ==========================================================================
   2. NAVBAR
   ========================================================================== */
.navbar {
  z-index: 1060;
  background-color: #fff;
}

.navbar-nav .nav-link {
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.offcanvas-top.h-auto {
  max-height: 80vh;
}


/* ==========================================================================
   3. HERO / HOMEPAGE
   ========================================================================== */

/* Desktop hero */
.image-container {
  position: relative;
  height: clamp(420px, 55vh, 620px);
  background: url("../images/yamaha.jpg") center / cover no-repeat;
}


.image-container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.25) 100%
  );
}

.container {
  max-width: 940px;
}

/*.container-narrow {
  max-width: 1080px;
}*/


/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.overlay .text-center {
  position: relative;
  z-index: 3;
}

/* Hero headings */
.h1-motomatch {
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.05;
}

.h3-motomatch {
  font-size: clamp(16px, 2.2vw, 28px);
  line-height: 1.2;
}

.h1-row-span {
  font-weight: 300;
}

/* Form wrapper */
.hero-form-container {
  width: 100%;
  margin-top: 24px;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

/* Zoekbox */
#box {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px; 
  box-shadow:
    0 -8px 24px rgba(0,0,0,0.18),
    0 6px 16px rgba(0,0,0,0.08);
  border: none;
  backdrop-filter: saturate(1.05);
}


#box .form-select:focus {
  box-shadow: 0 0 0 3px rgba(240,103,29,0.15);
}


#box .form-select {
  border: 1px solid #ced4da;
  font-weight: 500;
}

#box .btn-warning {
  background-color: var(--bs-warning);
  border: none;
  color: #000;
}


/* ==========================================================================
   4. CARDS
   ========================================================================== */
.card-img-top {
  width: 100%;
  height: auto;
}

.card-cat {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-cat:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-cat:hover img {
  transform: scale(1.1);
}

.tester-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-hover {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-5px) scale(1.02); /* Beweegt ook een klein beetje omhoog */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}


/* ==========================================================================
   5. SERVICE PAGINA
   ========================================================================== */
.container.container-service {
    max-width: 1220px; /* Of gebruik 100% voor volledige breedte: 95vw; */
}

.card .card-header {
  border-bottom: 1px solid var(--border-color);
}

.text-model-year {
  font-size: 1.1rem;
}

.active-filters-zone .badge {
  font-weight: 500;
  background-color: var(--primary-color) !important;
}

.card-footer img {
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.card-footer img:hover {
  filter: grayscale(0%);
}


/* ==========================================================================
   6. SIDEBAR
   ========================================================================== */
.filter-sidebar {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-label {
  cursor: pointer;
}

[data-bs-toggle="collapse"] i {
  transition: transform 0.3s ease;
}

[aria-expanded="true"] i {
  transform: rotate(180deg);
}


/* ==========================================================================
   7. LOADER
   ========================================================================== */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 45px;
  height: 45px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */

/* Tablet & mobiel: hero groeit met content */
/* Voor tablet en mobiel */
@media (max-width: 991.98px) {
  /* 1. De container: hoogte aanpassen aan inhoud */
  .image-container {
    height: auto !important;
    min-height: 500px; /* Genoeg ruimte voor tekst + form */
    padding-bottom: 30px;
  }

  .overlay {
    position: relative;
    padding: 40px 15px;
    background: rgba(0,0,0,0.5); /* Iets donkerder voor leesbaarheid */
  }

  /* 2. De koppen: line-height verkleinen zodat ze niet 'uitsteken' */
  .h1-motomatch {
    font-size: 32px !important;
    line-height: 1.2 !important; /* Essentieel: was 2.05, wat te veel witruimte gaf */
    margin-bottom: 10px !important;
  }

  .h3-motomatch {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
  }

  /* 3. Het formulier: Hoogte van de vakken normaliseren */
  #box {
    max-width: 100%;
    padding: 20px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
  }

  #box .form-select,
  #box .btn-warning {
    min-height: 50px !important; /* Was 104px, nu een normale hoogte */
    font-size: 16px !important;   /* Was 28px, nu leesbaar formaat */
    height: 50px !important;
    margin-bottom: 5px;
  }

  /* Ruimte tussen de rijen in het formulier */
  #box .row {
    row-gap: 10px !important;
  }
	
	
#offcanvasSidebar .offcanvas-body {
    overflow-y: auto;
    max-height: calc(100dvh - 60px); /* header ruimte */
    padding-top: 48px;              /* beetje “lager” zoals je wilt */
  }

}


/* Mobile: volledig edge-to-edge */
/* Specifiek voor de kleinste telefoons */
@media (max-width: 575.98px) {
  .image-container {
    min-height: 60vh !important; /* Nog iets compacter op kleine telefoons */
  }

  #box {
    /* Als je hem echt strak tegen de rand wilt zonder enige schaduw-rand: */
    box-shadow: none !important;
    margin-top: 10px;
  }
  
  /* Zorg dat de tekst niet te veel ruimte inneemt */
  .h1-motomatch {
    font-size: 28px !important;
    line-height: 1.2 !important;
    margin-top: 20px;
  }
}

@media (min-width: 1400px) {
    .container.container-service {
        max-width: 1400px; 
    }
}

/* Desktop sticky sidebar */
@media (min-width: 992px) {
  aside.col-lg-3,
  .col-lg-3 .offcanvas-lg {
    position: sticky;
    top: 20px;
	}
}


	  
