/* JVDH Installatie — design system per DESIGN.md / inspiration comp */

:root {
  --black: #0D0D0D;
  --dark: #1A1A1A;
  --red: #B8141A;
  --red-hover: #8E0F14;
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, .70);
  --faint: rgba(255, 255, 255, .35);
  --border: rgba(255, 255, 255, .08);
  --container: 1200px;
  --section-y: clamp(56px, 9vw, 96px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  /* z-scale */
  --z-sticky: 50;
  --z-drawer: 60;
}

/* ---------- base ---------- */

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; text-wrap: balance; font-weight: 700; }
p { margin: 0 0 1em; max-width: 70ch; text-wrap: pretty; }
a { color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: var(--white); padding: 10px 18px; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- typography patterns ---------- */

.eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.accent-red { color: var(--red); }

.h1 { font-size: clamp(2rem, 5vw, 3.625rem); font-weight: 700; letter-spacing: -.01em; }
.h2 { font-size: clamp(1.5rem, 3.2vw, 2.375rem); font-weight: 700; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 1rem; }

/* ---------- sections ---------- */

.section { padding: var(--section-y) 0; }
.section--dark { background: var(--dark); }
.section--black { background: var(--black); }

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  background: var(--black);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: 32px;
  align-items: center;
  min-height: min(88vh, 860px);
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero__content { position: relative; z-index: 2; }
.hero__sub { color: var(--muted); margin: 20px 0 32px; max-width: 46ch; }

.hero__photo { position: relative; z-index: 1; }
.hero__photo-frame img {
  display: block; width: 100%; height: auto;
  filter: brightness(.96);
}
.hero__photo-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  /* blend the warm photo into the near-black hero */
  -webkit-mask-image: radial-gradient(140% 140% at 60% 40%, #000 55%, transparent 98%);
  mask-image: radial-gradient(140% 140% at 60% 40%, #000 55%, transparent 98%);
}
.hero__badge {
  position: absolute; right: 4%; bottom: -4%; z-index: 3;
  width: clamp(96px, 12vw, 150px);
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, .55));
}

/* faint oversized equalizer line-art in hero background */
.hero__deco {
  position: absolute; z-index: 0; color: rgba(255, 255, 255, .05);
  left: 34%; top: 46%; width: 220px; height: auto; pointer-events: none;
}

/* four service icons row */
.service-strip {
  display: flex; align-items: flex-start; gap: 0;
  margin: 0 0 36px; padding: 0; list-style: none;
}
.service-strip li { display: flex; align-items: flex-start; }
.service-strip li + li::before {
  content: ""; width: 1px; align-self: stretch;
  background: rgba(184, 20, 26, .55);
  margin: 6px 22px 18px;
}
.service-strip a {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; color: var(--white);
}
.service-strip .icon-circle { transition: border-color .2s var(--ease-out), color .2s var(--ease-out); }
.service-strip a:hover .icon-circle { border-color: var(--red); color: var(--red); }
.service-strip span {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

.icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .55);
  color: var(--white);
}
.icon-circle .icon { width: 26px; height: 26px; }

/* ---------- waarom kiezen ---------- */

.why { display: grid; grid-template-columns: minmax(240px, 3fr) 9fr; gap: clamp(32px, 5vw, 72px); }
.why__intro h2 { text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.why__intro::after { content: none; }
.why__rule { width: 48px; height: 3px; background: var(--red); border: 0; margin: 18px 0 22px; }
.why__intro p { color: var(--muted); font-size: .9375rem; }
.why__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
}
.why__item .icon { color: var(--red); width: 34px; height: 34px; }
.why__item h3 {
  font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase;
  margin: 14px 0 10px; line-height: 1.45;
}
.why__item p { color: var(--muted); font-size: .875rem; margin: 0; }

/* ---------- project grid ---------- */

