/* ==========================================================================
   COR Plumbing — styles.css
   Palette anchored to the navy sampled from the client logo (#293F81).
   Type: Bricolage Grotesque (display) / Inter (body) / IBM Plex Mono (utility)
   ========================================================================== */

:root {
  /* Brand — primary navy sampled from assets/logo.png */
  --navy: #293F81;
  --navy-deep: #1F3166;
  --navy-ink: #16224A;
  --blue: #1D4ED8;
  --blue-deep: #1740B0;

  /* Copper accent — CTAs, eyebrow rules, phone highlights */
  --copper: #C26012;
  --copper-deep: #A34D15;
  --copper-bright: #E8890C;
  --copper-soft: #FBEEDF;
  --gold: #ECA413;

  /* Surfaces & text */
  --tint: #F4F7FB;
  --card: #FFFFFF;
  --line: #DFE7F2;
  --ink: #1A2342;
  --body: #4A5670;
  --muted: #6B7690;
  --on-navy: #E8EEF9;
  --on-navy-muted: #B9C5E2;

  --open-green: #1E9E62;
  --closed-amber: #E58E0A;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-btn: 10px;
  --r-card: 16px;
  --r-lg: 20px;
  --r-img: 18px;
  --r-sm: 8px;

  --shadow-1: 0 1px 2px rgba(22, 34, 74, 0.05), 0 4px 14px rgba(22, 34, 74, 0.06);
  --shadow-2: 0 2px 4px rgba(22, 34, 74, 0.07), 0 14px 34px rgba(22, 34, 74, 0.13);
  --shadow-header: 0 1px 0 rgba(22, 34, 74, 0.05), 0 6px 24px rgba(22, 34, 74, 0.08);

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 32px);
  --header-h: 104px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 6vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.55rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }

