/* ==========================================================================
   Copperline Plumbing Co. — demonstration build by NorthPilot.ai
   One stylesheet. Mobile-first. No frameworks.
   ========================================================================== */

:root {
  /* Palette */
  --navy: #122a44;
  --navy-deep: #0c1e33;
  --navy-soft: #1c3a5c;
  --paper: #faf6f0;
  --paper-warm: #f3ece1;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --copper: #b4642d;
  --copper-bright: #c97b45;
  --copper-deep: #8f4a1e;
  --copper-pale: #f0dfd0;
  --emergency: #c2410c;
  --emergency-dark: #9a3412;
  --line: #e5dcce;
  --white: #ffffff;

  /* Type */
  --font-head: "Fraunces", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
  --text-3xl: clamp(1.9rem, 1.5rem + 2vw, 2.75rem);
  --text-hero: clamp(2.35rem, 1.6rem + 3.6vw, 4.15rem);

  /* Rhythm */
  --space-section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --container: 71.25rem; /* 1140px */
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-soft: 0 2px 6px rgba(18, 42, 68, 0.06), 0 16px 40px -18px rgba(18, 42, 68, 0.18);
  --shadow-lift: 0 4px 10px rgba(18, 42, 68, 0.08), 0 24px 48px -16px rgba(18, 42, 68, 0.24);
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --tap: 44px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-variation-settings: "opsz" 72;
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--text-hero); font-weight: 700; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 180ms var(--ease);
}

a:hover {
  color: var(--copper-bright);
}

button {
  font: inherit;
  cursor: pointer;
}

a, button, summary, input, select, textarea, [role="button"] {
  cursor: pointer;
  touch-action: manipulation;
}

input, select, textarea {
  cursor: auto;
}

select { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--copper-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--navy);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 200ms var(--ease);
}

.skip-link:focus-visible {
  top: 0;
  color: var(--paper);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--copper-deep), var(--copper-bright));
  border-radius: 2px;
}

.lede {
  font-size: var(--text-lg);
  color: var(--ink-soft);
  max-width: 38rem;
}

.accent-word {
  font-style: italic;
  font-weight: 600;
  color: var(--copper);
}

/* --------------------------------------------------------------------------
   Emergency bar — the ONLY place --emergency is used (plus contact page path)
   -------------------------------------------------------------------------- */
.emergency-bar {
  background: var(--emergency);
  color: #fff;
  font-size: var(--text-sm);
  position: relative;
  z-index: 60;
}

.emergency-bar[hidden] {
  display: none;
}

.emergency-bar__inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--tap);
  padding-block: 0.35rem;
}

