/*!==============================
 * Ductwise — Free HVAC Website Template
 * Author: uiCookies
 * License: Free for personal & commercial use — https://uicookies.com/license/
 * Design layer: graphite + sheet-metal greys with a seasonal accent
 * (ember for heating, glacier blue for cooling). Archivo Expanded display,
 * IBM Plex Sans body.
 *===============================*/

/* ------------------------------------------------------------------
   1. Design tokens
   The accent follows the season switch: html[data-season="heat|cool"].
   Change --heat / --cool to rebrand both modes at once.
------------------------------------------------------------------ */
:root {
  --ink:        #10151c;   /* graphite — dark surfaces */
  --ink-2:      #18202a;   /* raised graphite */
  --ink-3:      #222c38;   /* hover graphite */
  --ink-line:   rgba(255, 255, 255, .1);

  --paper:      #f3f5f7;   /* cool sheet-metal page background */
  --paper-2:    #e7ebef;   /* deeper panel */
  --white:      #ffffff;

  --text:       #1c2430;
  --heading:    #0f151d;
  --muted:      #556170;
  --muted-2:    #8a95a3;
  --line:       #d8dee5;
  --line-2:     #c5cdd6;

  --heat:       #e0531b;   /* ember */
  --heat-ink:   #b43d0c;   /* ember for small text on light */
  --heat-soft:  #fdebe2;
  --cool:       #1290c4;   /* glacier */
  --cool-ink:   #0a6a93;
  --cool-soft:  #e0f1f9;
  --ok:         #1f8a5b;

  --accent:      var(--heat);
  --accent-ink:  var(--heat-ink);
  --accent-soft: var(--heat-soft);

  /* temperature scale used for rules, dials and bars */
  --scale: linear-gradient(90deg, #1290c4 0%, #2fb3a6 34%, #f2b33d 68%, #e0531b 100%);

  --shadow-sm: 0 1px 2px rgba(16, 21, 28, .06), 0 2px 8px rgba(16, 21, 28, .05);
  --shadow-md: 0 14px 34px rgba(16, 21, 28, .1);
  --shadow-lg: 0 30px 70px rgba(16, 21, 28, .22);

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius:    10px;
  --radius-lg: 18px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

:root[data-season="cool"] {
  --accent:      var(--cool);
  --accent-ink:  var(--cool-ink);
  --accent-soft: var(--cool-soft);
}

/* ------------------------------------------------------------------
   2. Base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-stretch: 118%;
  color: var(--heading);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}
h3 { font-weight: 700; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--heading); }
img { max-width: 100%; height: auto; display: block; }
svg { flex: none; }
::selection { background: var(--accent); color: #fff; }

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

.container { max-width: var(--container); }

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 2000;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem;
  border-radius: 8px; font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden-focusable:not(:focus) { position: absolute !important; }

/* Season-specific content. Heating copy shows when JS is off. */
[data-season="heat"] .season-cool,
[data-season="cool"] .season-heat { display: none !important; }

/* ------------------------------------------------------------------
   3. Shared pieces
------------------------------------------------------------------ */
.section    { padding: 104px 0; }
.section-sm { padding: 64px 0; }
@media (max-width: 767.98px) {
  .section    { padding: 68px 0; }
  .section-sm { padding: 48px 0; }
}
.bg-paper-2 { background: var(--paper-2); }
.bg-white   { background: var(--white) !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--body); font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 4px; border-radius: 4px; background: var(--scale);
}
.eyebrow.on-dark { color: #fff; opacity: .85; }

.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.split {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.section-head.split > div { max-width: 640px; }
.section-title { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
.section-lead  { color: var(--muted); font-size: 1.08rem; }

/* Buttons */
.btn {
  --bs-btn-font-family: var(--body);
  font-weight: 600; letter-spacing: .005em;
  padding: .78rem 1.35rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  transition: transform .18s var(--ease), background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.04rem; }

.btn-accent {
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  box-shadow: 0 10px 22px -8px var(--accent);
}
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; transform: translateY(-2px); }

.btn-ink { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-ink:hover { background: var(--ink-3); border-color: var(--ink-3); color: #fff; transform: translateY(-2px); }

.btn-line { background: transparent; color: var(--heading); border: 1.5px solid var(--line-2); }
.btn-line:hover { border-color: var(--heading); color: var(--heading); background: var(--white); }

.btn-ghost-light { background: rgba(255, 255, 255, .06); color: #fff; border: 1.5px solid rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--heading); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Check list */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ticks li { display: flex; gap: .65rem; align-items: flex-start; }
.ticks svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }

/* Reveal (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .07s; }
.js .reveal.d2 { transition-delay: .14s; }
.js .reveal.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Initials avatars (no people photos) */
.avatar {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: .95rem; color: #fff;
  background: var(--ink-3);
}
.avatar.a1 { background: linear-gradient(135deg, #1290c4, #2fb3a6); }
.avatar.a2 { background: linear-gradient(135deg, #e0531b, #f2b33d); }
.avatar.a3 { background: linear-gradient(135deg, #222c38, #556170); }
.avatar.a4 { background: linear-gradient(135deg, #2fb3a6, #1f8a5b); }
.avatar.a5 { background: linear-gradient(135deg, #b43d0c, #e0531b); }
.avatar.a6 { background: linear-gradient(135deg, #0a6a93, #222c38); }

/* ------------------------------------------------------------------
   4. Top strip
------------------------------------------------------------------ */
.topstrip { background: var(--ink); color: rgba(255, 255, 255, .78); font-size: .84rem; }
.topstrip .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px;
}
.topstrip-msg { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; }
.topstrip-msg strong { color: #fff; font-weight: 600; }
.topstrip-msg a { color: #fff; font-weight: 600; white-space: nowrap; }
.topstrip-msg a:hover { color: #fff; text-decoration: underline; }
.pulse {
  width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; flex: none;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.topstrip-right { display: flex; align-items: center; gap: 1.2rem; }
.topstrip-hours { white-space: nowrap; }
@media (max-width: 991.98px) { .topstrip-hours { display: none; } }
@media (max-width: 575.98px) {
  .topstrip { font-size: .78rem; }
  .topstrip .hide-xs { display: none; }
}

/* Season switch (segmented control) */
.season-switch {
  display: none; /* shown only with JS */
  position: relative; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--ink-line);
}
.js .season-switch { display: inline-flex; }
.season-switch button {
  position: relative; z-index: 1; border: 0; background: transparent; color: rgba(255, 255, 255, .75);
  font: 600 .78rem/1 var(--body); padding: .45rem .75rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; transition: color .2s var(--ease);
}
.season-switch button svg { width: 14px; height: 14px; }
.season-switch button[aria-pressed="true"] { color: #fff; background: var(--accent); }
.season-switch.lg { padding: 4px; background: rgba(255, 255, 255, .06); }
.season-switch.lg button { font-size: .9rem; padding: .6rem 1.05rem; }
.season-switch.lg button svg { width: 17px; height: 17px; }

/* ------------------------------------------------------------------
   5. Header / nav
------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 8px 24px -12px rgba(16, 21, 28, .25); backdrop-filter: blur(8px); }
.site-header .navbar { padding: .7rem 0; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--heading); line-height: 1; }
.brand:hover { color: var(--heading); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: #fff;
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.brand-mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--scale); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; display: block; }
.brand-sub { display: block; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 4px; }

.navbar-toggler {
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: .5rem .6rem; color: var(--heading);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--accent-soft); }
.toggler-bar { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-menu .nav-link {
  font-weight: 500; color: var(--heading); padding: .5rem .85rem !important; border-radius: 999px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-menu .nav-link:hover { background: var(--paper); color: var(--heading); }
.nav-menu .nav-link[aria-current="page"] { background: var(--paper-2); color: var(--heading); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: .7rem; margin-left: 1rem; }
.nav-phone {
  display: inline-flex; align-items: center; gap: .55rem; color: var(--heading); font-weight: 600; line-height: 1.1;
}
.nav-phone small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav-phone .ico {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.nav-phone .ico svg { width: 18px; height: 18px; }
.nav-phone:hover { color: var(--accent-ink); }

@media (max-width: 1199.98px) and (min-width: 992px) { .nav-phone .num { display: none; } }
@media (max-width: 991.98px) {
  .nav-menu { padding: .8rem 0 .4rem; margin-top: .6rem; border-top: 1px solid var(--line); }
  .nav-menu .nav-link { padding: .7rem .4rem !important; border-radius: 10px; }
  .nav-actions { margin: .6rem 0 .6rem; flex-wrap: wrap; }
}

/* ------------------------------------------------------------------
   6. Hero (index)
------------------------------------------------------------------ */
.hero {
  position: relative; background: var(--ink); color: rgba(255, 255, 255, .82); overflow: hidden;
  padding: 72px 0 0;
}
.hero::before { /* vent-slat texture */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
.hero::after { /* season glow */
  content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 62%); opacity: .22; pointer-events: none;
  transition: background .4s var(--ease);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 3.5rem; align-items: center; }
.hero-copy { padding-bottom: 72px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.9rem); margin: 1.3rem 0 1.1rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 1.12rem; max-width: 540px; color: rgba(255, 255, 255, .78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2rem; }

.emergency-line {
  display: flex; align-items: center; gap: 1rem; max-width: 560px;
  padding: 1rem 1.15rem; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-left: 4px solid var(--accent);
}
.emergency-line .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent); color: #fff;
}
.emergency-line .ico svg { width: 22px; height: 22px; }
.emergency-line strong { color: #fff; display: block; font-size: 1.02rem; }
.emergency-line span { font-size: .9rem; }
.emergency-line a { color: #fff; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.2rem; white-space: nowrap; margin-left: auto; }
.emergency-line a:hover { color: var(--accent); }

.hero-visual { position: relative; align-self: end; }
.hero-photo {
  position: relative; border-radius: 26px 26px 0 0; overflow: hidden; aspect-ratio: 5 / 6;
  box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(16, 21, 28, .55)); }

.dial-card {
  position: absolute; left: -48px; top: 42px; width: 220px; padding: 1.1rem 1.1rem 1rem;
  background: rgba(16, 21, 28, .86); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; color: #fff; text-align: center; z-index: 2;
}
.dial { width: 100%; height: auto; display: block; }
.dial-track { stroke: rgba(255, 255, 255, .12); }
.dial-knob { transform-origin: 100px 100px; transform: rotate(var(--knob, -13.5deg)); transition: transform .8s var(--ease); }
/* knob angle maps the set-point onto the 50–90°F arc: 68°F heat, 74°F cool */
:root[data-season="cool"] .dial-knob { --knob: 27deg; }
.dial-temp { font-family: var(--display); font-stretch: 112%; font-weight: 800; fill: #fff; font-size: 42px; }
.dial-label { fill: rgba(255, 255, 255, .65); font-family: var(--body); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.dial-meta { display: flex; justify-content: space-between; font-size: .76rem; color: rgba(255, 255, 255, .7); margin-top: .4rem; }
.dial-meta b { color: #fff; font-weight: 600; display: block; font-size: .92rem; }

.slot-chip {
  position: absolute; right: 22px; bottom: 26px; z-index: 2;
  display: inline-flex; align-items: center; gap: .6rem;
  background: #fff; color: var(--heading); border-radius: 999px; padding: .55rem 1rem .55rem .6rem;
  font-size: .88rem; font-weight: 600; box-shadow: var(--shadow-md);
}
.slot-chip .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.slot-chip .dot svg { width: 16px; height: 16px; }

@media (max-width: 991.98px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 40px; }
  .hero-visual { max-width: 560px; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .dial-card { left: 16px; top: 16px; width: 176px; padding: .8rem; }
  .dial-meta { font-size: .7rem; }
}
@media (max-width: 575.98px) {
  .emergency-line { flex-wrap: wrap; }
  .emergency-line a { margin-left: 62px; }
  .dial-card { width: 150px; }
  .dial-meta { display: none; }
  .slot-chip { right: 12px; bottom: 14px; font-size: .8rem; }
}

/* Proof bar under hero */
.proof-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof { padding: 1.6rem 1.4rem; border-left: 1px solid var(--line); display: flex; gap: .9rem; align-items: center; }
.proof:first-child { border-left: 0; padding-left: 0; }
.proof-num { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: 1.9rem; color: var(--heading); line-height: 1; white-space: nowrap; }
.proof-num small { font-size: .55em; color: var(--muted); font-weight: 700; margin-left: 2px; }
.proof-label { font-size: .88rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 991.98px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof { padding: 1.2rem 1rem; }
  .proof:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 575.98px) {
  .proof { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .proof-num { font-size: 1.55rem; }
}

/* ------------------------------------------------------------------
   7. Services grid (spec-sheet cards)
------------------------------------------------------------------ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.svc-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .2rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.1rem; }
.svc-ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--paper); color: var(--heading); border: 1px solid var(--line);
}
.svc-ico svg { width: 28px; height: 28px; }
.svc-ico.heat { color: var(--heat-ink); background: var(--heat-soft); border-color: transparent; }
.svc-ico.cool { color: var(--cool-ink); background: var(--cool-soft); border-color: transparent; }
.svc-code { font-size: .72rem; letter-spacing: .14em; color: var(--muted-2); font-weight: 600; }
.svc-card h3 { font-size: 1.22rem; margin-bottom: .45rem; }
.svc-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.svc-foot {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  border-top: 1px dashed var(--line-2); margin-top: 1.1rem; padding-top: .95rem; font-size: .88rem;
}
.svc-price { color: var(--muted); }
.svc-price b { color: var(--heading); font-weight: 600; }
.svc-card.is-emergency { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .8); }
.svc-card.is-emergency h3 { color: #fff; }
.svc-card.is-emergency p, .svc-card.is-emergency .svc-price { color: rgba(255, 255, 255, .72); }
.svc-card.is-emergency .svc-price b, .svc-card.is-emergency .link-arrow { color: #fff; }
.svc-card.is-emergency .svc-ico { background: var(--accent); color: #fff; border-color: transparent; }
.svc-card.is-emergency .svc-foot { border-color: rgba(255, 255, 255, .18); }
@media (max-width: 991.98px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .svc-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   8. Visit steps
------------------------------------------------------------------ */
.visit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; position: relative; }
.visit-grid::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 27px; height: 3px; border-radius: 3px; background: var(--scale); opacity: .5;
}
.visit-step { position: relative; }
.visit-num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--white); border: 3px solid var(--paper-2); color: var(--heading);
  font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: 1.15rem; position: relative; z-index: 1;
  box-shadow: var(--shadow-sm);
}
.visit-step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.visit-step p { color: var(--muted); font-size: .95rem; }
.visit-step .when { display: inline-block; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .35rem; }
@media (max-width: 991.98px) {
  .visit-grid { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .visit-grid::before { display: none; }
}
@media (max-width: 575.98px) { .visit-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   9. Plans (teaser + full)
------------------------------------------------------------------ */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 1.9rem 1.7rem;
  display: flex; flex-direction: column; position: relative;
}
.plan.featured { background: var(--ink); color: rgba(255, 255, 255, .78); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan.featured h3, .plan.featured .plan-price { color: #fff; }
.plan-flag {
  position: absolute; top: -13px; left: 1.7rem; background: var(--accent); color: #fff;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: .3rem .8rem; border-radius: 999px;
}
.plan h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.plan-for { font-size: .92rem; color: var(--muted); margin-bottom: 1.2rem; }
.plan.featured .plan-for { color: rgba(255, 255, 255, .65); }
.plan-price { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: 2.7rem; line-height: 1; color: var(--heading); display: flex; align-items: baseline; gap: .3rem; }
.plan-price small { font-family: var(--body); font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan.featured .plan-price small { color: rgba(255, 255, 255, .6); }
.plan-billed { font-size: .82rem; color: var(--muted); margin: .45rem 0 1.4rem; min-height: 1.3em; }
.plan.featured .plan-billed { color: rgba(255, 255, 255, .6); }
.plan .ticks { margin-bottom: 1.6rem; flex: 1; font-size: .95rem; }
.plan.featured .ticks svg { color: var(--accent); }
.plan .btn { width: 100%; }
@media (max-width: 991.98px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 1.6rem; }
}

/* Billing toggle */
.billing-toggle {
  display: inline-flex; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
}
.billing-toggle button {
  border: 0; background: transparent; padding: .55rem 1.1rem; border-radius: 999px; font: 600 .9rem/1 var(--body); color: var(--muted); cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.billing-toggle .save { color: var(--ok); font-size: .78rem; margin-left: .3rem; }
.billing-toggle button[aria-pressed="true"] .save { color: #7ee2b0; }

/* Comparison table */
.compare-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; }
.compare caption { caption-side: top; padding: 1.1rem 1.3rem .2rem; color: var(--muted); font-size: .88rem; }
.compare th, .compare td { padding: .95rem 1.2rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare thead th { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.02rem; color: var(--heading); background: var(--paper); }
.compare thead th.is-featured { background: var(--ink); color: #fff; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--text); }
.compare tbody td.is-featured { background: rgba(16, 21, 28, .035); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .group th { background: var(--paper-2); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: .55rem 1.2rem; }
.compare .yes { color: var(--ok); }
.compare .no { color: var(--muted-2); }
.compare svg { width: 20px; height: 20px; }
.compare td strong { font-weight: 600; color: var(--heading); }

/* ------------------------------------------------------------------
   10. Financing + certifications
------------------------------------------------------------------ */
.finance {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: 2.6rem; position: relative; overflow: hidden;
}
.finance::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--scale); }
.finance h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.finance-example {
  background: var(--paper); border-radius: var(--radius-lg); padding: 1.5rem; border: 1px dashed var(--line-2);
}
.finance-example dl { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; margin: 0 0 1rem; font-size: .95rem; }
.finance-example dt { font-weight: 400; color: var(--muted); }
.finance-example dd { margin: 0; font-weight: 600; color: var(--heading); text-align: right; }
.finance-example .total { border-top: 1px solid var(--line-2); padding-top: .7rem; margin-top: .3rem; }
.finance-example .big { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: 1.6rem; color: var(--accent-ink); }
.fine-print { font-size: .8rem; color: var(--muted); }
@media (max-width: 991.98px) { .finance { grid-template-columns: 1fr; padding: 2rem 1.5rem; } }

.cert-row { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.cert {
  display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.05rem .7rem .75rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; color: var(--heading); font-weight: 500;
}
.cert .seal {
  min-width: 34px; height: 34px; padding: 0 .4rem; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff;
  font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: .66rem; letter-spacing: .02em;
}
.cert small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }

/* ------------------------------------------------------------------
   11. Reviews
------------------------------------------------------------------ */
.reviews-layout { display: grid; grid-template-columns: 320px 1fr; gap: 2.5rem; align-items: start; }
.rating-card { background: var(--ink); color: rgba(255, 255, 255, .78); border-radius: 22px; padding: 1.9rem; position: sticky; top: 110px; }
.rating-big { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: 3.6rem; color: #fff; line-height: 1; }
.stars { display: inline-flex; gap: 2px; color: #f2b33d; }
.stars svg { width: 18px; height: 18px; }
.rating-count { font-size: .9rem; margin: .4rem 0 1.4rem; }
.rating-bars { display: grid; gap: .5rem; font-size: .82rem; }
.rating-bar { display: grid; grid-template-columns: 1.6rem 1fr 2.4rem; gap: .6rem; align-items: center; }
.rating-bar .track { height: 7px; background: rgba(255, 255, 255, .1); border-radius: 7px; overflow: hidden; }
.rating-bar .fill { display: block; height: 100%; border-radius: 7px; background: var(--scale); width: var(--w); }
.rating-bar span:last-child { text-align: right; }

.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.review blockquote { margin: 0; color: var(--text); font-size: .98rem; flex: 1; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.review-tag { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; }
.review-tag.heat { background: var(--heat-soft); color: var(--heat-ink); }
.review-tag.cool { background: var(--cool-soft); color: var(--cool-ink); }
.review-tag.air { background: #e3f4ef; color: #17705a; }
.review figcaption { display: flex; align-items: center; gap: .8rem; }
.review figcaption b { display: block; color: var(--heading); font-weight: 600; }
.review figcaption span span { font-size: .84rem; color: var(--muted); }
@media (max-width: 991.98px) {
  .reviews-layout { grid-template-columns: 1fr; }
  .rating-card { position: static; }
}
@media (max-width: 767.98px) { .review-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   12. FAQ
------------------------------------------------------------------ */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.faq-list { display: grid; gap: .7rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  font-weight: 600; color: var(--heading); font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f151d' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--accent-soft); }
.faq-item .faq-body { padding: 0 1.25rem 1.2rem; color: var(--muted); }
@media (max-width: 991.98px) { .faq-layout { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ------------------------------------------------------------------
   13. CTA band
------------------------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, .8); }
.cta-band .bg { position: absolute; inset: 0; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta-band .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 25%, rgba(16, 21, 28, .55)); }
.cta-inner { position: relative; z-index: 1; padding: 88px 0; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 620px; }
.cta-inner p { max-width: 560px; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ------------------------------------------------------------------
   14. Page header (inner pages)
------------------------------------------------------------------ */
.page-head { background: var(--ink); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden; padding: 72px 0 64px; }
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px);
  -webkit-mask-image: linear-gradient(270deg, #000, transparent 75%); mask-image: linear-gradient(270deg, #000, transparent 75%);
}
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--scale); }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 820px; margin: .8rem 0 1rem; }
.page-head p { max-width: 640px; font-size: 1.08rem; }
.crumbs { font-size: .85rem; color: rgba(255, 255, 255, .6); }
.crumbs ol { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: #fff; }
.jump-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.jump-chips a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: .9rem; font-weight: 500;
}
.jump-chips a svg { width: 16px; height: 16px; opacity: .8; }
.jump-chips a:hover { background: #fff; color: var(--ink); }

/* ------------------------------------------------------------------
   15. Service detail (services.html)
------------------------------------------------------------------ */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; scroll-margin-top: 96px; }
.svc-detail + .svc-detail { margin-top: 96px; padding-top: 96px; border-top: 1px solid var(--line); }
.svc-detail.flip .svc-media { order: 2; }
.svc-media { position: relative; }
.svc-media > img { border-radius: 22px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-media .inset {
  position: absolute; right: -18px; bottom: -26px; width: 42%; border-radius: 16px; border: 5px solid var(--paper); box-shadow: var(--shadow-md);
}
.svc-media figcaption { font-size: .82rem; color: var(--muted); margin-top: .7rem; }
.svc-tag { display: inline-flex; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px; margin-bottom: .9rem; }
.svc-tag svg { width: 15px; height: 15px; }
.svc-tag.heat { background: var(--heat-soft); color: var(--heat-ink); }
.svc-tag.cool { background: var(--cool-soft); color: var(--cool-ink); }
.svc-tag.air { background: #e3f4ef; color: #17705a; }
.svc-detail h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.6rem 0; }
.svc-cols h3 { font-family: var(--body); font-stretch: 100%; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .8rem; }
.svc-cols .ticks { font-size: .94rem; }
.symptoms li svg { color: var(--heat-ink); }
.price-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.price-strip div { padding: .9rem 1rem; border-left: 1px solid var(--line); }
.price-strip div:first-child { border-left: 0; }
.price-strip span { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.price-strip b { font-family: var(--display); font-stretch: 112%; font-weight: 800; color: var(--heading); font-size: 1.1rem; }
@media (max-width: 991.98px) {
  .svc-detail { grid-template-columns: 1fr; gap: 2.2rem; }
  .svc-detail.flip .svc-media { order: 0; }
  .svc-detail + .svc-detail { margin-top: 64px; padding-top: 64px; }
  .svc-media .inset { right: 12px; bottom: -20px; width: 38%; }
}
@media (max-width: 575.98px) {
  .svc-cols { grid-template-columns: 1fr; }
  .price-strip { grid-template-columns: 1fr; }
  .price-strip div { border-left: 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
  .price-strip div:first-child { border-top: 0; }
}

/* ------------------------------------------------------------------
   16. Tools (repair-or-replace, size calculator)
------------------------------------------------------------------ */
.tool {
  background: var(--white); border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr;
}
.tool-form { padding: 2.2rem; }
.tool-out { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 2.2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.tool-out h3 { color: #fff; font-size: 1.1rem; }
.tool-label { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); font-weight: 600; }
.tool-big { font-family: var(--display); font-stretch: 118%; font-weight: 800; color: #fff; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.tool-big small { font-size: .45em; color: rgba(255, 255, 255, .6); margin-left: .25rem; font-weight: 700; }
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tool-stat { background: rgba(255, 255, 255, .05); border: 1px solid var(--ink-line); border-radius: 14px; padding: 1rem; }
.tool-stat b { display: block; color: #fff; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.3rem; margin-top: .2rem; }
.tool-note { font-size: .82rem; color: rgba(255, 255, 255, .6); border-top: 1px solid var(--ink-line); padding-top: 1rem; margin-top: auto; }
.tool-note strong { color: #fff; }
.verdict { border-radius: 14px; padding: 1rem 1.1rem; background: rgba(255, 255, 255, .06); border-left: 4px solid var(--muted-2); }
.verdict strong { color: #fff; display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.verdict.repair { border-left-color: #3ddc84; }
.verdict.replace { border-left-color: var(--heat); }
.verdict.borderline { border-left-color: #f2b33d; }

/* tonnage scale */
.ton-scale { position: relative; padding-top: 6px; }
.ton-scale .bar { height: 12px; border-radius: 12px; background: var(--scale); }
.ton-scale .pin {
  position: absolute; top: 0; left: var(--pos, 50%); width: 4px; height: 24px; margin-left: -2px; border-radius: 3px; background: #fff;
  box-shadow: 0 0 0 3px var(--ink); transition: left .45s var(--ease);
}
.ton-scale .ticks-row { display: flex; justify-content: space-between; font-size: .72rem; color: rgba(255, 255, 255, .55); margin-top: .5rem; }

@media (max-width: 991.98px) { .tool { grid-template-columns: 1fr; } .tool-form, .tool-out { padding: 1.6rem; } }
@media (max-width: 340px) { .tool-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   17. Forms
------------------------------------------------------------------ */
.form-label { font-weight: 600; font-size: .92rem; color: var(--heading); margin-bottom: .4rem; }
.form-label .opt { color: var(--muted); font-weight: 400; }
.form-control, .form-select {
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: .72rem .9rem; font-size: 1rem; color: var(--text); background-color: var(--white);
}
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #c4321b; background-image: none; }
.form-hint { font-size: .82rem; color: var(--muted); margin-top: .35rem; }
.field-error { display: none; font-size: .84rem; color: #b42318; margin-top: .35rem; font-weight: 500; }
.field-error.show { display: block; }
input[type="range"] { accent-color: var(--accent); width: 100%; }
.range-row { display: flex; align-items: center; gap: 1rem; }
.range-row .form-control { max-width: 120px; }

fieldset.step { border: 0; padding: 0; margin: 0 0 2.4rem; min-width: 0; }
fieldset.step legend {
  display: flex; align-items: center; gap: .8rem; font-family: var(--display); font-stretch: 118%; font-weight: 800;
  font-size: 1.3rem; color: var(--heading); margin-bottom: 1.2rem; float: none; width: 100%; padding: 0;
}
fieldset.step legend .n {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: .95rem;
}
.sub-legend { font-weight: 600; font-size: .92rem; color: var(--heading); margin-bottom: .55rem; display: block; }

/* choice cards (radio/checkbox) */
.choice-grid { display: grid; gap: .6rem; grid-template-columns: repeat(3, 1fr); }
.choice-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.choice { position: relative; margin: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .face {
  display: flex; align-items: center; gap: .65rem; height: 100%; cursor: pointer;
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: .75rem .85rem; background: var(--white);
  font-size: .93rem; font-weight: 500; color: var(--heading); transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.choice .face svg { width: 22px; height: 22px; color: var(--muted); }
.choice .face small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.choice input:checked + .face { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:checked + .face svg { color: var(--accent-ink); }
.choice input:focus-visible + .face { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice .box {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; background: #fff;
}
.choice .box svg { width: 14px; height: 14px; color: #fff; opacity: 0; }
.choice input:checked + .face .box { background: var(--accent); border-color: var(--accent); }
.choice input:checked + .face .box svg { opacity: 1; color: #fff; }
.choice-grid.is-invalid .face, .windows.is-invalid .face { border-color: #c4321b; }
@media (max-width: 767.98px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 340px) { .choice-grid, .choice-grid.cols-2 { grid-template-columns: 1fr; } }

/* time windows */
.windows { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.windows .face { flex-direction: column; align-items: flex-start; gap: .1rem; }
.windows .face b { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1rem; }
@media (max-width: 575.98px) { .windows { grid-template-columns: repeat(2, 1fr); } }

.alert-emergency {
  display: none; gap: .9rem; align-items: flex-start; margin-top: 1rem;
  background: var(--heat-soft); border: 1px solid #f6c3ab; color: #7a2a07; border-radius: 14px; padding: 1rem 1.1rem;
}
.alert-emergency.show { display: flex; }
.alert-emergency svg { width: 22px; height: 22px; color: var(--heat-ink); margin-top: 2px; }
.alert-emergency a { color: #7a2a07; font-weight: 700; text-decoration: underline; }

.form-success {
  display: none; border-radius: 18px; padding: 1.6rem; background: #e7f6ee; border: 1px solid #b6e2c9; color: #14532d; margin-bottom: 1.5rem;
}
.form-success.show { display: block; }
.form-success h3 { color: #14532d; font-size: 1.25rem; margin-bottom: .4rem; }
.form-success .ref { font-family: var(--display); font-stretch: 112%; font-weight: 800; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 2.2rem; }
@media (max-width: 575.98px) { .form-card { padding: 1.4rem 1.1rem; border-radius: 18px; } }

/* booking layout */
.booking-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.booking-aside { position: sticky; top: 104px; display: grid; gap: 1rem; }
.summary-card { background: var(--ink); color: rgba(255, 255, 255, .78); border-radius: 22px; padding: 1.6rem; }
.summary-card h2 { color: #fff; font-size: 1.15rem; margin-bottom: 1rem; }
.summary-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; font-size: .92rem; }
.summary-list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--ink-line); padding-bottom: .7rem; }
.summary-list li span:first-child { color: rgba(255, 255, 255, .55); }
.summary-list li span:last-child { color: #fff; font-weight: 600; text-align: right; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem; font-size: .93rem; }
.aside-card h2 { font-size: 1.05rem; margin-bottom: .8rem; }
.aside-card ol { padding-left: 1.1rem; margin: 0; display: grid; gap: .45rem; color: var(--muted); }
@media (max-width: 991.98px) { .booking-layout { grid-template-columns: 1fr; } .booking-aside { position: static; } }

/* ------------------------------------------------------------------
   18. Contact
------------------------------------------------------------------ */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: -54px; position: relative; z-index: 2; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow-md); }
.contact-card.urgent { background: var(--accent); border-color: var(--accent); color: rgba(255, 255, 255, .9); }
.contact-card.urgent h2, .contact-card.urgent a { color: #fff; }
.contact-card .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--paper); color: var(--heading); margin-bottom: 1rem; }
.contact-card.urgent .ico { background: rgba(255, 255, 255, .18); color: #fff; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card h2 { font-size: 1.05rem; margin-bottom: .3rem; }
.contact-card a.big { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.3rem; color: var(--heading); display: inline-block; margin: .2rem 0; word-break: break-word; }
.contact-card p { font-size: .9rem; }
@media (max-width: 991.98px) { .contact-cards { grid-template-columns: 1fr; margin-top: -40px; } }

.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
@media (max-width: 991.98px) { .contact-layout { grid-template-columns: 1fr; } }

.hours { width: 100%; border-collapse: collapse; font-size: .94rem; }
.hours th, .hours td { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; text-align: left; color: var(--text); }
.hours td { text-align: right; color: var(--heading); font-weight: 600; }
.hours tr.today th, .hours tr.today td { color: var(--accent-ink); }
.open-status { display: inline-flex; align-items: center; gap: .5rem; font-size: .86rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; background: var(--paper); color: var(--muted); }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.open-status.open { background: #e7f6ee; color: #14532d; }
.open-status.open::before { background: #22a565; }

.area-map { background: var(--ink); border-radius: 22px; overflow: hidden; position: relative; }
.area-map svg { display: block; width: 100%; height: auto; }
.area-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.area-chips span { padding: .4rem .8rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .86rem; color: var(--heading); }
.area-chips span.core { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ------------------------------------------------------------------
   19. Footer + mobile call bar
------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .66); font-size: .94rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--scale); }
.footer-top { padding: 76px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-mark { background: rgba(255, 255, 255, .08); }
.site-footer .brand-sub { color: rgba(255, 255, 255, .5); }
.footer-about { margin-top: 1.2rem; max-width: 330px; }
.footer-col h2 { font-family: var(--body); font-stretch: 100%; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; font-weight: 600; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.footer-contact { font-style: normal; display: grid; gap: .45rem; }
.footer-contact .em { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.25rem; color: #fff; }
.footer-bottom { border-top: 1px solid var(--ink-line); padding: 1.3rem 0; font-size: .84rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
@media (max-width: 991.98px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { padding-bottom: calc(1.3rem + 74px + env(safe-area-inset-bottom)); }
}
@media (max-width: 575.98px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.call-bar { display: none; }
@media (max-width: 991.98px) {
  .call-bar {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom));
    background: rgba(16, 21, 28, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--ink-line);
  }
  .call-bar a {
    display: flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 12px; padding: .75rem .5rem;
    font-weight: 600; font-size: .95rem; line-height: 1.1;
  }
  .call-bar a svg { width: 18px; height: 18px; }
  .call-bar .call { background: var(--accent); color: #fff; }
  .call-bar .book { background: #fff; color: var(--ink); }
}

@media (max-width: 575.98px) {
  .cert-row { display: grid; grid-template-columns: 1fr; }
}

/* repair-or-replace scale */
.rr-scale { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px dashed var(--line-2); }
.rr-track { position: relative; display: flex; height: 12px; border-radius: 12px; overflow: visible; }
.rr-track .seg { height: 100%; }
.rr-track .seg.repair { width: 50%; background: #2fb3a6; border-radius: 12px 0 0 12px; }
.rr-track .seg.both { width: 25%; background: #f2b33d; }
.rr-track .seg.replace { width: 25%; background: var(--heat); border-radius: 0 12px 12px 0; }
.rr-pin {
  position: absolute; top: -6px; left: var(--pos, 50%); width: 6px; height: 24px; margin-left: -3px; border-radius: 4px;
  background: var(--ink); box-shadow: 0 0 0 3px #fff; transition: left .4s var(--ease);
}
.rr-labels { position: relative; height: 1.2rem; margin-top: .5rem; font-size: .74rem; color: var(--muted); }
.rr-labels span { position: absolute; transform: translateX(-50%); }
.rr-labels span:nth-child(1) { left: 0; transform: none; }
.rr-labels span:nth-child(2) { left: 50%; }
.rr-labels span:nth-child(3) { left: 75%; }
.rr-labels span:nth-child(4) { right: 0; transform: none; }
.rr-keys { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .8rem; font-size: .85rem; color: var(--heading); }
.rr-keys span { display: inline-flex; align-items: center; gap: .4rem; }
.rr-keys .k { width: 10px; height: 10px; border-radius: 3px; }
.rr-keys .k.repair { background: #2fb3a6; }
.rr-keys .k.both { background: #f2b33d; }
.rr-keys .k.replace { background: var(--heat); }

/* tune-up cards (plans.html) */
.tune-card { padding-top: 1rem; }
.tune-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 14px; margin-bottom: 1.3rem; }

.form-check-input { width: 1.15em; height: 1.15em; border: 1.5px solid var(--line-2); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-check-input.is-invalid { border-color: #c4321b; }
.form-check-label { color: var(--text); }
