/*
Theme Name: Kleinjan Metaaldesign
Theme URI: https://kleinjan-to.nl
Author: CyberPlanet
Description: Op maat gebouwd thema voor Kleinjan Metaaldesign, ambachtelijk smeedwerk, sfeerhaarden, tuinkunst en hekwerken uit Nijverdal. Warme, ambachtelijke uitstraling met projecten als apart contenttype.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: kleinjan
*/

/* ============================================================
   KLEINJAN METAALDESIGN — Gedeelde stijl
   Warm · Ambachtelijk · Premium
   ============================================================ */

/* Titel-lettertype "house-of-cards" via Adobe Fonts (zie <link> in de HTML-head). */

:root {
  --ink:        #1b1512;
  --charcoal:   #26201c;
  --charcoal-2: #2f2823;
  --corten:     #a85a34;
  --ember:      #e08a2e;
  --ember-soft: #f0a94e;
  --copper:     #c87a45;
  --cream:      #f6efe4;
  --sand:       #e9ddc9;
  --sand-2:     #ded0b8;
  --line:       #d9cbb4;
  --muted:      #7c6f60;
  --text:       #2a231e;
  --white:      #fffdf9;
  --maxw: 1200px;
  --radius: 4px;
  --shadow-sm: 0 2px 10px rgba(27,21,18,.08);
  --shadow-md: 0 16px 40px rgba(27,21,18,.16);
  --shadow-lg: 0 30px 70px rgba(27,21,18,.28);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-title: "house-of-cards", "Fraunces", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h1, h2, .hero h1, .page-hero h1, .cta-band h2 { font-family: var(--font-title); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.65rem); }
