/* ============================================================
   Wolf in the Woods — Components
   Reusable UI. Each block maps to a Wix Studio section/element.
   ============================================================ */

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 1rem 1.9rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background var(--dur-med) var(--ease),
              color var(--dur-med) var(--ease),
              border-color var(--dur-med) var(--ease),
              transform var(--dur-fast) var(--ease);
  min-height: 52px;              /* comfortable tap target */
  text-align: center;
}
.btn:active { transform: translateY(1px); }

/* Primary = ink/charcoal (NOT terracotta — deliberate premium restraint) */
.btn--primary { background: var(--witw-ink); color: var(--witw-on-dark); }
.btn--primary:hover { background: #322D27; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary:focus-visible { box-shadow: var(--shadow-focus); }

/* Secondary = outline with bronze hairline on hover */
.btn--ghost {
  background: transparent;
  color: var(--witw-ink);
  border-color: var(--witw-line-strong);
}
.btn--ghost:hover { border-color: var(--witw-bronze); color: var(--witw-bronze); transform: translateY(-2px); }

/* On dark backgrounds */
.btn--light { background: var(--witw-paper); color: var(--witw-ink); }
.btn--light:hover { background: var(--witw-white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.section--dark .btn--ghost { color: var(--witw-on-dark); border-color: rgba(243,238,230,0.28); }
.section--dark .btn--ghost:hover { border-color: var(--witw-bronze-soft); color: var(--witw-bronze-soft); }

/* Text link with underline reveal */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-small); font-weight: var(--fw-medium);
  color: var(--witw-ink);
  border-bottom: 1px solid var(--witw-line-strong);
  padding-bottom: 3px;
  transition: border-color var(--dur-med) var(--ease), gap var(--dur-med) var(--ease);
}
.link-arrow:hover { border-color: var(--witw-bronze); gap: var(--sp-3); }
.link-arrow svg { width: 14px; height: 14px; }

.btn--block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 244, 239, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: height var(--dur-med) var(--ease),
              background var(--dur-med) var(--ease),
              border-color var(--dur-med) var(--ease);
}
.site-header.is-scrolled {
  height: var(--header-h-sm);
  background: rgba(247, 244, 239, 0.94);
  border-bottom-color: var(--witw-line);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--sp-4);
}

.brand { display: inline-flex; align-items: baseline; gap: 0.55rem; }
.brand--logo { align-items: center; }
.brand__logo { height: 42px; width: auto; display: block; transition: transform var(--dur-med) var(--ease); }
.brand--logo:hover .brand__logo { transform: scale(1.04); }
.brand__mark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: var(--fw-regular);
  letter-spacing: 0.01em;
  color: var(--witw-ink);
  white-space: nowrap;
}
.brand__sub {
  font-size: 0.6rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--witw-bronze);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(0.75rem, 1.4vw, 1.375rem); }
.nav__link {
  position: relative;
  font-size: var(--fs-small);
  color: var(--witw-ink);
  padding: 0.5rem 0;
  transition: color var(--dur-fast) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--witw-bronze);
  transition: width var(--dur-med) var(--ease);
}
.nav__link:hover { color: var(--witw-bronze); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }
.header__phone {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-small); font-weight: var(--fw-medium);
  white-space: nowrap;
}
.header__phone svg { width: 15px; height: 15px; color: var(--witw-bronze); }
.header__cta { padding: 0.7rem 1.2rem; min-height: 44px; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--witw-line-strong);
  border-radius: var(--r-md);
}
.nav-toggle__bars { position: relative; width: 20px; height: 12px; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--witw-ink); transition: transform var(--dur-med) var(--ease), opacity var(--dur-fast);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: var(--header-h-sm) 0 0 0;
  z-index: calc(var(--z-header) - 1);
  background: var(--witw-paper);
  padding: var(--sp-6) var(--gutter) var(--sp-8);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transform: translateY(-8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility var(--dur-med);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: var(--fw-light);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--witw-line);
}
.mobile-menu__meta { margin-top: auto; padding-top: var(--sp-6); display: grid; gap: var(--sp-3); }

/* Spacer so fixed header doesn't overlap page content */
.header-spacer { height: var(--header-h); }

