/* ──────────────────────────────────────────────────────────────
   Uniek Stukadoors · Hoofdstijlen
   ────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--ink-900);
  margin: 0 0 var(--sp-4);
  letter-spacing: -.02em;
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }

p  { margin: 0 0 var(--sp-4); }
a  { color: var(--brand-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-700); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-8); }
.section--alt { background: var(--surface-2); }
.section--ink { background: var(--ink-900); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-head);
  font-size: var(--fs-sm); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--brand-600);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--brand); border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.lead { font-size: var(--fs-lg); color: var(--ink-500); }

/* ── Knoppen ── */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-base);
  line-height: 1; cursor: pointer;
  padding: 1rem 1.6rem;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t), background var(--t-fast);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-brand); color: #fff; }
.btn:active { transform: translateY(-1px); }
.btn--lg { padding: 1.15rem 2rem; font-size: var(--fs-lg); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink-900);
  border-color: var(--line);
}
.btn--ghost:hover { --btn-fg: var(--ink-900); border-color: var(--ink-900); box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink-900); }
.btn--block { width: 100%; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ── Header ── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0);
  transition: background var(--t), box-shadow var(--t), height var(--t);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.site-header.is-scrolled {
  height: 70px;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); }
.brand__logo { height: 54px; width: auto; display: block; transition: height var(--t); }
.site-header.is-scrolled .brand__logo { height: 46px; }
/* Standaard (over donkere hero): lichte logo. Bij scrollen (witte balk): donkere logo. */
.brand__logo--dark { display: none; }
.site-header.is-scrolled .brand__logo--light { display: none; }
.site-header.is-scrolled .brand__logo--dark { display: block; }

.nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
  color: var(--ink-900); position: relative; padding-block: var(--sp-2);
}
.site-header:not(.is-scrolled) .nav a { color: #fff; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brand); transition: width var(--t) var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }

.nav-backdrop { display: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: var(--sp-2); }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink-900); margin: 5px 0; transition: var(--t); }
.site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }

/* Handgeschreven notitie + pijl bij de header-CTA (alleen bovenaan zichtbaar) */
.nav-cta-wrap { position: relative; display: inline-flex; }
.nav-cta-note {
  position: absolute; top: calc(100% + 2px); right: 6px;
  display: flex; flex-direction: column; align-items: flex-end;
  color: var(--brand); pointer-events: none; transform: rotate(3deg);
  transition: opacity var(--t), visibility var(--t), transform var(--t);
}
.nav-cta-note__arrow { width: 50px; height: 38px; margin-right: 20px; }
.nav-cta-note__text {
  font-family: "Caveat", cursive; font-weight: 700; font-size: 1.4rem;
  line-height: .9; white-space: nowrap; text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
/* Verbergen zodra de gebruiker scrolt (witte balk) */
.site-header.is-scrolled .nav-cta-note { opacity: 0; visibility: hidden; transform: rotate(3deg) translateY(-6px); }

@media (max-width: 760px) { .nav-cta-note { display: none; } }

/* ── Footer ── */
.site-footer { background: var(--ink-900); color: var(--ink-300); padding-block: var(--sp-8) var(--sp-5); }
.site-footer h4 { color: #fff; font-size: var(--fs-base); margin-bottom: var(--sp-4); }
.site-footer a { color: var(--ink-300); }
.site-footer a:hover { color: var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-6); }
.footer-brand img { height: 56px; width: auto; margin-bottom: var(--sp-4); }
.footer-bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
  font-size: var(--fs-sm); color: var(--ink-400);
}

/* ── Cards / grids ── */
.grid { display: grid; gap: var(--sp-5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  transition: transform var(--t) var(--ease), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: var(--radius); background: var(--brand-50); color: var(--brand-600);
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 28px; height: 28px; }
/* Merk-iconen als afbeelding (per dienst) */
.svc-icon { display: block; object-fit: contain; }
.card__icon .svc-icon { width: 36px; height: 36px; }
.aside-links .svc-icon, .other-services__links .svc-icon { width: 22px; height: 22px; }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--ink-500); margin-bottom: var(--sp-4); }
.card__link { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); display: inline-flex; gap: var(--sp-2); align-items: center; }
.card__link svg { transition: transform var(--t-fast); }
.card:hover .card__link svg { transform: translateX(4px); }

/* ── Animatie: scroll-reveal ── */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }

