/* =============================================
   M. HOOFD GROND-, WEG- EN WATERBOUW
   Stylesheet
   ============================================= */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:   #1C2B3A;
  --blue:   #1a6fa8;
  --blue-light: #2980B9;
  --earth:  #8B7050;
  --gray:   #f4f4f2;
  --white:  #ffffff;
  --text:   #2d2d2d;
  --muted:  #6b7280;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  background: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- LAYOUT UTILITIES --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.bg-light { background: var(--gray); }
.bg-dark  { background: var(--navy); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col.reverse .text-block { order: 2; }
.two-col.reverse .img-block  { order: 1; }

.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.label-light { color: var(--blue-light); }

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--navy);
}

h2.white { color: var(--white); }

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
}

.section-sub.white { color: rgba(255,255,255,0.7); }

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-light);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* --- HEADER / NAV --- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(28, 43, 58, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

#nav {
  display: flex;
  gap: 32px;
}

#nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

#nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-light);
  transition: width var(--transition);
}

#nav a:hover { color: var(--white); }
#nav a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 43, 58, 0.88) 0%,
    rgba(26, 111, 168, 0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 80px;
}

.hero-tag {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- OVER ONS --- */
.text-block p {
  color: var(--muted);
  margin-bottom: 16px;
}

.text-block p strong {
  color: var(--text);
}

.check-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}

.check-list-light li {
  color: rgba(255,255,255,0.85);
}

.check-list-light li::before {
  color: #7ab3d4;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* Timeline */
.timeline-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 24px;
  border-left: 3px solid var(--border);
}

.tl-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 36px;
  position: relative;
}

.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
  border: 3px solid var(--white);
  outline: 2px solid var(--border);
  flex-shrink: 0;
  margin-left: -30px;
  margin-top: 4px;
}

.tl-current .tl-dot {
  background: var(--blue);
  outline-color: var(--blue);
}

.tl-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 4px;
}

.tl-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* --- DIENSTEN --- */
.diensten-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dienst-card {
  background: var(--white);
  border: 1px solid #e5eaf0;
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.dienst-card:hover {
  background: #f0f7ff;
  border-color: var(--blue);
  transform: translateY(-4px);
}

.dienst-icon {
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 16px;
}

.dienst-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.dienst-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* --- PROJECTEN --- */
.projecten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Image slider per card */
.project-imgs {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-imgs img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.project-imgs img.active {
  opacity: 1;
}

.project-info {
  padding: 24px;
}

.project-year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
}

.project-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 6px 0 10px;
}

.project-info p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  background: #e8f0f8;
  color: var(--blue);
  padding: 4px 10px;
  border-radius: 20px;
}

/* --- MATERIEEL --- */
.white-muted {
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
}

.wagenpark-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.wagenpark-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.wagenpark-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 128, 185, 0.5);
}

.wagenpark-imgs {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.wagenpark-imgs img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.wagenpark-imgs img.active {
  opacity: 1;
}

.wagenpark-info {
  padding: 28px;
}

.wagenpark-date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-light);
  display: block;
  margin-bottom: 8px;
}

.wagenpark-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.wagenpark-info p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.wagenpark-info ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wagenpark-info li {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  padding-left: 20px;
  position: relative;
}

.wagenpark-info li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue-light);
  font-weight: 700;
}

/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: #e8f0f8;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--blue);
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--blue);
}

/* Contact form */
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

.form-group textarea {
  resize: vertical;
}

.form-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #16a34a;
  font-weight: 600;
}

/* --- LAATSTE NIEUWS --- */
.nieuws-kaart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 40px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.nieuws-foto {
  overflow: hidden;
}

.nieuws-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nieuws-tekst {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.nieuws-tekst p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.nieuws-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.nieuws-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .nieuws-kaart {
    grid-template-columns: 1fr;
  }
  .nieuws-foto img {
    height: 240px;
  }
}

/* --- FOOTER --- */
.footer {
  background: var(--navy);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.footer-copy {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
}

/* --- HAMBURGER ACTIVE (X animatie) --- */
.hamburger span {
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- HEADER SCROLLED STATE --- */
#header.scrolled {
  background: rgba(28, 43, 58, 0.98);
}

/* --- ACTIEVE NAV LINK --- */
#nav a.active {
  color: var(--white);
}

#nav a.active::after {
  width: 100%;
}

/* --- BOTTOM NAV (mobile only) --- */
#bottom-nav { display: none; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .diensten-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projecten-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .hamburger { display: none; }

  #nav { display: none !important; }

  body { padding-bottom: 60px; }

  #bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.12);
    height: 60px;
  }

  #bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    gap: 4px;
    text-decoration: none;
    transition: color var(--transition);
  }

  #bottom-nav a i {
    font-size: 1.15rem;
  }

  #bottom-nav a.active,
  #bottom-nav a:hover {
    color: var(--white);
  }

  .two-col,
  .two-col.reverse {
    grid-template-columns: 1fr;
  }

  .two-col.reverse .text-block,
  .two-col.reverse .img-block {
    order: unset;
  }

  .diensten-grid {
    grid-template-columns: 1fr 1fr;
  }

  .projecten-grid {
    grid-template-columns: 1fr;
  }

  .wagenpark-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

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

  .hero-btns {
    flex-direction: column;
  }

  .contact-form {
    padding: 24px 20px;
  }
}

/* --- LIGHTBOX --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.lightbox-counter {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-top: 14px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }

.project-card { cursor: pointer; }

/* --- COOKIE BAR --- */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 2px solid var(--blue);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-bar.hidden {
  display: none;
}

.cookie-bar p {
  margin: 0;
  flex: 1;
}

.cookie-bar a {
  color: var(--blue-light);
  text-decoration: underline;
}

.cookie-bar a:hover {
  color: var(--white);
}

.cookie-ok-btn {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition);
}

.cookie-ok-btn:hover {
  background: var(--blue-light);
}

@media (max-width: 768px) {
  .cookie-bar {
    bottom: 60px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