.emergency-bar__pulse {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.emergency-bar__text {
  margin: 0;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emergency-bar__text strong {
  font-weight: 600;
}

.emergency-bar__call {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  color: var(--emergency-dark);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.emergency-bar__call:hover {
  color: var(--emergency);
  transform: translateY(-1px);
}

.emergency-bar__call svg {
  width: 15px;
  height: 15px;
}

.emergency-bar__dismiss {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.emergency-bar__dismiss:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.emergency-bar__dismiss svg {
  width: 14px;
  height: 14px;
}

/* Mobile: slim bar docks to the bottom so it never covers the header/nav */
@media (max-width: 47.9375rem) {
  .emergency-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: 0 -6px 24px rgba(18, 42, 68, 0.28);
  }

  body:has(.emergency-bar:not([hidden])) {
    padding-bottom: 3.5rem;
  }

  .emergency-bar__text span.hide-sm {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
}

.logo svg {
  width: 42px;
  height: 42px;
  flex: none;
}

.logo__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.logo__name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}

.primary-nav a:hover {
  color: var(--copper);
  background: rgba(180, 100, 45, 0.07);
}

.primary-nav a[aria-current="page"] {
  color: var(--copper);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--copper);
  border-radius: 8px 8px 0 0;
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  width: var(--tap);
  height: var(--tap);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 56.24rem) {
  .nav-toggle {
    display: grid;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .primary-nav a {
    width: 100%;
    font-size: var(--text-base);
    padding: 0.65rem 0.85rem;
  }

  .primary-nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--copper);
    border-radius: 8px;
    background: rgba(180, 100, 45, 0.07);
  }

  .nav-cta {
    margin: 0.6rem 0 0;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: var(--tap);
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  white-space: nowrap;
  transition: background 200ms var(--ease), color 200ms var(--ease),
              border-color 200ms var(--ease), transform 200ms var(--ease),
              box-shadow 200ms var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--copper {
  background: linear-gradient(160deg, var(--copper-bright), var(--copper) 55%, var(--copper-deep));
  color: #fff;
  box-shadow: 0 2px 4px rgba(143, 74, 30, 0.35), 0 10px 24px -10px rgba(143, 74, 30, 0.55);
}

.btn--copper:hover {
  background: linear-gradient(160deg, #d68a55, var(--copper-bright) 55%, var(--copper));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(143, 74, 30, 0.3), 0 16px 32px -12px rgba(143, 74, 30, 0.6);
}

.btn--ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn--ghost:hover {
  background: var(--navy);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(250, 246, 240, 0.5);
  color: var(--paper);
}

.btn--ghost-light:hover {
  border-color: var(--paper);
  background: rgba(250, 246, 240, 0.1);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn--emergency {
  background: var(--emergency);
  color: #fff;
  box-shadow: 0 2px 4px rgba(154, 52, 18, 0.35), 0 12px 28px -10px rgba(154, 52, 18, 0.55);
}

.btn--emergency:hover {
  background: var(--emergency-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn--lg {
  padding: 0.85rem 2rem;
  font-size: var(--text-lg);
}

/* --------------------------------------------------------------------------
   Pipe divider — signature section connector
   -------------------------------------------------------------------------- */
.pipe-divider {
  display: block;
  width: 100%;
  height: 42px;
  color: var(--copper);
  opacity: 0.85;
}

.pipe-divider--on-navy {
  color: var(--copper-bright);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--space-section);
  overflow: clip;
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__copy p.lede {
  margin-bottom: 2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.hero__note {
  margin-top: 1.25rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.hero__art {
  justify-self: center;
  width: min(100%, 30rem);
}

.hero__art svg {
  width: 100%;
  height: auto;
}

@media (min-width: 56.25rem) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }

  .hero__art {
    justify-self: end;
  }
}

/* --------------------------------------------------------------------------
   Trust bar
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--navy);
  color: var(--paper);
}

.trust-bar__grid {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.25rem;
}

.trust-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.trust-item svg {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--copper-bright);
}

.trust-item h3 {
  color: var(--paper);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.trust-item p {
  margin: 0;
  font-size: var(--text-sm);
  color: rgba(250, 246, 240, 0.72);
}

@media (min-width: 48rem) {
  .trust-bar__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--space-section);
}

.section--warm {
  background: var(--paper-warm);
}

.section--navy {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--paper);
}

.section--navy h2,
.section--navy h3 {
  color: var(--paper);
}

.section--navy .lede,
.section--navy p {
  color: rgba(250, 246, 240, 0.78);
}

.section__head {
  max-width: 42rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .eyebrow {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Services grid (home) — asymmetric: emergency card is featured
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
              border-color 220ms var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--copper-pale);
  color: var(--ink);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--copper-pale), rgba(240, 223, 208, 0.35));
  color: var(--copper);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.service-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  flex: 1;
}

.service-card__more {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 200ms var(--ease), color 200ms var(--ease);
}

.service-card:hover .service-card__more {
  gap: 0.7rem;
  color: var(--copper-bright);
}

.service-card__more svg {
  width: 14px;
  height: 14px;
}

.service-card--featured {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: var(--navy);
  color: var(--paper);
}

.service-card--featured h3 {
  color: var(--paper);
}

.service-card--featured p {
  color: rgba(250, 246, 240, 0.75);
}

.service-card--featured .service-card__icon {
  background: rgba(201, 123, 69, 0.18);
  color: var(--copper-bright);
}

.service-card--featured:hover {
  color: var(--paper);
  border-color: var(--copper);
}

@media (min-width: 40rem) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card--featured {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .service-card--featured .service-card__body {
    flex: 1;
  }

  .service-card--featured .service-card__icon {
    width: 64px;
    height: 64px;
  }
}

/* --------------------------------------------------------------------------
   Emergency guide (home) — 3 steps
   -------------------------------------------------------------------------- */
.emergency-guide {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.9rem 3.6rem;
}

.steps li:last-child {
  padding-bottom: 0;
}

/* vertical pipe connecting the steps */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.19rem;
  top: 2.7rem;
  bottom: 0.2rem;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--copper-bright), var(--copper-deep));
  opacity: 0.55;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--copper-bright), var(--copper-deep));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 8px rgba(143, 74, 30, 0.4);
}

.steps h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.steps p {
  margin: 0;
  font-size: var(--text-sm);
}

.emergency-guide__aside {
  background: rgba(250, 246, 240, 0.06);
  border: 1px solid rgba(250, 246, 240, 0.14);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}

.emergency-guide__aside .btn {
  width: 100%;
  margin-top: 0.75rem;
}

.emergency-guide__aside p.small {
  font-size: var(--text-sm);
  margin: 1rem 0 0;
  color: rgba(250, 246, 240, 0.65);
}

@media (min-width: 56.25rem) {
  .emergency-guide {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

/* --------------------------------------------------------------------------
   How we work — horizontal pipeline
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  gap: 2rem;
  position: relative;
}

.process-step {
  position: relative;
  padding-top: 1.4rem;
}

.process-step__badge {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--copper);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.1rem;
}

.process-step__badge svg {
  width: 28px;
  height: 28px;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.process-step p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.process-step__num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--copper);
}

@media (min-width: 48rem) {
  .process {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }

  /* pipe run behind the badges */
  .process::before {
    content: "";
    position: absolute;
    top: calc(1.4rem + 27px);
    left: 4rem;
    right: 4rem;
    height: 3px;
    background: repeating-linear-gradient(
      90deg,
      var(--copper) 0 14px,
      transparent 14px 22px
    );
    opacity: 0.45;
  }

  .process-step {
    position: relative;
    z-index: 1;
  }
}

/* --------------------------------------------------------------------------
   Service areas
   -------------------------------------------------------------------------- */
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.areas li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  min-height: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
}

.areas li svg {
  width: 13px;
  height: 13px;
  color: var(--copper);
}

/* --------------------------------------------------------------------------
   Page hero (subpages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: clip;
}

.page-hero .lede {
  margin-bottom: 0;
}

.page-hero__bg {
  position: absolute;
  right: -6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26rem;
  opacity: 0.5;
  pointer-events: none;
}

.breadcrumbs {
  font-size: var(--text-sm);
  margin-bottom: 1.25rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--copper);
  opacity: 0.6;
}

.breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--copper);
}

.breadcrumbs [aria-current="page"] {
  color: var(--copper);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */
.service-detail {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.service-detail:first-of-type {
  border-top: 0;
}

.service-detail__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--copper-pale), rgba(240, 223, 208, 0.3));
  color: var(--copper);
  box-shadow: var(--shadow-soft);
}