/* ── Gedeelde componenten ── */
.text-brand { color: var(--brand); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink-900); color: #fff; padding: var(--sp-3) var(--sp-4); border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.stars { display: inline-flex; gap: 2px; color: var(--brand); }
.stars svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }

/* Beoordelingen */
.review {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--sp-6);
}
.review blockquote { margin: var(--sp-3) 0 var(--sp-4); font-size: var(--fs-lg); color: var(--ink-700); line-height: var(--lh-snug); }
.review figcaption { display: flex; flex-direction: column; }
.review figcaption strong { color: var(--ink-900); font-family: var(--font-head); }
.review figcaption span { color: var(--ink-400); font-size: var(--fs-sm); }

/* Stappen / werkwijze */
.step { text-align: left; }
.step__num {
  display: grid; place-items: center; width: 48px; height: 48px;
  font-family: var(--font-head); font-weight: 800; font-size: var(--fs-lg);
  color: #fff; background: var(--brand); border-radius: var(--radius); margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-brand);
}
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.step p { color: var(--ink-500); }

/* Statistieken */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); text-align: center; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: var(--fs-3xl); color: var(--brand); line-height: 1; }
.stat__label { color: var(--ink-500); font-size: var(--fs-sm); }

/* CTA-band */
.cta-band__inner {
  background: linear-gradient(135deg, var(--ink-900), #2A2D33);
  border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-6); align-items: center;
  color: #fff; position: relative; overflow: hidden;
}
.cta-band__inner::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(242,106,27,.35), transparent 70%);
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.75); margin-bottom: 0; }
.cta-band__actions { display: flex; flex-direction: column; gap: var(--sp-3); position: relative; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.cta-band .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
  .cta-band__inner { grid-template-columns: 1fr; }
}

/* ── Paginakop (interne pagina's) ── */
.page-hero {
  padding: calc(var(--header-h) + var(--sp-8)) 0 var(--sp-8);
  background: linear-gradient(160deg, #1B1D21, #2A2D33);
  color: #fff;
}
.page-hero h1 { color: #fff; font-size: var(--fs-4xl); }
.page-hero .lead { color: rgba(255,255,255,.75); max-width: 46rem; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--brand); }
.crumbs { font-size: var(--fs-sm); color: rgba(255,255,255,.6); margin-bottom: var(--sp-4); }
.crumbs a { color: rgba(255,255,255,.8); }
.crumbs a:hover { color: var(--brand); }

/* Dienstdetail */
.service-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: var(--sp-7); align-items: start; }
.service-figure {
  aspect-ratio: 16/9; border-radius: var(--radius-lg); margin-bottom: var(--sp-5);
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; place-content: center; gap: var(--sp-2); color: var(--ink-300);
}
.service-figure svg { width: 54px; height: 54px; color: var(--brand); }
.service-figure--photo { overflow: hidden; border: 0; padding: 0; }
.service-figure--photo picture, .service-figure--photo img { display: block; width: 100%; height: 100%; }
.service-figure--photo img { object-fit: cover; object-position: center; }

/* Zigzag inhoudsblokken */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; }
.service-block + .service-block { margin-top: var(--sp-9); }
.service-block--reverse .service-block__media { order: 2; }
.service-block__media {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--surface-2);
}
.service-block__media picture, .service-block__media img { display: block; width: 100%; height: 100%; }
.service-block__media img { object-fit: cover; object-position: center; transition: transform var(--t-slow) var(--ease); }
.service-block:hover .service-block__media img { transform: scale(1.04); }
.service-block__text h2 { margin-bottom: var(--sp-4); }
.service-block__text p { color: var(--ink-700); }
.service-block--text { grid-template-columns: 1fr; max-width: var(--container-narrow); margin-inline: auto; text-align: center; }
.service-block--text .check-list { justify-items: center; }

/* Andere diensten (interne links) */
.other-services h2 { font-size: var(--fs-xl); text-align: center; margin-bottom: 0; }
.other-services__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-5); }
.other-services__links a {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-pill); font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
  color: var(--ink-900); transition: transform var(--t-fast), border-color var(--t), color var(--t);
}
.other-services__links a:hover { border-color: var(--brand); color: var(--brand-600); transform: translateY(-2px); }
.other-services__links svg { width: 20px; height: 20px; color: var(--brand); }

