/* ============================
   BASIS & VARIABELEN
============================ */
:root {
  --maxw: 1200px;
  --pad-section: 56px;
  --pad-section-sm: 36px;
  --pad-section-xs: 28px;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-strong: 0 6px 18px rgba(0, 0, 0, 0.12);
  --accent: #0077cc;
  --accent-2: #005fa3;
  --text: #333;
  --muted: #888;
  --bg-card: #fff;
}

/* ============================
   RESET
============================ */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: transparent;
  max-width: 100%;
  overflow-x: hidden;
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.75));
  z-index: -1;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================
   HEADER / NAV
============================ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  height: 50px;
  width: auto;
  border-radius: 8px;
}

/* Hamburger */
.menu-toggle {
  display: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  background: none;
  border: none;
}

.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #000;
}

/* Desktop nav */
header nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
}

header nav ul li a:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Mobiel nav */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  header nav {
    display: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
  }

  header nav.active {
    display: block;
  }

  header nav ul {
    flex-direction: column;
    text-align: center;
    gap: 0;
  }

  header nav ul li {
    border-bottom: 1px solid #eee;
  }

  header nav ul li a {
    display: block;
    padding: 14px;
    font-size: 1.05rem;
  }
}

/* ============================
   SECTIES & TITELS
============================ */
section {
  padding: var(--pad-section) 20px;
  text-align: center;
}

section > * {
  max-width: var(--maxw);
  margin: 0 auto;
}

@media (max-width: 1024px) {
  section {
    padding: var(--pad-section-sm) 18px;
  }
}

@media (max-width: 600px) {
  section {
    padding: var(--pad-section-xs) 14px;
  }
}

h1 {
  font-size: 2.25rem;
  margin: 0 0 12px;
}

h2 {
  font-size: 2rem;
  margin: 0 0 20px;
}

h3 {
  font-size: 1.4rem;
  margin: 0 0 12px;
}

/* ============================
   ABOUT
============================ */
.logo-container {
  text-align: center;
  margin: 28px auto 16px;
}

.logo-container img {
  width: 200px;
  max-width: 60vw;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.02);
}

.about-container {
  background: var(--bg-card);
  margin: 0 auto 40px;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  align-items: center;
  text-align: left;
}

.about-text p {
  margin: 0;
  font-size: 1rem;
}

.about-text a {
  font-weight: 600;
  color: #000;
}

.about-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--radius);
  border: 0;
}

@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
  }
}

/* Offerteknop */
.about-text {
  text-align: center;
}

.about-text p {
  text-align: left;
}

.offerte-button {
  display: inline-block;
  margin-top: 10px;
  background: #e5e5e5;
  color: #000;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.offerte-button:hover {
  background: #d0d0d0;
}

/* ============================
   PORTFOLIO
============================ */
#portfolio h2 {
  margin-bottom: 24px;
}

/* 3 projecten naast elkaar */
.projects-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0 12px;
  align-items: start;
}

.project {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  border-left: none;
  padding-left: 0;
}

/* Klikbare projectkaart */
.project-link {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.project-link:hover {
  text-decoration: none;
}

/* 1 foto zichtbaar */
.gallery {
  display: block;
  width: 100%;
}

.gallery img,
.gallery video,
.project-media,
.project-video {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  background: transparent;
}

.project-media {
  margin-top: 0;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover zoom */
.project-link img,
.project-link video,
.project-link .project-video {
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.project-link:hover img,
.project-link:hover video,
.project-link:hover .project-video {
  transform: scale(1.05);
}

/* Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Titel */
.project-title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  padding: 0 14px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.project-link:hover .project-overlay {
  opacity: 1;
}

.project-link:hover .project-title {
  transform: translateY(0);
}

/* Eventuele oude galerij-knop verbergen */
.gallery-button,
.show-gallery {
  display: none !important;
}

/* ============================
   PAGINERING
============================ */
.pagination {
  display: none !important;
}

/* ============================
   FORMULIEREN
============================ */
form {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

form button {
  background: #333;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

form button:hover {
  background: #555;
}

/* ============================
   FOOTER
============================ */
footer {
  padding: 26px 16px 46px;
  text-align: center;
}

footer p {
  font-size: 0.95rem;
  color: var(--muted);
}

footer a {
  color: #000;
}

/* ============================
   TEKSTAFBREKING
============================ */
p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
li,
span,
div {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery img,
  .gallery video,
  .project-media,
  .project-video {
    height: 340px;
  }
}

@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .gallery img,
  .gallery video,
  .project-media,
  .project-video {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 480px) {
  section {
    padding: 24px 12px;
  }

  .project {
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    border-radius: 0;
  }

  .gallery img,
  .gallery video,
  .project-media,
  .project-video {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    object-position: center;
  }

  .project-title {
    font-size: 1.1rem;
  }
}