ul { margin: 0; padding: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

iframe { border: 0; display: block; }

::selection { background: rgba(41, 63, 129, 0.16); }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.bg-navy :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.trust-strip :focus-visible,
.page-hero :focus-visible,
.promo-band :focus-visible,
.cta-band :focus-visible,
.section--navy :focus-visible {
  outline-color: #A8C3FF;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 104px); }
.section--tint { background: var(--tint); }
.section--navy,
.bg-navy { background: var(--navy); }

.section--navy h2,
.section--navy h3,
.bg-navy h2 { color: #fff; }
.section--navy p { color: var(--on-navy); }

.section-head { max-width: 640px; margin-bottom: clamp(30px, 5vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--body); font-size: 1.06rem; }
.section--navy .section-head p { color: var(--on-navy-muted); }

/* --------------------------------------------------------------------------
   Signature element — copper eyebrow rule + mono label
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-deep);
  font-variant-numeric: tabular-nums;
}
.section--navy .eyebrow,
.bg-navy .eyebrow,
.promo-band .eyebrow,
.cta-band .eyebrow,
.page-hero .eyebrow { color: var(--copper-bright); }

.eyebrow::before {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-bottom: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--copper-bright), #B4551A);
}
.section-head--center .eyebrow::before { margin-inline: auto; }

/* Draw-in motion (armed by JS, disabled under reduced motion) */
.js .eyebrow::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .section-head--center .eyebrow::before { transform-origin: center; }
.js .in-view .eyebrow::before,
.js .eyebrow.in-view::before { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: 0.99rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn--copper {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 2px 6px rgba(163, 77, 21, 0.28), 0 8px 22px rgba(163, 77, 21, 0.18);
}
.btn--copper:hover {
  background: var(--copper-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(163, 77, 21, 0.3), 0 12px 28px rgba(163, 77, 21, 0.22);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}
.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn--ghost-navy {
  border-color: rgba(41, 63, 129, 0.35);
  color: var(--navy);
}
.btn--ghost-navy:hover {
  border-color: var(--navy);
  background: rgba(41, 63, 129, 0.06);
  color: var(--navy);
}

.btn--ghost-copper {
  border-color: rgba(194, 96, 18, 0.45);
  color: var(--copper-deep);
}
.btn--ghost-copper:hover {
  border-color: var(--copper);
  background: var(--copper-soft);
  color: var(--copper-deep);
}

.btn--lg { padding: 16px 30px; font-size: 1.06rem; border-radius: 12px; }

/* Copper tappable phone highlights in running text */
.tel-link {
  color: var(--copper-deep);
  font-weight: 600;
  text-decoration-color: rgba(194, 96, 18, 0.4);
}
.tel-link:hover { color: var(--copper); }
.bg-navy .tel-link,
.section--navy .tel-link,
.trust-strip .tel-link {
  color: #F5B26B;
  text-decoration-color: rgba(245, 178, 107, 0.5);
}
.bg-navy .tel-link:hover,
.section--navy .tel-link:hover,
.trust-strip .tel-link:hover { color: #FFC98F; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(22, 34, 74, 0.07);
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-header);
}

/* Transparent-over-hero variant (home) */
.site-header--overlay {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header--overlay.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(22, 34, 74, 0.07);
  box-shadow: var(--shadow-header);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  /* Breathing room: vertical padding ≥ half the logo height */
  padding-block: 30px;
  transition: padding 0.3s ease;
}
.is-scrolled .header-bar { padding-block: 25px; }

.brand {
  display: inline-grid;
  flex: none; /* never let the header squeeze the logo — fine print must stay legible */
  margin-right: auto;
  text-decoration: none;
  border-radius: 6px;
}
.brand img {
  grid-area: 1 / 1;
  height: 60px;
  width: auto;
  transition: opacity 0.3s ease, height 0.3s ease;
}
.is-scrolled .brand img { height: 50px; }
.brand .brand-light { opacity: 0; }
.site-header--overlay:not(.is-scrolled) .brand-light { opacity: 1; }
.site-header--overlay:not(.is-scrolled) .brand-dark { opacity: 0; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav a:hover { color: var(--navy); background: rgba(41, 63, 129, 0.07); }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.site-nav a[aria-current="page"]::after {
  content: "";
  display: block;
  margin-top: 2px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--copper-bright), #B4551A);
}
.site-header--overlay:not(.is-scrolled) .site-nav a { color: #fff; }
.site-header--overlay:not(.is-scrolled) .site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.header-call { margin-left: 8px; white-space: nowrap; }
.header-call .btn-label-sm { display: none; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }
.site-header--overlay:not(.is-scrolled) .nav-toggle .bars,
.site-header--overlay:not(.is-scrolled) .nav-toggle .bars::before,
.site-header--overlay:not(.is-scrolled) .nav-toggle .bars::after { background: #fff; }
.nav-open .nav-toggle .bars { background: transparent !important; }
.nav-open .nav-toggle .bars::before { top: 0; transform: rotate(45deg); background: var(--ink); }
.nav-open .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); background: var(--ink); }

/* Mobile slide-down panel */
.nav-panel {
  display: none;
}

/* Hamburger takes over at <1000px: with five nav items the inline nav would
   otherwise wrap and compress the logo. */
@media (max-width: 999.98px) {
  .site-nav, .header-call { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-panel {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(22, 34, 74, 0.14);
    padding: 10px var(--gutter) 22px;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  }
  .nav-open .nav-panel {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .nav-panel a:not(.btn) {
    display: block;
    padding: 14px 6px;
    font-size: 1.08rem;
    font-weight: 550;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--tint);
  }
  .nav-panel a[aria-current="page"] { color: var(--navy); font-weight: 650; }
  .nav-panel .btn { margin-top: 16px; width: 100%; }

  /* Solid header while menu is open, even over hero */
  .nav-open .site-header--overlay,
  .site-header--overlay.nav-open {
    background: #fff;
  }
  .nav-open.site-header--overlay .brand-light { opacity: 0; }
  .nav-open.site-header--overlay .brand-dark { opacity: 1; }
  .nav-open.site-header--overlay .nav-toggle .bars::before,
  .nav-open.site-header--overlay .nav-toggle .bars::after { background: var(--ink); }

  .header-bar { padding-block: 24px; }
  .brand img, .is-scrolled .brand img { height: 48px; }
  .is-scrolled .header-bar { padding-block: 24px; }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(94vh, 840px);
  padding-block: 190px 120px;
  overflow: hidden;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--navy-ink); /* backdrop if the photo ever fails */
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.js .hero-media img { animation: kenburns 22s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(112deg,
      rgba(22, 34, 74, 0.93) 0%,
      rgba(31, 49, 102, 0.78) 42%,
      rgba(41, 63, 129, 0.45) 72%,
      rgba(41, 63, 129, 0.28) 100%);
}

.hero-inner { max-width: 700px; }
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #F5B26B;
}
.hero .kicker::before {
  content: "";
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--copper-bright), #B4551A);
}
.hero h1 { color: #fff; margin-bottom: 0.35em; }
.hero .sub {
  max-width: 540px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(232, 238, 249, 0.92);
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Staggered entrance on load */
.js .hero-stagger {
  opacity: 0;
  transform: translateY(12px);
  animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--stagger, 0) * 100ms + 120ms);
}
@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Trust strip + status chip
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--navy);
  color: var(--on-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 15px;
}
.trust-strip .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.93rem;
}
.trust-strip .lic {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: var(--on-navy-muted);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #fff;
}
.status-chip .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--closed-amber);
  box-shadow: 0 0 0 3px rgba(229, 142, 10, 0.22);
}
.status-chip.is-open .dot {
  background: #37D08A;
  box-shadow: 0 0 0 3px rgba(55, 208, 138, 0.22);
}

