:root {
  --ink: #0f2530;
  --ink-2: #3c5360;
  --glacier: #dceef3;
  --glacier-2: #eaf5f8;
  --cool: #177a9c;
  --cool-dark: #0e5c78;
  --sun: #c74b0b;
  --sun-dark: #a83d07;
  --paper: #f8fbfc;
  --line: #c4d9e1;
  --radius: 14px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 108px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.9rem, 6.4vw, 5rem); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.005em; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 34ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; border-radius: 999px;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sun { background: var(--sun); color: #fff; }
.btn-sun:hover { background: var(--sun-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--glacier); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; min-height: 96px; padding-block: 10px; }

.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 72px; width: auto; }

.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--cool); }

.header-call {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-stretch: 108%; font-weight: 700;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
}
.header-call:hover { background: var(--cool-dark); }
.header-call svg { width: 18px; height: 18px; fill: currentColor; }

.menu-btn {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; position: relative;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--ink); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.menu-bars { top: 22px; }
.menu-bars::before { left: 0; right: 0; top: -7px; }
.menu-bars::after { left: 0; right: 0; top: 7px; }
.menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--glacier); padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-note { font-size: .95rem; color: var(--ink-2); max-width: 44ch; }

/* Thermostat */
.thermo { display: grid; justify-items: center; gap: 18px; }
.thermo-face {
  position: relative; width: min(360px, 100%); aspect-ratio: 1;
  background: var(--ink); border-radius: 50%;
  box-shadow: 0 0 0 10px var(--glacier-2), 0 0 0 11px var(--line), 0 24px 40px -18px rgba(15, 37, 48, .45);
  display: grid; place-items: center;
}
.dial { position: absolute; inset: 7%; width: 86%; height: 86%; }
.dial circle { fill: none; stroke-width: 10; stroke-linecap: round; transform: rotate(135deg); transform-origin: 120px 120px; }
.dial-track { stroke: rgba(220, 238, 243, .16); stroke-dasharray: 471.24 628.32; }
.dial-value { stroke: #6fd0ee; stroke-dasharray: 0 628.32; transition: stroke-dasharray .35s ease, stroke .35s ease; }
.thermo-face.is-warm .dial-value { stroke: #ff9a5c; }

.thermo-readout { position: relative; display: grid; justify-items: center; color: #fff; text-align: center; }
.thermo-label { font-size: .95rem; color: var(--glacier); }
.thermo-temp {
  font-family: var(--display); font-stretch: 100%; font-weight: 800;
  font-size: clamp(4.4rem, 12vw, 6.2rem); line-height: 1; letter-spacing: -0.04em;
}
.thermo-outside { margin-top: 6px; font-size: .95rem; color: #ffb48a; font-weight: 600; }

.thermo-controls { display: flex; gap: 14px; }
.step {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--display); font-size: 1.7rem; font-weight: 600; line-height: 1;
  cursor: pointer; transition: background-color .15s, color .15s;
}
.step:hover { background: var(--ink); color: #fff; }
.step:active { transform: scale(.96); }
.thermo-caption { font-size: .95rem; color: var(--ink-2); }

/* ---------- Trust ---------- */
.trust { background: var(--ink); color: #fff; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 0; }
.trust p { font-size: .98rem; color: var(--glacier); }
.trust strong { display: block; color: #fff; font-family: var(--display); font-stretch: 108%; font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { display: grid; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-2); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.about-body { display: grid; gap: 24px; color: var(--ink-2); max-width: 60ch; }
.ticks { display: grid; gap: 12px; color: var(--ink); }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--glacier) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23177a9c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* Services */
.services { background: var(--glacier-2); border-block: 1px solid var(--line); }
.svc-list { border-top: 2px solid var(--ink); }
.svc {
  display: grid; grid-template-columns: 1fr 1.5fr 210px; gap: 12px 40px; align-items: baseline;
  padding: 26px 8px; border-bottom: 1px solid var(--line);
  transition: background-color .15s;
}
.svc:hover { background: #fff; }
.svc p { color: var(--ink-2); max-width: 52ch; }
.svc a {
  justify-self: end;
  font-weight: 600; text-decoration: none; color: var(--cool-dark); white-space: nowrap;
  border-bottom: 2px solid currentColor; padding-bottom: 1px;
}
.svc a:hover { color: var(--sun); }

.emergency {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; align-items: center;
  background: var(--sun); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 36px);
}
.emergency h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.emergency p { margin-top: 4px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); counter-reset: s; }
.steps li { display: grid; gap: 10px; align-content: start; }
.steps p { color: var(--ink-2); }
.step-no {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  margin-bottom: 6px;
}

/* Areas */
.areas { background: var(--ink); color: #fff; }
.areas-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.areas-grid p { margin-top: 12px; color: var(--glacier); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 16px; border: 1px solid rgba(220, 238, 243, .35); border-radius: 999px; font-size: .98rem;
}

/* Reviews carousel */
.reviews-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 4vw, 40px); }
.rev-controls { display: flex; gap: 10px; }
.carousel {
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 6px max(20px, calc((100% - 1160px) / 2)) 24px;
  scroll-padding-inline: max(20px, calc((100% - 1160px) / 2));
}
.carousel::-webkit-scrollbar { display: none; }
.track { display: flex; gap: 20px; width: max-content; }
.review {
  flex: 0 0 min(380px, 82vw); scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; min-height: 230px;
}
.review blockquote { font-size: 1.1rem; line-height: 1.55; }
.who { display: grid; gap: 2px; font-size: .98rem; }
.who span { color: var(--ink-2); }

/* Contact */
.contact { background: var(--glacier); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-info > p { color: var(--ink-2); max-width: 42ch; }
.details { display: grid; gap: 16px; margin-top: 12px; }
.details dt { font-size: .9rem; color: var(--ink-2); }
.details dd { font-weight: 600; font-size: 1.1rem; }
.details a { text-decoration: none; border-bottom: 2px solid var(--cool); }
.details a:hover { color: var(--cool-dark); }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
  background: #fff; border-radius: var(--radius); padding: clamp(22px, 3.5vw, 40px);
  box-shadow: 0 20px 40px -28px rgba(15, 37, 48, .5);
}
.field { display: grid; gap: 6px; }
.wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 14px; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cool); box-shadow: 0 0 0 3px rgba(23, 122, 156, .22); }
.field [aria-invalid="true"] { border-color: var(--sun); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-status { font-size: .98rem; font-weight: 500; }
.form-status.is-error { color: var(--sun-dark); }
.form-status.is-ok { color: var(--cool-dark); }

/* Footer */
.site-footer { background: var(--ink); color: var(--glacier); padding-top: 56px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.foot-logo { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 12px; }
.foot-logo img { height: 60px; width: auto; }
.foot-copy { margin-top: 16px; max-width: 34ch; }
.foot-grid nav { display: grid; gap: 8px; align-content: start; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-base { border-top: 1px solid rgba(220, 238, 243, .2); padding: 20px 0 28px; font-size: .92rem; }

/* Mobile call bar */
.call-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .areas-grid, .contact-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .steps, .quotes { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 8px; }
  .svc a { justify-self: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .header-call { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 20px 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .brand img { height: 52px; }
  .header-row { gap: 12px; }
}

@media (max-width: 640px) {
  body { padding-bottom: 64px; }
  .form { grid-template-columns: 1fr; }
  .call-bar {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 60px;
    background: var(--sun); color: #fff; text-decoration: none;
    font-family: var(--display); font-stretch: 108%; font-weight: 800; font-size: 1.1rem;
    box-shadow: 0 -6px 20px rgba(15, 37, 48, .2);
  }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .trust-row { grid-template-columns: 1fr; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
