/* === Kleuren definities === */
:root {
  --primary: #fcb900; /* Goudgeel */
  --text: #1a1a1a;
  --bg: #ffffff;
  --gray: #f8f8f8;
}

a, button, .card {
  transition: all 0.3s ease;
}

.card-title {
  color: var(--primary);
}

.card p {
  color: #4d4d4d; /* Net als bij Easee, iets donkerder grijs */
}

/* Algemene reset en fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  background: #f9f9f9;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  height: 60px;
  position: absolute;
  left: 0rem;
  top: 40%;
  transform: translateY(-50%);
}

.logo-text {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #000; /* of var(--primary) als je die gebruikt */
  line-height: 1;
  position: relative;
  overflow: hidden;
  margin-left: 3.5rem;
  margin-top: 0.5rem;
  padding-bottom: 8px; /* ← geeft ruimte aan de underline */
}

.logo-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, #f2b200, #f2b200);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease-out 0.4s;
}

.logo-text.animate-underline::after {
  transform: scaleX(1);
}

/* Navigatie */
.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-52%, -50%); /* i.p.v. -50% */
  display: flex;
  gap: 5rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: black;
  font-weight: 500;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  height: 2px;
  width: 0%;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #e1a500;
}

/* Hero */
.hero {
  position: relative;
  height: 40vh;
  width: 100%;
  background: url('/images/hero.png') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: flex-end; /* tekst onderin */
  justify-content: flex-start; /* tekst links */
  padding: 3rem;
  color: white;
}

