/* Bos Projectbouw */

:root {
  --ink: #1b1a18;
  --text: #33312d;
  --muted: #625e57;
  --line: #e3e0da;
  --grey: #f4f3f0;
  --white: #ffffff;
  --primary: #a8641f;
  --primary-dark: #8a5118;
  --focus: #d9933f;

  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;

  --container: 1200px;
  --gutter: 16px;
  --section: clamp(64px, 8vw, 104px);
  --header-h: 72px;
  --radius: 6px;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 960px) { :root { --gutter: 32px; --header-h: 88px; } }

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--primary-dark); }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--grey); color: var(--ink); }
.btn-outline-light { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand img { height: 44px; width: auto; }
@media (min-width: 960px) { .brand img { height: 54px; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px 8px 12px;
  background: none;
  border: 0;
  color: var(--ink);
  font: 700 0.95rem var(--font-head);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--white);
  padding: 4px var(--gutter) 24px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 20px; padding: 0; }
.site-nav li a {
  display: block;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
  font: 600 1.05rem var(--font-head);
  border-bottom: 1px solid var(--line);
}
.site-nav li a:hover,
.site-nav li a.is-active { color: var(--primary); }
.nav-cta { width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .site-nav ul { display: flex; gap: 32px; margin: 0; }
  .site-nav li a { padding: 6px 0; border: 0; font-size: 0.95rem; }
  .nav-cta { width: auto; }
}

/* Hero */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg img:first-child { object-position: 50% 60%; }
.hero-bg img:nth-child(n+2) { display: none; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 19, 17, .8) 0%, rgba(20, 19, 17, .55) 55%, rgba(20, 19, 17, .2) 100%);
}
@media (min-width: 760px) {
  .hero-bg { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .hero-bg img:nth-child(n+2) { display: block; }
  .hero-bg img:nth-child(2) { object-position: 40% 45%; }
  .hero-bg img:nth-child(3) { object-position: 50% 52%; }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 88px;
  padding-bottom: 96px;
}
@media (min-width: 960px) {
  .hero-content { padding-top: 140px; padding-bottom: 150px; }
}
.hero-kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, .85);
  margin-bottom: 0.75rem;
}
.hero h1 { color: var(--white); max-width: 15em; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
@media (max-width: 759px) {
  .hero::after { background: rgba(20, 19, 17, .66); }
}
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, .9);
  max-width: 34em;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
}

/* Intro */
.intro-grid { display: grid; gap: 20px; }
.intro h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 0; }
.intro p { color: var(--muted); font-size: 1.05rem; }
.intro p:last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  .intro-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-grey { background: var(--grey); }

.section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-title p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* Service cards */
.cards { display: grid; gap: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.card-body { padding: 22px 24px 26px; }
.card-body p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* About */
.about { display: grid; gap: 40px; align-items: center; }
.about-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: var(--radius);
}
.about-text p { color: var(--muted); }
.about-text .btn { margin-top: 0.5rem; }
@media (min-width: 960px) {
  .about { grid-template-columns: 1fr 1fr; gap: 72px; }
}

/* Gallery */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.gallery-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  cursor: zoom-in;
  text-align: left;
  font: inherit;
}
.gallery-btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-btn:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
  color: rgba(255, 255, 255, .88);
  font-size: 0.85rem;
  line-height: 1.35;
}
.gallery-caption strong {
  display: block;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.95rem;
}
@media (max-width: 479px) {
  .gallery-caption { padding: 28px 10px 10px; font-size: 0.78rem; }
  .gallery-caption strong { font-size: 0.85rem; }
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 3px solid var(--primary);
  padding-top: 18px;
}
.steps h3::before {
  content: counter(step) ". ";
  color: var(--primary);
}
.steps p { color: var(--muted); margin: 0; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Contact */
.contact { display: grid; gap: 40px; }
.contact-info > p { color: var(--muted); max-width: 30em; }
.contact-list { margin: 2rem 0 0; }
.contact-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list > div:first-child { border-top: 1px solid var(--line); }
.contact-list > div[hidden] { display: none; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 600; color: var(--ink); }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--primary); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
}
@media (min-width: 640px) { .contact-form { padding: 36px; } }
@media (min-width: 960px) {
  .contact { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
}

.field-row { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.req { color: var(--primary); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid #d3cfc7;
  border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168, 100, 31, .2);
}
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { margin: 6px 0 0; font-size: 0.9rem; color: #b3261e; font-weight: 600; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.form-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  font-size: 0.95rem;
  border-radius: var(--radius);
  background: #e8f1e9;
  color: #1f4d2b;
}
.form-status.is-error { background: #fbeceb; color: #8c1d18; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  padding: 60px 0 0;
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 36px; padding-bottom: 44px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 24em; }
.footer-title {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { font-style: normal; margin-bottom: 1em; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 0.85rem;
}
.footer-legal p { margin: 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* WhatsApp */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.wa-float[hidden] { display: none; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { background: #1ebe5b; color: var(--white); }

/* Lightbox */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(16, 15, 14, .95);
  color: var(--white);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(16, 15, 14, .95); }
.lightbox figure {
  margin: 0;
  padding: 64px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}
.lightbox img {
  max-width: min(100%, 900px);
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox figcaption { margin-top: 14px; text-align: center; max-width: 40em; }
.lb-btn {
  position: fixed;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 0;
  color: var(--white);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { bottom: 16px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
@media (min-width: 760px) {
  .lb-prev, .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
  .lb-close { top: 20px; right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