p { color: var(--text); }
.lead { font-weight: 600; color: #4a3f36; line-height: 1.7; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--corten);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before { content: ""; width: 32px; height: 1.5px; background: var(--corten); display: inline-block; }
.eyebrow.center { justify-content: center; }

.wrap { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--dark { background: var(--ink); color: var(--sand); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: #cdbfae; }
.section--charcoal { background: var(--charcoal); color: var(--sand); }
.section--charcoal h2, .section--charcoal h3 { color: var(--white); }
.section--charcoal p { color: #cdbfae; }
.center { text-align: center; }
.section-head { max-width: 640px; margin-bottom: 3.2rem; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: .8rem; }
.section-head p { margin-top: 1rem; }

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 600; font-size: .95rem;
  padding: .95em 1.9em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  letter-spacing: .01em;
}
.btn svg { width: 1em; height: 1em; }
.btn--primary { background: var(--ember); color: var(--ink); box-shadow: 0 8px 24px rgba(224,138,46,.35); }
.btn--primary:hover { background: var(--ember-soft); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(224,138,46,.45); }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn--ghost-light { border-color: rgba(255,253,249,.4); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--link { padding: 0; color: var(--corten); font-weight: 600; border: none; position: relative; }
.btn--link::after { content: "→"; transition: transform .25s var(--ease); }
.btn--link:hover::after { transform: translateX(5px); }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(20,15,12,.90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  transition: background .3s;
}
.site-header.on-dark { background: rgba(20,15,12,.38); border-bottom-color: rgba(255,255,255,.14); }
.nav { display: flex; align-items: center; height: 96px; position: relative; gap: 1rem; }
.brand { order: 2; flex: 0 0 auto; display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--white); letter-spacing: -.01em; }
.on-dark .brand { color: var(--white); }
.brand-mark { height: 72px; width: auto; flex: none; }
.brand small { display: block; font-family: var(--font-body); font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--corten); font-weight: 600; margin-top: 2px; }
.nav-collapse { display: contents; }
.nav-side { display: flex; align-items: center; gap: .1rem; flex: 1 1 0; min-width: 0; }
.nav-left { order: 1; justify-content: flex-start; }
.nav-right { order: 3; justify-content: flex-end; }
.brand, .nav-side { align-self: center; }
.nav-side a:not(.nav-cta) { font-size: .88rem; font-weight: 500; color: #e7d9c6; padding: .45rem .62rem; border-radius: var(--radius); transition: color .2s, background .2s; white-space: nowrap; }
.nav-side a:not(.nav-cta):hover, .nav-side a.active:not(.nav-cta) { color: var(--ember-soft); }
.nav-cta { margin-left: .5rem; padding: .68em 1.15em; font-size: .88rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s; }
.on-dark .nav-toggle span { background: var(--white); }

.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
  background: linear-gradient(180deg, #120d0a 0%, #1f1611 55%, #2a1c12 100%);
}
.hero .hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; opacity: 1; }
.hero__overlay { position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(224,138,46,.18), transparent 55%),
    linear-gradient(180deg, rgba(18,13,10,.18) 0%, rgba(18,13,10,.30) 45%, rgba(18,13,10,.80) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(3.5rem, 7vw, 6rem); padding-top: 5rem; max-width: 880px; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; color: var(--ember-soft); }
.hero__lead { margin-top: 1.6rem; max-width: 560px; color: #e8dbc8; font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.6); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.hero__scroll span { width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: scrollpulse 2s infinite; }
@keyframes scrollpulse { 0%,100%{opacity:.3; transform:scaleY(.6)} 50%{opacity:1; transform:scaleY(1)} }

.page-hero { position: relative; background: var(--ink); color: var(--white); padding: clamp(8rem,12vw,10rem) 0 clamp(3.5rem,6vw,5rem); overflow: hidden; }
.page-hero .page-hero__bg { position: absolute; inset: 0; opacity: .35; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,21,18,.5), rgba(27,21,18,.9)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-top: .8rem; }
.page-hero p { color: #d8c9b6; margin-top: 1rem; max-width: 620px; }
.crumbs { font-size: .82rem; color: #b39d85; }
.crumbs a:hover { color: var(--ember-soft); }

.ph { position: relative; overflow: hidden; background: var(--charcoal); display: flex; align-items: center; justify-content: center; }
.ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ph__fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .6rem; text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(168,90,52,.10) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #2c241f, #1c1613);
  color: rgba(233,221,201,.5);
}
.ph__fallback svg { width: 40px; height: 40px; opacity: .5; }
.ph__fallback small { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.svc-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.svc-card .ph { position: absolute; inset: 0; }
.svc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,10,.05) 30%, rgba(20,14,10,.85) 100%); z-index: 1; }
.svc-card__body { position: relative; z-index: 2; padding: 1.8rem 1.6rem; }
.svc-card__num { font-family: var(--font-display); font-size: .9rem; color: var(--ember-soft); letter-spacing: .1em; }
.svc-card h3 { color: var(--white); margin: .4rem 0 .5rem; }
.svc-card p { color: #d9cab6; font-size: .92rem; }
.svc-card__link { margin-top: 1rem; display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .9rem; color: var(--ember-soft); }
.svc-card__link::after { content: "→"; transition: transform .25s var(--ease); }
.svc-card:hover .svc-card__link::after { transform: translateX(5px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media .ph { border-radius: var(--radius); aspect-ratio: 4/3.2; box-shadow: var(--shadow-md); }
.split__body h2 { margin-bottom: 1.1rem; }
.split__body p + p { margin-top: 1rem; }
.split__cta { margin-top: 1.8rem; }

.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; margin-top: 1rem; }
.feature { padding: 1.8rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.section--dark .feature, .section--charcoal .feature { background: var(--charcoal-2); border-color: rgba(255,255,255,.08); }
.feature__icon { width: 46px; height: 46px; color: var(--corten); margin-bottom: 1rem; }
.section--dark .feature__icon { color: var(--ember-soft); }
.feature h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.feature p { font-size: .94rem; color: var(--muted); }
.section--dark .feature p, .section--charcoal .feature p { color: #bdae9b; }

.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem,5vw,3.4rem); color: var(--ember); line-height: 1; }
.stat__label { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: #bdae9b; margin-top: .6rem; }

.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.gallery .ph { aspect-ratio: 1; border-radius: var(--radius); }
.gallery .ph.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery .ph.wide { grid-column: span 2; aspect-ratio: 2/1; }

.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.6rem; counter-reset: step; }
.step { position: relative; padding-top: 1.4rem; border-top: 2px solid var(--line); }
.section--dark .step { border-top-color: rgba(255,255,255,.15); }
.step__n { font-family: var(--font-display); font-size: 1rem; color: var(--corten); font-weight: 600; }
.section--dark .step__n { color: var(--ember-soft); }
.step h3 { font-size: 1.15rem; margin: .5rem 0; }

.quote { max-width: 820px; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.4rem,3vw,2.1rem); line-height: 1.4; color: var(--white); font-style: italic; }
.quote__author { margin-top: 1.6rem; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-soft); }
.stars { color: var(--ember); font-size: 1.2rem; letter-spacing: .15em; margin-bottom: 1.4rem; }

.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, #2a1c12, #1b1512); color: var(--white); border-radius: 6px; padding: clamp(2.6rem,6vw,4.5rem); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(80% 120% at 50% -10%, rgba(224,138,46,.25), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d8c9b6; margin: 1rem auto 2rem; max-width: 520px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.info-list { display: grid; gap: 1.4rem; margin-top: 2rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item__icon { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--sand); color: var(--corten); display: grid; place-items: center; }
.info-item__icon svg { width: 20px; height: 20px; }
.info-item h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.info-item p, .info-item a { font-size: 1.02rem; color: var(--text); }
.info-item a:hover { color: var(--corten); }

.form { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.6rem,3vw,2.4rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: .45rem; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(224,138,46,.16); }
.field textarea { min-height: 150px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.form__note { font-size: .8rem; color: var(--muted); margin-top: 1rem; text-align: center; }

.site-footer { background: var(--ink); color: #c3b39e; padding: clamp(3.5rem,6vw,5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h4 { font-family: var(--font-body); color: var(--white); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: #c3b39e; font-size: .95rem; }
.site-footer a:hover { color: var(--ember-soft); }
.footer-links { display: grid; gap: .6rem; }
.footer-brand .brand { color: var(--white); margin-bottom: 1rem; }
.footer-logo { height: 92px; width: auto; }
.footer-brand p { font-size: .95rem; color: #a8967f; max-width: 280px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #8c7c68; }
.socials { display: flex; gap: .8rem; }
.socials a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; transition: .25s; }
.socials a:hover { background: var(--ember); border-color: var(--ember); color: var(--ink); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

.kmd-js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .svc-grid { grid-template-columns: repeat(2,1fr); }
  .features, .steps, .stats { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .gallery { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 96px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--ink); padding: 1rem 1.5rem 1.8rem; gap: .2rem;
    transform: translateY(-130%); transition: transform .35s var(--ease); box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { color: #e7d9c6; padding: .9rem .4rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-cta { margin: .8rem 0 0; }
  .nav-toggle { display: block; }
  .svc-grid, .features, .steps, .stats, .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----------  Sfeer-achtergrond (werkplaatsfoto)  ---------- */
.section--photo { position: relative; background: var(--ink); isolation: isolate; }
.section--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(20,14,10,.78), rgba(20,14,10,.9)),
    url("afbeeldingen/achtergrond-werkplaats.jpg");
  background-size: cover; background-position: center; background-attachment: fixed;
}
@media (max-width: 720px) { .section--photo::before { background-attachment: scroll; } }

/* ============================================================
   UITBREIDING: menu-dropdown, CTA's, P-O-R, portfolio
   ============================================================ */

/* --- Diensten dropdown --- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-sub-toggle {
  font-family: var(--font-body); font-size: .92rem; font-weight: 500; color: #e7d9c6;
  background: none; border: none; cursor: pointer; padding: .5rem .85rem; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: .35em; transition: color .2s;
}
.nav-sub-toggle::after { content: "\25BE"; font-size: .72em; opacity: .8; }
.nav-item:hover .nav-sub-toggle, .nav-item.open .nav-sub-toggle, .nav-sub-toggle:hover { color: var(--ember-soft); }
.nav-sub {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: rgba(20,15,12,.98); border: 1px solid rgba(255,255,255,.10); border-radius: 6px;
  padding: .5rem; box-shadow: var(--shadow-md); display: none; flex-direction: column; gap: .1rem;
}
.nav-item:hover .nav-sub, .nav-item.open .nav-sub, .nav-item:focus-within .nav-sub { display: flex; }
.nav-sub a { color: #e7d9c6; font-size: .9rem; padding: .6rem .8rem; border-radius: var(--radius); white-space: nowrap; }
.nav-sub a:hover, .nav-sub a.active { background: rgba(255,255,255,.06); color: var(--ember-soft); }

/* --- Zwevende bel/WhatsApp-knoppen --- */
.floating-cta { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: .65rem; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-md); transition: transform .2s var(--ease); }
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab svg { width: 26px; height: 26px; }
.fab--wa { background: #25d366; }
.fab--call { background: var(--ember); color: var(--ink); }

/* --- Probleem / Oplossing / Resultaat --- */
.por { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; margin-top: 1rem; }
.por-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); }
.section--dark .por-card, .section--charcoal .por-card { background: var(--charcoal-2); border-color: rgba(255,255,255,.08); }
.por-card .tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--corten); }
.section--dark .por-card .tag { color: var(--ember-soft); }
.por-card h3 { font-size: 1.15rem; margin: .5rem 0; }
.por-card p { font-size: .95rem; color: var(--muted); }
.section--dark .por-card p, .section--charcoal .por-card p { color: #bdae9b; }
.por-card.is-result { border-color: var(--ember); }

/* --- Portfolio cases --- */
.cases { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.8rem; }
.case { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case .ph { aspect-ratio: 16/10; }
.case__body { padding: 1.5rem 1.6rem 1.8rem; }
.case__cat { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--corten); }
.case__body h3 { font-size: 1.3rem; margin: .4rem 0 .9rem; }
.case dl { display: grid; gap: .15rem; }
.case dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: .6rem; }
.case dd { font-size: .96rem; color: var(--text); }

