/*
Theme Name: Molenaar Afbouw
Author: Karsten Missot
Description: Bootstrap WordPress Theme gebaseerd op molenaarafbouw.nl
Version: 1.0
*/

#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
background: #FFF;
background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(240, 240, 240, 1) 100%);
display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#page-loader img {
  width: 120px;
  height: auto;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.95); }
}

#page-loader.hidden {
  opacity: 0;
}

.bg-primary {
  background:#00a3c4!important;
}

:root {
    --bs-primary: #00a3c4;
}

/* Algemene Reset */
body {
  font-family: 'Roboto', sans-serif;
  color: #6d6e71;
  line-height: 1.6;
  padding-bottom: calc(var(--footer-height, 200px) + 100px);
  background:#f8f9fa;

}

h1,h2,h3,h4,h5,h6, .card-title {
  font-weight: 400;
  color: #6d6e71;
}

.card-body h6 a {
	  color: #6d6e71;
}

.card-body h6 a:hover {
	  color: var(--bs-primary);
}

a {
  color: var(--bs-primary);
  text-decoration: none;
}

a:hover {
  color: #0089bf;
  text-decoration: none;
}

.text-primary {
	color:var(--bs-primary)!important;
}

.btn-primary {
	background:var(--bs-primary)!important;
	border-color:var(--bs-primary)!important;
}
.btn-primary:hover {
	box-shadow:0 1px 3px rgb(0 0 0/15%);
	transform:scale(1.005);
}

.btn-outline-primary {
	border-color:var(--bs-primary)!important;
  color: var(--bs-primary)!important;
}
.btn-outline-primary:hover {
  background:	var(--bs-primary)!important;
  color:#FFF!important;
}

.btn.active {
  	background-color:var(--bs-primary)!important;
    color:#fff!important;
}
.btn.active:hover {
  background-color: var(--bs-primary)!important;
  color:#FFF!important;
}

/* menu */

nav li.active a {
	color:var(--bs-primary);
}

.logo {
  max-width:220px;
	transition: all .2s ease;
}

.custom-logo {
  width:100%;
  height:auto;
}

.navbar-nav .nav-item {
  margin-right: 3rem;
}

.navbar-nav .nav-item:last-child {
  margin-right: 0;
}

.overzichtProjecten {
  border-top:1px dashed #ddd;
  padding-top:4px;
  margin-top:10px;
}

/* Dropdown styling */
.navbar .dropdown-menu {
  border-radius: 0 0 8px 8px;
  border: unset;
  border-top:3px solid var(--bs-primary);
  box-shadow: 0 4px 5px rgba(0,0,0,0.08);
  padding: 0.5rem 0;
  margin-top:25px;
  min-width: 240px;
}

/* Items */
.navbar .dropdown-menu .dropdown-item {
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.navbar .dropdown-menu li {
  margin-right:0!important;
  margin-left:0!important;
}

.navbar .dropdown-menu .dropdown-item:hover {
  background-color: rgba(0,164,227,0.12); /* huisstijl blauw transparant */
  color: #00a4e3;
  padding-left: 1.25rem;
}

/* Pijltje dropdown */
.navbar .dropdown-toggle::after {
  margin-left: 0.35rem;
  vertical-align: middle;
  border-top: 0.35em solid;
  border-right: 0.35em solid transparent;
  border-left: 0.35em solid transparent;
}


/* Basis sticky */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height:90px;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Hoogte compensatie zodat content niet onder header valt */
body {
  padding-top: 90px; /* pas aan aan je headerhoogte */
}

/* Extra effect bij scroll */
#site-header.scrolled {
	height:60px;
	display:flex;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1)!important;
}

#site-header.scrolled .logo { max-width:100px;}

#site-header.scrolled  .navbar .dropdown-menu {
  margin-top:10px;
}

html .offcanvas .dropdown-menu {
    position:absolute!important;
}


/* Hero Sectie */

#typewriter {
  color: var(--bs-primary); /* accentkleur */
  padding-right: 4px;
  white-space: nowrap;
  overflow: hidden;
  display:block;
}
/* Zorg dat je typewriter-element een class/id heeft, bv. #typewriter */
#typewriter::after {
  content: '|';                 /* De verticale streep */
  display: inline-block;
  margin-left: 2px;              /* Kleine afstand van de tekst */
  color: #fff;                   /* Kleur van de cursor */
  font-weight: bolder;             /* Maakt hem dikker */
  font-size: 1.2em;              /* Optioneel iets groter */
  animation: blink 0.7s infinite;/* Knipperende animatie */
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.hero {
  background-size: cover;
  background-position: center;
  min-height:550px;
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.45); /* Overlay voor contrast */
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-subtitle {
  font-size: 1.1rem;
  letter-spacing: 1px;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.hero-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
}

.hero-btn {
  background-color: var(--bs-primary);
  border: none;
  padding: 0.7rem 1.8rem;
  text-transform: uppercase;
}

.hero-btn:hover {
  background-color: #0089bf;
}

/* USP */

.usp {
  background: #fff;
}

.usp-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 350px;
}

.usp-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #fff;
  color: var(--bs-primary);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.usp-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.usp-text {
  font-size: 0.95rem;
  color: #666;
}