.section-head { text-align: center; margin-bottom: 40px; }
.section-head .h2 { margin-bottom: 0; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.project-card {
  position: relative; display: block; overflow: hidden; text-decoration: none;
  aspect-ratio: 4 / 3;
  background: var(--dark);
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease-out);
}
.project-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .28) 45%, rgba(0, 0, 0, .12) 100%);
}
.project-card:hover img { transform: scale(1.04); }
.project-card__label {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-size: .8125rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.project-card__label .icon { width: 22px; height: 22px; }
.section-cta { text-align: center; margin-top: 40px; }

/* projecten page: cards with captions */
figure.project-card { margin: 0; }
.project-card__caption {
  position: absolute; left: 18px; right: 18px; bottom: 52px; z-index: 2;
  display: grid; gap: 4px; color: var(--white);
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.project-card__caption strong { font-size: .9375rem; line-height: 1.35; }
.project-card__caption span { font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.project-card:hover .project-card__caption,
.project-card:focus-within .project-card__caption { opacity: 1; transform: none; }
@media (hover: none) {
  .project-card__caption { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .project-card__caption { opacity: 1; transform: none; transition: none; }
}

/* ---------- CTA banner ---------- */

.cta-banner { position: relative; overflow: hidden; }
.cta-banner__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px;
}
.cta-banner .h2 { margin-bottom: 8px; }
.cta-banner p { color: var(--muted); margin: 0; }
.cta-banner__deco {
  position: absolute; right: -20px; bottom: -30px; color: rgba(255, 255, 255, .05);
  width: 180px; pointer-events: none;
}

/* ---------- page hero (subpages) ---------- */

.page-hero { background: var(--black); padding: clamp(48px, 7vw, 80px) 0 0; }
.page-hero .lead { max-width: 60ch; }

/* ---------- dienst pages ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split__img img { display: block; width: 100%; height: auto; border-radius: 6px; }
.feature-list { list-style: none; margin: 0 0 28px; padding: 0; }
.feature-list li { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; color: var(--muted); }
.feature-list li::before {
  content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); transform: translateY(-1px);
}
.feature-list strong { color: var(--white); font-weight: 700; }

/* steps (werkwijze) — a real numbered sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 72px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--border);
}
.steps li:last-child { border-bottom: 1px solid var(--border); }
.steps li::before {
  content: "0" counter(step);
  font-size: 2rem; font-weight: 700; color: var(--red); line-height: 1;
}
.steps h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: .9375rem; }

/* ---------- forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 700; font-size: .875rem; margin-bottom: 8px; }
.form-field .req { color: var(--red); }
.form-field input[type=text],
.form-field input[type=email],
.form-field input[type=tel],
.form-field select,
.form-field textarea {
  width: 100%; background: var(--dark); color: var(--white);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 13px 14px; font: inherit; font-size: .9375rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red);
}
.form-field ::placeholder { color: rgba(255, 255, 255, .55); }
.form-field textarea { min-height: 140px; resize: vertical; }
fieldset.form-field { border: 1px solid var(--border); border-radius: 4px; padding: 16px; margin: 0; }
fieldset.form-field legend { font-weight: 700; font-size: .875rem; padding: 0 6px; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.check-row label { display: inline-flex; gap: 8px; align-items: center; font-size: .9375rem; font-weight: 400; margin: 0; }
.check-row input { accent-color: var(--red); width: 17px; height: 17px; }
.form-error {
  background: rgba(184, 20, 26, .14); border: 1px solid var(--red);
  border-radius: 4px; padding: 14px 16px; margin-bottom: 20px; font-size: .9375rem;
}
.field-error { color: #FF8A8E; font-size: .8125rem; margin: 6px 0 0; }
.form-success {
  border: 1px solid var(--border); background: var(--dark); border-radius: 6px;
  padding: 40px; text-align: center;
}
.form-note { color: var(--faint); font-size: .8125rem; margin-top: 14px; }

/* ---------- contact ---------- */

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.contact-card {
  border: 1px solid var(--border); border-radius: 6px; padding: 26px;
  background: var(--dark); text-decoration: none; display: block;
  transition: border-color .2s var(--ease-out);
}
.contact-card:hover { border-color: var(--red); }
.contact-card .icon { color: var(--red); }
.contact-card h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; margin: 12px 0 4px; }
.contact-card p { margin: 0; color: var(--muted); }

/* ---------- footer ---------- */

.site-footer { background: var(--black); border-top: 1px solid var(--border); }
.site-footer__grid {
  display: grid; grid-template-columns: 4fr 2fr 2fr 3fr;
  gap: clamp(28px, 4vw, 56px);
  padding-top: 64px; padding-bottom: 48px;
}
.site-footer__brand img { width: 58px; height: auto; }
.site-footer__tagline { font-weight: 700; margin: 16px 0 8px; }
.site-footer__brand p { color: var(--muted); font-size: .875rem; }
.site-footer__social { display: flex; gap: 14px; margin-top: 18px; }
.site-footer__social a { color: var(--white); transition: color .2s var(--ease-out); }
.site-footer__social a:hover { color: var(--red); }
.site-footer__col h2 {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 16px;
}
.site-footer__col a, .site-footer__col span {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); text-decoration: none; font-size: .875rem; padding: 5px 0;
}
.site-footer__col a:hover { color: var(--white); }
.site-footer__col .icon { color: var(--red); flex: 0 0 auto; }
.site-footer__seo { font-size: .8125rem; color: var(--faint); margin-top: 14px; }
.site-footer__bottom { border-top: 1px solid var(--border); }
.site-footer__bottom-inner {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.site-footer__bottom p { margin: 0; font-size: .75rem; color: var(--faint); }
.site-footer__bottom a { color: var(--faint); }
.site-footer__bottom a:hover { color: var(--white); }

/* ---------- mobile nav drawer ---------- */

.mobile-nav {
  /* absolute (not fixed): the header's backdrop-filter makes it the containing
     block for fixed descendants, which would collapse the drawer */
  position: absolute; top: 100%; left: 0; right: 0; z-index: var(--z-drawer);
  height: calc(100vh - 76px); height: calc(100dvh - 76px);
  background: var(--black); padding: 32px 24px;
  overflow-y: auto;
}
.mobile-nav nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav nav > a {
  color: var(--white); text-decoration: none; font-size: 1.125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav nav > a[aria-current=page] { color: var(--red); }
.mobile-nav .btn { margin-top: 24px; justify-content: center; }
.mobile-nav__tel {
  display: flex !important; align-items: center; gap: 10px; justify-content: center;
  margin-top: 16px; border-bottom: 0 !important; font-size: 1rem !important;
  text-transform: none !important; letter-spacing: 0 !important;
}
body.nav-open { overflow: hidden; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { transition: transform .25s var(--ease-out), background .2s; }

/* ---------- reveal motion ----------
   Content is ALWAYS visible by default; .is-visible only plays a one-shot
   entrance animation at the moment the element scrolls into view. If JS or
   IntersectionObserver never runs, nothing is ever hidden. */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.is-visible { animation: rise-in .6s var(--ease-out) both; }

/* equalizer flourish */
@keyframes eq-slide { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero__deco circle { animation: eq-slide 5s ease-in-out infinite; }
.hero__deco circle:nth-of-type(2) { animation-delay: 1.2s; animation-duration: 6s; }
.hero__deco circle:nth-of-type(3) { animation-delay: 2.4s; animation-duration: 7s; }

@media (prefers-reduced-motion: reduce) {
  .is-visible { animation: none; }
  .hero__deco circle { animation: none; }
  .project-card img { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero__photo { order: -1; max-width: 420px; margin: 0 auto; }
  .hero__badge { right: 0; bottom: 0; width: 84px; }
  .why { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--img-left .split__img { order: -1; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .service-strip { flex-wrap: wrap; gap: 18px; }
  .service-strip li + li::before { display: none; }
  .service-strip li { flex: 1 1 40%; justify-content: center; }
  .icon-circle { width: 48px; height: 48px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 52px 1fr; gap: 16px; }
  .steps li::before { font-size: 1.5rem; }
}