/* ============ Trust strip ============ */
.trust-strip { border-block: 1px solid var(--witw-line); background: var(--witw-white); }
.trust-strip__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--sp-4) var(--sp-7);
  padding-block: var(--sp-5);
}
.trust-item {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-small); color: var(--witw-gray);
}
.trust-item__mark { width: 6px; height: 6px; border-radius: 50%; background: var(--witw-bronze); flex: none; }

/* ============ Hero ============ */
.hero { position: relative; }
.hero__media {
  position: relative;
  min-height: clamp(560px, 82vh, 860px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--witw-ink-2);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; } /* background set below — kept as one rule to avoid a dead duplicate */
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(3rem, 6vw, 6rem); color: var(--witw-on-dark); }
/* Guaranteed legibility over bright hero photography — the scrim gradient
   is intentionally light through the middle band to let the photo show,
   which reads fine over dark cabinetry but not over a bright kitchen
   (white cabinets, lit pendants) sitting right behind the copy. A soft
   shadow keeps text readable regardless of what's in the photo there. */
.hero__eyebrow { color: var(--witw-bronze-soft); text-shadow: 0 1px 12px rgba(10,9,8,0.55), 0 1px 2px rgba(10,9,8,0.4); }
.hero__eyebrow::before { background: var(--witw-bronze-soft); }
.hero h1 { color: #FFFFFF; max-width: 16ch; text-shadow: 0 4px 24px rgba(10,9,8,0.45), 0 1px 3px rgba(10,9,8,0.5); }
.hero h1 .accent { color: var(--witw-bronze-soft); font-style: italic; }
.hero__sub {
  font-size: var(--fs-lead);
  color: rgba(243,238,230,0.95);
  max-width: 46ch; margin-top: var(--sp-5);
  text-shadow: 0 2px 16px rgba(10,9,8,0.5), 0 1px 2px rgba(10,9,8,0.4);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); align-items: center; }
.hero__phone {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--witw-on-dark); font-size: var(--fs-small); font-weight: var(--fw-medium);
}
.hero__phone svg { width: 16px; height: 16px; color: var(--witw-bronze-soft); }

/* ============ Feature / editorial split ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--r-md); width: 100%; object-fit: cover; }
.split__body { max-width: 34rem; }

.feature-list { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
.feature-list .spec-index { padding-top: 0.2rem; }
.feature-list h4 { margin-bottom: 0.2rem; }
.feature-list p { color: var(--witw-gray); font-size: var(--fs-small); }

/* ============ Cards (services / categories / flooring types) ============ */
.card-grid { display: grid; gap: var(--sp-5); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--witw-white);
  border: 1px solid var(--witw-line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.card:hover { border-color: var(--witw-line-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.card__title { font-family: var(--font-display); font-size: var(--fs-h4); }
.card__text { font-size: var(--fs-small); color: var(--witw-gray); }
.card__spec {
  display: grid; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-3);
  border-top: 1px solid var(--witw-line);
}
.card__spec-row { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-caption); }
.card__spec-row dt { color: var(--witw-gray-2); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.card__spec-row dd { color: var(--witw-ink); margin: 0; text-align: right; }

/* ============ Gallery ============ */
.gallery__filters { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.filter-btn {
  font-size: var(--fs-caption); letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--witw-gray);
  padding: 0.55rem 1rem; border-radius: var(--r-pill);
  border: 1px solid var(--witw-line);
  transition: all var(--dur-fast) var(--ease);
}
.filter-btn[aria-pressed="true"] { background: var(--witw-ink); color: var(--witw-on-dark); border-color: var(--witw-ink); }
.filter-btn:hover:not([aria-pressed="true"]) { border-color: var(--witw-bronze); color: var(--witw-bronze); }

.gallery__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-4); }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--witw-paper-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--feature { grid-column: span 4; grid-row: span 2; aspect-ratio: 16 / 11; }
.gallery__item--tall { grid-column: span 2; grid-row: span 2; aspect-ratio: 3 / 4; }
.gallery__item--std { grid-column: span 2; aspect-ratio: 3 / 2; }
.gallery__cap {
  position: absolute; inset: auto 0 0 0;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  background: linear-gradient(transparent, rgba(20,18,15,0.78));
  color: #fff; font-size: var(--fs-caption);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.gallery__item:hover .gallery__cap,
.gallery__item:focus-within .gallery__cap { opacity: 1; transform: none; }
.gallery__cap strong { display: block; font-family: var(--font-display); font-size: var(--fs-body); font-weight: var(--fw-regular); }
.is-hidden { display: none !important; }

/* ============ Before / After slider ============ */
.ba {
  position: relative; width: 100%; aspect-ratio: 3 / 2;
  border-radius: var(--r-md); overflow: hidden; user-select: none;
  touch-action: pan-y;
  background: var(--witw-paper-2);
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--ba-pos, 50%)); }
.ba__label {
  position: absolute; top: var(--sp-4); z-index: 3;
  font-size: var(--fs-caption); letter-spacing: var(--tracking-wide); text-transform: uppercase;
  background: rgba(20,18,15,0.72); color: #fff; padding: 0.35rem 0.75rem; border-radius: var(--r-pill);
}
.ba__label--before { left: var(--sp-4); }
.ba__label--after  { right: var(--sp-4); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--ba-pos, 50%);
  width: 2px; background: rgba(255,255,255,0.9); z-index: 4; transform: translateX(-1px);
}
.ba__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center; color: var(--witw-ink);
}
.ba__range {
  position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
}
.ba__range:focus-visible + .ba__handle .ba__grip { box-shadow: var(--shadow-focus); }