/* Over ons sectie */
.over-ons {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.over-ons h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.over-ons p {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.over-ons .btn {
  background-color: var(--bs-primary);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.over-ons .btn:hover {
  background-color: #0089bf;
}

/* Diensten sectie */
.diensten {
  padding: 80px 0;
}

.diensten h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
}

.diensten .card {
  border: none;
  transition: transform 0.3s ease;
}

.diensten .card:hover {
  transform: translateY(-5px);
}

.diensten .card img {
  border-radius: 5px;
}

#diensten .card img {
	height:210px;
	width:100%;
	object-fit:cover;
}

.diensten .card-body h5 {
  font-size: 1.2rem;
  font-weight: 600;
}

/*projecten overzicht */
.project-grid.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-grid.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.project-item {
    animation: fadeInUp 0.4s ease forwards;
}

.project-item:hover h6{
  color:var(--bs-primary);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effect */
.project-card {
    overflow: hidden;
    position: relative;
}
.project-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
}
.project-card img {
    height:310px;
    object-fit:cover;
    transition: transform 0.3s ease;
}
.project-card:hover img {
    transform: scale(1.05);
}
.project-card .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}
.project-card:hover .overlay {
    opacity: 1;
}

/*projecten slider*/
/* Zorg dat de slider zelf geen vaste hoogte heeft */

.swiper,
.swiper-wrapper,
.swiper-slide {
    height: auto !important;
    min-height: 0 !important;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* top-align de cards */
    padding-bottom: 0;       /* haal extra wit weg */
}

.swiper-slide {
	transition:all 0.15s ease!important;
}
.swiper-slide:hover {
	box-shadow:0 5px 5px rgb(0 0 0 / 10%);
  transform: scale(1.01)!important;
}

.swiper {
	padding-top:20px!important;
    height: 460px!important;
}

.swiper-button-next, .swiper-button-prev {
	color: var(--bs-primary)!important;
}

.swiper-pagination-bullet-active {
	background:var(--bs-primary)!important;
}

/* Cards automatisch laten groeien */
.slider-card {
    display: flex;
    flex-direction: column;
    height: auto; /* niet 100% */
}

/* Afbeeldingen netjes */
.slider-card img {
    width: 100%;
    height: 200px; /* Kies vaste hoogte voor afbeeldingen */
    object-fit: cover; /* vult zonder vervormen */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Tekstgedeelte gewoon automatisch */
.slider-card .card-body {
    flex: 0 0 auto;
    padding: 15px;
}

#projecten .card img {
	height:300px;
  object-fit:cover;
}


/* Contact Sectie */
.contact {
  background-color: var(--bs-primary);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact p {
  font-size: 1.1rem;
}

.contact a {
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
}

.contact a:hover {
  text-decoration: underline;
}

/* testimonial */
.testimonials {
  position: relative;
  color: white;
  overflow: hidden;
  padding: 120px 0; /* Meer ruimte boven/onder */
}
.testimonials .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45); /* Iets lichtere overlay */
}

.testimonial-container {
  position: relative;
  z-index: 2;
  max-width: 1400px; /* Breder */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Grotere kolommen */
  gap: 60px; /* Meer ruimte tussen items */
  padding: 0 40px;
}

.testimonials .testimonial {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 30px;
}

.testimonials .testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.quote-icon {
  font-size: 32px;
  color: #00b4ff;
  margin-bottom: 15px;
  display: block;
}

.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.75;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8); /* Betere leesbaarheid */
}

.testimonial-author {
  font-size: 1rem;
  opacity: 0.9;
  font-style: italic;
  color: #eee;
  text-shadow: 0 1px 5px rgba(0,0,0,0.7);
}

/* Diensten */
#diensten .card img {
  height:450px;
  object-fit:cover;
}

/*social sectie*/
.social-section {
  overflow:hidden;
}

/* Footer */
footer {
  background-color: #111;
  color: rgba(255,255,255,0.8);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: rgba(255,255,255,0.8);
}

footer a:hover {
  color: #fff;
}

/* text */
.section-title {
  display: inline-block; /* zodat de lijn de breedte van de tekst volgt */
  position: relative;
  padding-bottom: 1.5rem; /* ruimte tussen tekst en lijntje */
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  margin:0 auto;
  bottom: 0;
  width: 40%; /* of 100% voor volledige breedte */
  height: 2px;
  background-color: var(--bs-primary); /* Bootstrap primary blauw */
}

.section-title-links::after {
  content: "";
  position: absolute;
  left: 0;
	right:unset;
	margin:unset;
  bottom: 0;
  width: 40%; /* of 100% voor volledige breedte */
  height: 2px;
  background-color: var(--bs-primary); /* Bootstrap primary blauw */
}

/* footer */
.site-footer {
  background: #1b1b1b;
  border-top: 8px solid #00a3c4; /* blauwe lijn boven */
  color: #bbb;
  font-size: 1rem;
}

.footer-title {
  color: #eee;
  font-weight: 600;
  font-size: 1.1rem;
}

.site-footer a {
  color: #bbb;
  text-decoration: none;
}

.site-footer a:hover {
  color: #00b4ff;
}

.footer-links li {
  margin-bottom: 6px;
  text-align: left;
}

.footer-logo {
  max-width: 220px;
}

.footer-divider {
  border-color: rgba(255,255,255,0.1);
}

.to-top {
  text-decoration: none;
}

.to-top:hover {
  color: #00b4ff;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
transform: translateY(calc(100% - 4px));
  transition: transform 0.5s ease;
  z-index: 100;
}

.site-footer.visible {
	box-shadow: 0 -5px 5px rgb(0 0 0 / 10%);
  transform: translateY(30px);
}

/* Responsive tweaks */
@media(max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }

  .over-ons img {
    margin-bottom: 30px;
  }

}


@media (max-width:1048px){

.site-footer {
  position: static;
  transform: none;
  box-shadow: none;
  transition: none;
}

body {
  padding-bottom: 0;
}

}