/* Imperial Blinds — "Showroom" design system.
   Editorial, architectural: Fraunces display serif over Barlow, warm paper
   ground, steel-blue brand accent carried over from the original identity. */

/* Fonts load via <link rel="preconnect"> + <link rel="stylesheet"> in each
   page head (not @import) so the browser can start fetching them without
   waiting for this stylesheet to parse. */

:root {
  --paper: #f6f4ef;
  --paper-2: #edeae3;
  --paper-3: #e4e0d7;
  --ink: #201f1c;
  --ink-soft: #5b5850;
  --ink-faint: #8b877d;
  --line: rgba(32, 31, 28, 0.14);
  --line-soft: rgba(32, 31, 28, 0.08);

  --brand: #5980a6;
  --brand-strong: #416180;
  --brand-deep: #2c455d;
  --brand-night: #1d2d3d;
  --brand-tint: #e7eef5;
  --bronze: #a4835a;
  --bronze-deep: #7c6140;
  --ok: #4a7c59;
  --warn: #b0742f;
  --danger: #a03d33;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Barlow", system-ui, sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(32,31,28,.08);
  --shadow-md: 0 8px 28px rgba(32,31,28,.10);
  --shadow-lg: 0 24px 64px rgba(32,31,28,.16);

  --glass: rgba(255,255,255,.62);
  --glass-border: rgba(255,255,255,.75);

  --room-tint: #dfe6ec; /* repainted by the room selector */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
::selection { background: rgba(89,128,166,.28); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 420; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
h4, h5 { font-family: var(--font-body); font-weight: 600; margin: 0; }
p { margin: 0 0 12px; }
em.flourish { font-style: italic; font-weight: 380; color: var(--brand-strong); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 18px;
  border-radius: 8px; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.shell { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.shell-wide { max-width: 1360px; margin: 0 auto; padding: 0 32px; }

/* — header — */
.site-head {
  position: sticky; top: 0; z-index: 90;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head-inner {
  display: flex; align-items: center; gap: 28px;
  max-width: 1360px; margin: 0 auto; padding: 12px 32px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--brand-strong); }
.site-nav a:not(.btn)[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand-strong); }
.nav-project {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-soft); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.nav-project .count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 600; padding: 0 6px;
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.2;
  padding: 13px 24px; border-radius: 999px; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--brand-deep); color: #fdfdfb; }
.btn-primary:hover { background: var(--brand-night); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-quiet { color: var(--brand-strong); background: transparent; padding-inline: 10px; }
.btn-quiet:hover { background: rgba(89,128,166,.10); color: var(--brand-deep); }
.btn-small { padding: 8px 16px; font-size: 13.5px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-danger { color: var(--danger); border-color: currentColor; background: transparent; }
.btn-danger:hover { background: rgba(160,61,51,.08); }

/* — chips / tags / badges — */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 9px 18px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"], .chip.on {
  background: var(--brand-deep); border-color: var(--brand-deep); color: #fff;
}
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-deep);
}
.tag-warm { background: #f3ead9; color: var(--bronze-deep); }
.tag-ok { background: #e4efe7; color: var(--ok); }
.tag-outline { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }

.eyebrow {
  display: block; font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--bronze-deep);
  margin-bottom: 14px;
}
.lede { font-size: 18px; color: var(--ink-soft); max-width: 58ch; }
.measure { max-width: 62ch; }

/* — sections — */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.rule { border: 0; height: 1px; background: var(--line); margin: 0; }

/* — cards — */
.card {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
a.card { text-decoration: none; color: inherit; display: block; }
.card:hover { box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 4/3; background: var(--paper-2); position: relative; overflow: hidden; }
.card-media svg { width: 100%; height: 100%; display: block; }
.card-body { padding: 20px 22px 22px; }
.card-body h3 { font-size: 22px; margin-bottom: 6px; }
.card-body p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 22px 20px; font-size: 13.5px; color: var(--ink-faint); }

.glass-panel {
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* — grids — */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* — forms — */
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--ink-faint); margin: 4px 0 0; }
.field .error-msg { font-size: 13.5px; color: var(--danger); font-weight: 500; margin: 5px 0 0; }
.input, .select, textarea.input {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; min-height: 46px;
}
.input:hover, .select:hover { border-color: var(--ink-faint); }
.input:focus-visible, .select:focus-visible { border-color: var(--brand); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; padding: 6px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-deep); cursor: pointer; }
.error-summary {
  border: 1.5px solid var(--danger); border-radius: var(--radius);
  background: #fdf3f2; padding: 16px 20px; margin-bottom: 24px;
}
.error-summary h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--danger); margin-bottom: 6px; }
.error-summary ul { margin: 0; padding-left: 20px; font-size: 14.5px; }
.error-summary a { color: var(--danger); font-weight: 600; }