/* ============ Process (numbered — real sequence) ============ */
.process { display: grid; gap: 0; counter-reset: step; }
.process__step {
  display: grid; grid-template-columns: 4rem 1fr; gap: var(--sp-5);
  padding-block: var(--sp-6);
  border-top: 1px solid var(--witw-line);
}
.process__step:last-child { border-bottom: 1px solid var(--witw-line); }
.process__num {
  font-family: var(--font-display); font-size: var(--fs-h3);
  font-weight: var(--fw-light); color: var(--witw-bronze);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.process__step h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.process__step p { color: var(--witw-gray); font-size: var(--fs-small); max-width: 46ch; }

/* ============ Financing / callout band ============ */
.callout { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem,4vw,4rem); align-items: center; }
.callout__body { max-width: 38rem; }

/* ============ Testimonials ============ */
.quote {
  background: var(--witw-white); border: 1px solid var(--witw-line);
  border-radius: var(--r-md); padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.quote__stars { display: flex; gap: 2px; color: var(--witw-bronze); }
.quote__stars svg { width: 16px; height: 16px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--fw-light); line-height: var(--lh-normal); }
.quote__meta { font-size: var(--fs-caption); color: var(--witw-gray-2); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.quote__source { display: inline-flex; align-items: center; gap: var(--sp-2); }

/* ============ FAQ accordion ============ */
.faq { border-top: 1px solid var(--witw-line); }
.faq__item { border-bottom: 1px solid var(--witw-line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0; text-align: left;
  font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--fw-regular);
  color: var(--witw-ink);
}
.faq__icon { flex: none; width: 22px; height: 22px; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--witw-bronze);
  transition: transform var(--dur-med) var(--ease), opacity var(--dur-fast);
}
.faq__icon::before { width: 14px; height: 1.5px; transform: translate(-50%,-50%); }
.faq__icon::after  { width: 1.5px; height: 14px; transform: translate(-50%,-50%); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%,-50%) scaleY(0); opacity: 0; }
.faq__a {
  overflow: hidden; max-height: 0;
  transition: max-height var(--dur-med) var(--ease);
}
.faq__a-inner { padding: 0 0 var(--sp-5); color: var(--witw-gray); max-width: 62ch; }

