/* ==============================================
   MILFORD MILLS TILE — MAIN STYLESHEET
   Imports tokens.css; defines all shared
   components, layout utilities, and responsive
   rules. Source: Design & Layout Canon.
   ============================================== */


/* ── RESET & BASE ─────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 1rem;
  overflow-x: hidden; /* prevent mobile horizontal overflow — confirmed safe x-axis only */
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* belt-and-suspenders with html overflow-x */
}

img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ── SKIP LINK — accessibility, first focusable element ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: none;
}

/* ── TYPOGRAPHY HELPERS ───────────────────── */
.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.875rem;
  display: block;
  text-wrap: balance;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

/* Dark-section heading override — keep white on charcoal backgrounds */
.performance-section .section-title {
  color: var(--white);
}

.section-body {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--body-copy);
  max-width: 560px;
  line-height: 1.75;
  text-wrap: balance;
}

/* ── BUTTONS ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 0;
  text-decoration: none;
  width: auto;
  white-space: nowrap;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--terracotta-h);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white-45);
}
.btn-outline:hover {
  background: var(--white-08);
  border-color: var(--white-70);
}

.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}
.btn-outline-dark:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-arrow::after {
  content: '→';
  font-size: 0.9375rem;
  letter-spacing: 0;
}

/* ── SCROLL REVEAL ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  /* WHY: honor OS-level reduced-motion preferences across all animations/transitions. */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── HEADER / NAV ─────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 1.25rem; /* mobile-first: tight padding prevents header overflow */
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--charcoal-96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--white-06);
}

.logo,
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 200px;
}

/* Mobile/tablet base: nav hidden, shown at 1200px+ */
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-72);
  transition: color var(--transition);
  text-decoration: none;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--terracotta);
  /* WHY: CTA color/size must override generic header link rules at all breakpoints. */
  color: var(--white) !important;
  padding: 9px 20px;
  font-family: var(--font-heading);
  font-size: 0.6875rem !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background var(--transition);
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--terracotta-h);
}

/* Secondary nav button — outline style, appears before Call Now */
.nav-cta-secondary {
  /* WHY: outline CTA color/size must override generic header link rules at all breakpoints. */
  color: var(--white-85) !important;
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 0.6875rem !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid var(--white-35);
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
}
.nav-cta-secondary:hover {
  background: var(--white-08);
  border-color: var(--white-60);
  /* WHY: hover contrast must override generic header link hover color. */
  color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--charcoal);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: max(32px, env(safe-area-inset-top)) 40px max(56px, calc(env(safe-area-inset-bottom) + 56px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  clip-path: inset(0 0 0 100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: clip-path 0.3s ease, opacity 0.2s ease, visibility 0s linear 0.3s;
}
.mobile-menu.open {
  clip-path: inset(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: clip-path 0.3s ease, opacity 0.2s ease;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.mobile-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav-links a {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--white-80);
  padding: 18px 0;
  border-bottom: 1px solid var(--white-08);
  transition: color var(--transition);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.mobile-nav-links a:hover { color: var(--white); }

.mobile-cta-row {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-cta-row .btn-outline-dark {
  color: var(--white);
  border-color: var(--white-45);
  background: transparent;
}

.mobile-cta-row .btn-outline-dark:hover,
.mobile-cta-row .btn-outline-dark:focus-visible {
  color: var(--white);
  border-color: var(--white-70);
  background: var(--white-08);
}

/* ── HERO ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  /* contains zoom: clips hero media/overlay motion within the viewport frame */
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 160px;
}

/* ── Z-INDEX ARCHITECTURE — HERO ────────────────────────────
   .hero-bg (video + poster):   position absolute, z-index auto (lowest)
   .hero-overlay (gradient):    position absolute, z-index 1 (above video)
   .hero-bg::after (texture):   position absolute, z-index 2 (above gradient)
   .hero-content:               position relative, z-index 3 (above all bg layers)
   .hero-stats:                 position absolute, z-index 3 (above all bg layers)
   ──────────────────────────────────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      var(--dark-82) 0%,
      var(--dark-55) 52%,
      var(--dark-25) 100%
    ),
    /* hero background fallback */
    var(--charcoal);
  background-size: cover;
  background-position: center;
}

/* placeholder texture for hero bg */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 59px, var(--white-03) 59px, var(--white-03) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, var(--white-03) 59px, var(--white-03) 60px);
  opacity: 0.6;
}

/* Gradient overlay — sits above video, below texture and content.
   Left side darker for text legibility; right fades to show tile work. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    var(--hero-overlay-82) 0%,
    var(--hero-overlay-65) 38%,
    var(--hero-overlay-30) 65%,
    var(--hero-overlay-10) 100%
  );
  pointer-events: none;
}

/* Hero video object-position — frame toward upper portion of tile work */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem; /* mobile-first: matches site-header mobile padding */
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-tag-line {
  width: 32px;
  height: 1px;
  background: var(--terracotta);
}
.hero-tag-text {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-60);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8125rem, 4.4vw, 3.625rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.025em;
  max-width: 700px;
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--neutral);
  font-weight: 300;
}

.hero-sub {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--white-65);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Stats strip */
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--white-06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--white-10);
  z-index: 3;
}
.hero-stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem; /* mobile-first: was 0 40px — caused overflow at 390px */
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* mobile: 2-col so Wedi & Schluter fits */
}
.stat-item {
  padding: 16px 0; /* tighter on mobile */
  text-align: center;
  border-right: none; /* mobile: no right border in 2-col layout */
  border-bottom: 1px solid var(--white-08);
}
.stat-item:last-child { border-bottom: none; }
.stat-item:nth-child(2) { border-bottom: 1px solid var(--white-08); } /* top-right cell */
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.8vw, 1.75rem); /* clamp prevents "Wedi & Schluter" overflow at mobile 2-col */
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-45);
  margin-top: 5px;
}

/* ── TRUST / WHY CHOOSE US ────────────────── */
.trust-section {
  padding: var(--section-pad);
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.trust-visual {
  position: relative;
}
.trust-img-main {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--light-gray);
  /* contains zoom: preserves the intended image frame if media scales or shifts */
  overflow: hidden;
  position: relative;
}
/* CSS tile-grid placeholder */
.tile-placeholder {
  width: 100%;
  height: 100%;
  min-height: 460px;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 59px, var(--white-30) 59px, var(--white-30) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, var(--white-30) 59px, var(--white-30) 60px),
    linear-gradient(135deg, var(--trust-ph-light) 0%, var(--trust-ph-dark) 100%);
}
/* tile placeholder helper */

.trust-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--charcoal);
  color: var(--white);
  padding: 28px 32px;
  min-width: 200px;
}
.trust-badge-num {
  font-family: var(--font-heading);
  font-size: 2.625rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--terracotta);
  line-height: 1;
}
.trust-badge-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--white-65);
  margin-top: 6px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.trust-copy { padding-left: 8px; }
