/********** Template CSS **********/
:root {
    --primary: #F3525A;
    --secondary: #F6F6F6;
    --light: #FFFFFF;
    --dark: #152440;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Barlow', sans-serif;
    padding: 35px 15px;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 36, 64, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.service-item {
    position: relative;
    overflow: hidden;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.service-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50px;
    bottom: -50px;
    left: 0;
    background: var(--light);
    border-radius: 100% 100% 0 0;
    box-shadow: 0px -10px 5px #EEEEEE;
    transition: .5s;
}

.service-item:hover::after {
    bottom: -25px;
}

.service-item p {
    transition: .3s;
}

.service-item:hover p {
    margin-bottom: 25px !important;
}

.team-item img {
    transform: scale(1.15);
    margin-left: -30px;
    transition: .5s;
}

.team-item:hover img {
    margin-left: 0;
}

.team-item .team-text {
    left: -100%;
    transition: .5s;
}

.team-item .team-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: 50%;
    right: -60px;
    margin-top: -30px;
    border: 30px solid;
    border-color: transparent transparent transparent var(--primary);
}

.team-item:hover .team-text {
    left: 0;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .owl-item img {
    width: 90px;
    height: 90px;
}

.blog-item img {
    transition: .5s;
}

.blog-item:hover img {
    transform: scale(1.1);
}


.ventilatie-compare {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
  }

.ventilatie-compare img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }
  .diensten-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  .dienst-box {
    flex: 1 1 300px;
    border: 1px solid #eee;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
  }

  .dienst-box h3 {
    color: #f74c40;
    margin-bottom: 10px;
  }

  .dienst-box h4 {
    font-size: 14px;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #333;
    text-transform: uppercase;
  }

  .dienst-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .dienst-box ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
  }

  .dienst-box ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #f74c40;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 6px;
  }

  .video-placeholder {
    margin-top: 15px;
    width: 100%;
    min-height: 180px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
  }
  
    .video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;   /* Optioneel: limiet voor grotere schermen */
    margin: 0 auto;     /* Centreert de video */
    aspect-ratio: 16 / 9; /* Zorgt voor juiste verhouding */
    background: #000;   /* Fallback achtergrond */
  }

  .video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Past de video mooi binnen de container */
  }
  h2 {
    color: #f74c40;
    margin-top: 40px;
  }

  .table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #eee;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    background-color: #fff;
    -webkit-overflow-scrolling: touch;
    isolation: isolate;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
    background-color: #fff;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
  }

  thead {
    background-color: #f74c40;
    color: white;
    position: sticky;
    top: 0;
    z-index: 20;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-clip: padding-box;
  }

  thead th {
    background-color: #f74c40 !important;
    color: #fff;
  }

  th,
  td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    background-color: #fff;
    white-space: nowrap;
  }

  tr:hover {
    background-color: #f9f9f9;
  }

  @media (max-width: 600px) {
    th,
    td {
      font-size: 15px;
      padding: 12px 14px;
    }

    table {
      min-width: unset;
    }
  }


.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.photo-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
@media (hover: hover) {
  .photo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* Container voor de afbeelding met vaste verhouding */
.photo-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* vult de container netjes */
  max-height: 200px; /* past de hoogte aan zodat alles uniform is */
}

/* Tekst onder de afbeelding */
.photo-card small {
  display: block;
  padding: 8px;
  font-size: 0.85rem;
  color: #444;
}

/* Mobiel: 2 kolommen behouden */
@media (max-width: 600px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Heel klein scherm: 1 kolom */
@media (max-width: 360px) {
  .photo-gallery {
    grid-template-columns: 1fr;
  }
}

  /* ==== Product Actieblok ==== */
    .actie-blok {
      padding: 2rem 1rem;
      background: #f8f9fa;
      display: flex;
      justify-content: center;
    }

    .actie-container {
      max-width: 600px;
      width: 100%;
      text-align: center;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .actie-container:hover {
      transform: translateY(-4px);
      box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }

    /* 🔧 Deze regels zorgen dat afbeelding ALTIJD schaalt */
    .actie-afbeelding {
      display: block;
      width: 100% !important;  /* Forceert volledige breedte */
      height: auto !important; /* Behoudt aspect ratio */
      max-width: 100%;
    }

    .actie-tekst {
      padding: 1.5rem;
    }

    .actie-titel {
      font-size: 1.4rem;
      margin-bottom: 0.5rem;
      color: #222;
    }

    .actie-beschrijving {
      font-size: 1rem;
      color: #555;
      margin-bottom: 1rem;
      line-height: 1.4;
    }

    .actie-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.5rem;
      font-size: 1rem;
      color: #333;
      border-top: 1px solid #eee;
      padding-top: 0.75rem;
    }

    .actie-prijs {
      font-weight: 600;
      color: #007B55;
    }

    .actie-prijs small {
      font-weight: normal;
      color: #666;
      font-size: 0.85em;
    }

    .actie-locatie {
      color: #444;
    }

    /* Responsive gedrag */
    @media (max-width: 480px) {
      .actie-tekst {
        padding: 1rem;
      }
      .actie-titel {
        font-size: 1.2rem;
      }
      .actie-info {
        flex-direction: column;
        align-items: center;
      }
    }