/* ============ Cross-sell ============ */
.cross-sell { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.cross-sell__card {
  border: 1px solid var(--witw-line); border-radius: var(--r-md);
  padding: var(--sp-6); background: var(--witw-white);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: border-color var(--dur-med) var(--ease);
}
.cross-sell__card:hover { border-color: var(--witw-bronze); }

/* ============ Footer ============ */
.site-footer { background: var(--witw-ink-2); color: var(--witw-on-dark); padding-block: var(--sp-8) var(--sp-6); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-6); }
.footer__brand .brand__mark { color: var(--witw-on-dark); }
.footer__col h4 { font-family: var(--font-body); font-size: var(--fs-caption); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--witw-on-dark-mut); margin-bottom: var(--sp-4); }
.footer__col a { display: block; padding: 0.3rem 0; color: var(--witw-on-dark); font-size: var(--fs-small); opacity: 0.85; transition: opacity var(--dur-fast); }
.footer__col a:hover { opacity: 1; color: var(--witw-bronze-soft); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(243,238,230,0.14); font-size: var(--fs-caption); color: var(--witw-on-dark-mut); }

/* ============ Sticky mobile conversion bar ============ */
.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: var(--z-mobile-bar);
  display: none;
  grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--witw-line);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -6px 24px rgba(26,24,21,0.12);
}
.mobile-bar__btn {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--mobile-bar-h);
  font-size: var(--fs-small); font-weight: var(--fw-medium);
}
.mobile-bar__btn svg { width: 16px; height: 16px; }
.mobile-bar__call { background: var(--witw-white); color: var(--witw-ink); }
.mobile-bar__lead { background: var(--witw-ink); color: var(--witw-on-dark); }

/* ============ Labeled photo placeholders ============
   Designed stand-in for real photography. The label tells
   whoever swaps in the image EXACTLY what belongs there.
   Replace each .ph with a real <img>/<picture> in Wix. */
.ph {
  position: relative;
  display: grid; place-items: center;
  background:
    linear-gradient(135deg, var(--witw-paper-2), #EAE3D7);
  color: var(--witw-gray);
  overflow: hidden;
  min-height: 160px;
  border-radius: var(--r-md);
}
.ph::after {  /* faint crosshair to read as "image slot" */
  content: ""; position: absolute; inset: 12px;
  border: 1px solid rgba(150,117,78,0.18); border-radius: calc(var(--r-md) - 2px);
  pointer-events: none;
}
.ph__label {
  position: relative; z-index: 1;
  max-width: 34ch; text-align: center;
  font-size: var(--fs-caption); line-height: var(--lh-normal);
  color: var(--witw-gray); padding: var(--sp-4);
  letter-spacing: 0.01em;
}
.ph__label b {
  display: block; font-weight: var(--fw-semi);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  font-size: 0.6875rem; color: var(--witw-bronze); margin-bottom: 4px;
}
.ph--fill { position: absolute; inset: 0; border-radius: 0; height: 100%; }
.card__media .ph, .gallery__item .ph, .split__media .ph, .ba .ph { height: 100%; min-height: 0; }
.hero__ph { position: absolute; inset: 0; border-radius: 0; }
.hero__ph .ph__label { color: rgba(243,238,230,0.85); }
.hero__ph .ph__label b { color: var(--witw-bronze-soft); }
.hero__ph::after { border-color: rgba(243,238,230,0.15); }
.hero__ph { background: linear-gradient(135deg, #2A2621, #3A342C); }

/* ============ Comparison table (flooring) ============ */
.table-scroll { width: 100%; }
.compare-table {
  width: 100%; border-collapse: collapse;
  background: var(--witw-white); border: 1px solid var(--witw-line);
  border-radius: var(--r-md); overflow: hidden;
  font-size: var(--fs-small);
}
.compare-table caption { text-align: left; color: var(--witw-gray-2); font-size: var(--fs-caption); margin-bottom: var(--sp-3); }
.compare-table th, .compare-table td {
  padding: var(--sp-4) var(--sp-4);
  text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--witw-line);
}
.compare-table thead th {
  font-family: var(--font-display); font-weight: var(--fw-regular);
  font-size: var(--fs-body); color: var(--witw-ink);
  background: var(--witw-paper);
  border-bottom: 1px solid var(--witw-line-strong);
}
.compare-table tbody th {  /* row header = attribute name */
  font-family: var(--font-body); font-weight: var(--fw-medium);
  color: var(--witw-gray); text-transform: uppercase;
  letter-spacing: var(--tracking-wide); font-size: var(--fs-caption);
  white-space: nowrap; width: 1%;
  background: var(--witw-paper-2);
}
.compare-table td { color: var(--witw-ink); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table .rating { display: inline-flex; gap: 3px; }
.compare-table .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--witw-line-strong); }
.compare-table .dot.on { background: var(--witw-bronze); }

/* ============ Appliance page additions ============ */

/* Three-action sticky mobile bar (Call · Quote · Showroom) */
.mobile-bar--three { grid-template-columns: 1fr 1.2fr 1fr; }
.mobile-bar__showroom { background: var(--witw-white); color: var(--witw-ink); }

/* Package tier cards */
.card--tier { position: relative; }
.card--tier .card__body { padding-top: var(--sp-6); }
.tier-label {
  display: inline-block; font-size: var(--fs-caption);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--witw-bronze); font-weight: var(--fw-medium); margin-bottom: var(--sp-2);
}
.card--tier.is-featured { border-color: var(--witw-bronze); }
.card--tier.is-featured::before {
  content: "Most requested"; position: absolute; top: 0; right: 0;
  font-size: 0.625rem; letter-spacing: var(--tracking-wide); text-transform: uppercase;
  background: var(--witw-bronze); color: #fff; padding: 0.3rem 0.7rem; border-bottom-left-radius: var(--r-md);
}
.tier-list { display: grid; gap: var(--sp-3); margin: var(--sp-3) 0 var(--sp-5); }
.tier-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); font-size: var(--fs-small); color: var(--witw-gray); }
.tier-list svg { width: 16px; height: 16px; color: var(--witw-bronze); margin-top: 3px; flex: none; }
.price-note { font-size: var(--fs-caption); color: var(--witw-gray-2); margin-bottom: var(--sp-4); }