.service-detail__icon svg {
  width: 38px;
  height: 38px;
}

.service-detail ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.service-detail ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.service-detail ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--copper-bright), var(--copper-deep));
}

@media (min-width: 56.25rem) {
  .service-detail {
    grid-template-columns: 72px 1.2fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
  }

  .service-detail:nth-of-type(even) .service-detail__icon {
    order: 3;
  }
}

.pricing-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--copper);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  display: grid;
  gap: 0.4rem;
  box-shadow: var(--shadow-soft);
}

.pricing-note h2 {
  font-size: var(--text-2xl);
  margin-bottom: 0.25rem;
}

.pricing-note p {
  margin: 0;
  color: var(--ink-soft);
}

/* Water heater comparison */
.compare {
  display: grid;
  gap: 1.25rem;
}

.compare__col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
}

.compare__col--copper {
  border-top: 5px solid var(--copper);
}

.compare__col--navy {
  border-top: 5px solid var(--navy);
}

.compare__col h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.compare__col h3 svg {
  width: 26px;
  height: 26px;
  color: var(--copper);
}

.compare__col dl {
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.compare__col dt {
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
}

.compare__col dd {
  margin: 0.1rem 0 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

@media (min-width: 48rem) {
  .compare {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.story {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.story__art svg {
  width: min(100%, 24rem);
  margin-inline: auto;
}

@media (min-width: 56.25rem) {
  .story {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4.5rem;
  }
}

.values {
  display: grid;
  gap: 1.25rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.value-card svg {
  width: 30px;
  height: 30px;
  color: var(--copper);
  margin-bottom: 0.9rem;
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.value-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

@media (min-width: 48rem) {
  .values {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .values {
    grid-template-columns: repeat(4, 1fr);
  }
}

.credentials {
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--navy), var(--navy-deep));
  color: var(--paper);
  padding: clamp(2rem, 4vw, 3.25rem);
  display: grid;
  gap: 1.75rem;
}

.credentials h2 {
  color: var(--paper);
  margin: 0;
}

.credentials ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.credentials li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: rgba(250, 246, 240, 0.82);
}

.credentials li svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 0.15rem;
  color: var(--copper-bright);
}

@media (min-width: 56.25rem) {
  .credentials {
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
  }
}

.team {
  display: grid;
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.75rem;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.team-card svg {
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.team-card p.role {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.6rem;
}

.team-card p:last-child {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

@media (min-width: 40rem) {
  .team {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .team {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Projects page
   -------------------------------------------------------------------------- */
.project {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 1.75rem;
  display: grid;
  gap: 1.5rem;
  transition: box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.project:hover {
  box-shadow: var(--shadow-soft);
  border-color: var(--copper-pale);
}

.project__tag {
  display: inline-flex;
  align-self: start;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--copper-pale);
  color: var(--copper-deep);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project h2 {
  font-size: var(--text-2xl);
  margin-bottom: 0.4rem;
}

.project > div > p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.project__facts {
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: start;
}

.project__facts > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  font-size: var(--text-sm);
}

.project__facts > div:nth-child(odd) {
  background: var(--paper);
}

.project__facts dt {
  font-weight: 600;
  color: var(--navy);
}

.project__facts dd {
  margin: 0;
  color: var(--ink-soft);
}

@media (min-width: 56.25rem) {
  .project {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
  }

  .project:nth-of-type(even) > div:first-child {
    order: 2;
  }
}

.disclaimer-strip {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  background: var(--paper-warm);
  border: 1px dashed var(--copper);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  max-width: 46rem;
  margin: 0 auto clamp(2.25rem, 5vw, 3.5rem);
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 50rem;
  margin-inline: auto;
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.faq-item:has(.faq-item__toggle[aria-expanded="true"]) {
  border-color: var(--copper);
  box-shadow: var(--shadow-soft);
}

.faq-item h3 {
  margin: 0;
}

.faq-item__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--tap);
  padding: 1.1rem 1.4rem;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-head);
  font-variation-settings: "opsz" 40;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  transition: color 180ms var(--ease);
}

.faq-item__toggle:hover {
  color: var(--copper);
}

.faq-item__chevron {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--copper-pale);
  color: var(--copper-deep);
  transition: transform 240ms var(--ease), background 240ms var(--ease);
}

.faq-item__chevron svg {
  width: 14px;
  height: 14px;
}

.faq-item__toggle[aria-expanded="true"] .faq-item__chevron {
  transform: rotate(180deg);
  background: var(--copper);
  color: #fff;
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms var(--ease);
}

.faq-item__panel > div {
  overflow: hidden;
}

.faq-item__panel p {
  padding: 0 1.4rem 1.3rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  max-width: 44rem;
}

.faq-item__panel.is-open {
  grid-template-rows: 1fr;
}

/* --------------------------------------------------------------------------
   Contact page — two paths
   -------------------------------------------------------------------------- */
.contact-paths {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 60rem) {
  .contact-paths {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
  }
}

.path-card {
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
}

.path-card--emergency {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--paper);
  border-top: 5px solid var(--emergency);
}

.path-card--emergency h2 {
  color: var(--paper);
}

.path-card--emergency > p {
  color: rgba(250, 246, 240, 0.78);
}

.path-card--emergency .btn {
  width: 100%;
  margin: 0.5rem 0 1.75rem;
}

.path-card--book {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--copper);
  box-shadow: var(--shadow-soft);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 1.4rem 2.4rem;
  font-size: var(--text-sm);
  color: rgba(250, 246, 240, 0.82);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.42em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--copper-bright);
  box-shadow: 0 0 0 3px rgba(201, 123, 69, 0.25);
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(0.45rem + 4.5px);
  top: calc(0.42em + 14px);
  bottom: 2px;
  width: 2px;
  background: rgba(201, 123, 69, 0.35);
}

.timeline strong {
  display: block;
  color: var(--paper);
  font-weight: 600;
}

/* Form */
.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-field--full {
    grid-column: 1 / -1;
  }
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-field label .optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease),
              background 180ms var(--ease);
}

.form-field textarea {
  resize: vertical;
  min-height: 7rem;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--copper-pale);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--copper);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(180, 100, 45, 0.14);
}

