/* ==========================================================================
   Carolina Comfort Bath & Shower — site styles
   Design system: warm limestone neutrals, brand navy, restrained brass accent.
   Type: Newsreader (headings, editorial) + Inter (body, UI).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --navy-900: #14243d;
  --navy-800: #1a2e4d;
  --navy: #223d68;          /* carried over from the original site */
  --navy-600: #2f5289;
  --brass: #a4834f;         /* decorative only (rules, numerals) */
  --brass-text: #7a5d33;    /* brass for text on light backgrounds (AA) */
  --brass-light: #d6bf95;   /* brass for text on navy (AA) */

  /* Neutrals */
  --stone-50: #faf8f4;      /* page background */
  --stone-100: #f3efe8;     /* alternate section */
  --stone-200: #e8e1d5;     /* placeholder fill */
  --line: #ddd4c6;
  --line-strong: #c9bda9;
  --white: #ffffff;

  /* Text */
  --ink: #1b2533;
  --ink-soft: #4b5563;
  --ink-muted: #5f6672;
  --on-dark: #f4f1ea;
  --on-dark-soft: #c3cad6;

  /* Type */
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);
  --fs-h1: clamp(2.3rem, 1.6rem + 3vw, 4rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --fs-h3: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  --fs-lede: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Space */
  --max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;

  /* Layers */
  --z-header: 50;
  --z-menu: 40;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--stone-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-600); }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--navy-600);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--brass-light); }

::selection { background: var(--navy); color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tint { background: var(--stone-100); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--navy {
  background: var(--navy-800);
  color: var(--on-dark);
}
.section--navy h2,
.section--navy h3 { color: var(--white); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 2rem);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: block;
  margin: 0 0 1.25rem;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-text);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin: -0.15em 0.75rem 0 0;
  width: 2rem;
  height: 1px;
  background: currentColor;
}
.on-dark .eyebrow,
.section--navy .eyebrow { color: var(--brass-light); }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38em;
}
.on-dark .lede, .section--navy .lede { color: var(--on-dark-soft); }

