:root {
  --navy: #0B2239;
  --deep: #071627;
  --ink: #12283D;
  --white: #FFFFFF;
  --amber: #F59E0B;
  --amber-dark: #C77E04;
  --copper: #B87333;
  --steel: #8E9AA8;
  --mist: #F2F5F7;
  --radius: 14px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- utility bar ---------- */
.utility-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--deep); color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  padding: 8px 16px;
}
.utility-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.utility-phone { color: var(--amber); text-decoration: none; font-weight: 700; }
.utility-phone:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 33px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  padding: 12px 24px; border-bottom: 1px solid #E3E9EE;
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,34,57,.12); }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark-glyph { width: 42px; height: 42px; flex: none; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark-name {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  letter-spacing: .02em; color: var(--navy); text-transform: uppercase;
}
.wordmark-sub {
  font-size: 11px; font-weight: 600; letter-spacing: .28em;
  color: var(--copper); text-transform: uppercase;
}
.main-nav { display: flex; gap: 26px; }
.main-nav a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink);
  position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--amber); transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav[hidden] { display: none; }
.mobile-nav {
  background: var(--navy); padding: 8px 24px 24px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 101px; z-index: 49;
  border-bottom: 3px solid var(--amber);
}
.mobile-nav a {
  color: var(--white); text-decoration: none; font-family: var(--font-display);
  font-size: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease;
}
.mobile-nav.open a { opacity: 1; transform: none; }
.mobile-nav a.btn { border: 0; margin-top: 12px; text-align: center; font-size: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  cursor: pointer; font-size: 16px;
}
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--deep); }
.btn-amber:hover { background: #FFB42E; box-shadow: 0 8px 20px rgba(245,158,11,.35); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 15px 32px; font-size: 17px; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%); overflow: hidden; }
.hero-inner {
  max-width: 1120px; margin: 0 auto; padding: 72px 24px 88px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--copper);
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(44px, 6vw, 76px); line-height: .98; letter-spacing: .01em;
  color: var(--navy); margin-bottom: 18px;
}
.hero-sub { font-size: 19px; color: #3D5266; max-width: 46ch; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.trust-chips { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; }
.trust-chips li {
  font-size: 13px; font-weight: 600; color: var(--navy);
  border: 1px solid #CBD5DE; border-radius: 999px; padding: 6px 14px;
  background: var(--white);
}

/* ---------- 3D boiler card ---------- */
.boiler-card {
  position: relative; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #16324F 0%, var(--deep) 70%);
  border: 1px solid #1E3A58;
  box-shadow: 0 24px 60px rgba(7,22,39,.35);
  aspect-ratio: 1 / 1; max-height: 560px; width: 100%;
}
#boiler-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
#boiler-canvas:active { cursor: grabbing; }
.boiler-fallback { position: absolute; inset: 0; margin: auto; width: 70%; height: 70%; display: none; }
.boiler-card.fallback #boiler-canvas { display: none; }
.boiler-card.fallback .boiler-fallback { display: block; }
.boiler-caption {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: .08em;
  pointer-events: none;
}

/* ---------- ticker ---------- */
.ticker {
  background: var(--navy); color: var(--white); overflow: hidden;
  border-top: 3px solid var(--amber); border-bottom: 3px solid var(--amber);
  padding: 14px 0;
}
.ticker-track {
  display: inline-flex; gap: 0; white-space: nowrap;
  animation: ticker 40s linear infinite; will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  text-transform: uppercase; letter-spacing: .06em; padding: 0 22px;
  position: relative;
}
.ticker-track span::after {
  content: ""; position: absolute; right: -4px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-mist { background: var(--mist); }
.section-dark { background: var(--deep); color: var(--white); }
.section-dark .eyebrow { color: var(--amber); }
.section h2 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.02; color: var(--navy);
  margin-bottom: 14px;
}
.section-dark h2 { color: var(--white); }
.section-lede { font-size: 18px; color: #3D5266; max-width: 62ch; margin-bottom: 44px; }
.section-dark .section-lede { color: #B9C6D2; }

/* pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar-card {
  background: var(--white); border: 1px solid #E3E9EE; border-top: 4px solid var(--copper);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,34,57,.14); border-top-color: var(--amber); }
.pillar-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  text-transform: uppercase; color: var(--navy); margin-bottom: 14px;
}
.pillar-card ul { list-style: none; }
.pillar-card li { font-size: 15px; padding: 7px 0; border-bottom: 1px solid #EEF2F5; color: #33475B; }
.pillar-card li:last-child { border-bottom: 0; }
.pillar-card p { color: #33475B; font-size: 15px; margin-bottom: 16px; }
.text-link { color: var(--amber-dark); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* why */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.why-photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 44px rgba(11,34,57,.16); background: var(--white); }
.why-photo img { width: 100%; height: auto; }
.why-photo figcaption { font-size: 13px; color: #5A6E82; padding: 12px 18px; }
.extras-list { list-style: none; display: grid; gap: 14px; }
.extras-list li {
  background: var(--white); border: 1px solid #E3E9EE; border-radius: var(--radius);
  padding: 18px 20px 18px 58px; position: relative;
}
.extras-list li::before {
  content: ""; position: absolute; left: 20px; top: 22px;
  width: 22px; height: 12px;
  border-left: 4px solid var(--amber); border-bottom: 4px solid var(--amber);
  transform: rotate(-45deg);
}
.extras-list strong { display: block; font-size: 17px; color: var(--navy); }
.extras-list span { font-size: 15px; color: #5A6E82; }

/* timeline */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 8px; left: 12px; right: 12px; height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--amber));
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s ease;
}
.timeline.drawn::before { transform: scaleX(1); }
.timeline li { padding-top: 28px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--amber); border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--amber);
}
.timeline strong {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  color: var(--navy); display: block; text-transform: uppercase;
}
.timeline span { font-size: 15px; color: #3D5266; }

/* emergency */
.emergency-list {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 40px;
}
.emergency-list li {
  border: 1px solid #24405E; border-radius: var(--radius);
  padding: 22px 18px; font-family: var(--font-display); font-weight: 600;
  font-size: 21px; text-transform: uppercase; letter-spacing: .04em;
  background: rgba(255,255,255,.04); text-align: center;
}

/* reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: var(--white); border: 1px solid #E3E9EE; border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 14px;
}
.review-card p { font-size: 17px; color: var(--ink); flex: 1; }
.review-card cite { font-style: normal; font-size: 13px; font-weight: 600; color: var(--copper); letter-spacing: .04em; }

/* areas */
.area-chips { list-style: none; display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.area-chips li {
  font-family: var(--font-display); font-weight: 600; font-size: 22px; text-transform: uppercase;
  background: var(--navy); color: var(--white); border-radius: 999px; padding: 10px 26px;
}
.area-address { font-size: 17px; color: #3D5266; font-weight: 600; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-info p { margin-bottom: 24px; font-size: 17px; }
.contact-info strong { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); }
.contact-info a { color: var(--amber-dark); font-weight: 600; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.contact-form {
  background: var(--mist); border: 1px solid #E3E9EE; border-radius: var(--radius);
  padding: 30px; display: grid; gap: 16px;
}
.form-demo-note {
  font-size: 13px; font-weight: 600; color: #7A5b00; background: #FFF4D6;
  border: 1px solid #F0D98A; border-radius: 8px; padding: 10px 14px;
}
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid #CBD5DE; border-radius: 10px;
  background: var(--white); color: var(--ink); width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--amber); border-color: var(--amber);
}
.form-confirm { font-size: 15px; color: var(--navy); font-weight: 600; background: #E8F3FF; border: 1px solid #B9D8F5; border-radius: 8px; padding: 12px 14px; }

/* footer */
.site-footer { background: var(--deep); color: #B9C6D2; padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.site-footer .wordmark-name { color: var(--white); }
.footer-badges {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  border-top: 1px solid #1E3A58; padding-top: 24px;
}
.disclosure-badge {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--amber); color: var(--deep); border-radius: 999px; padding: 6px 16px;
}
.demo-note { font-size: 13px; color: #7E8FA1; }

/* reveal animations */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .utility-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px 64px; gap: 36px; }
  .boiler-card { max-height: 440px; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .emergency-list { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav, .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .pillar-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .emergency-list { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; text-align: center; }
}
