:root {
  --bg: #f7f4ee;
  --text: #1f2933;
  --muted: #667085;
  --primary: #c77b2d;
  --primary-dark: #9f5d1b;
  --card: #ffffff;
  --dark: #111827;
  --border: #e7ded3;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
}

.nav-links a:not(.btn):hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--dark);
  color: white;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  padding: 13px 22px;
  box-shadow: 0 10px 22px rgba(199, 123, 45, 0.25);
  transition: 0.2s ease;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn.secondary {
  background: white;
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--border);
}

.btn.small {
  padding: 9px 16px;
}

.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(17,24,39,0.82), rgba(17,24,39,0.35)),
    url("images/hero.jpg") center/cover;
  color: white;
}

.hero-content {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 90px 24px;
}

.hero-content h1 {
  max-width: 720px;
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  line-height: 1;
  margin: 12px 0 22px;
}

.hero-content p {
  max-width: 620px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 900;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 24px;
}

.section.muted {
  max-width: none;
  background: #eee7dd;
}

.section.muted .section-heading,
.section.muted .gallery,
.detail-page .section-heading {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2,
.cta h2,
.contact-card h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 8px 0 10px;
}

.section-heading p:not(.eyebrow),
.cta p,
.contact-card p {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card,
.before-after-card,
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.card h3,
.before-after-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.card p {
  color: var(--muted);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: #ddd;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(17, 24, 39, 0.18);
}

.gallery-item img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.gallery-item span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: white;
  padding: 9px 14px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  max-width: 1080px;
  margin: 0 auto;
}

.before-after-card h3 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.before-after {
  --position: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #ddd;
  user-select: none;
}

.before-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.after-image,
.before-layer,
.before-image {
  position: absolute;
  inset: 0;
}

.before-layer {
  width: var(--position);
  overflow: hidden;
}

.before-image {
  width: 100%;
  min-width: 100%;
  max-width: none;
}

.before-after input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 4px;
  background: white;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 16px rgba(0,0,0,0.35);
}

.slider-button {
  position: absolute;
  top: 50%;
  left: var(--position);
  z-index: 4;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--dark);
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.label {
  position: absolute;
  top: 14px;
  z-index: 4;
  background: rgba(17,24,39,0.72);
  color: white;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 0.82rem;
}

.before-label {
  left: 14px;
}

.after-label {
  right: 14px;
}

.cta {
  margin: 40px auto;
  max-width: 1100px;
  border-radius: 32px;
  padding: 60px 28px;
  text-align: center;
  background: var(--dark);
  color: white;
}

.cta p {
  max-width: 650px;
  margin: 0 auto 24px;
  color: rgba(255,255,255,0.78);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.contact-details {
  background: #f6efe6;
  border-radius: 20px;
  padding: 24px;
}

.contact-details p + p {
  margin-top: 12px;
}

.contact-details a {
  color: var(--primary-dark);
  font-weight: 800;
}

.footer {
  text-align: center;
  padding: 28px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* Detailpagina realisaties */
/* Detailpagina realisaties */
.detail-topbar {
  background: rgba(247, 244, 238, 0.96);
}

.detail-navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.detail-navbar .logo {
  justify-self: center;
}

.detail-spacer {
  display: block;
}

.back-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: var(--primary-dark);
}

.back-link:hover {
  color: var(--primary);
}

.project-hero {
  min-height: 48vh;
  display: flex;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(17,24,39,0.86), rgba(17,24,39,0.34)),
    var(--project-hero-image) center/cover;
  color: white;
}

.project-hero-content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 24px 70px;
}

.project-hero-content h1 {
  max-width: 780px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
  margin: 10px 0 16px;
}

.project-hero-content p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.detail-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px 90px;
}

.project-photos-section {
  max-width: 940px;
  margin: 0 auto;
}

.centered-heading {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.extra-heading {
  margin-top: 62px;
}

.project-photo-card,
.project-extra-grid img {
  overflow: hidden;
  border-radius: 30px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.project-main-card {
  max-width: 1640px;
  margin: 28px auto 0;
}

.project-main-photo,
.project-extra-grid img {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #ddd;
}

.project-extra-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project-extra-grid img {
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.12);
}

.project-note {
  margin-top: 34px;
  padding: 22px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  color: var(--muted);
}

/* Contactpagina */
.contact-hero {
  min-height: 48vh;
  display: flex;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(17,24,39,0.86), rgba(17,24,39,0.34)),
    url("images/hero.jpg") center/cover;
  color: white;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.contact-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: clamp(26px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin: 8px 0 14px;
}

.contact-panel p {
  color: var(--muted);
}

.email-box {
  display: block;
  margin: 28px 0 22px;
  padding: 22px;
  border-radius: 22px;
  background: #f6efe6;
  border: 1px solid var(--border);
}

.email-box span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.email-box strong {
  color: var(--primary-dark);
  font-size: clamp(1.25rem, 3vw, 2rem);
  word-break: break-word;
}

.contact-mail-btn {
  width: fit-content;
}

.contact-checklist ul {
  margin-top: 22px;
  padding-left: 0;
  list-style: none;
}

.contact-checklist li {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f6efe6;
  color: var(--text);
  font-weight: 700;
}

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

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

  .cards,
  .gallery,
  .contact-card,
  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .project-extra-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 240px;
  }
}

@media (max-width: 560px) {
  .navbar,
  .section,
  .hero-content,
  .detail-page,
  .detail-navbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .gallery-item img {
    height: 210px;
  }
}