/* Audience / persona cards */
.persona { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-6); }
.persona h3 { font-size: var(--fs-h4); }
.persona__mark { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--witw-bronze); line-height: 1; }

/* ============ Real photography (<picture> wrappers) ============
   display:contents lets existing `… img` rules apply unchanged. */
picture { display: contents; }

/* Editorial crops for real 3:2 photos dropped into shaped slots */
.split__media img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
.callout img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--r-md); }
@media (max-width: 768px) {
  .split__media img { aspect-ratio: 4 / 3; }
}

/* ============ Facility stats ============ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin: var(--sp-6) 0; }
.stats li { display: block; }
.stat__n {
  display: block; font-family: var(--font-display); font-weight: var(--fw-light);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); line-height: 1;
  color: var(--witw-bronze); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.stat__l {
  display: block; margin-top: var(--sp-2);
  font-size: var(--fs-caption); line-height: 1.4;
  letter-spacing: var(--tracking-wide); color: var(--witw-gray);
}
.section--dark .stat__n { color: var(--witw-bronze-soft); }
.section--dark .stat__l { color: var(--witw-on-dark-mut); }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; gap: var(--sp-4); } }

/* Showroom booking band */
.booking { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem,4vw,4rem); align-items: center; }
@media (max-width: 768px) { .booking { grid-template-columns: 1fr; } }
.booking__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
/* Facility media keeps its landscape crop (aerial shot) */
.facility__media img { aspect-ratio: 16 / 10 !important; object-fit: cover; border-radius: var(--r-md); }

/* ============ Flooring material swatch band ============ */
.card--material .card__media { aspect-ratio: 2.8 / 1; }
.card--material .card__media img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Partner logo band ============ */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); align-items: center; }
.partners img { width: 100%; height: auto; mix-blend-mode: multiply; }
@media (max-width: 768px) { .partners { grid-template-columns: 1fr; gap: var(--sp-4); } }

/* ============ Hero fixes ============
   1. Content is bottom-aligned; on shorter/denser heroes the top of the
      heading slid under the fixed header. Reserve header height and let
      the hero grow instead of clipping.
   2. .btn--ghost inherited dark ink text — invisible over hero photography.  */
.hero .hero__media { padding-top: calc(var(--header-h) + 2.5rem); }
.hero__inner { width: 100%; }

.hero__media .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(20, 18, 15, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.hero__media .btn--ghost:hover {
  color: var(--witw-ink);
  background: var(--witw-paper);
  border-color: var(--witw-paper);
}
.hero__media .btn--ghost:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,0.5); }

