/* ===== Variables & Base – Egberts Steigerbouw ===== */
:root {
  --blue-dark: #1F3A93;
  --gray-light: #F5F5F5;
  --gray-dark: #333333;
  --white: #ffffff;
  --accent: #1F3A93;
  --accent-hover: #2a4bb8;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, sans-serif;
  color: var(--gray-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #2a4bb8 50%, #3d5dc4 100%);
  color: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto 4rem;
  width: 100%;
  position: relative;
  z-index: 10;
}

.logo {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  display: inline-block;
}

.logo img {
  height: auto;
  max-height: 250px;
  width: auto;
  display: block;
  vertical-align: middle;
}

.logo span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.logo:hover {
  color: var(--white);
  opacity: 0.95;
}

.logo:hover img {
  opacity: 0.95;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gray-light);
}

.nav-dropdown {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 260px;
  padding: 0.5rem 0;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}

.nav-dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.submenu li {
  margin: 0;
}

.submenu a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--gray-dark);
  white-space: nowrap;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
}

.submenu a:hover {
  background: var(--gray-light);
  color: var(--blue-dark);
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-highlight {
  color: #5ce7ff;
}

.hero-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--gray-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

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

.hero-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--gray-light);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

/* ===== Mid-page hero (between intro and diensten) ===== */
.hero-mid {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.hero-mid-bg {
  position: absolute;
  inset: 0;
  background: url('images/13.png') center/cover no-repeat;
}

.hero-mid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 58, 147, 0.55);
}

.hero-mid-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 720px;
}

.hero-mid-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-mid-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero-mid-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.btn-hero-mid-primary {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--white);
  color: var(--blue-dark);
  border: none;
}

.btn-hero-mid-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero-mid-outline {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

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

.hero-mid-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.hero-mid-benefit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
}

.hero-mid-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-dark);
  flex-shrink: 0;
}

.hero-mid-check::after {
  content: '✓';
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ===== Section Styles ===== */
.section {
  padding: 5rem 0;
}

.section-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  color: var(--gray-dark);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ===== Diensten ===== */
.diensten {
  background: var(--white);
}

.diensten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.dienst-card {
  background: var(--gray-light);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 58, 147, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.dienst-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-dark);
  /* LED-achtige blauwe gloed die naar buiten uitstraalt */
  box-shadow:
    0 0 15px rgba(31, 58, 147, 0.35),
    0 0 30px rgba(31, 58, 147, 0.25),
    0 0 45px rgba(31, 58, 147, 0.15),
    0 0 60px rgba(31, 58, 147, 0.1),
    0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.dienst-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.dienst-icon svg {
  width: 48px;
  height: 48px;
  display: block;
}

.dienst-card h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
}

.dienst-card p {
  font-family: 'Open Sans', sans-serif;
  color: var(--gray-dark);
}

a.dienst-card {
  text-decoration: none;
  color: inherit;
}

a.dienst-card h3,
a.dienst-card p {
  color: inherit;
}

a.dienst-card h3 {
  color: var(--blue-dark);
}

/* ===== Gallery ===== */
.gallery-section {
  overflow: hidden;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.gallery-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  color: var(--blue-dark);
  margin-bottom: 1.5rem;
}

.gallery-scroll {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.gallery-track {
  display: flex;
  gap: 0;
  animation: scroll-gallery 45s linear infinite;
  width: max-content;
}

.gallery-item {
  flex-shrink: 0;
  width: 380px;
  height: 280px;
  border-radius: 0;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

@keyframes scroll-gallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
  .gallery-track .gallery-item:nth-child(n+8) {
    display: none;
  }
}

/* ===== CV / Ervaring Section ===== */
.cv-section {
  background: linear-gradient(135deg, var(--blue-dark), #2a4bb8);
  color: var(--white);
}

.cv-container {
  text-align: center;
}

.cv-content h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.cv-content p {
  font-family: 'Open Sans', sans-serif;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.btn-cv {
  background: var(--white);
  color: var(--blue-dark) !important;
  border: none;
}

.btn-cv:hover {
  background: var(--gray-light);
  transform: translateY(-2px);
}

/* ===== Testimonials ===== */
.testimonials {
  background: var(--gray-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  position: relative;
  background: var(--white);
  padding: 2.5rem 2rem 2.25rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue-dark); /* blue line moved to top */
  text-align: center;
  overflow: hidden;
}

/* decorative corner image on bottom-right */
.testimonial-card::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 140px;
  height: 140px;
  background: url("images/review-accent.png") bottom right / contain no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.testimonial-stars {
  color: var(--blue-dark);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-family: 'Open Sans', sans-serif;
  font-style: italic;
  color: var(--gray-dark);
  margin: 1.25rem 0 1.75rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
}

.author-location {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--gray-dark);
}

/* ===== Footer ===== */
.footer {
  background: var(--blue-dark);
  color: var(--white);
  padding-top: 4rem;
}

.footer-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.footer-content {
  text-align: center;
}

.footer h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.footer-intro {
  font-family: 'Open Sans', sans-serif;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact-details a,
.contact-details p {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Open Sans', sans-serif;
}

.contact-icon {
  flex-shrink: 0;
  vertical-align: middle;
  stroke: currentColor;
}

.contact-details a:hover {
  color: var(--gray-light);
}

.btn-whatsapp {
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #25d366;
  color: var(--white) !important;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-social > a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s, transform 0.2s;
}

.footer-social > a:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social svg {
  display: block;
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-links a {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  white-space: nowrap;
}

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

.footer-bottom {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem 1.25rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-contact .footer-bottom {
  margin-top: 0;
}

.footer-contact {
  padding-top: 0;
}

.footer-bottom p {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--gray-light);
}

/* ===== Floating WhatsApp CTA ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ===== Service sub-pages ===== */
.hero-small {
  min-height: 50vh;
  padding-bottom: 2rem;
}

.hero-small .hero-content {
  justify-content: flex-start;
  padding-top: 2rem;
}

.dienst-detail {
  max-width: 700px;
}

.dienst-detail h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.legal-content h2:not(:first-of-type) {
  margin-top: 2.5rem;
}

.dienst-detail p {
  font-family: 'Open Sans', sans-serif;
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
}

.dienst-lijst {
  margin: 1.5rem 0 2rem 1.5rem;
  color: var(--gray-dark);
  font-family: 'Open Sans', sans-serif;
}

.dienst-lijst li {
  margin-bottom: 0.5rem;
}

.hero .submenu a {
  color: var(--gray-dark);
}

/* ===== Contact page ===== */
.contact-page {
  background: var(--white);
}

.contact-container {
  max-width: 900px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2,
.contact-form h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
}

.contact-info p,
.contact-form label {
  font-family: 'Open Sans', sans-serif;
  color: var(--gray-dark);
  margin-bottom: 1rem;
}

.contact-details-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.contact-details-block a,
.contact-details-block p {
  color: var(--gray-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Open Sans', sans-serif;
}

.contact-details-block a:hover {
  color: var(--blue-dark);
}

.contact-form {
  background: var(--gray-light);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 58, 147, 0.15);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  border: 1px solid rgba(51, 51, 51, 0.2);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 0.2s;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-dropdown .submenu {
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
  }

  .nav-dropdown:hover .submenu {
    transform: translateX(-50%) translateY(4px);
  }

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

  .hero-mid {
    min-height: 50vh;
  }

  .hero-mid-benefits {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-mid-buttons {
    flex-direction: column;
  }

  .hero-accent {
    height: 40px;
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
  }

  .section {
    padding: 3rem 0;
  }

  .gallery-item {
    width: 320px;
    height: 240px;
  }
}