.trust-lead {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--charcoal);
  margin-bottom: 36px;
  max-width: 440px;
}
.trust-lead strong {
  font-weight: 600;
  display: block;
}

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.trust-item-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.trust-item-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--terracotta);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-item p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--body-copy);
  line-height: 1.6;
}

/* ── SERVICES ─────────────────────────────── */
.services-section {
  padding: var(--section-pad);
  background: var(--off-white);
}

.services-header {
  /* Editorial single block — eyebrow, heading, and supporting copy
     stack intentionally above the service cards.
     No 2-col split: a one-sentence body copy block does not earn a column. */
  margin-bottom: 2.5rem;
  max-width: 760px; /* keeps editorial copy width intentional at all sizes */
}

.services-header .section-body {
  margin-top: 1rem;
  max-width: 560px; /* readable line length for supporting copy */
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  align-items: stretch;
}

.service-card {
  background: var(--white);
  position: relative;
  transition: background var(--transition);
  cursor: default;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden; /* clips flex card content to card boundary */
}
.service-card:hover { background: var(--charcoal); }
.service-card:hover .service-num,
.service-card:hover .service-name,
.service-card:hover .service-desc { color: var(--white-70); }
.service-card:hover .service-name  { color: var(--white); }
.service-card:hover .service-line  { background: var(--terracotta); }
.service-card:hover .service-card-media img { transform: scale(1.03); }

.service-card-media {
  aspect-ratio: 4 / 3;
  background: var(--light-gray);
  /* contains zoom: keeps hover image scale inside the service-card crop */
  overflow: hidden;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.service-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-num {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--mid-gray);
  margin-bottom: 20px;
  transition: color var(--transition);
}
.service-line {
  width: 28px;
  height: 2px;
  background: var(--neutral);
  margin-bottom: 20px;
  transition: background var(--transition);
}
.service-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
  line-height: 1.3;
  transition: color var(--transition);
}
.service-desc {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--mid-gray);
  line-height: 1.65;
  transition: color var(--transition);
}

.services-footer {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.services-footer p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--body-copy-muted);
  flex: 1; /* fill available space — CTA button flex-shrink:0 holds its width */
  max-width: 560px; /* readability cap */
}

/* ── PERFORMANCE / DARK ───────────────────── */
.performance-section {
  padding: var(--section-pad);
  background: var(--charcoal);
}

.performance-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.perf-copy .eyebrow { color: var(--white-40); }
.perf-copy .section-title { color: var(--white); }
.perf-copy .section-body { color: var(--white-60); margin-top: 20px; }

.perf-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}
.perf-feature {
  padding: 24px 0;
  border-bottom: 1px solid var(--white-08);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.perf-feature:first-child { border-top: 1px solid var(--white-08); }

.perf-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--terracotta-50);
  display: flex;
  align-items: center;
  justify-content: center;
}
.perf-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--terracotta);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.perf-feature-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.perf-feature-desc {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--white-50);
  line-height: 1.6;
}

/* Right: visual panels */
.perf-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  height: 520px;
}
.perf-panel {
  background: var(--charcoal-deep);
  overflow: hidden; /* clips positioned children to panel boundary */
  position: relative;
}
.perf-panel:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}
/* perf-panel img: full cover fill — images must fill grid cells.
   Preserves .portrait-top and .perf-panel:nth-child(1) img object-position.
   position:relative + overflow:hidden already on .perf-panel. */
.perf-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center center; /* default; overridden per-panel below */
}

/* ── PORTFOLIO PREVIEW ────────────────────── */
.portfolio-section {
  padding: var(--section-pad);
  background: var(--white);
}

.portfolio-header {
  display: flex;
  flex-direction: column; /* mobile-first: stack heading + CTA */
  align-items: flex-start;
  margin-bottom: 48px;
  gap: 16px;
}

.portfolio-header .btn {
  align-self: flex-start; /* don't stretch to full width */
  white-space: nowrap; /* prevent text wrapping inside button */
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 3px;
}

.portfolio-item {
  overflow: hidden; /* crops image to fixed item height */
  position: relative;
  cursor: pointer;
  height: clamp(220px, 72vw, 280px);
}
.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.3s ease;
}

/* ── IMAGE FILL — portfolio preview and portfolio grid cards ─────────
   Ensures images fill their containers correctly on desktop and mobile.
   object-fit: cover centres and crops without distortion.
   ─────────────────────────────────────────────────────────────────── */
.portfolio-item img,
.portfolio-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio-item:hover::after {
  background: var(--charcoal-35);
}
.portfolio-item:hover .portfolio-label {
  opacity: 1;
  transform: translateY(0);
}

/* placeholder backgrounds removed — real images wired via sidecar */

.portfolio-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 20px 24px;
  background: linear-gradient(to top, var(--black-60), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.portfolio-label span {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── HOW IT WORKS / PROCESS ───────────────── */
.process-section {
  padding: var(--section-pad);
  background: var(--off-white);
}

.process-header {
  max-width: 560px;
  margin-bottom: 64px;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.process-step {
  background: var(--white);
  padding: 40px 36px;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--terracotta);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.step-line {
  width: 28px;
  height: 2px;
  background: var(--neutral);
  margin-bottom: 20px;
}
.step-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
  line-height: 1.3;
}
.step-desc {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--mid-gray);
  line-height: 1.65;
}

.process-note {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--light-gray);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--body-copy-muted);
  max-width: 500px;
}

/* ── REVIEWS ──────────────────────────────── */
.reviews-section {
  padding: var(--section-pad);
  background: var(--white);
}

.reviews-header {
  /* Removed max-width: 640px — was leaving unused right-side space at desktop.
     Heading uses text-wrap: balance naturally. Section body below retains its
     own max-width for readable line length. */
  margin-bottom: 48px;
}

.reviews-header .section-body {
  max-width: 600px; /* readable line length on supporting copy */
  width: 100%;
  text-wrap: pretty;
}

.reviews-header-note {
  margin-top: 1rem;
}

/* Reviews widget container */
.reviews-widget-placeholder {
  background: var(--off-white);
  border: 2px dashed var(--light-gray);
  padding: 64px 40px;
  text-align: center;
  margin-bottom: 48px;
}
.reviews-widget-placeholder p {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.reviews-widget-placeholder small {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--light-gray);
  color: var(--mid-gray);
}

.reviews-widget-embed {
  width: 100%;
  margin: 0;
}

.reviews-widget-embed iframe {
  display: block;
  width: 100%;
  min-height: 760px;
}

.reviews-header--interior {
  margin-bottom: 2rem;
}

.review-excerpt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.review-excerpt-card {
  border: 1px solid var(--light-gray);
  background: var(--white);
  padding: 1.5rem;
}