@media (max-width: 980px) {
  .por { grid-template-columns: 1fr; }
  .cases { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px) {
  .cases { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-item { width: 100%; flex-direction: column; align-items: stretch; }
  .nav-sub-toggle { width: 100%; justify-content: space-between; padding: .9rem .4rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-sub { position: static; display: flex; min-width: 0; background: transparent; border: none; box-shadow: none; padding: .2rem 0 .4rem 1rem; }
  .floating-cta { right: 12px; bottom: 12px; }
  .fab { width: 50px; height: 50px; }
}

/* NAV COLLAPSE 1100 */
@media (max-width: 1100px) {
  .nav { display: flex; justify-content: center; }
  .nav-toggle { display: block; }
  .nav-collapse {
    display: block; position: fixed; inset: 96px 0 auto 0;
    background: var(--ink); padding: 1rem 1.5rem 1.8rem;
    transform: translateY(-205%); transition: transform .35s var(--ease); box-shadow: var(--shadow-md);
  }
  .nav-collapse.open { transform: translateY(0); }
  .nav-side { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-side a:not(.nav-cta) { padding: .9rem .4rem; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-cta { margin: .9rem 0 0; justify-content: center; }
}

/* Klikbare projectkaarten */
.case { display: block; color: inherit; }
.case__more { display: inline-flex; align-items: center; gap: .4em; margin-top: 1rem; font-weight: 600; font-size: .9rem; color: var(--corten); }
.case__more::after { content: "\2192"; transition: transform .25s var(--ease); }
.case:hover .case__more::after { transform: translateX(4px); }

/* Transparante werkplaats-achtergrond */
.section--texture { position: relative; isolation: isolate; }
.section--texture::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08;
  background: url("afbeeldingen/achtergrond-werkplaats.jpg") center/cover no-repeat;
}

/* Foto-kaarten (waarden, Over Oscar) */
.feature--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.feature--photo .feature__img { aspect-ratio: 16/11; background: var(--charcoal); }
.feature--photo .feature__img img { width: 100%; height: 100%; object-fit: cover; }
.feature--photo .feature__content { padding: 1.5rem 1.7rem 1.8rem; }

/* Specificatielijst op projectpagina's */
.spec-list{list-style:none;margin:1.6rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.6rem 1rem}
.spec-list li{background:var(--cream);border:1px solid rgba(168,90,52,.18);border-radius:999px;padding:.5rem 1rem;font-size:.95rem;color:#4a3f36}
.spec-list li strong{color:var(--corten);font-weight:600;margin-right:.4rem}

/* Partnerrij op de homepage */
.partners__row{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:2.5rem 4rem;margin-top:2.5rem}
.partner-logo{display:inline-flex;align-items:center;justify-content:center;height:74px}
.partner-logo img{max-height:100%;width:auto;filter:grayscale(1);opacity:.6;transition:filter .3s ease,opacity .3s ease}
/* WordPress: projectfilter en editorinhoud */
.proj-filter{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;margin:0 0 2.5rem}
.proj-filter a{padding:.5rem 1.1rem;border:1px solid var(--line);border-radius:999px;font-size:.9rem;font-weight:600;color:var(--ink);transition:background .2s ease,border-color .2s ease,color .2s ease}
.proj-filter a:hover{border-color:var(--corten);color:var(--corten)}
.proj-filter a.is-active{background:var(--ink);color:#fff;border-color:var(--ink)}
.project-body p{margin:0 0 1rem}
.project-body .wp-block-gallery{margin:1.8rem 0 0}
.project-body img{border-radius:6px}
.proj-filter + .cases{margin-top:0}