/* Light variant (contact page hours card) */
.status-chip--light {
  background: var(--tint);
  border-color: var(--line);
  color: var(--ink);
}
.status-chip--light .dot { background: var(--closed-amber); box-shadow: 0 0 0 3px rgba(229, 142, 10, 0.16); }
.status-chip--light.is-open .dot { background: var(--open-green); box-shadow: 0 0 0 3px rgba(30, 158, 98, 0.16); }

/* --------------------------------------------------------------------------
   Triage widget — "Get Help Fast"
   -------------------------------------------------------------------------- */
.triage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.triage-chip {
  padding: 11px 19px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease, background-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.triage-chip:hover {
  border-color: rgba(194, 96, 18, 0.5);
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}
.triage-chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.triage-reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.triage-reveal.open { grid-template-rows: 1fr; }
.triage-reveal > .clip { overflow: hidden; min-height: 0; }

.triage-card {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 30px);
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  box-shadow: var(--shadow-1);
  opacity: 0;
  transition: opacity 0.3s ease 0.12s;
}
.triage-reveal.open .triage-card { opacity: 1; }
.triage-card .triage-issue {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-deep);
  margin-bottom: 8px;
}
.triage-card .tip {
  font-size: 1.13rem;
  font-weight: 550;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 56ch;
}
.triage-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   Pricing cards
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.4vw, 34px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(194, 96, 18, 0.4);
  box-shadow: var(--shadow-2), 0 0 0 3px rgba(232, 137, 12, 0.08);
}
.price-card .plan-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.price-card h3 { margin-bottom: 4px; font-size: 1.3rem; }
.price-card .price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--navy);
  margin: 10px 0 4px;
  letter-spacing: -0.02em;
}
.price-card .price .per {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.price-card .intro { font-size: 0.97rem; margin-bottom: 18px; }
.price-card .checklist { margin-bottom: 24px; }
.price-card .btn { margin-top: auto; }

.badge-popular {
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--copper-bright), var(--copper-deep));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(163, 77, 21, 0.35);
  overflow: hidden;
}
/* One-time shimmer on reveal (armed by JS) */
.badge-popular::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}
.js .in-view .badge-popular::after { animation: shimmer 1.1s ease-out 0.65s 1 both; }
@keyframes shimmer {
  to { transform: translateX(160%) skewX(-18deg); }
}

/* Checklists (pricing, services page) */
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 0.97rem;
}
.checklist .tick {
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  color: var(--open-green);
}
.section--navy .checklist li { color: var(--on-navy); }

/* --------------------------------------------------------------------------
   Service icon cards
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .services-grid > *:nth-child(-n + 2) { grid-column: span 3; }
  .services-grid > *:nth-child(n + 3) { grid-column: span 2; }
}

.service-card {
  display: block;
  padding: 26px 24px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(194, 96, 18, 0.4);
  box-shadow: var(--shadow-2), 0 0 0 3px rgba(232, 137, 12, 0.08);
  color: inherit;
}
.service-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(29, 78, 216, 0.09);
  color: var(--blue);
}
.service-card h3 { margin-bottom: 6px; font-size: 1.13rem; }
.service-card p { font-size: 0.94rem; margin-bottom: 12px; }
.service-card .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--copper-deep);
}
.service-card:hover .go { color: var(--copper); }
.service-card .go svg { transition: transform 0.25s ease; }
.service-card:hover .go svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Who we are — asymmetric split + stats
   -------------------------------------------------------------------------- */