.review-excerpt-stars {
  color: var(--terracotta);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.review-excerpt-text {
  margin: 0;
  color: var(--charcoal);
  font-size: 1.05rem;
  line-height: 1.75;
}

.review-excerpt-meta {
  margin: 1rem 0 0;
  color: var(--body-copy-muted);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.linked-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.linked-tag-list--compact {
  margin-top: 1.25rem;
}

.quote-actions .linked-tag-list--compact {
  width: min(100%, 34rem);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.quote-actions .linked-tag {
  justify-content: flex-start;
  text-align: left;
}

.linked-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-gray);
  background: var(--off-white);
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
}

.linked-tag:hover,
.linked-tag:focus-visible {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.faq-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  border: 1px solid var(--light-gray);
  background: var(--white);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--terracotta);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.faq-item[open] .faq-question::after {
  content: '\2212';
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  margin: 0;
  color: var(--body-copy);
  font-size: 1rem;
  line-height: 1.8;
}

.interior-section--reviews-widget {
  padding-bottom: 0;
}

.interior-section--reviews-widget .container--wide {
  padding-left: 24px;
  padding-right: 24px;
}

.section-split-visual--widget {
  min-height: 760px;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
}

.section-split-visual--widget iframe {
  position: static;
  display: block;
  width: 100%;
  min-height: 760px;
  height: 100%;
}

/* ── QUOTE / FINAL CTA SECTION ────────────── */
.quote-section {
  padding: var(--section-pad);
  background: var(--off-white);
}

.quote-section--bathroom {
  background-color: var(--off-white);
  background-image:
    linear-gradient(var(--warm-surface-94), var(--warm-surface-94)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23d7d2ca' stroke-width='1.5'%3E%3Crect x='8' y='8' width='38' height='38'/%3E%3Crect x='50' y='8' width='38' height='38'/%3E%3Crect x='8' y='50' width='38' height='38'/%3E%3Crect x='50' y='50' width='38' height='38'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 96px 96px;
  background-position: center, center;
}

.quote-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.quote-copy .section-title { margin-bottom: 24px; }
.quote-copy .section-body  { margin-bottom: 40px; }

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.qa-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.qa-item-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.qa-item-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--terracotta);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qa-text {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--body-copy-muted);
  line-height: 1.6;
}

.quote-copy-intro {
  margin-top: 1rem;
  margin-bottom: 2.25rem;
}

.quote-support-visual {
  position: relative;
  margin-top: 2rem;
  min-height: 320px;
  overflow: hidden; /* clips positioned image to visual container */
  background: var(--white);
}

.quote-support-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center center;
}

/* Quote section CTA stack */
.quote-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 0; /* removed — was creating excessive gap at mobile */
  align-items: center;
  margin-top: 2rem; /* intentional rhythm between list and actions on mobile */
}

.quote-actions .quote-form-panel {
  width: min(100%, 30rem);
}

.quote-form-placeholder {
  background: var(--white);
  padding: 2rem 1.5rem;
}

.quote-form-placeholder .form-group:last-of-type {
  margin-bottom: 0;
}

.quote-form-placeholder-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 1.25rem;
}

.quote-form-placeholder-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--mid-gray);
  line-height: 1.6;
  text-wrap: balance;
}

/* ── FOOTER ───────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  padding: 72px 24px 40px;
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--white-08);
}

.footer-brand .footer-logo-link { margin-bottom: 20px; display: inline-flex; }
.footer-brand p {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--white-40);
  line-height: 1.7;
  max-width: 260px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.footer-contact-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--white-65);
  transition: color var(--transition);
  text-decoration: none;
}
.footer-contact-link:hover { color: var(--white); }

.footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white-35);
  border-radius: 50%;
  color: var(--white-65);
  text-decoration: none;
  transition:
    color var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--white);
  border-color: var(--white-65);
  background-color: var(--white-08);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 20px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--white-50);
  transition: color var(--transition);
  text-decoration: none;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--white-35);
}
.footer-service-areas {
  /* WHY: footer SEO line must stay compact even when inherited footer text scales. */
  font-size: 0.6875rem !important;
  letter-spacing: 0.04em;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--white-35);
  transition: color var(--transition);
  text-decoration: none;
}
.footer-legal-links a:hover { color: var(--white-70); }

/* Privacy choices — choice_required mode */
.privacy-choices-link {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--white-40);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition);
}
.privacy-choices-link:hover { color: var(--white-70); }

/* ── RESPONSIVE ───────────────────────────── */

/* =============================================
   RESPONSIVE — MOBILE FIRST
   Canonical breakpoints: 600px | 900px | 1200px
   Base styles target mobile.
   Each breakpoint progressively enhances.
   ============================================= */

/* ── 600px — Small tablet and up ── */
@media (min-width: 600px) {
  .hero-stats-inner {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat-item { border-right: 1px solid var(--white-08); }
  .stat-item:last-child { border-right: none; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
}

/* ── 900px — Tablet landscape and up ── */
@media (min-width: 900px) {
  :root {
    --section-pad: 4.5rem 1.5rem; /* reduced from 6.25rem — tighter vertical rhythm */
  }

  .site-header { padding: 0 2rem; }

  .hero-content { padding: 0 2rem; }

  .page-header { padding: 8rem 1.5rem 4.5rem; } /* restore at tablet/desktop */

  /* Restore portfolio-header to side-by-side at tablet+ */
  .portfolio-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 1.25rem;
  }
  .portfolio-header .btn { align-self: auto; }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .trust-badge {
    bottom: -1.5rem;
    right: -1.5rem;
  }

  .services-header {
    margin-bottom: 3rem; /* more breathing room at tablet+ */
    max-width: 100%;
  }

  #services-heading {
    font-size: clamp(1.75rem, 2.25vw, 2.15rem);
    text-wrap: balance; /* was nowrap — balance prevents orphan last-line without blocking wrap if text grows */
  }

  #process-heading {
    font-size: clamp(1.95rem, 2.55vw, 2.35rem);
    text-wrap: balance; /* was nowrap */
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .performance-inner {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .portfolio-item {
    height: 280px;
  }

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .quote-inner {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  /* Desktop: align-self centers action group with copy column mid-point.
     align-items stretch makes all buttons fill the column width — consistent. */
  .quote-actions {
    align-self: center;
    align-items: center;
    padding-top: 0;
    margin-top: 0;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
  }
}

/* ── 1200px — Desktop and up ── */
@media (min-width: 1200px) {
  .nav-links {
    display: flex;
    gap: 1.5rem;
  }
  .nav-toggle { display: none; }
  .site-header { padding: 0 2.5rem; }
  .hero-content { padding: 0 2.5rem; }
  .nav-cta { display: inline-flex; padding: 10px 22px; } /* restore Call Now at desktop */
  .nav-cta-secondary { padding: 9px 18px; }
  .trust-grid { gap: 5rem; }
  .trust-badge { bottom: -1.5rem; right: -1.5rem; }

  .portfolio-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 320px 320px;
  }
  .portfolio-item {
    height: auto;
    min-height: 0;
  }

  /* Restore editorial grid sizing */
  .portfolio-item:nth-child(1) { grid-column: 1  / 6;  grid-row: 1 / 2; }
  .portfolio-item:nth-child(2) { grid-column: 6  / 10; grid-row: 1 / 2; }
  .portfolio-item:nth-child(3) { grid-column: 10 / 13; grid-row: 1 / 2; }
  .portfolio-item:nth-child(4) { grid-column: 1  / 7;  grid-row: 2 / 3; }
  .portfolio-item:nth-child(5) { grid-column: 7  / 13; grid-row: 2 / 3; }

  .quote-inner { gap: 5rem; }

  #services-heading {
    text-wrap: nowrap;
  }
}