.hero-text {
  max-width: 600px;
  text-align: left;
  z-index: 1;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-text p {
  font-size: 1.2rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1440px) {
  .hero {
    height: auto; /* Laat de hoogte meegroeien met de inhoud */
    padding: 6rem 1.5rem 4rem; /* meer ruimte boven/onder, minder aan de zijkant */
    align-items: flex-start; /* tekst omhoog */
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}

/* Section */
.section {
  padding: 5rem 2rem;
  border-bottom: 1px solid #efefef;
}

/* Optioneel: gebruik de kleur */
.section-header {
  color: var(--primary);
}

.section:nth-child(even) {
  background: linear-gradient(145deg, #f9f9f9, #f3f3f3);
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #111;
}

/* Cards */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.card img {
  width: 100%;
  height: 200px;
  max-width: 100%;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: block;
}

.card-grid > div {
  flex: 1 1 calc(33.333% - 2rem);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s eas
}

.card {
  width: 100%;
  background-color: var(--bg);
  border: 1px solid #eaeaea;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.08);
  padding: 24px;
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; opacity 0.3s ease;
  transform: translateY(0); /* zodat AOS hem niet override op 'initial' */
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 20px rgba(252, 185, 0, 0.2);
  transform: translateY(-6px) !important;
  opacity: 0.95;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #f2b200;
  border-radius: 16px;
  z-index: 1;
  pointer-events: none;
  clip-path: polygon(0 0, 0 0, 0 0, 0 0); /* begint als onzichtbaar */
  transition: clip-path 1s ease-in-out;
}

.card:hover::before {
  clip-path: polygon(
    0% 0%,    /* top-left */
    100% 0%,  /* top-right */
    100% 100%,/* bottom-right */
    0% 100%   /* bottom-left */
  );
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #f2b200;
  z-index: 2;
  pointer-events: none;
  animation: border-reveal 1s steps(4) forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.card h3 {
  color: #e1a500;
  margin-bottom: 0.5rem;
}

/* Contactformulier */
.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact button {
  background: #e1a500;
  color: white;
  border: none;
  padding: 0.75rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact button:hover {
  background: #c89300;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #ffffff;
  border-top: 1px solid #eaeaea;
  color: #777;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1440px) {
  .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }
}

@keyframes highlightText {
  0% {
    color: #000;
  }
  30% {
    color: var(--primary); /* goudgeel */
  }
  100% {
    color: #000;
  }
}

@keyframes underlineSlide {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

/* Glow highlight effect */
.logo-text.highlight-animation {
  animation: highlightText 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

.logo-text.animate-underline {
  animation: highlightText 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

.logo-text.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.logo-text.hide-underline::after {
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Animatie in stappen: top → right → bottom → left */
@keyframes draw-outline {
  0% {
    clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
  }
  20% {
    clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%); /* bovenkant */
  }
  55% {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 0%); /* rechterkant */
  }
  85% {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); /* onderkant */
  }
  100% {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); /* hele rand */
  }
}

/* Fade-in animatie */
.animate-fade-in {
  opacity: 0;
}
.opacity-100 {
  opacity: 1 !important;
}

/* Afbeelding styling */
.visual-afbeelding {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.fade-in-block {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-in-block.opacity-100 {
  opacity: 1 !important;
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}

/* === FAQ Accordion === */
.faq-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 20px;
}

.faq-item {
  margin-bottom: 25px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
}

.faq-question {
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  padding-right: 20px;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  display: none;
  margin-top: 10px;
  color: #555;
}

.faq-answer.open {
  display: block;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-header {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-button {
  background-color: #f2b200;
  color: #000;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin-top: 15px;
}

.cta-button:hover {
  background-color: #d19c00;
}

.highlight-banner {
  position: relative;
  background: url('/afbeeldingen/laadpaal-achtergrond.jpg') center/cover no-repeat;
  padding: 80px 0;
  color: white;
}

.highlight-banner .overlay {
  background-color: rgba(0, 0, 0, 0.6); /* donkere filter */
  padding: 60px 20px;
}

.highlight-banner .content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.highlight-banner h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.highlight-banner p {
  font-size: 1rem;
  line-height: 1.6;
}

.adres-container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
}

.adres-icoon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.adres-tekst {
  color: black;
}

@media (max-width: 1440px) {
  .adres-container {
    display: none; /* Verberg op mobiel */
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 2rem;
  font-size: 14px;
  gap: 6px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-item span {
  color: black;
  line-height: 1.3;
}

@media (max-width: 1440px) {
  .contact-info-container {
    display: none;
  }
}

.project-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

.project-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.slideshow-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  height: 600px; /* iets ruimer voor staande foto's */
  background-color: #f5f5f5; /* lichte achtergrond voor padding zones */
}

.slideshow-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background-color: #f5f5f5;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: auto;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.4);
  color: white;
  font-size: 2rem;
  padding: 0 12px;
  border: none;
  cursor: pointer;
  z-index: 10;
  border-radius: 6px;
}

.slide-btn:hover {
  background-color: rgba(0,0,0,0.7);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.recente-projecten {
  text-align: center;
  margin-bottom: 60px;
}

.projecten-subtext {
  max-width: 700px;
  margin: 10px auto 40px auto;
  font-size: 1rem;
  color: #444;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #1a1a1a;
}

.contact-info .icon {
  fill: #f2b200;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.topbar {
  background-color: #e1a500;
  color: white;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-family: 'Inter', sans-serif;

  padding-left: 15vw; /* <- dit schuift links iets op */
  padding-right: 15vw; /* eventueel rechts ook bijstellen */
  padding-top: 10px;
  padding-bottom: 10px;
}

.topbar-left,
.topbar-right {
  display: flex;
  gap: 30px;
  align-items: center;
}

.topbar i {
  margin-right: 6px;
}

/* Nieuw: standaard verborgen */
.navbar .nav-links .relative .dropdown {
  display: none;
  position: absolute;
  background-color: white;
  color: black;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: 8px;
  width: 300px;
  z-index: 999;
  padding: 0.5rem 0;
}

/* Als actief (via JS toegevoegd) */
.navbar .nav-links .relative .dropdown.show {
  display: block;
}

/* Interne opmaak */
.navbar .dropdown a {
  display: block;
  padding: 6px 16px;
  font-size: 0.95rem;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar .dropdown a:hover {
  background-color: #f9f9f9;
  color: #f2b200;
}

.navbar .dropdown .font-semibold {
  font-size: 1rem;
  font-weight: 600;
  color: black;
  margin-bottom: 0.2rem;
}

.navbar .dropdown a.text-sm {
  font-size: 0.85rem;
  color: #555;
  margin-left: 0.5rem;
}

@media (max-width: 1440px) {
  .topbar {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }

  .topbar-left, .topbar-right {
    width: 100%;
    margin-bottom: 5px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 12px;
    background: white;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: #f2b200;
  }
}

/* Desktop: hide hamburger */
.hamburger {
  display: none;
}

/* Opstartactie */
.opstartactie-box {
  background-color: #f2b200;
  color: white;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  max-width: 350px;
  margin: 1rem auto;
  animation: pulse 2s infinite;
  position: relative;
  z-index: 10;
}
.opstartactie-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.opstartactie-text {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Hero-stijl-aanpassing om overlapping te voorkomen */
.hero-text {
  margin-top: 2rem;
}

/* Verplaats de opstartactie naar z’n plek op desktop */
@media (min-width: 1440px) {
  .opstartactie-box {
    position: absolute;
    top: 6rem;
    right: 15rem;
    margin: 0;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(252, 185, 0, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 12px rgba(252, 185, 0, 0.6);
  }
}

.animate-pulse {
  animation: pulse 1.8s ease-in-out infinite;
}

/* Stop pulse als details open is */
details[open].animate-pulse {
  animation: none !important;
}

details summary::marker {
  display: none;
}
details summary {
  list-style: none;
}

* {
  box-sizing: border-box;
}

section, div, header, footer {
  max-width: 100vw;
}

.topbar-mobile {
  background-color: #e1a500;
  color: white;
  font-size: 14px;
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
}

.topbar-mobile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.topbar-mobile-left,
.topbar-mobile-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.topbar-mobile i {
  margin-right: 6px;
}

@media (min-width: 769px) {
  .logo-text {
    position: absolute;
    left: 80px; /* afstand vanaf linkerzijde, finetune dit */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
  }
}

/* Altijd actief */
@media (min-width: 769px) {
  .logo-text {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-left: 5rem !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 1440px) {
  .navbar {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
  }

  .logo-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 1;
  }

  .logo {
    height: 45px !important;
    margin-left: -5px !important;
    margin-top: 4px !important;
  }

  .logo-text {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 15px auto 0 auto !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: black !important;
    white-space: nowrap !important;
    z-index: 10 !important;
    flex: 0 1 auto !important; /* ← laat het element zichzelf wrappen rond de tekst */
    max-width: fit-content !important;
  }

  .hamburger {
    flex: 1;
    text-align: right;
    font-size: 1.5rem;
    color: var(--primary);w
  }
}

.navbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background-color: white !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 1rem 2rem !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 1440px) {
  .slideshow-container {
    height: auto; /* Laat de hoogte meegroeien */
    aspect-ratio: 3 / 4; /* Voor staande foto's, kan ook 2/3 of 4/5 als je wilt */
    max-height: 90vh; /* Zodat je niet te ver moet scrollen */
  }

  .slide {
    height: auto;
  }

  .slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  main {
  overflow-x: hidden;
}
}

@media (min-width: 1440px) {
  .nav-links {
    justify-content: center;
  }
}

/* Footer dienst-links hover */
  .footer-service-link {
    transition: color 0.3s ease, border-color 0.3s ease;
    border-bottom: 2px solid transparent; /* onzichtbare underline standaard */
  }
  .footer-service-link:hover {
    color: #f2b200; /* goudgeel */
    border-color: #f2b200; /* underline in goudgeel */
  }