.about-split {
  display: grid;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
@media (min-width: 900px) {
  /* Deliberately unequal columns */
  .about-split { grid-template-columns: 5fr 7fr; }
}
.about-media { position: relative; }
.about-media img {
  width: 100%;
  border-radius: var(--r-img);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  background: var(--tint);
  box-shadow: var(--shadow-2);
}
.about-media .media-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--navy);
}

blockquote.owner-quote {
  margin: 26px 0 0;
  padding: 20px 24px;
  border-left: 4px solid var(--copper);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  background: var(--tint);
  color: var(--ink);
  font-size: 1.02rem;
}
blockquote.owner-quote p { font-style: italic; }
blockquote.owner-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--copper-deep);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
  padding: 22px clamp(16px, 3vw, 30px);
  border-radius: var(--r-card);
  background: var(--navy);
  color: #fff;
}
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.stat .lbl {
  margin-top: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}
@media (max-width: 560px) {
  .stat .lbl { font-size: 0.68rem; letter-spacing: 0.06em; }
}

/* --------------------------------------------------------------------------
   Accordion (Why Choose COR / FAQ)
   -------------------------------------------------------------------------- */
.accordion { display: grid; gap: 12px; max-width: 780px; }
.acc-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.acc-item.open { border-color: rgba(41, 63, 129, 0.3); }
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 19px 22px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.07rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-radius: 12px;
}
.acc-trigger .chev {
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tint);
  color: var(--navy);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease, color 0.25s ease;
}
.acc-item.open .acc-trigger .chev {
  transform: rotate(180deg);
  background: var(--copper-soft);
  color: var(--copper-deep);
}
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > .clip { overflow: hidden; min-height: 0; }
.acc-panel .body {
  padding: 0 22px 20px;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Testimonials carousel
   -------------------------------------------------------------------------- */
.carousel { position: relative; max-width: 860px; margin-inline: auto; }
.carousel-viewport { overflow: hidden; border-radius: var(--r-lg); }
.carousel-track {
  display: flex;
  align-items: stretch;
  list-style: none;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-track > li { list-style: none; }
.carousel.dragging .carousel-track { transition: none; }
.t-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 4px;
}
.t-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4.5vw, 42px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.t-card .quote {
  font-size: clamp(1.02rem, 1.8vw, 1.16rem);
  color: var(--ink);
  line-height: 1.7;
  margin: 14px 0 20px;
}
.t-card .who {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.t-card .name { font-weight: 650; color: var(--navy); font-family: var(--font-display); }
.t-card .place {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.stars { display: inline-flex; gap: 4px; }
.stars svg { width: 21px; height: 21px; color: var(--gold); }
/* Fill-in animation, armed by JS on first view */
.js .stars-anim svg {
  color: #D9DFEC;
  transform: scale(0.72);
  transition: color 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.js .stars-anim svg:nth-child(1) { transition-delay: 0.05s; }
.js .stars-anim svg:nth-child(2) { transition-delay: 0.17s; }
.js .stars-anim svg:nth-child(3) { transition-delay: 0.29s; }
.js .stars-anim svg:nth-child(4) { transition-delay: 0.41s; }
.js .stars-anim svg:nth-child(5) { transition-delay: 0.53s; }
.js .stars-anim.lit svg { color: var(--gold); transform: scale(1); }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 24px;
}
.c-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--navy);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.c-btn:hover { border-color: var(--navy); background: var(--tint); transform: translateY(-1px); }
.c-dots { display: flex; gap: 9px; }
.c-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: #C7D2E5;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.c-dot[aria-current="true"] {
  background: var(--copper);
  transform: scale(1.25);
}

/* --------------------------------------------------------------------------
   Service area
   -------------------------------------------------------------------------- */
.area-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 30px;
}
@media (min-width: 640px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }
.area-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.04rem;
}
.area-card .icon { color: var(--blue); flex: none; display: inline-flex; }
.area-note { font-size: 1.04rem; max-width: 56ch; }

/* --------------------------------------------------------------------------
   Inner page hero
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(72px, 11vw, 120px);
  background:
    radial-gradient(1000px 420px at 88% -10%, rgba(232, 137, 12, 0.16), transparent 60%),
    linear-gradient(118deg, var(--navy-ink) 0%, var(--navy-deep) 46%, var(--navy) 100%);
  color: #fff;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero .sub {
  max-width: 640px;
  font-size: 1.09rem;
  color: var(--on-navy-muted);
}

/* --------------------------------------------------------------------------
   Split feature sections (services / about)
   -------------------------------------------------------------------------- */