/* Stronger scrim behind the copy column for guaranteed legibility. The
   horizontal gradient carries most of the weight since the copy sits at a
   fixed left column regardless of viewport width — on wide desktop
   screens that column is a shrinking fraction of the image, so the darken
   zone is held wider and darker before fading out. */
.hero__scrim {
  background:
    linear-gradient(180deg, rgba(20,18,15,0.42) 0%, rgba(20,18,15,0.12) 34%, rgba(20,18,15,0.82) 100%),
    linear-gradient(90deg, rgba(20,18,15,0.58) 0%, rgba(20,18,15,0.3) 45%, rgba(20,18,15,0.05) 70%, rgba(20,18,15,0) 85%);
}

@media (max-width: 768px) {
  .hero .hero__media { padding-top: calc(var(--header-h) + 1.5rem); }
}

/* Phone link inside any hero-style photo band */
.hero__media .hero__phone { color: #fff; }
.hero__media .hero__phone svg { color: var(--witw-bronze-soft); }

/* ============ Light surfaces inside dark sections ============
   .section--dark sets light heading colour globally, which leaked into
   light-background cards sitting on those sections (the lead-entry box,
   any card/quote). Reset text to ink on those surfaces.               */
.section--dark .lead-entry,
.section--dark .lead-entry h1,
.section--dark .lead-entry h2,
.section--dark .lead-entry h3,
.section--dark .lead-entry h4,
.section--dark .card,
.section--dark .card h1,
.section--dark .card h2,
.section--dark .card h3,
.section--dark .card h4,
.section--dark .quote,
.section--dark .quote h3,
.section--dark .quote blockquote { color: var(--witw-ink); }

.section--dark .lead-entry .lead-entry__note,
.section--dark .lead-entry .fine-print,
.section--dark .card .card__text { color: var(--witw-gray); }

.section--dark .lead-entry a { color: var(--witw-ink); }

/* ============ Appliance catalog builder ============ */
.catalog-grid { display: flex; flex-direction: column; gap: var(--sp-5); }
.catalog-row {
  display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-5); align-items: center;
  padding: var(--sp-5); background: var(--witw-white); border: 1px solid var(--witw-line); border-radius: var(--r-lg);
}
.catalog-row__media { display: flex; align-items: center; gap: var(--sp-3); }
.catalog-row__media img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-md); flex: none; }
.catalog-row__title { font-family: var(--font-display); font-size: var(--fs-h4); color: var(--witw-ink); }
.catalog-row__brands { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.catalog-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.65rem 1.2rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--witw-line-strong); background: var(--witw-paper);
  font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--witw-ink);
  cursor: pointer; transition: all var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.catalog-chip:hover { border-color: var(--witw-bronze); }
.catalog-chip.is-selected { background: var(--witw-ink); border-color: var(--witw-ink); color: var(--witw-on-dark); }
.catalog-chip__check { width: 16px; height: 16px; display: none; }
.catalog-chip.is-selected .catalog-chip__check { display: inline-flex; }

.catalog-bar {
  position: sticky; bottom: 0; z-index: 20;
  background: var(--witw-ink); border-top: 1px solid rgba(255,255,255,0.12);
  transform: translateY(100%); transition: transform var(--dur-med) var(--ease);
}
.catalog-bar.is-shown { transform: translateY(0); }
.catalog-bar__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); padding-block: var(--sp-4); flex-wrap: wrap; }
.catalog-bar__summary { color: var(--witw-on-dark); font-size: var(--fs-small); }
.catalog-bar__summary strong { font-size: var(--fs-h4); font-family: var(--font-display); color: var(--witw-bronze-soft); margin-right: var(--sp-2); }
.catalog-bar__list { display: block; color: var(--witw-on-dark-mut); font-size: var(--fs-caption); margin-top: 2px; max-width: 60ch; }
.catalog-bar__actions { display: flex; gap: var(--sp-3); }
.catalog-bar .btn--ghost { color: var(--witw-on-dark); border-color: rgba(243,238,230,0.28); }

@media (max-width: 768px) {
  .catalog-row { grid-template-columns: 1fr; }
  .catalog-bar__row { flex-direction: column; align-items: stretch; text-align: center; }
}