/* ══════════════════════════════════════════════════════════
   T8B ADDITIONS — INTERIOR PAGE PATTERNS
   Added: 2026-05-11 — Wave 2 page build
   All classes are new; no T8A classes modified.
   ══════════════════════════════════════════════════════════ */

/* ── INTERIOR PAGE HEADER ───────────────────────────────── */
/* Used on all interior pages. Dark charcoal posture,
   consistent with homepage design language.
   ── Z-INDEX ARCHITECTURE — INTERIOR HEADER ──────────────
   .page-header-bg::after (overlay):  position absolute, z-index 0
   .page-header-content:              position relative, z-index 2
   ────────────────────────────────────────────────────── */
.page-header {
  position: relative;
  background: var(--charcoal);
  padding: 6rem 1.5rem 3rem; /* mobile-first: tighter than 9rem 5rem */
  overflow: hidden; /* clips positioned background decoration to header bounds */
}

.page-header--bathroom {
  background:
    linear-gradient(var(--charcoal-82), var(--charcoal-82)),
    url('../images/portfolio/bath9-large.webp') center 42% / cover no-repeat,
    var(--charcoal);
}

.page-header--kitchen {
  background:
    linear-gradient(var(--charcoal-82), var(--charcoal-82)),
    url('../images/portfolio/kitchen1-large.webp') center 42% / cover no-repeat,
    var(--charcoal);
}

.page-header--fireplace {
  background:
    linear-gradient(var(--charcoal-82), var(--charcoal-82)),
    url('../images/portfolio/fireplace1-large.webp') center center / cover no-repeat,
    var(--charcoal);
}

.page-header--repair {
  background:
    linear-gradient(var(--charcoal-82), var(--charcoal-82)),
    url('../images/portfolio/tile-floor5-large.webp') center 38% / cover no-repeat,
    var(--charcoal);
}

.page-header--custom {
  background:
    linear-gradient(var(--charcoal-82), var(--charcoal-82)),
    url('../images/portfolio/custom12-large.webp') center 38% / cover no-repeat,
    var(--charcoal);
}

.page-header--portfolio {
  background:
    linear-gradient(var(--charcoal-82), var(--charcoal-82)),
    url('../images/portfolio/bath12-large.webp') center 42% / cover no-repeat,
    var(--charcoal);
}

.page-header--chester-county {
  background:
    linear-gradient(var(--charcoal-82), var(--charcoal-82)),
    url('../images/portfolio/bath12-large.webp') center 42% / cover no-repeat,
    var(--charcoal);
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 59px, var(--white-03) 59px, var(--white-03) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, var(--white-03) 59px, var(--white-03) 60px);
  opacity: 0.4;
}

.page-header-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-header .eyebrow {
  /* DESIGNER NOTE: Brief requested terracotta (#A44A3F on #2B2B2B = ~3.8:1).
     Fails WCAG AA 4.5:1 for 11px normal text. Using full white (16.1:1) instead.
     Override with explicit designer approval if terracotta is preferred. */
  color: var(--white);
  margin-bottom: 1rem;
  display: block;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.page-header .page-subline {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--white-65);
  max-width: 900px;
  line-height: 1.65;
}

.page-header .page-header-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ── PAGE IMAGE PLACEHOLDER (interior) ──────────────────── */
.page-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  border: 1px dashed var(--light-gray);
}

/* ── INTERIOR SECTION — INTRO / BODY ────────────────────── */
.interior-section {
  padding: var(--section-pad);
}

.interior-section .container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.service-link-section {
  padding-top: 0;
}

.interior-intro {
  max-width: 720px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--body-copy);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  text-wrap: balance;
}

.service-intro-copy .interior-intro,
.section-split-copy .interior-intro,
.why-matters-copy .interior-intro,
.service-scope-copy .interior-intro,
.quote-copy .interior-intro,
.quote-form-copy .interior-intro {
  margin-bottom: 1.25rem;
}

.service-intro-copy .interior-intro:last-child,
.section-split-copy .interior-intro:last-child,
.why-matters-copy .interior-intro:last-child,
.service-scope-copy .interior-intro:last-child,
.quote-copy .interior-intro:last-child,
.quote-form-copy .interior-intro:last-child {
  margin-bottom: 0;
}

/* ── BULLETED LIST — INTERIOR ────────────────────────────── */
.interior-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.interior-list li {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--body-copy);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.65;
  text-wrap: balance;
}

.interior-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--terracotta);
  flex-shrink: 0;
}

/* ── TWO COLUMN INTERIOR GRID ───────────────────────────── */
.interior-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.interior-two-col--balanced {
  align-items: center;
}

/* ── FEATURED PROJECT LAYOUT — editorial modifier ───────────────────
   Used on custom-tile intro + image grid.
   Replaces inline style hacks with reusable class-based overrides.
   .interior-section--featured: removes section padding-top so intro copy
     reads flush with the featured image without double-padding.
   .interior-two-col--featured: tighter gap between copy side and images.
   .featured-img-primary: primary large image, fills its column.
   .featured-img-secondary: secondary image grid column (2 stacked images).
   ─────────────────────────────────────────────────────────────────── */
.interior-two-col--featured {
  gap: 1.5rem; /* tighter than default 3rem — images are adjacent, not copy+image */
  margin: 1.5rem 0 0;
  align-items: stretch; /* both columns same height */
}

.featured-img-primary {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-img-secondary {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1.5rem;
}

.featured-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── FEATURED SECTION: intro copy spans full width before image grid ─
   At mobile: stacked naturally (single col).
   At 900px: intro copy full-width editorial above image grid (not side-by-side).
   The image grid itself goes 2-col below. ─────────────────────────── */
.interior-section--featured .interior-intro {
  max-width: 100%; /* full editorial width — 720px cap removed for featured context */
}

/* ── SERVICE CARD LINKS (services hub) ──────────────────── */
.service-link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin: 3rem 0;
}

