/* ==========================================================================
   Houten Voordeuren — stijlblad
   Warm, ambachtelijk: houttinten, crème, donkergroen & antraciet
   ========================================================================== */
:root {
  --cream: #f7f1e7;
  --cream-2: #efe5d4;
  --paper: #fbf8f2;
  --sand: #e3d3b8;
  --wood: #9a6a3f;
  --wood-dark: #6e4526;
  --wood-light: #c8915a;
  --green: #1f3a2e;
  --green-2: #2c5141;
  --anthracite: #2a2b29;
  --ink: #23221f;
  --muted: #6f675c;
  --line: rgba(42, 43, 41, .12);
  --danger: #a3361f;
  --ok: #2f6b4a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(35, 30, 20, .06), 0 2px 8px rgba(35, 30, 20, .05);
  --shadow: 0 6px 24px rgba(45, 34, 20, .10), 0 2px 6px rgba(45, 34, 20, .06);
  --shadow-lg: 0 24px 60px rgba(35, 26, 14, .22);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); scroll-padding-bottom: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 16.5px; line-height: 1.65; color: var(--ink);
  background: var(--cream); -webkit-font-smoothing: antialiased; padding-bottom: var(--bar-h);
  transition: padding-bottom .3s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: var(--green-2); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--anthracite); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--wood-light); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--wood); margin-bottom: .9rem; display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--green); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(31, 58, 46, .25); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { --bg: var(--green); }
.btn-primary:hover { --bg: var(--green-2); }
.btn-ghost { --bg: transparent; --fg: var(--anthracite); border-color: rgba(42, 43, 41, .28); }
.btn-ghost:hover { --bg: var(--anthracite); --fg: #fff; box-shadow: none; }
.btn-light { --bg: var(--cream); --fg: var(--green); }
.btn-sm { padding: .55em 1.05em; font-size: .9rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(247, 241, 231, .82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(40, 30, 15, .06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--green); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; color: var(--wood); }
.brand-light { color: var(--cream); }
.brand-light .brand-mark { color: var(--wood-light); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { color: var(--anthracite); text-decoration: none; font-weight: 500; font-size: .96rem; position: relative; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--wood); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--anthracite); margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(200, 145, 90, .18), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(31, 58, 46, .08), transparent 60%),
    var(--cream); }