.feature-split {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 900px) {
  .feature-split { grid-template-columns: 7fr 5fr; }
  .feature-split--flip { grid-template-columns: 5fr 7fr; }
  .feature-split--flip .feature-copy { order: 2; }
  .feature-split--flip .feature-media { order: 1; }
}
.feature-media img {
  width: 100%;
  border-radius: var(--r-img);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--tint);
  box-shadow: var(--shadow-2);
}
.feature-copy .checklist { margin-top: 20px; }

.mini-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: clamp(30px, 5vw, 44px);
}
@media (min-width: 768px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } }
.mini-card {
  padding: 24px 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(194, 96, 18, 0.4);
  box-shadow: var(--shadow-2), 0 0 0 3px rgba(232, 137, 12, 0.08);
}
.mini-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.mini-card p { font-size: 0.94rem; }
.mini-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--copper-soft);
  color: var(--copper-deep);
}

/* --------------------------------------------------------------------------
   Trenchless / underground page components
   -------------------------------------------------------------------------- */
/* Multi-column checklist for long capability lists */
.checklist--grid { grid-template-columns: 1fr; }
@media (min-width: 620px) { .checklist--grid { grid-template-columns: repeat(2, 1fr); gap: 12px 28px; } }
@media (min-width: 1024px) { .checklist--grid { grid-template-columns: repeat(3, 1fr); } }
.checklist--two { grid-template-columns: 1fr; }
@media (min-width: 620px) { .checklist--two { grid-template-columns: repeat(2, 1fr); gap: 12px 28px; } }

/* Paired detail cards (benefits / ideal-for, signs / we-perform) */
.mini-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .mini-grid--2 { grid-template-columns: repeat(2, 1fr); } }
/* Standalone (not only inside .mini-card) — also used above the "We Install"
   lists in the water-main and gas sections. Overrides h3 display styling. */
.card-label {
  display: block;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-deep);
}
/* .mini-card h3 (0,1,1) outranks .card-label (0,1,0) — restore label sizing inside cards. */
.mini-card .card-label { font-size: 0.76rem; margin: 0 0 14px; }

/* CTA buttons inside the navy page hero */
.page-hero .hero-actions { margin-top: 30px; }

/* Home promo band — asymmetric, so it doesn't read as another centered CTA */
.promo-band {
  background:
    radial-gradient(760px 300px at 90% 115%, rgba(232, 137, 12, 0.2), transparent 62%),
    linear-gradient(108deg, var(--navy-ink), var(--navy) 78%);
  color: #fff;
}
.promo-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 900px) {
  .promo-inner { grid-template-columns: 7fr 4fr; gap: 48px; }
  .promo-inner .promo-cta { justify-self: end; }
}
.promo-band h2 { color: #fff; margin-bottom: 10px; }
.promo-band p { color: var(--on-navy-muted); max-width: 54ch; }

/* Services-page cross-link to the trenchless page */
.crosslink {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: clamp(24px, 3.4vw, 32px);
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  box-shadow: var(--shadow-1);
}
@media (min-width: 860px) {
  .crosslink { grid-template-columns: 1fr auto; gap: 32px; }
}
.crosslink h3 { margin-bottom: 6px; }
.crosslink p { font-size: 0.97rem; margin-bottom: 0; }

/* City list for the service-area section */
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
  margin-bottom: 22px;
}
.city-list li {
  padding: 8px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(800px 300px at 12% 120%, rgba(232, 137, 12, 0.18), transparent 60%),
    linear-gradient(112deg, var(--navy-deep), var(--navy));
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p {
  color: var(--on-navy-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 28px;
}
.cta-band .cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.cta-contact-rows {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  margin-bottom: 30px;
  color: var(--on-navy);
  font-size: 0.98rem;
}
.cta-contact-rows a { color: var(--on-navy); }
.cta-contact-rows .row { display: inline-flex; align-items: center; gap: 9px; }
.cta-contact-rows svg { color: #F5B26B; flex: none; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(6, 1fr); }
  .contact-grid > .contact-card:nth-child(-n + 3) { grid-column: span 2; }
  .contact-grid > .contact-card:nth-child(4) { grid-column: span 3; }
  .contact-grid > .contact-card:nth-child(5) { grid-column: span 3; }
}
.contact-card {
  padding: clamp(24px, 3.4vw, 32px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(194, 96, 18, 0.35);
  box-shadow: var(--shadow-2), 0 0 0 3px rgba(232, 137, 12, 0.07);
}
.contact-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(29, 78, 216, 0.09);
  color: var(--blue);
}
.contact-card h3 { margin-bottom: 4px; }
.contact-card .hint { font-size: 0.93rem; color: var(--muted); margin-bottom: 14px; }
.contact-card .big-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--copper-deep);
  text-decoration-color: rgba(194, 96, 18, 0.35);
}
.contact-card .big-link:hover { color: var(--copper); }
.contact-card .big-link--email { font-size: clamp(1.02rem, 2.2vw, 1.2rem); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}
.hours-table th,
.hours-table td {
  padding: 9px 4px;
  border-bottom: 1px solid var(--tint);
  text-align: left;
}
.hours-table th { font-weight: 500; color: var(--ink); }
.hours-table td { text-align: right; color: var(--body); }
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: 0; }
.hours-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
}