@media (max-width: 860px) {
  .service-block { grid-template-columns: 1fr; gap: var(--sp-5); }
  .service-block--reverse .service-block__media, .service-block__media { order: -1; }
}
.service-body h2 { margin-top: var(--sp-6); }
.check-list { display: grid; gap: var(--sp-3); margin: var(--sp-4) 0; }
.check-list li { display: flex; align-items: center; gap: var(--sp-3); color: var(--ink-700); font-weight: 500; }
.check-list svg { width: 22px; height: 22px; color: var(--success); flex: none; }

.service-aside { position: sticky; top: 100px; display: grid; gap: var(--sp-4); }
.aside-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); }
.aside-card h3 { font-size: var(--fs-lg); }
.aside-card p { color: var(--ink-500); font-size: var(--fs-sm); }
.aside-links { display: grid; gap: var(--sp-2); }
.aside-links a { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; color: var(--ink-700); font-weight: 500; }
.aside-links a:hover { color: var(--brand-600); }
.aside-links svg { width: 20px; height: 20px; color: var(--brand); }

/* Projecten */
.project-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card__media { aspect-ratio: 4/3; background: var(--surface-3); display: grid; place-items: center; }
.project-card__media svg { width: 48px; height: 48px; color: var(--ink-300); }
.project-card__body { padding: var(--sp-5); }
.project-card__body h3 { font-size: var(--fs-lg); margin: var(--sp-2) 0 var(--sp-1); }
.project-card__loc { color: var(--ink-400); font-size: var(--fs-sm); }
.tag { display: inline-block; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-600); background: var(--brand-50); padding: 3px 10px; border-radius: var(--radius-pill); }

.empty-state { text-align: center; max-width: 520px; margin: var(--sp-6) auto; }
.empty-state svg { width: 56px; height: 56px; color: var(--ink-300); margin-bottom: var(--sp-3); }

/* Over ons */
.about-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-8); align-items: center; }
.about-intro__media { position: relative; }
.about-portrait { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about-badge {
  position: absolute; left: -22px; bottom: 28px;
  background: var(--brand); color: #fff; border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5); box-shadow: var(--shadow-brand);
  display: flex; flex-direction: column; gap: 2px; max-width: 190px;
}
.about-badge__num { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-2xl); line-height: 1; }
.about-badge__txt { font-size: var(--fs-sm); line-height: 1.3; opacity: .95; }
.value { text-align: left; }

/* Beoordelingen-kop */
.rating-summary { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-4); }
.rating-summary .stars svg { width: 22px; height: 22px; }
.rating-summary strong { font-family: var(--font-head); font-size: var(--fs-xl); color: #fff; }
.rating-summary span { color: rgba(255,255,255,.7); }

@media (max-width: 900px) {
  .service-layout, .about-intro { grid-template-columns: 1fr; }
  .service-aside { position: static; }
  .about-badge { left: 16px; bottom: 16px; }
}

/* ── Responsief ── */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 0 0 0 auto; z-index: 101; width: min(320px, 84vw);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--sp-5);
    background: #fff; padding: calc(var(--header-h) + var(--sp-6)) var(--sp-6) var(--sp-8);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateX(100%); visibility: hidden;
    transition: transform var(--t) var(--ease), visibility var(--t); box-shadow: var(--shadow-lg); }
  .nav.is-open { transform: none; visibility: visible; }
  /* Geen backdrop-filter op mobiel: dat maakt een containing block waardoor het
     vaste menupaneel binnen de header opgesloten raakt (en half doorzichtig oogt). */
  .site-header.is-scrolled {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, .98);
  }
  .nav a, .site-header:not(.is-scrolled) .nav a { color: var(--ink-900); font-size: var(--fs-lg); }
  .nav .nav-cta-wrap, .nav .nav-cta { width: 100%; }
  .nav-toggle { display: block; z-index: 102; }
  /* Open menu: hamburger wordt donker (zichtbaar op wit paneel) en verandert in een kruis */
  .site-header .nav.is-open ~ .nav-toggle span,
  .site-header:not(.is-scrolled) .nav.is-open ~ .nav-toggle span { background: var(--ink-900); }
  .nav.is-open ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* Verduisterende achtergrond achter het open menu */
  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 99;
    background: rgba(22, 24, 28, .5); opacity: 0; visibility: hidden;
    transition: opacity var(--t), visibility var(--t);
  }
  .nav-backdrop.is-visible { opacity: 1; visibility: visible; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-8); }
}