.display {
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.statement {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.statement em { font-style: italic; color: var(--navy); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { margin-bottom: 0; max-width: 16em; }
.section-head .lede { margin: 0; max-width: 30em; }

/* Placeholder text (business info still needed) */
.ph {
  background: rgba(164, 131, 79, 0.14);
  border-bottom: 1px dashed var(--brass);
  padding: 0 0.2em;
  border-radius: 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.on-dark .ph,
.section--navy .ph,
.site-footer .ph {
  background: rgba(214, 191, 149, 0.16);
  border-bottom-color: var(--brass-light);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.9875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.btn svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-900); color: var(--white); }

.btn--outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }

.btn--light { background: var(--stone-50); color: var(--navy-900); }
.btn--light:hover { background: var(--white); color: var(--navy-900); }

.btn--outline-light { border-color: rgba(244, 241, 234, 0.4); color: var(--on-dark); }
.btn--outline-light:hover { border-color: var(--on-dark); color: var(--white); }

.btn--sm { min-height: 2.75rem; padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.link-arrow svg { width: 1rem; height: 1rem; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--navy-900); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow, .section--navy .link-arrow { color: var(--on-dark); }

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}
.phone-link svg { width: 1.1rem; height: 1.1rem; color: var(--brass); }
.phone-link:hover { color: var(--navy); }
.on-dark .phone-link:hover, .section--navy .phone-link:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(250, 248, 244, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(250, 248, 244, 0.88); backdrop-filter: saturate(1.2) blur(10px); }
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(20, 36, 61, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  color: var(--navy-900);
  flex-shrink: 0;
  padding-block: 0.6rem;
}
.brand svg { width: clamp(8.75rem, 7rem + 5vw, 11.5rem); height: auto; }
.brand:hover { color: var(--navy); }

.primary-nav { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.45rem;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-list a:hover { color: var(--navy); }
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-phone { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle .bars { position: relative; width: 1.1rem; height: 0.75rem; }
.menu-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), top var(--dur) var(--ease);
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: calc(50% - 0.75px); }
.menu-toggle .bars span:nth-child(3) { top: calc(100% - 1.5px); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: calc(50% - 0.75px); transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: calc(50% - 0.75px); transform: rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 4.75rem 0 0 0;
  z-index: var(--z-menu);
  background: var(--stone-50);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  padding: 1.5rem var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; border-top: 1px solid var(--line); }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu ul a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu a[aria-current="page"] { color: var(--navy); }
.mobile-menu a[aria-current="page"]::after {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--brass);
}
.mobile-menu__contact { display: grid; gap: 0.75rem; }
.mobile-menu__contact .phone-link { font-size: 1.05rem; }
body.menu-open { overflow: hidden; }

@media (min-width: 40em) {
  .header-phone { display: inline-flex; font-size: 0.95rem; margin-right: 0.75rem; }
}

@media (min-width: 68em) {
  .primary-nav { display: block; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .header-inner { min-height: 5.5rem; }
  .header-phone { display: none; }
}
@media (min-width: 80em) {
  .header-phone { display: inline-flex; }
}

/* ---------- Media / image placeholders ---------- */
.media {
  position: relative;
  margin: 0;
  aspect-ratio: var(--ratio, 4 / 3);
  overflow: hidden;
  background: var(--stone-200);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--tall { --ratio: 4 / 5; }
.media--wide { --ratio: 3 / 2; }
.media--pano { --ratio: 21 / 9; }
.media--square { --ratio: 1 / 1; }

.ph-img {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
  text-align: center;
  color: #5a5145;
  background:
    repeating-linear-gradient(135deg, rgba(120, 104, 80, 0.07) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #ece6db 0%, #e2dacc 100%);
}
.ph-img svg { width: 1.75rem; height: 1.75rem; opacity: 0.7; }
.ph-img__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ph-img__desc {
  max-width: 22em;
  font-size: var(--fs-xs);
  line-height: 1.45;
}
.ph-img--dark {
  color: #b7bfcc;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #3a4556 0%, #2a3342 100%);
}

.media figcaption,
.caption {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  margin-top: 0.75rem;
  letter-spacing: 0.01em;
}

/* Image hover (for linked media) */
.media-link { display: block; text-decoration: none; color: inherit; }
.media-link .media > * { transition: transform 700ms var(--ease); }
.media-link:hover .media > * { transform: scale(1.025); }

/* ---------- Home hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, calc(var(--max) / 2)) minmax(0, calc(var(--max) / 2)) minmax(var(--gutter), 1fr);
  padding-top: clamp(1.5rem, 4vw, 3.5rem);
}
.hero__content {
  grid-column: 2 / 4;
  padding-bottom: 2.5rem;
}
.hero__content h1 { max-width: 11em; margin-bottom: 1.5rem; }
.hero__content .lede { margin-bottom: 2.25rem; }
.hero__media {
  grid-column: 1 / -1;
  --ratio: 4 / 3;
}
.hero__meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

@media (min-width: 48em) {
  .hero__media { --ratio: 16 / 9; }
}

@media (min-width: 64em) {
  .hero {
    align-items: center;
    padding-top: 0;
    min-height: min(calc(100vh - 5.5rem), 54rem);
  }
  .hero__content {
    grid-column: 2 / 3;
    padding: 4rem 3.5rem 4rem 0;
  }
  .hero__media {
    grid-column: 3 / -1;
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 34rem;
  }
}

/* Trust strip under hero */
.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--stone-50);
}
.trust-strip ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 0;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.trust-strip li + li { border-top: 1px solid var(--line); }
.trust-strip svg { width: 1.35rem; height: 1.35rem; color: var(--brass); flex-shrink: 0; }
.trust-strip strong { color: var(--ink); font-weight: 600; }

@media (min-width: 48em) {
  .trust-strip ul { grid-template-columns: repeat(3, 1fr); }
  .trust-strip li { padding: 1.5rem 1.5rem; justify-content: center; }
  .trust-strip li:first-child { padding-left: 0; justify-content: flex-start; }
  .trust-strip li:last-child { padding-right: 0; justify-content: flex-end; }
  .trust-strip li + li { border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- Intro / principles ---------- */
.intro__label { grid-column: 1 / -1; }
.intro__body { grid-column: 1 / -1; }
@media (min-width: 64em) {
  .intro__label { grid-column: 1 / 4; }
  .intro__body { grid-column: 4 / -1; }
}

.principles {
  list-style: none;
  display: grid;
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.principles li {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.5rem;
}
.principles .num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--brass-text);
  margin-bottom: 0.75rem;
}
.principles h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.principles p { font-size: var(--fs-small); color: var(--ink-soft); }
@media (min-width: 48em) {
  .principles { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* ---------- Service features (alternating) ---------- */
.feature {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.feature + .feature { margin-top: clamp(4rem, 8vw, 7rem); }
.feature__body h3 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.feature__body > p { color: var(--ink-soft); max-width: 32em; }
.feature__index {
  font-family: var(--font-serif);
  font-size: var(--fs-small);
  color: var(--brass-text);
  margin-bottom: 1rem;
  display: block;
}

.tick-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 1.75rem 0 2rem;
  border-top: 1px solid var(--line);
}
.tick-list li {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}
.tick-list li::before {
  content: "";
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  transform: translateY(-0.1rem) rotate(45deg);
  border: 1px solid var(--brass);
}
.tick-list--muted li { color: var(--ink-soft); }
.tick-list--muted li::before {
  width: 0.6rem;
  height: 0;
  border: 0;
  border-top: 1px solid var(--ink-muted);
  transform: translateY(-0.25rem);
}
.tick-list--2col { column-gap: 2.5rem; }
@media (min-width: 40em) {
  .tick-list--2col { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 64em) {
  .feature { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
  .feature__media { grid-column: 1 / 8; }
  .feature__body { grid-column: 9 / -1; }
  .feature--flip .feature__media { grid-column: 6 / -1; order: 2; }
  .feature--flip .feature__body { grid-column: 1 / 5; order: 1; }
}

/* ---------- Work preview ---------- */
.work-preview {
  display: grid;
  gap: 1.5rem;
}
.work-preview__stack { display: grid; gap: 1.5rem; }
@media (min-width: 48em) {
  .work-preview__stack { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64em) {
  .work-preview { grid-template-columns: 7fr 5fr; gap: 2rem; align-items: start; }
  .work-preview__stack { grid-template-columns: 1fr; gap: 2rem; }
}

.project-card { display: block; text-decoration: none; color: inherit; }
.project-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.9rem;
}
.project-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.project-card__type {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* ---------- Before / after comparison ---------- */
.compare {
  position: relative;
  aspect-ratio: var(--ratio, 4 / 3);
  overflow: hidden;
  background: var(--stone-200);
  --pos: 50%;
  user-select: none;
  touch-action: pan-y;
}
.compare__layer { position: absolute; inset: 0; }
.compare__layer > img { width: 100%; height: 100%; object-fit: cover; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 1; }
/* Keep the two placeholder captions from overlapping at the divider */
.compare__before .ph-img { align-items: flex-start; text-align: left; padding-right: 55%; }
.compare__after .ph-img { align-items: flex-end; text-align: right; padding-left: 55%; }
.work-preview .compare { --ratio: 4 / 3; }
@media (min-width: 64em) {
  .work-preview .compare { --ratio: 1 / 1; }
  .work-preview__stack .media { --ratio: 16 / 10; }
}

.compare__label {
  position: absolute;
  top: 1rem;
  z-index: 2;
  padding: 0.35rem 0.7rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(20, 36, 61, 0.82);
  color: var(--white);
  pointer-events: none;
}
.compare__label--before { left: 1rem; }
.compare__label--after { right: 1rem; }
.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 2px;
  margin-left: -1px;
  background: var(--white);
  pointer-events: none;
}
.compare__handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 2.75rem; height: 2.75rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23223d68' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 1.25rem no-repeat;
  box-shadow: 0 4px 18px rgba(20, 36, 61, 0.28);
}
.compare__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.compare:has(.compare__range:focus-visible) .compare__handle::after {
  outline: 2px solid var(--navy-600);
  outline-offset: 3px;
}

/* ---------- Process ---------- */
.process {
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: step;
}
.process li {
  position: relative;
  padding: 1.75rem 0 1.75rem 4rem;
  border-top: 1px solid var(--line);
}
.process li:last-child { border-bottom: 1px solid var(--line); }
.process .step-num {
  position: absolute;
  left: 0; top: 1.5rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--brass);
}
.process h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.process p { font-size: var(--fs-small); color: var(--ink-soft); }

@media (min-width: 64em) {
  .process { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
  .process li { padding: 2rem 0 0; border-top: 1px solid var(--line-strong); }
  .process li:last-child { border-bottom: 0; }
  .process .step-num { position: static; display: block; font-size: 2.75rem; margin-bottom: 1.5rem; }
}

.section--navy .process li { border-color: rgba(255, 255, 255, 0.16); }
.section--navy .process p { color: var(--on-dark-soft); }
.section--navy .process .step-num { color: var(--brass-light); }

/* ---------- Reviews ---------- */
.reviews {
  display: grid;
  gap: 1.5rem;
}
.review {
  margin: 0;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.review blockquote { margin: 0; }
.review blockquote p {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ink);
}
.review--feature blockquote p { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); line-height: 1.35; }
.review figcaption { font-size: var(--fs-small); color: var(--ink-soft); margin-top: auto; }
.review figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.review__mark {
  display: block;
  height: 2.25rem;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--brass);
}
.stars { display: flex; gap: 0.2rem; color: var(--brass); }
.stars svg { width: 1rem; height: 1rem; }
@media (min-width: 64em) {
  .reviews { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
  .review--feature { grid-row: span 2; }
}
.note {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  margin-top: 1.5rem;
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner {
  display: grid;
  gap: 2.5rem;
}
.cta-band h2 { font-size: var(--fs-h1); max-width: 12em; }
.cta-band__actions { display: grid; gap: 1.5rem; align-content: end; }
.service-area {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 1rem;
  font-size: var(--fs-small);
  color: var(--on-dark-soft);
}
.service-area h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin: 0;
}
.area-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  color: var(--on-dark);
}
@media (min-width: 64em) {
  .cta-band__inner { grid-template-columns: 7fr 5fr; align-items: end; }
  .service-area { grid-template-columns: 3fr 9fr; align-items: baseline; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(2rem, 5vw, 4.5rem); }
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: var(--fs-xs);
  color: var(--ink-muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line-strong); }
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

.page-hero__grid { display: grid; gap: 2.5rem; }
.page-hero h1 { max-width: 13em; margin-bottom: 1.5rem; }
.page-hero .lede { margin-bottom: 2rem; }
.page-hero__media { margin-top: 0.5rem; }

@media (min-width: 64em) {
  .page-hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; align-items: end; }
  .page-hero__text { grid-column: 1 / 7; padding-bottom: 1rem; }
  .page-hero__media { grid-column: 8 / -1; margin-top: 0; }
  .page-hero--split-even .page-hero__text { grid-column: 1 / 7; }
  .page-hero--split-even .page-hero__media { grid-column: 7 / -1; }
}

/* Full-bleed image band */
.image-band { margin-top: clamp(3rem, 6vw, 5rem); }

/* ---------- Two-column content ---------- */
.split {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 64em) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
  .split__aside { grid-column: 1 / 5; }
  .split__main { grid-column: 6 / -1; }
  .split--sticky .split__aside > * { position: sticky; top: 8rem; }
}

/* ---------- Project types (service page) ---------- */
.type-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.type-item {
  display: grid;
  gap: 0.5rem 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.type-item h3 { margin: 0; font-size: 1.5rem; }
.type-item p { color: var(--ink-soft); font-size: var(--fs-small); max-width: 36em; }
.type-item__num { font-family: var(--font-serif); color: var(--brass-text); font-size: var(--fs-small); }
@media (min-width: 48em) {
  .type-item { grid-template-columns: 3rem 1fr 1.4fr; align-items: baseline; }
}

/* Option cards (thin, not bubbly) */
.options {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.option {
  background: var(--stone-50);
  padding: 1.75rem;
}
.section--tint .option { background: var(--stone-100); }
.option svg { width: 1.6rem; height: 1.6rem; color: var(--navy); margin-bottom: 1.25rem; }
.option h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 0.4rem; }
.option p { font-size: var(--fs-small); color: var(--ink-soft); }
@media (min-width: 40em) { .options { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .options { grid-template-columns: repeat(3, 1fr); } }

/* Who it's for */
.fit-list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
}
.fit-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 1rem;
  align-items: start;
}
.fit-list svg { width: 1.5rem; height: 1.5rem; color: var(--brass); margin-top: 0.15rem; }
.fit-list strong { display: block; font-weight: 600; }
.fit-list span { color: var(--ink-soft); font-size: var(--fs-small); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
  padding: 1.1rem 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--navy); }
.faq .faq__answer { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: 40em; }

/* ---------- Walk-in: feature diagram ---------- */
.anatomy {
  display: grid;
  gap: 2.5rem;
}
.anatomy__list {
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: feat;
}
.anatomy__list li {
  counter-increment: feat;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.anatomy__list li:first-child { border-top: 1px solid var(--line); }
.anatomy__list li::before {
  content: counter(feat, decimal-leading-zero);
  font-family: var(--font-serif);
  color: var(--brass-text);
  font-size: 1rem;
  padding-top: 0.1rem;
}
.anatomy__list h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 0 0 0.25rem; }
.anatomy__list p { font-size: var(--fs-small); color: var(--ink-soft); }
@media (min-width: 64em) {
  .anatomy { grid-template-columns: 5fr 6fr; gap: 4rem; align-items: start; }
  .anatomy__media { position: sticky; top: 7.5rem; }
}

/* Comparison table-ish pair (tub vs walk-in) */
.pair {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pair > div { background: var(--white); padding: clamp(1.5rem, 3vw, 2.25rem); }
.pair h3 { font-size: 1.4rem; }
.pair .tick-list { margin-bottom: 0; }
@media (min-width: 48em) { .pair { grid-template-columns: 1fr 1fr; } }

/* ---------- Our Work gallery ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.gallery {
  list-style: none;
  display: grid;
  gap: 2.5rem 1.5rem;
}
.gallery li[hidden] { display: none; }
@media (min-width: 40em) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64em) {
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3.5rem 2rem; grid-auto-flow: dense; }
  .gallery > li { grid-column: span 4; }
  .gallery > li.is-wide { grid-column: span 8; }
  .gallery > li.is-wide .media { --ratio: 816 / 490; } /* matches the height of a 4:5 single column */
}
.gallery .media { --ratio: 4 / 5; }
.gallery .is-wide .media { --ratio: 4 / 3; }
.gallery .project-card__desc { font-size: var(--fs-small); color: var(--ink-soft); margin-top: 0.35rem; }

.compare-feature {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 64em) {
  .compare-feature { grid-template-columns: 8fr 4fr; gap: 3.5rem; }
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
}
.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.detail-list dt { color: var(--ink-muted); }
.detail-list dd { margin: 0; text-align: right; }

/* ---------- About ---------- */
.about-intro { display: grid; gap: 2.5rem; }
@media (min-width: 64em) {
  .about-intro { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: center; }
}
.signature {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.signature strong { display: block; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 400; color: var(--ink); }

.facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 0;
}
.facts div { background: var(--white); padding: 1.5rem 1.75rem; }
.facts dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}
.facts dd { margin: 0; font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.3; }
@media (min-width: 40em) { .facts { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  gap: 3rem;
}
@media (min-width: 64em) {
  .contact-layout { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
  .contact-aside { position: sticky; top: 7.5rem; }
}

.contact-methods { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.contact-methods li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-methods .label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}
.contact-methods a { font-family: var(--font-serif); font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.contact-methods a:hover { color: var(--navy); text-decoration: underline; }
.contact-methods .value { font-family: var(--font-serif); font-size: 1.2rem; }

.next-steps { list-style: none; display: grid; gap: 1.25rem; counter-reset: ns; }
.next-steps li {
  counter-increment: ns;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.next-steps li::before {
  content: counter(ns);
  display: grid;
  place-items: center;
  width: 1.75rem; height: 1.75rem;
  border: 1px solid var(--brass);
  border-radius: 50%;
  font-family: var(--font-serif);
  color: var(--brass-text);
  font-size: 0.95rem;
}
.next-steps strong { display: block; color: var(--ink); font-weight: 600; }

/* Form */
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.form-panel h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.form-grid { display: grid; gap: 1.35rem; margin-top: 2rem; }
@media (min-width: 40em) {
  .form-grid { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 0.45rem; }
.field label, .field legend {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
  padding: 0;
}
.field .optional { font-weight: 400; color: var(--ink-muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem; /* prevents iOS zoom */
  color: var(--ink);
  background: var(--stone-50);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2533' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem;
  cursor: pointer;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(47, 82, 137, 0.18);
}
.field [aria-invalid="true"] { border-color: #a3332b; }
.field-error {
  font-size: var(--fs-xs);
  color: #a3332b;
  font-weight: 500;
}
.field-error:empty { display: none; }
.hint { font-size: var(--fs-xs); color: var(--ink-muted); }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--stone-50);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.choice label:hover { border-color: var(--navy); }
.choice input:checked + label { background: var(--navy); border-color: var(--navy); color: var(--white); }
.choice input:focus-visible + label { outline: 2px solid var(--navy-600); outline-offset: 2px; }

.form-footer {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.form-footer .hint { margin: 0; }
@media (min-width: 40em) {
  .form-footer { grid-template-columns: auto 1fr; align-items: center; gap: 1.5rem; }
}

.form-success {
  text-align: left;
  padding: 1rem 0;
}
.form-success svg { width: 2.5rem; height: 2.5rem; color: var(--navy); margin-bottom: 1.25rem; }
.form-success[hidden] { display: none; }
.form-error { margin: 1.5rem 0 0; font-size: var(--fs-small); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.proto-note {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  font-size: var(--fs-xs);
  background: rgba(164, 131, 79, 0.12);
  border-left: 2px solid var(--brass);
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--on-dark-soft);
  font-size: var(--fs-small);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand { color: var(--on-dark); display: inline-flex; }
.footer-brand svg { width: 11rem; height: auto; }
.footer-about p { margin-top: 1.5rem; max-width: 24em; }
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; display: grid; gap: 0.1rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.5rem; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-contact { display: grid; gap: 0.35rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-xs);
  color: #9aa5b6;
}
@media (min-width: 48em) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64em) {
  .footer-grid { grid-template-columns: 4fr 3fr 3fr 2fr; gap: 3rem; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; align-content: center; }

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(0 0 8% 0); transition: clip-path 1100ms var(--ease), opacity 800ms var(--ease); opacity: 0; }
.reveal-img.is-visible { clip-path: inset(0 0 0 0); opacity: 1; }

/* Only hide reveal targets when JS is running */
html:not(.js) .reveal,
html:not(.js) .reveal-img { opacity: 1; transform: none; clip-path: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-img { opacity: 1; transform: none; clip-path: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; }
.max-prose { max-width: 38em; }
.muted { color: var(--ink-soft); }
.hide-sm { display: none; }
@media (min-width: 30em) { .hide-sm { display: inline; } }