.address-block { font-style: normal; font-size: 1.02rem; line-height: 1.7; color: var(--ink); }
.address-block .lic-line {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.map-embed {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-embed iframe { width: 100%; height: 260px; }

/* --------------------------------------------------------------------------
   Values cards (about)
   -------------------------------------------------------------------------- */
.values-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--on-navy);
  padding-top: clamp(56px, 7vw, 80px);
}
.footer-grid {
  display: grid;
  gap: 38px 28px;
  grid-template-columns: 1fr;
  padding-bottom: 46px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 0.9fr; } }

.footer-brand img { height: 84px; width: auto; margin-bottom: 18px; }
.footer-brand address {
  font-style: normal;
  line-height: 1.7;
  color: var(--on-navy-muted);
  margin-bottom: 10px;
}
.footer-brand .lic {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--on-navy-muted);
  margin-bottom: 18px;
}
.footer-brand .phone-row { margin-bottom: 18px; }

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.site-footer h4::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin-top: 9px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--copper-bright), #B4551A);
}
.footer-links { list-style: none; display: grid; gap: 9px; }
.footer-links a {
  color: var(--on-navy-muted);
  text-decoration: none;
  font-size: 0.96rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-navy-muted);
  text-decoration: none;
  font-size: 0.96rem;
}
.social-link:hover { color: #fff; }
.social-link .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.social-link:hover .icon { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 20px;
  font-size: 0.88rem;
  color: var(--on-navy-muted);
  text-align: center;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Sticky mobile call/text bar
   -------------------------------------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(22, 34, 74, 0.14);
}
.mobile-cta .btn { flex: 1; padding: 14px 10px; font-size: 1rem; }
.mobile-cta .btn--call { position: relative; }
/* Slow, low-opacity pulse ring to draw the thumb */
.js .mobile-cta .btn--call::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 13px;
  border: 2px solid var(--copper);
  opacity: 0;
  animation: call-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes call-pulse {
  0% { transform: scale(0.97); opacity: 0.5; }
  70% { transform: scale(1.07); opacity: 0; }
  100% { transform: scale(1.07); opacity: 0; }
}

@media (max-width: 767.98px) {
  body { padding-bottom: 78px; }
  .mobile-cta { display: flex; }
}

/* --------------------------------------------------------------------------
   Scroll-reveal system (armed by JS only)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.in-view { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Legal prose (privacy policy)
   -------------------------------------------------------------------------- */
.prose { max-width: 720px; }
.prose section + section { margin-top: clamp(36px, 5vw, 52px); }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.prose ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 0 1em;
}
.prose ul li {
  position: relative;
  padding-left: 22px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--copper-bright), #B4551A);
}
.prose .updated {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.error-hero {
  min-height: 62vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.error-hero .code {
  font-family: var(--font-mono);
  font-size: clamp(3.4rem, 11vw, 6rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
}
.error-hero .pipe-rule {
  width: 70px;
  height: 4px;
  margin: 22px auto;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--copper-bright), #B4551A);
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   Reduced motion — everything visible, nothing moves
   -------------------------------------------------------------------------- */
@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;
    transition-delay: 0ms !important;
  }

  .js .hero-media img { animation: none; }
  .js .hero-stagger { opacity: 1; transform: none; animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .eyebrow::before { transform: scaleX(1); }
  .js .stars-anim svg { color: var(--gold); transform: none; }
  .js .mobile-cta .btn--call::before { animation: none; opacity: 0; }
  .js .in-view .badge-popular::after { animation: none; }
}