.service-link-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--light-gray);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.service-link-card:hover {
  background: var(--charcoal);
}

.service-link-card:hover .service-link-name,
.service-link-card:hover .service-link-desc {
  color: var(--white);
}

.service-link-card:hover .service-link-line {
  background: var(--terracotta);
}

.service-link-num {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.service-link-line {
  width: 1.75rem;
  height: 2px;
  background: var(--terracotta);
  transition: var(--transition);
}

.service-link-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: var(--transition);
}

.service-link-desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--body-copy);
  line-height: 1.65;
  transition: var(--transition);
}

.service-link-arrow {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.05em;
  margin-top: auto;
}

/* ── SERVICE CARD THUMBNAIL ─────────────────────────────── */
.service-link-img {
  width: 100%;
  overflow: hidden; /* clips thumbnail to max-height: 180px */
  max-height: 180px; /* constrain thumbnail height in card */
}

.service-link-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-link-card:hover .service-link-img img {
  transform: scale(1.04);
}

/* Portrait-top: images where subject is in upper portion.
   Used for portrait images placed in landscape-strip or tall containers
   where default center-center crop would miss the tile detail. */
.portrait-top {
  /* WHY: portrait assets need their top crop preserved in forced landscape/tall frames. */
  object-position: center top !important;
}

/* Performance panel 1 — tall portrait slot: frame top of portrait image */
.perf-panel:nth-child(1) img {
  object-position: center top;
}

/* ── WHY IT MATTERS — DARK INSET ────────────────────────── */
.why-matters-section {
  background: var(--off-white);
  padding: var(--section-pad);
}

.why-matters-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.why-matters-grid--media {
  align-items: center;
}

.why-matters-copy .interior-intro:last-child,
.section-split-copy .interior-intro:last-child {
  margin-bottom: 0;
}

.section-split-copy {
  max-width: 100%;
}

.section-split-visual {
  position: relative;
  overflow: hidden; /* clips positioned image to split-section visual pane */
  background: var(--light-gray);
  min-height: 320px;
}

.section-split-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-split-visual--callout {
  min-height: 540px;
}

.section-split-visual--landscape {
  min-height: 440px;
}

.section-split-visual--portrait {
  min-height: 560px;
}

.section-split-visual--portrait img {
  object-position: center center;
}

.section-visual-callout {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  max-width: 260px;
  padding: 1rem 1.125rem;
  background: rgba(43, 43, 43, 0.88);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

.services-check-list {
  margin: 0.5rem 0 2rem;
  max-width: 760px;
}

.services-check-list .qa-text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--body-copy);
  line-height: 1.65;
}

/* ── RESULT SECTION ─────────────────────────────────────── */
.result-section {
  background: var(--charcoal);
  padding: var(--section-pad);
}

.result-section .section-title {
  color: var(--white);
}

.result-section .eyebrow {
  color: var(--white-50);
}

.result-section .interior-list li {
  color: var(--white-80);
}

.result-section .interior-list li::before {
  background: var(--terracotta);
}

/* ── PARTNER CARD ────────────────────────────────────────── */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin: 3rem 0;
}

.partner-card {
  border: 1px solid var(--light-gray);
  padding: 2.5rem 2rem;
  background: var(--white);
}

.partner-logo-placeholder {
  width: 160px;
  height: 60px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 1.5rem;
  border: 1px dashed var(--neutral);
}

.partner-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.partner-body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--body-copy);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.partner-contact {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--body-copy-muted);
  line-height: 1.75;
}

.partner-contact a {
  color: var(--terracotta);
  text-decoration: none;
}

.partner-contact a:hover {
  color: var(--terracotta-h);
  text-decoration: underline;
}

.partner-verify {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-gray);
}

/* ── QUOTE FORM (request-a-quote) ────────────────────────── */
.quote-form-section {
  padding: var(--section-pad);
  background: var(--white);
}

.quote-form-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.quote-form-copy .section-title {
  margin-bottom: 1.5rem;
}

.quote-form-copy {
  min-width: 0;
}

.quote-form-inner .quote-form-copy {
  order: 2;
}

.quote-form-inner .quote-form-panel--embed {
  order: 1;
}

.quote-review-widget {
  margin-top: 2.5rem;
  width: 100%;
  max-height: 560px;
  overflow: hidden; /* constrains third-party widget to max-height; clips overflow */
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  background: var(--white);
}

.quote-review-widget iframe {
  display: block;
  width: 100%;
  height: 560px;
  min-height: 560px;
  border: 0;
}

.lc_reviews_widget {
  min-width: 100%;
  width: 100%;
  border: none;
  overflow: hidden; /* constrains third-party review widget iframe; prevents scroll bleed */
}

.quote-reassurance {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quote-reassurance-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--body-copy);
  line-height: 1.5;
}

.quote-reassurance-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--terracotta);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.quote-form-panel {
    background: var(--white);
    border: 1px solid var(--light-gray);
    padding: 3rem 2.5rem;
  }

.quote-form-panel--embed {
    padding: 0;
    overflow: hidden; /* clips iframe embed to panel boundary */
    min-height: 1173px;
  }

.quote-form-panel--embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 3px;
    min-height: 1173px;
  }

.ghl-embed {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 3px;
  }

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 0;
  padding: 0.875rem 1rem;
  appearance: none;
  transition: border-color var(--transition);
  display: block;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--charcoal);
  background: var(--white);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.65;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-hint {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--mid-gray);
  margin-top: 0.375rem;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* ── CONTACT ALTERNATIVE ─────────────────────────────────── */
.contact-alt {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
}

.contact-alt-label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.contact-alt-links {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.contact-alt-links a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--terracotta);
  text-decoration: none;
}

.contact-alt-links a:hover {
  color: var(--terracotta-h);
  text-decoration: underline;
}

/* ── THANK YOU PAGE ──────────────────────────────────────── */
.thankyou-section {
  min-height: 70vh;
  padding: var(--section-pad);
  display: flex;
  align-items: center;
}

.thankyou-inner {
  max-width: 720px;
  margin: 0 auto;
}

.thankyou-heading-tight {
  margin-bottom: 0.5rem;
}

.thankyou-heading-spaced {
  margin-bottom: 1rem;
}

.thankyou-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2.5rem 0;
}

.thankyou-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.thankyou-step-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  min-width: 2rem;
}

.thankyou-step-content {
  flex: 1;
}

.thankyou-step-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.375rem;
}

.thankyou-step-body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--body-copy);
  line-height: 1.65;
}

.thankyou-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.thankyou-closing {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--body-copy-muted);
  line-height: 1.65;
}