.hero-grain { position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: repeating-linear-gradient(92deg, rgba(110, 69, 38, .035) 0 2px, transparent 2px 9px), repeating-linear-gradient(88deg, rgba(110, 69, 38, .03) 0 1px, transparent 1px 13px); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--wood); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8rem 0 1.6rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--anthracite); font-size: .93rem; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: .5em; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23f7f1e7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.hero-visual { position: relative; height: clamp(420px, 46vw, 600px); }
.hero-img { position: absolute; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--sand); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.hero-visual.is-visible .hero-img img { transform: scale(1); }
.hero-img-1 { left: 18%; top: 0; width: 52%; height: 88%; z-index: 2; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); }
.hero-img-2 { left: 0; bottom: 4%; width: 34%; height: 52%; z-index: 3; border: 6px solid var(--paper); }
.hero-img-3 { right: 0; top: 14%; width: 34%; height: 60%; z-index: 1; }
.hero-badge { position: absolute; z-index: 4; right: 6%; bottom: 2%; background: var(--green); color: var(--cream); padding: 14px 20px; border-radius: 16px; font-weight: 600; box-shadow: var(--shadow); font-size: .95rem; animation: floaty 6s ease-in-out infinite; }
.hero-badge span { font-family: var(--serif); font-size: 1.6rem; color: var(--wood-light); margin-right: 4px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- USP's ---------- */
.usps { background: var(--paper); border-block: 1px solid var(--line); padding: 46px 0; }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.usp svg { width: 42px; height: 42px; color: var(--wood); margin-bottom: 12px; }
.usp h3 { font-size: 1.18rem; margin-bottom: .3em; }
.usp p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-intro { color: var(--muted); font-size: 1.08rem; }
.disclaimer { font-size: .86rem; color: var(--muted); border-left: 2px solid var(--sand); padding-left: 12px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px 26px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-no { font-family: var(--serif); font-size: 2.6rem; color: var(--wood-light); line-height: 1; display: block; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 48px; right: -16px; width: 10px; height: 10px; border-top: 2px solid var(--sand); border-right: 2px solid var(--sand); transform: rotate(45deg); }

/* ---------- Gallery ---------- */
.galerij { background: linear-gradient(var(--paper), var(--cream)); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.filter-chip { flex: 0 0 auto; scroll-snap-align: start; border: 1.5px solid var(--line); background: var(--paper); color: var(--anthracite); padding: .5em 1em; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; transition: all .25s var(--ease); }
.filter-chip small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.filter-chip:hover { border-color: var(--wood); }
.filter-chip[aria-pressed="true"] { background: var(--anthracite); color: var(--cream); border-color: var(--anthracite); }
.filter-chip[aria-pressed="true"] small { color: var(--sand); }
.gallery-status { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.door-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(16px); animation: cardIn .6s var(--ease) forwards; }
@keyframes cardIn { to { opacity: 1; transform: none; } }
.door-open { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--cream-2); aspect-ratio: 3 / 4; overflow: hidden; position: relative; }
.door-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .5s; opacity: 0; }
.door-open img.loaded { opacity: 1; }
.door-card:hover .door-open img { transform: scale(1.05); }
.door-open::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 18, 14, .55), transparent 45%); opacity: .85; transition: opacity .3s; pointer-events: none; }
.door-style { position: absolute; left: 12px; top: 12px; z-index: 2; background: rgba(251, 248, 242, .92); color: var(--anthracite); font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .3em .7em; border-radius: 999px; pointer-events: none; }
.door-choose { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: flex; align-items: center; justify-content: center; gap: .45em; border: 0; border-radius: 999px; padding: .62em .9em; font-weight: 700; font-size: .86rem; cursor: pointer; background: rgba(251, 248, 242, .95); color: var(--green); transition: background .25s, color .25s, transform .2s var(--ease); }
.door-choose:hover { background: #fff; }
.door-choose:active { transform: scale(.97); }
.door-card.is-selected { box-shadow: 0 0 0 3px var(--green), var(--shadow); }
.door-card.is-selected .door-choose { background: var(--green); color: #fff; }
.door-card.is-selected::before { content: ""; position: absolute; top: 10px; right: 10px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.gallery-more { text-align: center; margin-top: 32px; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- Offerte ---------- */
.offerte { background: var(--cream-2); background-image: radial-gradient(800px 400px at 100% 0%, rgba(200, 145, 90, .15), transparent 60%); }
.offerte-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.form-block { border: 0; margin: 0 0 22px; padding: clamp(22px, 3vw, 34px); background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.form-block legend { float: left; width: 100%; font-family: var(--serif); font-size: 1.45rem; color: var(--anthracite); display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; padding: 0; }
.form-block legend + * { clear: both; }
.block-no { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--cream); display: inline-grid; place-items: center; font-family: var(--sans); font-size: .95rem; font-weight: 700; }
.req-note { font-family: var(--sans); font-size: .78rem; font-weight: 600; color: var(--wood); background: rgba(200, 145, 90, .14); padding: .25em .7em; border-radius: 999px; }
.block-help { color: var(--muted); font-size: .94rem; clear: both; }
.insp-counter { display: inline-block; margin-left: 6px; font-weight: 700; color: var(--green); background: rgba(31, 58, 46, .08); border-radius: 999px; padding: .1em .65em; transition: transform .25s var(--ease); }
.insp-counter.bump { transform: scale(1.18); }
.insp-counter.full { background: var(--green); color: #fff; }
.insp-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.insp-item { position: relative; border-radius: 12px; overflow: hidden; background: var(--cream-2); aspect-ratio: 3/4; animation: pop .35s var(--ease); }
.insp-item img { width: 100%; height: 100%; object-fit: cover; }
.insp-item .insp-tag { position: absolute; left: 6px; bottom: 6px; right: 6px; font-size: .7rem; font-weight: 700; background: rgba(251, 248, 242, .93); border-radius: 8px; padding: .3em .5em; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insp-item .insp-remove, .sel-remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(35, 34, 31, .78); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; }
.insp-item .insp-remove:hover, .sel-remove:hover { background: var(--danger); transform: scale(1.08); }
.insp-file { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 10px; font-size: .78rem; color: var(--muted); background: repeating-linear-gradient(45deg, var(--cream-2) 0 8px, var(--cream) 8px 16px); }
.insp-empty { color: var(--muted); font-size: .94rem; background: var(--cream); border-radius: 12px; padding: 14px 16px; }
.dropzone { border: 2px dashed rgba(154, 106, 63, .45); border-radius: var(--radius); padding: 26px 18px; text-align: center; cursor: pointer; background: var(--cream); transition: border-color .25s, background .25s, transform .25s var(--ease); }
.dropzone svg { width: 40px; height: 40px; color: var(--wood); margin: 0 auto 6px; }
.dropzone p { margin: 0; }
.dropzone .dropzone-help { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.dropzone:hover, .dropzone.drag { border-color: var(--green); background: rgba(31, 58, 46, .05); }
.dropzone.drag { transform: scale(1.01); }
.dropzone.disabled { opacity: .55; cursor: not-allowed; }
.link-like { color: var(--green-2); text-decoration: underline; font-weight: 600; }

/* Option groups (chips & cards) */
.opt-group { margin-bottom: 26px; clear: both; }
.opt-group:last-child { margin-bottom: 0; }
.opt-label { font-weight: 700; margin-bottom: .6rem; color: var(--anthracite); }
.opt-label .req { color: var(--wood); }
.opt-hint { font-weight: 500; color: var(--muted); font-size: .88rem; }
.opt-items { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-items.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.chip { position: relative; display: inline-flex; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.chip > span { display: inline-flex; align-items: center; gap: .5em; padding: .6em 1.05em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .93rem; transition: all .22s var(--ease); }
.chip:hover > span { border-color: var(--wood); transform: translateY(-1px); }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(31, 58, 46, .22); }
.chip input:focus-visible + span { outline: 3px solid var(--wood-light); outline-offset: 2px; }
.chip input:checked + span::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; animation: pop .25s var(--ease); }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .12); flex: 0 0 auto; }
.chip input:checked + span .swatch { border-color: rgba(255, 255, 255, .7); }
.card-opt > span { flex-direction: column; justify-content: center; border-radius: var(--radius); padding: 16px 10px 14px; width: 100%; text-align: center; gap: 8px; min-height: 120px; }
.card-opt svg { width: 46px; height: 54px; color: var(--wood); transition: color .22s; }
.card-opt input:checked + span svg { color: var(--cream); }
.card-opt input:checked + span::before { position: absolute; top: 10px; right: 10px; }
.ral-extra { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin-top: 14px; padding: 14px 16px; background: var(--cream); border-radius: 12px; animation: slideDown .35s var(--ease); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } }
.ral-extra input[type="color"] { width: 56px; height: 44px; padding: 3px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.ral-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.ral-preset { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: transform .2s var(--ease); }
.ral-preset:hover, .ral-preset.active { transform: scale(1.15); box-shadow: 0 0 0 2px var(--green); }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select { width: 100%; padding: .78em .95em; border: 1.5px solid rgba(42, 43, 41, .18); border-radius: 12px; background: #fff; font-weight: 500; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31, 58, 46, .12); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(163, 54, 31, .1); }
.field input:disabled { background: var(--cream-2); color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; clear: both; }
.field-full { grid-column: 1 / -1; }
.field-error { color: var(--danger); font-size: .84rem; font-weight: 600; min-height: 0; margin: 4px 0 0; }
.field-error:empty { display: none; }
.dims { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.dims .field { width: 150px; }
.dims-x { padding-bottom: .8em; color: var(--muted); font-size: 1.2rem; }
.dims-unknown { margin-bottom: 4px; }
.gdpr { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.gdpr input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { text-align: center; padding: 8px 0 0; }
.form-error-summary { color: var(--danger); font-weight: 600; }
.form-error-summary:empty { display: none; }
.demo-note { font-size: .84rem; color: var(--muted); margin-top: 12px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; display: none; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Summary aside */
.summary-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-card { background: var(--green); color: var(--cream); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.summary-card h3 { color: var(--cream); }
.summary-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
.summary-thumbs div { aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .08); border: 1px dashed rgba(247, 241, 231, .25); }
.summary-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.summary-list { margin: 0 0 18px; font-size: .88rem; display: grid; gap: 7px; }
.summary-list div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.summary-list dt { color: rgba(247, 241, 231, .62); }
.summary-list dd { margin: 0; font-weight: 600; }
.summary-card .btn-primary { --bg: var(--cream); --fg: var(--green); }

/* ---------- FAQ ---------- */
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--serif); font-size: 1.2rem; color: var(--anthracite); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid var(--wood); border-bottom: 2px solid var(--wood); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details p { color: var(--muted); padding-right: 40px; animation: slideDown .35s var(--ease); }

/* ---------- CTA band & footer ---------- */
.cta-band { background: var(--wood-dark); background-image: linear-gradient(120deg, rgba(0, 0, 0, .2), transparent), repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 11px); color: var(--cream); padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--cream); margin: 0; }
.site-footer { background: var(--anthracite); color: rgba(247, 241, 231, .8); padding: 64px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--cream); font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--wood-light); }
.footer-baseline { margin-top: 14px; max-width: 26em; }
.footer-contact, .footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fc-label { display: inline-block; width: 76px; color: rgba(247, 241, 231, .5); font-size: .85rem; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(247, 241, 231, .12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: rgba(247, 241, 231, .55); }
.footer-bottom p { margin: 0; }

/* ---------- Selection bar ---------- */
.selection-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(35, 34, 31, .96); backdrop-filter: blur(10px); color: var(--cream); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0, 0, 0, .18); transform: translateY(110%); transition: transform .45s var(--ease); }
.selection-bar.show { transform: none; }
.selection-inner { display: flex; align-items: center; gap: 18px; }
.selection-info { display: flex; flex-direction: column; line-height: 1.25; flex: 0 0 auto; }
.selection-info strong { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; }
.selection-count { font-size: .85rem; color: var(--wood-light); font-weight: 700; }
.selection-thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; }
.selection-thumbs li { position: relative; width: 48px; height: 60px; border-radius: 8px; overflow: hidden; flex: 0 0 auto; background: rgba(255, 255, 255, .08); animation: pop .3s var(--ease); }
.selection-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.selection-thumbs .sel-remove { top: 2px; right: 2px; width: 20px; height: 20px; font-size: .85rem; }
.selection-thumbs .sel-slot { border: 1.5px dashed rgba(247, 241, 231, .25); background: transparent; animation: none; }
.selection-cta.btn-primary { --bg: var(--wood-light); --fg: var(--anthracite); }

/* ---------- Lightbox ---------- */
.lightbox, .modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.lb-backdrop, .modal-backdrop { position: absolute; inset: 0; background: rgba(20, 18, 15, .9); animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; } }
.lb-figure { position: relative; margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); animation: zoomIn .35s var(--ease); }
@keyframes zoomIn { from { opacity: 0; transform: scale(.95); } }
.lb-img-wrap { background: #1c1b18; display: grid; place-items: center; min-height: 200px; }
.lb-img-wrap img { max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px); width: auto; max-width: 100%; object-fit: contain; transition: opacity .25s; }
.lb-img-wrap img.loading { opacity: .3; }
.lb-caption { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 22px; flex-wrap: wrap; }
.lb-meta { min-width: 0; flex: 1 1 260px; }
.lb-title { font-family: var(--serif); font-size: 1.25rem; margin: 0; color: var(--anthracite); }
.lb-sub { margin: 0; color: var(--muted); font-size: .9rem; }
.lb-credit { margin: 4px 0 0; font-size: .75rem; color: var(--muted); }
.lb-credit a { color: var(--muted); }
.lb-btn { position: absolute; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(20, 18, 15, .5); backdrop-filter: blur(6px); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; }
.lb-btn:hover { background: rgba(20, 18, 15, .75); transform: scale(1.06); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-choose.is-selected { --bg: var(--wood-dark); }

/* Modal */
.modal-card { position: relative; background: var(--paper); border-radius: var(--radius-lg); padding: 36px clamp(22px, 4vw, 40px) 30px; width: min(640px, 100%); max-height: calc(100dvh - 40px); overflow: auto; text-align: center; box-shadow: var(--shadow-lg); animation: zoomIn .4s var(--ease); }
.modal-close { top: 12px; right: 12px; background: var(--cream-2); color: var(--anthracite); width: 40px; height: 40px; font-size: 1.6rem; }
.confirm-icon svg { width: 64px; height: 64px; color: var(--ok); margin: 0 auto 10px; }
.confirm-icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm-summary { text-align: left; background: var(--cream); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0 22px; font-size: .9rem; }
.confirm-summary h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--wood); margin: 0 0 8px; }
.confirm-summary dl { margin: 0; display: grid; gap: 6px; }
.confirm-summary dl div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.confirm-summary dt { color: var(--muted); }
.confirm-summary dd { margin: 0; font-weight: 600; }
.confirm-thumbs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.confirm-thumbs img, .confirm-thumbs span { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; background: var(--cream-2); font-size: .65rem; display: grid; place-items: center; text-align: center; padding: 4px; overflow: hidden; }