/* — meter (readiness score) — */
.meter { margin: 6px 0 4px; }
.meter-track { height: 10px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--warn), var(--ok)); transition: width .4s ease; }
.meter-label { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
.meter-label strong { color: var(--ink); }

/* — steps — */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 40px; font-weight: 350;
  color: var(--bronze); display: block; margin-bottom: 8px;
}
.step h4 { font-size: 16.5px; margin-bottom: 4px; }
.step p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* — toggle switch (admin enable/disable) — */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; vertical-align: middle; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--paper-3); border-radius: 999px; transition: background .15s ease; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform .15s ease; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint);
  padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.table td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }

/* — swatches — photo-realistic fabric chips: woven micro-texture, studio
     lighting, and a raised-sample inset shadow over the fabric colour — */
.swatch {
  display: block; width: 100%; aspect-ratio: 1; border-radius: 12px;
  border: 1px solid rgba(32,31,28,.16); position: relative; overflow: hidden;
  background-repeat: repeat;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.30),
    inset 0 -10px 18px rgba(0,0,0,.16),
    inset 0 0 0 1px rgba(0,0,0,.04),
    0 1px 3px rgba(32,31,28,.14);
}
/* base plain weave — a fine warp/weft grid under every swatch */
.swatch::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, rgba(0,0,0,.05) 1px 2px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.055) 0 1px, rgba(255,255,255,.05) 1px 2px);
  background-size: 3px 3px, 3px 3px;
  mix-blend-mode: soft-light; opacity: .9;
}
/* woven-in patterns (drawn on the element, over the colour) */
.swatch.pattern-slub {
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 3px, rgba(0,0,0,.05) 4px 5px, transparent 5px 8px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 6px);
}
.swatch.pattern-herringbone {
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.16) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.10) 0 2px, transparent 2px 6px);
  background-size: 12px 12px, 12px 12px;
}
.swatch.pattern-geometric {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,.20) 11%, transparent 13%),
    radial-gradient(circle at 75% 75%, rgba(0,0,0,.12) 11%, transparent 13%),
    linear-gradient(45deg, rgba(0,0,0,.05) 25%, transparent 25% 75%, rgba(0,0,0,.05) 75%);
  background-size: 26px 26px, 26px 26px, 26px 26px;
}
.swatch.pattern-leaf {
  background-image:
    radial-gradient(ellipse 42% 20% at 30% 30%, rgba(255,255,255,.22) 58%, transparent 62%),
    radial-gradient(ellipse 42% 20% at 72% 70%, rgba(0,0,0,.12) 58%, transparent 62%);
  background-size: 44px 44px;
}
/* diagonal studio sheen + top-left light bloom */
.swatch .sheen {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(130% 100% at 22% 16%, rgba(255,255,255,.34), transparent 52%),
    linear-gradient(118deg, rgba(255,255,255,.24), transparent 42%);
}
.swatch img { position: relative; z-index: 1; }

/* — slots (booking) — */
.slot {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 10px 16px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.slot:hover { border-color: var(--brand); }
.slot[aria-pressed="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.slot .slot-note { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ok); }
.slot[aria-pressed="true"] .slot-note { color: #bfe3c8; }

/* — toast + drawer + modal — */
.toast-region { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 10px; }
.toast {
  background: var(--ink); color: var(--paper); padding: 12px 22px;
  border-radius: 999px; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100vw); z-index: 210;
  background: var(--paper); border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg); padding: 26px 26px 100px; overflow-y: auto;
  transform: translateX(102%); transition: transform .25s ease; visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 220; background: rgba(32,31,28,.45);
  display: grid; place-items: center; padding: 24px;
}
.modal {
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  max-width: 880px; width: 100%; max-height: 86vh; overflow: auto; padding: 30px 34px;
}
[hidden] { display: none !important; }

/* — reveal on scroll — */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* — footer — */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 44px 0 56px; font-size: 14px; color: var(--ink-soft); }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-foot h5 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.site-foot a { color: var(--ink-soft); text-decoration: none; display: block; padding: 3px 0; }
.site-foot a:hover { color: var(--brand-strong); }
.site-foot .legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-faint); }
.site-foot .legal a { display: inline; }
/* discreet staff link — faint until hovered/focused */
.site-foot .admin-link { opacity: .4; }
.site-foot .admin-link:hover, .site-foot .admin-link:focus-visible { opacity: 1; }