/* ── LEGAL PLACEHOLDER ───────────────────────────────────── */
.legal-section {
  padding: var(--section-pad);
  max-width: 720px;
  margin: 0 auto;
}

.legal-placeholder-box {
  border: 1px dashed var(--neutral);
  padding: 2.5rem 2rem;
  background: var(--off-white);
  margin: 2rem 0;
}

.legal-placeholder-label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 1rem;
  display: block;
}

.legal-placeholder-note {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--body-copy);
  line-height: 1.65;
}

.legal-prose {
  max-width: 760px;
}

.legal-prose .page-subline {
  max-width: 100%;
}

.legal-meta,
.legal-prose p,
.legal-prose li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--body-copy);
  line-height: 1.8;
}

.thankyou-phone-link {
  color: var(--terracotta);
}

.legal-meta {
  margin-bottom: 1.5rem;
}

.legal-prose h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 2rem 0 0.875rem;
}

.legal-prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.75rem 0 1rem;
}

.legal-prose a {
  color: var(--terracotta);
}

.legal-prose a:hover {
  color: var(--terracotta-h);
}

.legal-contact {
  margin-top: 0.25rem;
}

/* ── AREAS WE SERVE — COMMUNITY LIST ─────────────────────── */
.community-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1.5rem 0 2.5rem;
}

.community-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  background: var(--light-gray);
  padding: 0.375rem 0.875rem;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
}

a.community-tag:hover,
a.community-tag:focus-visible {
  background: var(--neutral);
  color: var(--charcoal);
}

/* ── BLOG PLACEHOLDER ────────────────────────────────────── */
.blog-placeholder-panel {
  border: 1px dashed var(--neutral);
  padding: 2rem 1.25rem; /* tighter mobile padding */
  background: var(--off-white);
  text-align: center;
  margin: 2rem 0;
  overflow: hidden; /* prevents content from breaking out of placeholder panel */
  box-sizing: border-box;
}

/* Blog CTA: long URL text overflows at 390px due to global white-space:nowrap on .btn.
   Scoped override: allow wrap + full width on mobile only. */
.blog-placeholder-panel .btn {
  white-space: normal;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.blog-placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.35;
}

.blog-placeholder-note {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--body-copy-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* ── PORTFOLIO FILTER BAR ────────────────────────────────── */
.portfolio-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}

.portfolio-filter-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.625rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--light-gray);
  cursor: pointer;
  color: var(--charcoal);
  transition: var(--transition);
  border-radius: 0;
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

/* ── PORTFOLIO FULL GRID (T8B) ───────────────────────────── */
.portfolio-full-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem; /* tighter mobile — was 1.5rem */
  margin: 1rem 0;
}

.portfolio-card {
  position: relative;
  background: var(--light-gray);
  overflow: hidden; /* crops image to 4/3 aspect-ratio card */
  aspect-ratio: 4/3;
}

.portfolio-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  background: var(--light-gray);
  flex-direction: column;
  gap: 0.5rem;
}

.portfolio-card-category {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
}

/* ── PORTFOLIO LIGHTBOX ───────────────────────────────────── */
.portfolio-card[data-large] {
  cursor: pointer;
}

.portfolio-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--charcoal-96);
  align-items: center;
  justify-content: center;
  padding: 6rem 6rem 3.5rem;
  box-sizing: border-box;
}

.portfolio-lightbox.is-open {
  display: flex;
}

.portfolio-lightbox-frame {
  max-width: 100%;
  max-height: calc(100svh - 9.5rem);
  overflow: hidden; /* constrains image within viewport; clips when panning or zooming */
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  cursor: zoom-in;
  border: 1px solid var(--white-16);
  background: var(--white-03);
}

