:root {
  --ink: #111316;
  --muted: #62686f;
  --paper: #fbfaf7;
  --soft: #f0f1f2;
  --line: #d8dadd;
  --charcoal: #171a1f;
  --orange: #f47a16;
  --orange-dark: #c84f08;
  --silver: #7f8994;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(17, 19, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 12px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: rgba(17, 19, 22, 0.94);
  border-bottom: 3px solid var(--orange);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.05;
}

.brand small {
  display: block;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand span {
  min-width: 0;
}

.brand-logo {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.96rem;
  font-weight: 700;
}

.main-nav a {
  padding: 7px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  border-color: var(--orange);
}

.site-header .main-nav a:hover,
.site-header .main-nav a.active {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100vh - 148px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 20, 15, 0.82) 0%, rgba(10, 20, 15, 0.54) 42%, rgba(10, 20, 15, 0.18) 100%),
    linear-gradient(0deg, rgba(17, 19, 22, 0.22), rgba(17, 19, 22, 0.22));
}

.hero-content {
  position: relative;
  width: min(680px, calc(100% - 40px));
  margin-left: clamp(20px, 6vw, 88px);
  padding: 72px 0 92px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb45c;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 13ch;
  font-size: 5.1rem;
}

.page-hero h1 {
  max-width: 980px;
  font-size: 4.4rem;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 1.3rem;
}

.hero-content > p:not(.eyebrow),
.page-hero > p {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
}

.hero-actions,
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--orange);
}

.button.primary:hover {
  background: var(--orange-dark);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.button.secondary.dark {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.button.secondary.dark:hover {
  background: var(--soft);
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 72px);
}

.compact-top {
  padding-top: 24px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 38px;
}

.section-heading h2,
.split h2 {
  max-width: 760px;
}

.service-grid,
.portfolio-grid {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid article,
.project-card,
.contact-form,
.contact-details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(17, 19, 22, 0.08);
}

.service-grid article {
  min-height: 230px;
  padding: 28px;
}

.service-number,
.project-type {
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-grid h3 {
  margin-top: 44px;
}

.service-grid p,
.project-content p,
.contact-details p,
.contact-details dd,
.feature-list p,
.process-list p {
  color: var(--muted);
}

.highlight-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(58px, 8vw, 96px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(244, 122, 22, 0.12), rgba(244, 122, 22, 0) 38%),
    var(--charcoal);
}

.highlight-band .eyebrow {
  color: #ffb45c;
}

.highlight-band h2 {
  max-width: 650px;
}

.process-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.process-list span {
  font-weight: 900;
}

.process-list p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: start;
  max-width: 1324px;
  margin: 0 auto;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list p {
  margin: 0;
  padding: 16px 18px;
  background: var(--soft);
  border-left: 4px solid var(--orange);
  border-radius: 6px;
  font-weight: 700;
}

.page-hero {
  padding: clamp(64px, 9vw, 116px) clamp(20px, 5vw, 72px) clamp(40px, 7vw, 72px);
  background:
    linear-gradient(90deg, rgba(244, 122, 22, 0.14), rgba(244, 122, 22, 0) 44%),
    var(--soft);
  border-bottom: 1px solid var(--line);
}

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

.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-section {
  max-width: 1324px;
  margin: 0 auto;
}

.project-card {
  overflow: hidden;
}

.category-card {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card:hover,
.category-card:focus {
  transform: translateY(-3px);
  border-color: rgba(244, 122, 22, 0.48);
  box-shadow: 0 18px 42px rgba(17, 19, 22, 0.13);
  outline: none;
}

.category-card.active {
  border-color: var(--orange);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card:nth-child(2) img {
  object-position: center;
}

.project-card:nth-child(3) img {
  object-position: right center;
}

.project-content {
  padding: 24px;
}

.project-content h2 {
  margin-top: 8px;
  font-size: 1.45rem;
}

.category-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--orange-dark);
  font-weight: 900;
}

.portfolio-detail {
  max-width: 1180px;
  margin: 34px auto 0;
  padding-top: 8px;
}

.portfolio-detail-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.portfolio-detail-heading h2 {
  font-size: 2.2rem;
}

.portfolio-detail-heading p:not(.eyebrow) {
  color: var(--muted);
}

.portfolio-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portfolio-photo {
  margin: 0;
}

.portfolio-photo button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: zoom-in;
}

.portfolio-photo button:focus-visible {
  outline: 3px solid rgba(244, 122, 22, 0.42);
  outline-offset: 4px;
}

.portfolio-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(17, 19, 22, 0.1);
  transition: transform 180ms ease, filter 180ms ease;
}

.portfolio-photo button:hover img,
.portfolio-photo button:focus-visible img {
  transform: scale(1.03);
  filter: saturate(1.04);
}

.portfolio-empty {
  color: var(--muted);
  font-weight: 800;
}