/* Toast */
.toast { position: fixed; left: 50%; top: calc(var(--header-h) + 14px); z-index: 200; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; background: var(--anthracite); color: var(--cream); padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .94rem; max-width: calc(100% - 32px); text-align: center; transition: opacity .3s, transform .35s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { background: var(--danger); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .offerte-layout { grid-template-columns: 1fr; }
  .summary-aside { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); padding: 10px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .3s var(--ease); }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; order: -1; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .container, .narrow { width: calc(100% - 32px); }
  .brand { font-size: 1.12rem; }
  .brand-mark { width: 28px; height: 28px; }
  .hero { padding-top: 24px; }
  .hero-visual { height: 340px; }
  .hero-img-1 { left: 14%; width: 56%; }
  .hero-badge { padding: 10px 14px; font-size: .85rem; }
  .hero-badge span { font-size: 1.3rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .usp-grid { grid-template-columns: 1fr; gap: 22px; }
  .usp { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
  .usp svg { grid-row: span 2; margin: 0; width: 38px; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .door-style { font-size: .62rem; left: 8px; top: 8px; }
  .door-choose { font-size: .74rem; padding: .55em .5em; left: 6px; right: 6px; bottom: 6px; }
  .insp-list { grid-template-columns: repeat(2, 1fr); }
  .field-grid { grid-template-columns: 1fr; }
  .dims .field { width: calc(50% - 22px); }
  .opt-items.cards { grid-template-columns: repeat(2, 1fr); }
  .chip > span { font-size: .88rem; padding: .55em .9em; }
  .faq-list summary { font-size: 1.06rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .selection-inner { gap: 10px; }
  .selection-info strong { font-size: .95rem; }
  .selection-thumbs li { width: 38px; height: 48px; }
  .selection-cta { padding: .55em .8em; }
  .lightbox { padding: 0; }
  .lb-figure { border-radius: 0; width: 100%; height: 100%; max-height: 100%; }
  .lb-img-wrap { flex: 1; }
  .lb-img-wrap img { max-height: calc(100dvh - 200px); }
  .lb-prev, .lb-next { top: 40%; width: 42px; height: 42px; }
  .lb-choose { width: 100%; }
  .confirm-summary dl div { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .door-card { opacity: 1; transform: none; }
}