.portfolio-lightbox-img {
  max-width: 100%;
  max-height: calc(100svh - 9.5rem);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 40px var(--black-60);
  transform-origin: center center;
  transition: transform 0.12s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.portfolio-lightbox-close {
  display: none;
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 501;
}

.portfolio-lightbox-close.is-open {
  display: block;
}

.portfolio-lightbox-nav {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: var(--charcoal-70);
  border: 1px solid var(--white-32);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 501;
}

.portfolio-lightbox-nav.is-open {
  display: flex;
}

.portfolio-lightbox-prev {
  left: 1.25rem;
}

.portfolio-lightbox-next {
  right: 1.25rem;
}

.portfolio-lightbox-zoom-controls {
  display: none;
  position: fixed;
  left: 50%;
  top: 1.25rem;
  transform: translateX(-50%);
  align-items: center;
  gap: 0.5rem;
  z-index: 501;
  background: var(--charcoal-74);
  border: 1px solid var(--white-32);
  padding: 0.35rem;
}

.portfolio-lightbox-zoom-controls.is-open {
  display: flex;
}

.portfolio-lightbox-zoom-label {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 0.35rem;
  line-height: 1;
}

.portfolio-lightbox-button {
  background: var(--charcoal-78);
  border: 1px solid var(--white-38);
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  min-width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
}

.portfolio-lightbox-button--reset {
  font-size: 0.9rem;
}

/* Mobile-first exception: below 600px lightbox padding tightens to fill narrow viewports without side gutters. */
@media (max-width: 600px) {
  .portfolio-lightbox {
    padding: 5.5rem 1rem 5.5rem;
  }

  .portfolio-lightbox-frame {
    max-width: calc(100vw - 2rem);
    max-height: calc(100svh - 11rem);
  }

  .portfolio-lightbox-img {
    max-height: calc(100svh - 11rem);
  }

  .portfolio-lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .portfolio-lightbox-nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .portfolio-lightbox-prev {
    left: 0.75rem;
  }

  .portfolio-lightbox-next {
    right: 0.75rem;
  }

  .portfolio-lightbox-zoom-controls {
    left: 0.75rem;
    right: 4rem;
    top: 0.85rem;
    transform: none;
    gap: 0.35rem;
    max-width: calc(100vw - 5rem);
  }

  .portfolio-lightbox-zoom-label {
    display: none;
  }
}

/* ── CONTACT PLACEHOLDER ─────────────────────────────────── */
.contact-placeholder-section {
  padding: var(--section-pad);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-placeholder-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 480px;
  margin-top: 2rem;
}

.contact-placeholder-actions .btn {
  justify-content: flex-start;
}

.contact-placeholder-service-area {
  margin-top: 2.5rem;
}

/* ── T8B RESPONSIVE ADDITIONS ────────────────────────────── */
@media (min-width: 600px) {
  /* Stats: restore 4-col and right-border layout */
  .hero-stats-inner {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 1.5rem;
  }
  .stat-item {
    padding: 22px 0;
    border-right: 1px solid var(--white-08);
    border-bottom: none;
  }
  .stat-item:last-child { border-right: none; border-bottom: none; }
  .stat-item:nth-child(2) { border-bottom: none; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .portfolio-full-grid { grid-template-columns: repeat(2, 1fr); }
  .review-excerpt-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .interior-two-col { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .interior-two-col--featured {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem; /* tighter for image grid — not copy+image pair */
  }
  .service-link-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-form-inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .quote-form-inner .quote-form-copy { order: 1; }
  .quote-form-inner .quote-form-panel--embed { order: 2; }
  .why-matters-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .section-split-visual--callout { min-height: 620px; }
  .section-split-visual--landscape { min-height: 560px; }
  .section-split-visual--portrait { min-height: 640px; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .service-link-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-full-grid { grid-template-columns: repeat(3, 1fr); }
  .review-excerpt-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── PRINT STYLES (legal/confirmation pages) ─────────────── */
@media print {
  header, nav, footer, .cta-banner, .site-header, .site-footer,
  .mobile-menu, .page-header-ctas, .btn { display: none; }
  body { color: #000; background: #fff; }
  a[href]::after { content: " (" attr(href) ")"; }
}

/* ══════════════════════════════════════════════════════════
   HARDENING PASS — Nav dropdown, overflow, hero overlay
   Added: 2026-05-13
   ══════════════════════════════════════════════════════════ */

/* ── DESKTOP SERVICES DROPDOWN ──────────────────────────────
   CSS-only pattern using :hover and :focus-within.
   Keyboard users: Tab to Services link to open; Escape closes.
   ── Z-INDEX: .nav-dropdown-menu sits at z-index 101 (above header z-index 100)
   ────────────────────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-72);
  transition: color var(--transition);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  color: var(--white);
}

.nav-dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition);
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%; /* was calc(100% + 0.75rem) — gap broke hover continuity */
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  border: 1px solid var(--white-08);
  border-top: none; /* flush against header bottom edge */
  min-width: 220px;
  z-index: 101;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding-top: 0.5rem; /* visual separation handled inside, not as gap */
}

/* Invisible hover bridge: extends hover zone from trigger into menu.
   Prevents gap between trigger and menu from breaking :hover continuity. */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem; /* matches padding-top on menu */
  background: transparent;
  z-index: 101;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-72);
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--white-06);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.nav-dropdown-menu a:last-child {
  border-bottom: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  color: var(--white);
  background: var(--white-06);
}

/* ── MOBILE NAV ACCORDIONS ──────────────────────────────── */
.mobile-services-toggle,
.mobile-submenu-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--white-80);
  padding: 18px 0;
  border: none;
  border-bottom: 1px solid var(--white-08);
  background: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.mobile-services-toggle:hover,
.mobile-submenu-toggle:hover {
  color: var(--white);
}

.mobile-services-toggle-icon,
.mobile-submenu-toggle-icon {
  font-size: 1rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.mobile-services-toggle[aria-expanded="true"] .mobile-services-toggle-icon,
.mobile-submenu-toggle[aria-expanded="true"] .mobile-submenu-toggle-icon {
  transform: rotate(180deg);
}

.mobile-services-submenu,
.mobile-submenu {
  display: none;
  flex-direction: column;
  background: var(--white-04);
  border-bottom: 1px solid var(--white-08);
}

.mobile-services-submenu.open,
.mobile-submenu.open {
  display: flex;
}

.mobile-services-submenu a,
.mobile-submenu a {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white-65);
  padding: 14px 1.5rem;
  border-bottom: 1px solid var(--white-06);
  transition: color var(--transition);
  text-decoration: none;
  letter-spacing: 0;
}

.mobile-services-submenu a:last-child,
.mobile-submenu a:last-child {
  border-bottom: none;
}

.mobile-services-submenu a:hover,
.mobile-submenu a:hover {
  color: var(--white);
}

/* ══════════════════════════════════════════════════════════
   CODEX DESIGN COMPOSITION PASS — 01-04-mmt
   Scope: preserve typography, palette, branding, nav, and content while
   replacing accidental empty columns with intentional copy/media groupings.
   ══════════════════════════════════════════════════════════ */

.services-header {
  display: block;
  max-width: 820px;
}

.services-header .section-body {
  max-width: 680px;
  margin-top: 1rem;
}

.services-footer {
  align-items: center;
}

.services-footer p {
  flex: 0 1 720px;
  max-width: 720px;
}

.portfolio-section > .container > .section-body {
  max-width: 860px;
  margin-bottom: 1.5rem;
}

.reviews-header .section-body {
  max-width: 40rem;
}

.quote-actions {
  align-items: center;
}

.quote-actions .btn {
  width: auto;
  min-width: 190px;
  justify-content: center;
}

.quote-actions .btn-arrow {
  min-width: 270px;
}

.interior-section.reveal:not(.service-intro-section):not(.service-scope-section) > .container {
  max-width: 920px;
}

.interior-section--services-faq > .container {
  /* WHY: scoped layout restoration overrides the default interior narrow-column cap. */
  max-width: var(--max-w) !important;
}

.interior-section.reveal:not(.service-intro-section):not(.service-scope-section) > .container > .interior-list {
  max-width: 760px;
}

.interior-section--why-us > .container {
  /* WHY: split content plus image needs full layout width instead of default interior cap. */
  max-width: var(--max-w) !important;
}

.interior-section--why-us .section-split-copy,
.interior-section--why-us .services-check-list,
.interior-section--why-us .interior-intro {
  max-width: none;
}

.service-intro-section {
  padding-bottom: 72px;
}

.service-intro-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.service-intro-copy {
  max-width: 720px;
}

.service-intro-heading {
  margin-bottom: 1.75rem;
}

.service-intro-media {
  margin: 0;
}

.service-intro-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
}

.service-scope-section {
  padding: 4.5rem 1.5rem 0;
}

.home-service-areas-section {
  padding-bottom: 8rem;
}

.home-service-areas-section .service-scope-grid {
  align-items: start;
}

.home-service-areas-section .service-scope-copy .interior-intro:last-child {
  margin-bottom: 3rem;
}

.service-scope-photo {
  margin: 0 0 1.5rem;
  overflow: hidden; /* clips image to photo container bounds */
  background: var(--light-gray);
}

.service-scope-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.reviews-trust-section {
  padding-bottom: 5rem;
}

.service-scope-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.service-scope-copy {
  max-width: 640px;
}

.service-scope-copy .section-title {
  margin-bottom: 1rem;
}

.service-scope-copy .btn {
  margin-top: 0.5rem;
}

.service-scope-list-card {
  border-top: 1px solid var(--light-gray);
  padding-top: 1.5rem;
}

.service-scope-minihead {
  margin: 0 0 1rem;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

.service-scope-list-card .interior-list {
  display: grid;
  gap: 0.75rem 1.5rem;
  margin: 0;
}

.service-scope-ending {
  margin-top: 1.5rem;
}

.why-matters-copy--stacked {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.why-matters-heading-visual {
  width: 100%;
  margin: 0;
  overflow: hidden; /* clips image to visual container */
  background: var(--light-gray);
}

.why-matters-heading-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.why-matters-grid--bathroom {
  align-items: start;
}

.why-matters-grid--service {
  align-items: center;
}

.interior-section--bath-why-us > .container {
  /* WHY: bathroom split content plus image needs full layout width instead of default interior cap. */
  max-width: var(--max-w) !important;
}

.interior-section--service-why-us > .container {
  /* WHY: service split content plus image needs full layout width instead of default interior cap. */
  max-width: var(--max-w) !important;
}

.interior-section--service-why-us .section-split-copy,
.interior-section--service-why-us .interior-intro,
.interior-section--service-why-us .interior-list {
  max-width: none;
}

.interior-section--about-split > .container {
  /* WHY: about split content plus image needs full layout width instead of default interior cap. */
  max-width: var(--max-w) !important;
}

.interior-section--about-split .section-split-copy,
.interior-section--about-split .interior-intro,
.interior-section--about-split .interior-list {
  max-width: none;
}

.interior-section--areas-split > .container {
  /* WHY: areas split content plus image needs full layout width instead of default interior cap. */
  max-width: var(--max-w) !important;
}

.interior-section--areas-split .section-split-copy,
.interior-section--areas-split .interior-intro,
.interior-section--areas-split .interior-list {
  max-width: none;
}

.section-split-visual--map {
  min-height: 420px;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
}

.section-split-visual--map iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  height: 100%;
}

.interior-section--bath-why-us .section-split-copy,
.interior-section--bath-why-us .interior-intro,
.interior-section--bath-why-us .interior-list {
  max-width: none;
}

.result-section--split .container {
  max-width: var(--max-w);
}

.result-section--split .interior-two-col {
  gap: 3rem;
  align-items: center;
}

.result-section--split .section-split-copy {
  max-width: 100%;
}

.quote-section--service-pattern {
  position: relative;
  overflow: hidden; /* clips ::before pattern decoration to section bounds */
}

.quote-section--service-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(var(--warm-surface-92), var(--warm-surface-92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d8cfc7' stroke-width='1'%3E%3Crect x='0.5' y='0.5' width='59' height='59'/%3E%3Crect x='60.5' y='0.5' width='59' height='59'/%3E%3Crect x='0.5' y='60.5' width='59' height='59'/%3E%3Crect x='60.5' y='60.5' width='59' height='59'/%3E%3C/g%3E%3C/svg%3E") center / 180px 180px repeat;
}

.quote-section--service-pattern .container {
  position: relative;
  z-index: 1;
}

.hero-stats--static {
  position: static;
  margin-top: 3rem;
  border-top: none;
  background: var(--charcoal);
  overflow: hidden; /* prevents positioned stat items from overflowing static variant */
}

.hero-stats--portfolio .hero-stats-inner {
  max-width: none;
  padding: 0;
}

.hero-stats--portfolio .stat-item {
  border-right: 1px solid var(--white-08);
  border-bottom: 1px solid var(--white-08);
  padding: 22px 16px;
}

.hero-stats--portfolio .stat-item:nth-child(2) {
  border-bottom: 1px solid var(--white-08);
}

.hero-stats--portfolio .stat-item:nth-child(2n) {
  border-right: none;
}

.hero-stats--portfolio .stat-item:last-child {
  border-bottom: none;
}

.hero-stats--portfolio .stat-num {
  color: var(--terracotta);
}

.hero-stats--portfolio .stat-label {
  color: var(--white-45);
}

@media (min-width: 600px) {
  .hero-stats--portfolio .stat-item {
    border-bottom: none;
  }

  .hero-stats--portfolio .stat-item:nth-child(2n) {
    border-right: 1px solid var(--white-08);
  }

  .hero-stats--portfolio .stat-item:last-child {
    border-right: none;
  }
}

.proof-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.proof-list li {
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 1rem;
}

.proof-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.proof-list strong,
.proof-list span {
  display: block;
}

.proof-list strong {
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.proof-list span {
  color: var(--body-copy-muted);
  line-height: 1.6;
}

.interior-two-col--featured {
  align-items: start;
}

.featured-img-primary,
.featured-img-secondary img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.featured-img-secondary {
  display: contents;
}

@media (min-width: 700px) {
  .service-scope-list-card .interior-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .service-intro-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
    gap: 4rem;
  }

  .service-intro-media img {
    max-height: 520px;
  }

  .service-scope-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
    gap: 4rem;
  }

  .interior-section--about-split .interior-two-col {
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
    gap: 4rem;
    align-items: start;
  }

  .interior-section--areas-split .service-scope-grid,
  .interior-section--areas-split .interior-two-col {
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
    gap: 4rem;
    align-items: start;
  }

  .interior-two-col--media-left .section-split-visual {
    order: 1;
  }

  .interior-two-col--media-left .section-split-copy {
    order: 2;
  }

  .result-section--split .interior-two-col {
    grid-template-columns: minmax(360px, 1fr) minmax(0, 0.9fr);
    gap: 4rem;
  }

  .interior-two-col--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .service-scope-list-card {
    border-top: none;
    border-left: 1px solid var(--light-gray);
    padding-top: 0;
    padding-left: 2rem;
  }

  .quote-actions {
    align-self: center;
    align-items: flex-start;
  }

  .quote-support-visual {
    min-height: 360px;
  }
}

/* Mobile-first exception: below 699px the service footer abandons its desktop flex row to prevent cramped CTA/text alignment. */
@media (max-width: 699px) {
  .services-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-footer p {
    width: 100%;
    max-width: none;
    flex: none;
  }

  .service-intro-section {
    padding-bottom: 56px;
  }

  .quote-actions .btn,
  .quote-actions .btn-arrow {
    min-width: 0;
    width: auto;
    max-width: 100%;
  }

  .quote-actions .quote-form-panel {
    width: 100%;
  }
}

/* Mobile-first exception: below 600px global gutters/buttons tighten to keep labels visible without horizontal overflow. */
@media (max-width: 600px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mobile-menu {
    padding-left: 24px;
    padding-right: 24px;
  }

  .quote-actions {
    width: 100%;
  }

  .quote-actions .btn,
  .quote-actions .btn-arrow {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .portfolio-header .btn {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .partner-card {
    padding: 2rem 1.5rem;
  }

  .thankyou-inner,
  .thankyou-steps,
  .thankyou-step,
  .thankyou-step-content {
    max-width: 100%;
    min-width: 0;
  }

  .thankyou-step {
    gap: 1rem;
  }

  .thankyou-links {
    flex-direction: column;
    align-items: stretch;
  }

  .thankyou-links .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
  }
}