.form-field.has-error input,
.form-field.has-error select {
  border-color: var(--emergency);
  background: #fff7f3;
}

.form-error {
  display: none;
  margin: 0.35rem 0 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--emergency-dark);
}

.form-field.has-error .form-error {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-error svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.form-actions p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--ink-soft);
}

/* Success state */
.form-success {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1rem;
}

.form-success svg {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
}

.form-success h3 {
  font-size: var(--text-2xl);
}

.form-success p {
  color: var(--ink-soft);
  max-width: 28rem;
  margin-inline: auto;
}

.contact-meta {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.contact-meta > div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-meta svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--copper);
  margin-top: 0.15rem;
}

.contact-meta h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-meta p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

@media (min-width: 48rem) {
  .contact-meta {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--paper);
  padding-block: var(--space-section);
  position: relative;
  overflow: clip;
}

.cta-band h2 {
  color: var(--paper);
  max-width: 26ch;
}

.cta-band .lede {
  color: rgba(250, 246, 240, 0.75);
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.cta-band__pipes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12;
  pointer-events: none;
}

@media (min-width: 56.25rem) {
  .cta-band__inner {
    grid-template-columns: 1.3fr auto;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(250, 246, 240, 0.75);
  padding: clamp(3rem, 5vw, 4.5rem) 0 2rem;
  font-size: var(--text-sm);
}

.site-footer a {
  color: rgba(250, 246, 240, 0.85);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.site-footer a:hover {
  color: var(--copper-bright);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250, 246, 240, 0.12);
}

.footer-brand .logo {
  color: var(--paper);
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 22rem;
  margin: 0;
}

.footer-col h3 {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-legal {
  padding-top: 1.75rem;
  display: grid;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: rgba(250, 246, 240, 0.55);
}

.footer-legal a {
  color: var(--copper-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover {
  color: #dfa073;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (progressive enhancement, disabled for reduced motion)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Print: hide interactive chrome
   -------------------------------------------------------------------------- */
@media print {
  .emergency-bar,
  .nav-toggle,
  .skip-link {
    display: none !important;
  }
}
