:root {
  --primary: #d82828;
  --text: #1f1f1f;
  --muted: #6f6f6f;
  --card-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  --container: 1500px;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.5;
}

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

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

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* Hero */

.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}

.floating-logo {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 5;
  padding: 10px 14px;
}

.logo-image {
  width: 180px;
  height: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 80px 20px 220px;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 28px;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.18);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  min-height: 72px;
  padding: 18px 34px;
  background: var(--primary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 16px 28px rgba(216, 40, 40, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  background: #bf1f1f;
}

/* Services */

.service-overlap {
  position: relative;
  margin-top: -120px;
  z-index: 3;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1600px;
}

.service-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.service-image {
  aspect-ratio: 16 / 9;
  background: #e9eef3 center/cover no-repeat;
}

.service-image-1 {
  background-image: url('img/nieuwbouw.jpg');
}

.service-image-2 {
  background-image: url('img/Renovatie.PNG');
}

.service-image-3 {
background-image: url('img/Aanemerij.PNG');
}

.service-image-4 {
background-image: url('img/verbouw\ aanbouw.jpg');
}

.service-body {
  padding: 24px 26px 28px;
}

.service-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.service-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d8a2a2;
  border: 2px solid #efc7c7;
  border-radius: 8px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.service-body p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 100%;
}

/* Projects */

.projects {
  padding: 130px 0 110px;
  background: #fff;
}

.section-title {
  text-align: center;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 60px;
}

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

.project-image {
  aspect-ratio: 1 / 1;
  background: #edf2f6 center/cover no-repeat;
  border-radius: 2px;
}

.project-image-1 {
  background-image: url('img/nieuwbouw.jpg');
}

.project-image-2 {
  background-image: url('https://images.unsplash.com/photo-1511818966892-d7d671e672a2?auto=format&fit=crop&w=900&q=80');
}

.project-image-3 {
  background-image: url('img/project-tuinhuis.jpg');
}

/* Footer */

.site-footer {
  background: #fff;
  padding: 34px 0 44px;
}

.footer-line {
  height: 4px;
  width: 100%;
  background: var(--primary);
  margin-bottom: 36px;
  opacity: 0.85;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto;
  align-items: center;
  gap: 28px;
}

.footer-logo-image {
  width: 260px;
  height: auto;
}

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

.footer-contact p {
  line-height: 1.45;
  white-space: nowrap;
}

.socials {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.7rem;
}

.socials a {
  transition: transform 0.2s ease, color 0.2s ease;
}

.socials a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Responsive */

@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-title {
    font-size: 1.6rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-bottom: 170px;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .service-overlap {
    margin-top: -90px;
  }

  .projects {
    padding-top: 90px;
  }

  .floating-logo {
    top: 16px;
    left: 16px;
  }

  .logo-image {
    width: 145px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .logo-image {
    width: 120px;
  }

  .footer-logo-image {
    width: 210px;
  }

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

  .hero-btn {
    min-width: 100%;
    min-height: 60px;
    font-size: 1.05rem;
  }

  .service-title {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .socials {
    font-size: 1.4rem;
  }
}