/* ===========================================================
   Denver Water Heater Service Center — Federal Heights
   Design system: "Brushed Steel & Copper Line"
   Palette:
     --ink       #16222C  (near-black steel-blue, dark sections)
     --steel     #4A6070  (mid slate)
     --steel-lt  #7C93A3  (light slate, muted text on dark)
     --paper     #EEF2F4  (cool light background, not cream)
     --paper-2   #FFFFFF
     --copper    #B5651D  (primary accent — copper pipe)
     --copper-dk #8C4C15
     --flame     #2E6FBB  (secondary accent — gas flame blue, used sparingly)
     --ok        #2E7D4F
     --text      #1B2630
   Type: Barlow Semi Condensed (headings/labels), IBM Plex Sans (body)
   =========================================================== */

:root {
  --ink: #16222c;
  --ink-2: #1f2f3b;
  --steel: #4a6070;
  --steel-lt: #7c93a3;
  --paper: #eef2f4;
  --paper-2: #ffffff;
  --copper: #b5651d;
  --copper-dk: #8c4c15;
  --flame: #2e6fbb;
  --ok: #2e7d4f;
  --text: #1b2630;
  --line: #d3dade;
  --radius: 3px;
  --maxw: 1180px;
  --font-head: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--copper-dk); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1.05em; max-width: 68ch; }
.lede { font-size: 1.14rem; color: var(--ink-2); max-width: 62ch; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--dark { background: var(--ink); color: #d8e0e5; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: #f0c199; }
.section--steel { background: var(--ink-2); color: #d8e0e5; }
.section--paper2 { background: var(--paper-2); }
.section--line-top { border-top: 1px solid var(--line); }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink);
  color: #cdd8de;
  font-size: 0.86rem;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #cdd8de; }
.topbar strong { color: #fff; }

.site-header {
  background: #fff;
  border-bottom: 3px solid var(--copper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { line-height: 1.15; }
.brand-text .name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--ink); display: block; }
.brand-text .place { font-size: 0.82rem; color: var(--steel); display: block; }

nav.primary-nav { display: flex; align-items: center; gap: 22px; }
nav.primary-nav a {
  color: var(--ink-2);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.primary-nav a:hover, nav.primary-nav a[aria-current="page"] { color: var(--copper-dk); border-bottom-color: var(--copper); text-decoration: none; }
.nav-cta {
  display: flex; align-items: center; gap: 14px;
}
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.3px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid var(--copper);
  background: var(--copper);
  color: #fff;
  cursor: pointer;
}
.btn:hover { background: var(--copper-dk); border-color: var(--copper-dk); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--copper); }
.btn--ghost:hover { background: var(--copper); color: #fff; }
.btn--on-dark { border-color: #f0c199; background: transparent; color: #fff; }
.btn--on-dark:hover { background: var(--copper); border-color: var(--copper); }
.phone-link { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone-link:hover { color: var(--copper-dk); }

.menu-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: var(--radius); padding: 8px 10px; font-family: var(--font-head); font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 46px; align-items: center; padding-top: 58px; padding-bottom: 58px; }
.hero-tick { width: 46px; height: 4px; background: var(--copper); margin-bottom: 18px; }
.hero h1 { color: #fff; }
.hero .lede { color: #c3d0d7; }
.hero-points { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: #d8e0e5; }
.hero-points li svg { flex: none; margin-top: 3px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.quote-box {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  border-top: 5px solid var(--copper);
}
.quote-box h2 { font-size: 1.3rem; margin-bottom: 4px; }
.quote-box .sub { color: var(--steel); font-size: 0.92rem; margin-bottom: 16px; }
.quote-box label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; margin: 12px 0 4px; }
.quote-box input, .quote-box select, .quote-box textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.98rem; background: var(--paper);
}
.quote-box button { width: 100%; margin-top: 16px; }
.quote-box .fineprint { font-size: 0.78rem; color: var(--steel); margin-top: 10px; }

/* ---------- Facts strip ---------- */
.facts-strip { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.facts-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.fact { border-left: 3px solid var(--copper); padding-left: 14px; }
.fact .n { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--ink); display: block; }
.fact .l { font-size: 0.88rem; color: var(--steel); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.svc-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.svc-card h3 a { color: var(--ink); }
.svc-card h3 a:hover { color: var(--copper-dk); }
.svc-card p { font-size: 0.96rem; color: var(--ink-2); margin-bottom: 10px; }
.svc-card .more { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; }

.area-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.area-card h3 a { color: var(--ink); }

/* ---------- Steps (genuine sequences only) ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 18px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 4px 54px;
  border-left: 2px solid var(--line);
  margin-left: 20px;
  padding-bottom: 22px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -21px; top: -2px;
  width: 40px; height: 40px;
  background: var(--ink);
  color: #fff;
  border: 3px solid var(--copper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
.steps h4 { margin-bottom: 4px; font-size: 1.08rem; }
.steps p { margin-bottom: 0; font-size: 0.98rem; }

/* ---------- Signs / checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li svg { flex: none; margin-top: 4px; }

/* ---------- Two column content ---------- */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 44px; align-items: start; }
.side-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  position: sticky; top: 96px;
}
.side-box h3 { font-size: 1.05rem; margin-bottom: 12px; }
.side-box ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.side-box ul a { font-size: 0.95rem; }
.side-box .call-block { background: var(--paper); border-radius: var(--radius); padding: 14px; text-align: center; }
.side-box .call-block .phone-link { display: block; font-size: 1.3rem; margin: 6px 0; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { margin-bottom: 0; font-size: 0.98rem; color: var(--ink-2); }

/* ---------- Table ---------- */
table.compare { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 0.94rem; }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.compare th { background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 600; }
table.compare tr:nth-child(even) td { background: #fff; }
table.compare tr:nth-child(odd) td { background: var(--paper); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 0.85rem; color: var(--steel); padding: 14px 0; }
.crumbs a { color: var(--steel); }
.crumbs span[aria-current] { color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--copper); color: #fff; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.cta-band .btn { border-color: var(--ink); background: var(--ink); }
.cta-band .btn:hover { background: #000; border-color: #000; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ink); color: #b8c3ca; }
footer.site-footer .wrap { padding-top: 52px; padding-bottom: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.foot-grid h4 { color: #fff; font-size: 0.98rem; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-grid a { color: #b8c3ca; font-size: 0.94rem; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid #2b3d49; padding-top: 20px; font-size: 0.84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Misc content ---------- */
.badge { display: inline-block; background: var(--flame); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; padding: 5px 10px; border-radius: var(--radius); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.tag-row span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: 0.82rem; color: var(--steel); }
blockquote.note { border-left: 4px solid var(--flame); background: #eaf1fa; padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.96rem; color: var(--ink-2); margin: 22px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .side-box { position: static; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .facts-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  nav.primary-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .nav-cta .phone-link { display: none; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .facts-strip .wrap { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.site-header.nav-open nav.primary-nav {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  position: absolute; top: 100%; left: 0; right: 0; background: #fff;
  border-bottom: 3px solid var(--copper); padding: 10px 24px 18px;
}
