/* ---------- Design tokens ---------- */
:root {
  --background: hsl(0 0% 97%);
  --foreground: hsl(0 0% 10%);
  --card: hsl(0 0% 100%);
  --primary: hsl(122 42% 42%);
  --primary-dark: hsl(122 42% 33%);
  --primary-light: hsl(122 42% 92%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(0 0% 15%);
  --secondary-foreground: hsl(0 0% 98%);
  --muted: hsl(0 0% 93%);
  --muted-foreground: hsl(0 0% 38%);
  --border: hsl(0 0% 88%);
  --radius: 1rem;
  --font-heading: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
  --container-w: 1180px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 10px 30px -12px rgba(0,0,0,.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--primary); color: #fff; padding: .75rem 1.25rem; z-index: 200;
  border-radius: 0 0 .5rem 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.text-primary { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-family: var(--font-body);
  border-radius: 999px; padding: .8rem 1.6rem; font-size: .95rem;
  border: 1px solid transparent; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--border); background: transparent; color: var(--foreground); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: hsla(0,0%,97%,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.5rem; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; flex-shrink: 0; }
.logo strong { color: var(--primary); font-weight: 800; }
.main-nav ul { display: flex; gap: 1.75rem; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--muted-foreground); transition: color .15s; }
.main-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.25rem; height: 2.25rem; background: none; border: none; padding: 0;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--foreground); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 78vh; overflow: hidden; padding: 6rem 0; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom right, hsla(0,0%,15%,.82), hsla(0,0%,15%,.62), hsla(0,0%,15%,.72));
}
.hero-content { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; text-align: center; color: #fff; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; padding: .4rem 1rem; font-size: .85rem; font-weight: 600;
}
.badge-hero { border: 1px solid hsla(122,42%,55%,.5); background: hsla(122,42%,42%,.2); color: #fff; margin-bottom: 1.5rem; }
.badge-hero svg { color: var(--primary); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 800; color: #fff; }
.hero-lead { font-size: clamp(1rem, 1.4vw, 1.2rem); color: hsla(0,0%,100%,.9); max-width: 640px; margin-inline: auto; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; margin-top: 2.5rem; font-size: .95rem; color: hsla(0,0%,100%,.9); }
.hero-trust li::before { content: "✓ "; color: var(--primary); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-muted { background: var(--muted); }
.section-dark { background: var(--secondary); color: var(--secondary-foreground); }
.section-primary { background: var(--primary); color: var(--primary-foreground); padding: 3.5rem 0; }

.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head-light h2, .section-head-light p { color: var(--secondary-foreground); }
.eyebrow { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin-bottom: .5rem; }
.eyebrow-light { color: hsla(0,0%,100%,.85); }
.section-head h2, .about-content h2, .werkgebied-grid h2, .contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-lead { color: var(--muted-foreground); font-size: 1.05rem; }
.section-head-light .section-lead { color: hsla(0,0%,100%,.75); }
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- Cards / services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); border-radius: .75rem; margin-bottom: 1rem;
}
.card h3 { font-size: 1.15rem; }
.check-list { margin-top: 1rem; display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; color: var(--muted-foreground); }
.check-list li::before { content: "✓ "; color: var(--primary); font-weight: 700; }
.card-cta { background: var(--secondary); color: var(--secondary-foreground); display: flex; flex-direction: column; justify-content: center; }
.card-cta p { color: hsla(0,0%,100%,.75); }
.card-cta .btn { align-self: flex-start; margin-top: .5rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1fr; gap: 3.5rem; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; }
.pill-list { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 1.5rem; }
.pill-list li { background: var(--muted); border-radius: 999px; padding: .4rem 1rem; font-size: .85rem; font-weight: 600; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { text-align: center; }
.stat svg { color: var(--primary); margin-bottom: .75rem; }
.stat h3 { font-size: 1.05rem; }
.stat p { font-size: .9rem; color: var(--muted-foreground); }

/* ---------- Werkwijze ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding-top: .5rem; }
.step-no { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: .5rem; }
.steps h3 { color: #fff; font-size: 1.1rem; }
.steps p { color: hsla(0,0%,100%,.7); font-size: .92rem; }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.project-card h3 { margin-top: 1rem; font-size: 1.1rem; }
.project-card p { color: var(--muted-foreground); font-size: .92rem; }
.project-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.project-card:hover .project-media img { transform: scale(1.04); }
.badge-sample { position: absolute; top: .75rem; left: .75rem; background: hsla(0,0%,10%,.65); color: #fff; backdrop-filter: blur(4px); font-size: .72rem; }
.badge-sample-inline { background: var(--muted); color: var(--muted-foreground); font-size: .68rem; padding: .15rem .55rem; margin-left: .5rem; text-transform: uppercase; letter-spacing: .04em; }
.project-location { color: var(--primary); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin: -.5rem 0 .5rem; }
.project-grid-loading, .project-grid-empty { grid-column: 1 / -1; text-align: center; color: var(--muted-foreground); padding: 2rem 0; }

/* ---------- Project filters ---------- */
.project-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.5rem; }
.filter-btn {
  background: var(--card); border: 1px solid var(--border); color: var(--muted-foreground);
  border-radius: 999px; padding: .55rem 1.15rem; font-size: .88rem; font-weight: 600;
  font-family: var(--font-body); transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }

.page-intro { padding-top: 3.5rem; }

/* ---------- Project detail page ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted-foreground); margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumb a { color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span[aria-current] { color: var(--foreground); font-weight: 600; }
.detail-hero { padding-bottom: 0; }
.detail-hero .eyebrow { text-align: left; }
.detail-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 820px; }
.detail-hero .section-lead { text-align: left; margin: 0; max-width: 720px; }
.detail-gallery-section { padding-top: 2.5rem; padding-bottom: 0; }
.detail-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.detail-gallery .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.detail-content { max-width: 760px; }
.detail-section { margin-bottom: 2.25rem; }
.detail-section h2 { font-size: 1.4rem; }
.detail-section p { color: var(--muted-foreground); }
.detail-cta { text-align: left; margin-top: 2.5rem; }

@media (max-width: 720px) {
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
  .detail-gallery .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
}

/* ---------- Werkgebied ---------- */
.werkgebied-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.werkgebied-grid p { color: hsla(0,0%,100%,.9); }
.place-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.place-list li { background: hsla(0,0%,100%,.15); border: 1px solid hsla(0,0%,100%,.25); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; font-size: .9rem; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.review-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; margin: 0; }
.review-card p { font-size: 1.02rem; font-style: italic; }
.review-card footer { font-weight: 700; font-size: .9rem; display: flex; align-items: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3.5rem; }
.contact-info p { color: hsla(0,0%,100%,.75); }
.info-block { margin-top: 1.75rem; }
.info-block h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; color: hsla(0,0%,100%,.6); margin-bottom: .35rem; }
.info-block p { color: #fff; margin: 0; }
.link-primary { color: var(--primary); font-weight: 600; }
.link-primary:hover { text-decoration: underline; }

.contact-form { background: var(--card); color: var(--foreground); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md); }
.form-row { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.form-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-half > div { display: flex; flex-direction: column; gap: .4rem; }
label { font-size: .85rem; font-weight: 700; }
input, textarea {
  font: inherit; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: .6rem;
  background: var(--background); color: var(--foreground);
}
input:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.form-note { min-height: 1.2em; font-size: .9rem; margin: .75rem 0 0; color: var(--primary-dark); }
.form-note.is-error { color: hsl(0,70%,45%); }
.honeypot { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary); color: hsla(0,0%,100%,.6); padding: 2rem 0; border-top: 1px solid hsla(0,0%,100%,.08); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.logo-footer { color: #fff; }
.footer-credit, .footer-copy { margin: 0; font-size: .85rem; }

/* ---------- Mobile floating CTA ---------- */
.mobile-cta {
  display: none; position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 90;
  background: var(--primary); color: #fff; text-align: center; font-weight: 700;
  padding: .9rem; border-radius: 999px; box-shadow: var(--shadow-md);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .werkgebied-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; max-width: 420px; margin-inline: auto; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 4.5rem 0 0 0; background: var(--background); padding: 1.5rem; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); visibility: visible; transition: transform .25s ease; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .card-grid, .project-grid { grid-template-columns: 1fr; }
  .form-row-half { grid-template-columns: 1fr; }
  .mobile-cta { display: block; }
  .site-footer { padding-bottom: 5.5rem; }
}
