/* CVLongo Mechanical Service — their navy #0D1E40 + ice blue #95C4E6, copper accent, cool white. Clean, airy, rounded. */
:root {
  --navy: #0d1e40;
  --navy-2: #16305e;
  --ice: #95c4e6;
  --ice-l: #e4f0f9;
  --sky: #f2f7fb;
  --white: #ffffff;
  --copper: #c4733a;
  --copper-d: #a65a28;
  --cool: #2b7bd0;
  --text: #13213a;
  --muted: #55657a;
  --line: #d3dee8;
  --display: "Saira", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 12px;
  --shadow: 0 18px 40px -18px rgba(13,30,64,.35);
  --topbar-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--sky); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.015em; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.5em; font: 700 .98rem/1.1 var(--body); letter-spacing: .01em; text-decoration: none;
  border-radius: 10px; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s, color .2s, border-color .2s;
}
.btn--copper { background: var(--copper); color: #fff; box-shadow: 0 10px 24px -10px rgba(196,115,58,.75); }
.btn--copper:hover { background: var(--copper-d); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(196,115,58,.8); }
.btn--line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn--sm { padding: .65em 1.05em; font-size: .9rem; }
.btn--lg { padding: 1.05em 1.65em; }

/* ---------- Progress: a thermometer-style meter ---------- */
.meter { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; pointer-events: none; }
.meter__fill { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--cool), var(--ice) 50%, var(--copper)); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--topbar-h);
  display: flex; align-items: center; gap: 2rem; padding: 0 var(--gutter);
  background: rgba(242,247,251,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.topbar.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(13,30,64,.4); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__logo { display: block; height: 58px; width: auto; border-radius: 8px; background: #0f1c41; padding: 0 6px; box-sizing: content-box; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text b { font: 800 1.45rem/1 var(--display); color: var(--navy); letter-spacing: -.01em; }
.brand__text small { font: 600 .7rem/1.3 var(--body); color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.topnav { display: flex; gap: 1.8rem; }
.topnav a { font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--navy); position: relative; padding: .3em 0; }
.topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s ease; }
.topnav a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 10px; border: 2px solid var(--navy); background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--navy); transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.drawer { position: fixed; z-index: 45; inset: var(--topbar-h) 0 auto 0; background: var(--navy); padding: 1.5rem var(--gutter) 2rem; display: grid; gap: 1.4rem; }
.drawer[hidden] { display: none; }
.drawer nav { display: grid; gap: .2rem; }
.drawer nav a { color: #fff; text-decoration: none; font: 700 2rem/1.3 var(--display); }

/* ---------- Shared type ---------- */
.eyebrow, .kicker { font: 600 .8rem/1.2 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--copper); margin: 0 0 1.1rem; }
.kicker--ice { color: var(--ice); }
.h2 { font-size: clamp(2.3rem, 4.8vw, 4.1rem); color: var(--navy); }
.h2 em { font-style: normal; color: var(--copper); }
.sec__head { max-width: 760px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.sec__lede { font-size: 1.15rem; color: var(--muted); margin-top: 1rem; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln .w { display: inline-block; }

/* ---------- Sections ---------- */
.sec { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.sec--light { background: var(--white); }
.sec--ice { background: var(--ice-l); }
.sec--navy { background: var(--navy); color: #fff; overflow: clip; }
.sec--navy .h2 { color: #fff; }
.sec--navy .h2 em { color: var(--ice); }
.sec--navy .sec__lede { color: rgba(255,255,255,.75); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; padding: calc(var(--topbar-h) + 1.5rem) 0 2rem; display: flex; align-items: center;
  background: radial-gradient(120% 80% at 100% 0%, #dcebf7 0%, transparent 55%), var(--sky); }
.hero__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; width: 100%; }
.hero__title { font-size: clamp(3rem, 6vw, 6rem); font-weight: 800; color: var(--navy); margin-bottom: 1.4rem; font-stretch: 92%; }
.temp-word { font-style: normal; color: var(--copper); }
.hero__lede { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero__lede b { color: var(--navy); }
.hero__btns { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0 1.4rem; }
.hero__note { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--navy); margin: 0; }
.dot-live { width: 10px; height: 10px; border-radius: 2px; background: var(--copper); flex: none; }

.hero__stage { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.scene { position: relative; width: min(100%, calc((100svh - var(--topbar-h) - 140px) * 800 / 560)); aspect-ratio: 800 / 560; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(13,30,64,.45), 0 0 0 1px var(--line); container-type: inline-size; }
.scene > svg { width: 100%; height: 100%; }
.room-label { font: 700 11px var(--body); letter-spacing: 1.5px; fill: #9aa7b4; }
.out-temp { font: 700 13px var(--body); letter-spacing: 1px; fill: var(--muted); }
.out-val { fill: var(--navy); }
.flow { stroke: var(--cool); opacity: 0; }
.puffs { stroke: var(--cool); opacity: 0; }

.stat { position: absolute; left: 3%; top: 4%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--navy); box-shadow: 0 14px 30px -12px rgba(13,30,64,.6); display: grid; place-items: center; }
.stat svg { position: absolute; inset: 6%; width: 88%; height: 88%; }
.stat__arc { stroke: var(--cool); transition: stroke .3s; }
.stat__read { position: relative; display: flex; flex-direction: column; align-items: center; color: #fff; line-height: 1; }
.stat__temp { font: 700 clamp(1.2rem, 6.4cqi, 3rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.stat__temp::after { content: "°"; font-size: .6em; vertical-align: top; }
.stat__mode { font: 700 clamp(.45rem, 1.35cqi, .68rem)/1 var(--body); letter-spacing: .14em; white-space: nowrap; color: var(--ice); margin-top: .35em; }
.stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9); opacity: 0; padding: .55em 1em; border-radius: 12px; background: rgba(13,30,64,.92); color: #fff; font: 700 clamp(1rem, 4.4cqi, 2.1rem)/1.1 var(--display); white-space: nowrap; box-shadow: 0 20px 40px -16px rgba(13,30,64,.6); }

.modes { list-style: none; display: flex; gap: 1.8rem; padding: 0; margin: .2rem 0 0; }
.modes li { font: 700 1rem var(--display); letter-spacing: .06em; text-transform: uppercase; color: #a3b1bf; padding-bottom: .25rem; border-bottom: 3px solid transparent; transition: color .25s, border-color .25s; }
.modes li.is-on[data-mode="cool"] { color: var(--cool); border-bottom-color: var(--cool); }
.modes li.is-on[data-mode="heat"] { color: var(--copper); border-bottom-color: var(--copper); }
.modes li.is-on[data-mode="clean"] { color: var(--navy); border-bottom-color: var(--ice); }
.stage__hint { margin: 0; font: 600 .78rem var(--body); text-transform: uppercase; letter-spacing: .18em; color: var(--muted); min-height: 2.4em; display: flex; align-items: center; }
.hint--scroll { transition: opacity .3s; }
.hint--scroll.is-done { opacity: 0; }
.hint--scroll::after { content: " ↓"; display: inline-block; animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
.replay { font: 700 .82rem var(--body); border: 2px solid var(--navy); background: transparent; color: var(--navy); border-radius: 10px; padding: .55em 1em; cursor: pointer; }

/* ---------- Residential ---------- */
.svc { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.svc__item { position: relative; padding: 2rem 1.7rem 1.8rem; border-radius: var(--r); background: var(--sky); border: 1px solid var(--line); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, background-color .3s; }
.svc__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--cool), var(--ice), var(--copper)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s ease; }
.svc__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: #fff; }
.svc__item:hover::before { transform: scaleX(1); }
.svc__item svg { width: 52px; height: 52px; margin-bottom: 1.3rem; fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.svc__item svg .cu { stroke: var(--copper); }
.svc__item h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: .45rem; }
.svc__item p { margin: 0; color: var(--muted); }

/* ---------- Commercial ---------- */
.comm { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.comm__list { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 1rem; }
.comm__list li { display: flex; gap: 1.2rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--r); background: rgba(255,255,255,.05); border: 1px solid rgba(149,196,230,.22); }
.comm__n { flex: none; width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; background: var(--ice); color: var(--navy); font: 800 1.9rem/1 var(--display); }
.comm__n--icon svg { width: 34px; height: 34px; fill: none; stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.comm__list h3 { font-size: 1.4rem; color: #fff; margin-bottom: .2rem; }
.comm__list p { margin: 0; color: rgba(255,255,255,.7); }
.clock { display: flex; flex-direction: column; align-items: center; }
.clock svg { width: min(100%, 360px); }
.clock__cap { margin: 1rem 0 0; font: 600 1rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ice); }
.clock__cap b { font: 800 1.6rem var(--display); color: #fff; margin-right: .2em; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.phone { display: inline-block; white-space: nowrap; font: 800 clamp(2.4rem, 5.4vw, 4.6rem)/1 var(--display); color: var(--navy); text-decoration: none; margin: 1.2rem 0 1rem; letter-spacing: -.01em; transition: color .2s; }
.phone:hover { color: var(--copper); }
.contact__lede { font-size: 1.12rem; color: var(--muted); max-width: 32em; }
.card { background: #fff; border-radius: 18px; padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card h3 { font-size: 1.6rem; color: var(--navy); margin-bottom: .8rem; }
.card__logo { display: block; height: 72px; width: auto; background: #0f1c41; padding: 6px 10px; border-radius: 10px; box-sizing: content-box; margin-bottom: 1.2rem; }
.card address { font-style: normal; font-size: 1.12rem; font-weight: 600; margin-bottom: 1.2rem; }
.card dl { margin: 0; display: grid; gap: .55rem; }
.card dl div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.card dt { color: var(--muted); }
.card dd { margin: 0; font-weight: 700; color: var(--navy); }
.card dd a { text-decoration: none; color: var(--copper); }

.foot { background: #0f1c41; color: rgba(255,255,255,.7); padding: 2rem 0 5.5rem; font-size: .88rem; }
.foot__logo { height: 64px; width: auto; flex-basis: 100%; max-width: 164px; margin-bottom: .4rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; }
.foot p { margin: 0; }
.foot a { color: var(--ice); text-decoration: none; font-weight: 700; }

.float-cta { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; transition: opacity .3s, transform .3s, box-shadow .2s, background-color .2s; }
.js .float-cta { opacity: 0; pointer-events: none; transform: translateY(16px); }
.js .float-cta.is-shown { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .topnav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 899px) {
  :root { --topbar-h: 66px; }
  .topbar { gap: .8rem; }
  .brand__logo { height: 46px; }
  .hero { min-height: 0; padding-top: calc(var(--topbar-h) + 2rem); padding-bottom: 3.5rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .scene { width: 100%; }
  .svc { grid-template-columns: 1fr; }
  .comm, .contact { grid-template-columns: 1fr; }
  .clock svg { width: 220px; }
}
@media (max-width: 460px) {
  .topbar .btn--sm { display: none; }
  .hero__btns .btn { width: 100%; }
  .brand__text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