.reveal-up {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.lightbox-open {
  overflow: hidden;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(44px, 0.12fr) minmax(0, 1fr) minmax(44px, 0.12fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: clamp(18px, 4vw, 42px);
  color: var(--white);
  background: rgba(9, 10, 12, 0.92);
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox img {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  max-width: min(1120px, 100%);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  font: inherit;
  font-weight: 900;
}

.lightbox-close {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  min-height: 42px;
  padding: 9px 14px;
}

.lightbox-nav {
  grid-row: 2;
  width: 44px;
  height: 54px;
  font-size: 2.2rem;
  line-height: 1;
}

.lightbox-prev {
  grid-column: 1;
  justify-self: end;
}

.lightbox-next {
  grid-column: 3;
  justify-self: start;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: rgba(244, 122, 22, 0.82);
  outline: none;
}

.photo-lightbox p {
  grid-column: 2;
  grid-row: 3;
  justify-self: center;
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.cta-band {
  justify-content: space-between;
  margin: 0 clamp(20px, 5vw, 72px) clamp(64px, 8vw, 104px);
  padding: 30px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(244, 122, 22, 0.95), rgba(200, 79, 8, 0.95)),
    var(--orange);
  border-radius: 8px;
}

.cta-band h2 {
  font-size: 2.1rem;
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.97), rgba(251, 250, 247, 0.78)),
    url("assets/klusbedrijf-hero.png") center / cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}

.legal-content {
  max-width: 920px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.55rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

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

.legal-content a {
  color: var(--orange-dark);
  font-weight: 900;
  text-decoration: underline;
}

.contact-details,
.contact-form {
  padding: clamp(24px, 4vw, 34px);
}

.contact-details h2 {
  margin-bottom: 22px;
  font-size: 1.7rem;
}

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

dl {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
}

dt {
  font-weight: 900;
}

dd {
  margin: 4px 0 0;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  padding: 13px 14px;
  color: #7a2800;
  background: #fff1e7;
  border: 1px solid rgba(244, 122, 22, 0.36);
  border-radius: 6px;
  font-weight: 800;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.form-note a {
  color: var(--orange-dark);
  font-weight: 800;
  text-decoration: underline;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.checkbox-label input {
  width: auto;
  min-height: 0;
  margin-top: 4px;
}

.checkbox-label a {
  color: var(--orange-dark);
  font-weight: 900;
  text-decoration: underline;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(244, 122, 22, 0.22);
  border-color: var(--orange);
}

.site-footer {
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--charcoal);
  border-top: 3px solid var(--orange);
}

.site-footer h2,
.site-footer h3,
.site-footer p {
  margin: 0;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

.site-footer h2 {
  font-size: 1.35rem;
}

.site-footer h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.site-footer p + p {
  margin-top: 7px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(160px, 1fr));
  gap: 26px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: auto;
    padding: 10px 18px 12px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(10, 12, 15, 0.9), rgba(10, 12, 15, 0.56)),
      linear-gradient(0deg, rgba(17, 19, 22, 0.28), rgba(17, 19, 22, 0.28));
  }

  .hero-content {
    width: min(100% - 40px, 620px);
    margin: 0 auto;
    padding: 54px 0 64px;
  }

  h1 {
    max-width: 12ch;
    font-size: 3.7rem;
  }

  .page-hero h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .section-heading,
  .service-grid,
  .highlight-band,
  .split,
  .portfolio-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  body {
    line-height: 1.48;
  }

  .site-header {
    gap: 10px;
    padding: 9px 14px 10px;
  }

  .brand {
    width: 100%;
    gap: 10px;
    font-size: 0.98rem;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 6px;
  }

  .brand small {
    font-size: 0.61rem;
  }

  .main-nav {
    gap: 6px;
    padding-top: 8px;
    font-size: 0.84rem;
  }

  .main-nav a {
    flex: 1;
    min-height: 38px;
    padding: 8px 6px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
  }

  .main-nav a.active,
  .main-nav a:hover {
    background: rgba(244, 122, 22, 0.16);
    border-color: rgba(244, 122, 22, 0.85);
  }

  h1,
  .page-hero h1 {
    max-width: 100%;
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  h3 {
    font-size: 1.18rem;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 38px 0 48px;
  }

  .hero-content > p:not(.eyebrow),
  .page-hero > p {
    font-size: 1rem;
    margin-top: 16px;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .cta-band h2 {
    font-size: 1.55rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .button {
    min-height: 46px;
  }

  .section,
  .page-hero,
  .highlight-band {
    padding: 46px 16px;
  }

  .compact-top {
    padding-top: 18px;
  }

  .section-heading {
    gap: 10px;
    margin-bottom: 22px;
  }

  .service-grid,
  .portfolio-grid,
  .feature-list,
  .process-list,
  .contact-layout {
    gap: 14px;
  }

  .service-grid article {
    min-height: 0;
    padding: 22px;
  }

  .service-grid h3 {
    margin-top: 28px;
  }

  .project-content,
  .contact-details,
  .contact-form {
    padding: 20px;
  }

  .project-card img {
    aspect-ratio: 16 / 11;
  }

  .portfolio-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-detail {
    margin-top: 26px;
  }

  .portfolio-detail-heading h2 {
    font-size: 1.7rem;
  }

  .photo-lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 12px;
    padding: 14px;
  }

  .photo-lightbox img {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: 68vh;
  }

  .lightbox-close {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .lightbox-nav {
    grid-row: 4;
    width: 100%;
    height: 48px;
    font-size: 1.9rem;
  }

  .lightbox-prev {
    grid-column: 1;
    justify-self: stretch;
  }

  .lightbox-next {
    grid-column: 2;
    justify-self: stretch;
  }

  .photo-lightbox p {
    grid-column: 1 / -1;
    grid-row: 3;
    font-size: 0.9rem;
  }

  .cta-band {
    margin: 0 16px 50px;
    padding: 22px;
  }

  input,
  select,
  textarea {
    min-height: 46px;
    font-size: 16px;
  }

  .site-footer {
    padding: 24px 16px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-card,
  .portfolio-photo img,
  .reveal-up {
    transition: none;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 360px) {
  .brand {
    font-size: 0.9rem;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .main-nav {
    font-size: 0.78rem;
  }

  h1,
  .page-hero h1 {
    font-size: 2.05rem;
  }

}