/* ══════════ home page ══════════ */
.hero { position: relative; overflow: hidden; padding: 96px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.4vw, 68px); max-width: 13ch; }
.hero .lede { margin-top: 22px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: clamp(14px, 2.2vw, 32px); margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-proof .item strong { display: block; font-family: var(--font-display); font-size: clamp(19px, 2vw, 26px); font-weight: 450; }
.hero-proof .item > span { font-size: clamp(10.5px, 0.95vw, 12.5px); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
@media (min-width: 1081px) { .hero-proof { flex-wrap: nowrap; } }
.hero-scene { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--room-tint); transition: background .5s ease; }
.hero-scene svg { display: block; width: 100%; height: auto; }

.room-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.room-note { font-size: 15px; color: var(--ink-soft); margin-top: 18px; max-width: 60ch; }
.room-recs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.rec-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.rec-card h3 { font-size: 21px; margin-bottom: 6px; }
.rec-card .why { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; }
.rec-card .traits { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

.style-scroller { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.demo-band { background: var(--brand-night); color: #eef1f4; border-radius: var(--radius-lg); padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.demo-band h2 { font-size: clamp(28px, 3.4vw, 40px); color: #fff; }
.demo-band p { color: rgba(238,241,244,.78); }
.demo-band .badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 26px; }
.demo-band .tag { background: rgba(255,255,255,.12); color: #dfe8f0; }
.demo-scene { border-radius: 14px; overflow: hidden; background: #24384c; }
.demo-scene svg { width: 100%; height: auto; display: block; }

.ba-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.ba-wrap svg { width: 100%; height: auto; display: block; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--ba, 50%)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--ba, 50%); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; }
.ba-range { width: 100%; margin-top: 14px; accent-color: var(--brand-deep); }

.review-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.review-card blockquote { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 380; line-height: 1.45; }
.review-card cite { display: block; font-style: normal; font-size: 13.5px; color: var(--ink-faint); margin-top: 14px; }
.stars { color: var(--bronze); letter-spacing: 2px; }

.booking-panel { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding: 48px 56px; }
.booking-panel .slots { display: flex; gap: 12px; flex-wrap: wrap; }

/* ══════════ builder ══════════ */
.builder-layout { display: grid; grid-template-columns: minmax(380px, 5fr) 7fr; gap: 0; min-height: calc(100vh - 68px); }
.builder-controls { padding: 34px 38px 140px; border-right: 1px solid var(--line); background: var(--paper); }
.builder-stage {
  position: sticky; top: 68px; height: calc(100vh - 68px);
  display: grid; place-items: center; padding: 28px 40px 106px; /* bottom padding clears the fixed config bar */
  background: linear-gradient(160deg, var(--paper-2), var(--paper-3));
}
/* height-derived cap keeps scene + caption + slider visible above the config bar on short screens */
.builder-stage .stage-inner { width: min(620px, 100%, max(280px, calc((100vh - 310px) * 1.16))); }
.stage-caption { text-align: center; font-size: 13.5px; color: var(--ink-faint); margin-top: 16px; }
.builder-progress { display: flex; gap: 6px; margin-bottom: 26px; }
.builder-progress .seg { height: 4px; flex: 1; border-radius: 2px; background: var(--paper-3); }
.builder-progress .seg.done { background: var(--brand); }
.builder-step-label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze-deep); font-weight: 600; }
.builder-controls h2 { font-size: 30px; margin: 6px 0 6px; }
.builder-controls .step-lede { color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt {
  text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; font: inherit; color: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.opt:hover { border-color: var(--brand); }
.opt[aria-pressed="true"] { border-color: var(--brand-deep); background: var(--brand-tint); }
.opt strong { display: block; font-size: 15.5px; }
.opt span { font-size: 13px; color: var(--ink-soft); }
.opt .opt-meta { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 4px; }
.opt-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.opt-swatch { border: 2px solid transparent; border-radius: 14px; padding: 5px; background: transparent; cursor: pointer; }
.opt-swatch .swatch { aspect-ratio: 1/0.85; }
.opt-swatch figcaption { font-size: 12.5px; margin-top: 6px; color: var(--ink-soft); text-align: center; }
.opt-swatch[aria-pressed="true"] { border-color: var(--brand-deep); }
.builder-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.suit-note { border-left: 3px solid var(--bronze); background: #faf6ee; padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 14px; color: var(--ink-soft); margin: 18px 0; }

.config-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.config-bar-inner { max-width: 1360px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; gap: 26px; }
.config-bar .summary { font-size: 14px; color: var(--ink-soft); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.config-bar .price { font-family: var(--font-display); font-size: 22px; font-weight: 450; white-space: nowrap; }
.config-bar .price small { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.perf-dots { display: flex; gap: 14px; }
.perf-dots .p { display: grid; justify-items: center; gap: 3px; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.perf-dots .dotrow { display: flex; gap: 2.5px; }
.perf-dots .d { width: 7px; height: 7px; border-radius: 50%; background: var(--paper-3); }
.perf-dots .d.on { background: var(--brand); }

.range-wrap { display: grid; gap: 6px; margin: 14px 0 6px; }
.range-wrap input[type="range"] { accent-color: var(--brand-deep); width: 100%; }

/* ══════════ fabrics ══════════ */
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 26px 0 8px; }
.filters-bar .select { width: auto; min-height: 42px; padding-block: 8px; }
.fabric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 28px; }
.fabric-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-sm); }
.fabric-card h3 { font-size: 18px; font-family: var(--font-body); font-weight: 600; margin: 12px 0 2px; }
.fabric-card .meta { font-size: 13px; color: var(--ink-faint); margin-bottom: 10px; }
.fabric-card .props { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.fabric-card .props .tag { font-size: 10.5px; padding: 3px 8px; }
.fabric-actions { display: flex; gap: 8px; }
.wallet-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 120;
  box-shadow: var(--shadow-lg);
}
.wallet-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.wallet-item .swatch { width: 56px; }
.wallet-item h4 { font-size: 15px; }
.wallet-item .sub { font-size: 12.5px; color: var(--ink-faint); }
.wallet-item select, .wallet-item input { font-size: 13px; }
.compare-table td { font-size: 13.5px; }
.compare-table .swatch { width: 72px; }

/* ══════════ recommender ══════════ */
.quiz-card { max-width: 720px; margin: 0 auto; }
.quiz-q { font-family: var(--font-display); font-size: 28px; font-weight: 420; margin-bottom: 20px; }
.quiz-opts { display: grid; gap: 10px; }
.result-rank { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.result-rank .pos { font-family: var(--font-display); font-size: 40px; font-weight: 350; color: var(--bronze); line-height: 1; }
.result-rank h3 { font-size: 24px; margin-bottom: 4px; }
.result-rank ul { margin: 8px 0 12px; padding-left: 18px; font-size: 14.5px; color: var(--ink-soft); }

/* ══════════ booking ══════════ */
.booking-layout { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.booking-layout > * { min-width: 0; }
.booking-side { position: sticky; top: 92px; }
.day-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin: 18px 0 8px; }
.day-pill {
  min-width: 92px; text-align: center; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius); padding: 10px 8px; cursor: pointer; font: inherit;
}
.day-pill:hover { border-color: var(--brand); }
.day-pill[aria-pressed="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.day-pill .dow { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: inherit; opacity: .65; }
.day-pill .dom { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 450; }
.day-pill .eff { display: block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ok); }
.day-pill[aria-pressed="true"] .eff { color: #bfe3c8; }
.day-pill:disabled { opacity: .38; cursor: not-allowed; }
.slots-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.hold-banner {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  background: #f7efe0; border: 1px solid #e5d3ac; border-radius: var(--radius);
  padding: 12px 18px; font-size: 14.5px; margin: 18px 0;
}
.hold-banner strong { font-variant-numeric: tabular-nums; }
.pack-list { font-size: 14.5px; }
.pack-list dt { font-weight: 600; margin-top: 12px; }
.pack-list dd { margin: 2px 0 0; color: var(--ink-soft); }

.aside-card { padding: 24px 26px; margin-bottom: 22px; }
.aside-card h3 { font-size: 20px; margin-bottom: 10px; }

/* — print: surveyor pack — */
@media print {
  .site-head, .site-foot, .booking-side, .toast-region, .btn, .day-strip, .slots-grid, .wallet-fab { display: none !important; }
  body { background: #fff; }
}

/* — responsive — */
@media (max-width: 1080px) {
  .hero-grid, .demo-band, .booking-panel, .booking-layout { grid-template-columns: 1fr; }
  .builder-layout { grid-template-columns: 1fr; }
  .builder-stage { position: static; height: auto; min-height: 380px; order: -1; padding: 28px 40px; }
  .builder-stage .stage-inner { width: min(620px, 100%); } /* page scrolls here, no height cap needed */
  .grid-4, .style-scroller, .fabric-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .room-recs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .booking-side { position: static; }
}
@media (max-width: 640px) {
  .shell, .shell-wide { padding: 0 18px; }
  .site-head-inner { padding: 10px 18px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 14px; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4, .style-scroller, .fabric-grid, .room-recs, .steps { grid-template-columns: 1fr; }
  .demo-band { padding: 30px 22px; }
  .booking-panel { padding: 28px 22px; }
  .opt-grid, .opt-swatches { grid-template-columns: 1fr 1fr; }
  .config-bar-inner { flex-wrap: wrap; gap: 10px; padding: 10px 18px; }
  .config-bar .summary { white-space: normal; flex-basis: 100%; }
  .builder-controls { padding: 24px 18px 160px; }
  .site-foot .cols { grid-template-columns: 1fr; }
}
