/* ==========================================================================
   Two-page layout: home (who we are + choose a service) and one page per service (pick the unit, pick the problem, book).
   Loaded after styles.css and features.css. Everything here uses the same colour tokens, so light / dark / time of day just work.
   ========================================================================== */

/* the plate under the header hangs over the page: leave room for it everywhere */
main { padding-top: var(--subnav-h); }
.mode__switch a { text-decoration: none; }
html[data-mode="hvac"] { --svc-ring: #22d3ee; }
html[data-mode="appliance"] { --svc-ring: #14b8a6; }
html:not([data-mode="hvac"]):not([data-mode="appliance"]) { --svc-ring: var(--blue); }

/* ---------- time of day: the glow behind the top block changes with the visitor's clock (set by an inline script as data-tod) ---------- */
:root { --tod-glow: radial-gradient(70% 90% at 85% 0%, rgba(80, 160, 255, .22), transparent 62%); --tod-text: "Hello"; }
html[data-tod="dawn"]  { --tod-glow: radial-gradient(75% 95% at 85% 0%, rgba(255, 170, 120, .36), transparent 62%), radial-gradient(55% 65% at 0% 100%, rgba(255, 120, 160, .2), transparent 60%); }
html[data-tod="day"]   { --tod-glow: radial-gradient(75% 95% at 85% 0%, rgba(70, 160, 255, .3), transparent 62%), radial-gradient(45% 55% at 0% 100%, rgba(255, 228, 140, .26), transparent 60%); }
html[data-tod="dusk"]  { --tod-glow: radial-gradient(75% 95% at 85% 0%, rgba(255, 140, 60, .34), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(150, 90, 220, .3), transparent 60%); }
html[data-tod="night"] { --tod-glow: radial-gradient(75% 95% at 85% 0%, rgba(70, 100, 230, .34), transparent 60%), radial-gradient(45% 55% at 0% 100%, rgba(25, 45, 130, .5), transparent 60%); }
.intro::before, .svchero::before { content: ""; position: absolute; inset: 0; background: var(--tod-glow); pointer-events: none; transition: background .6s ease; }

/* ---------- home: who we are ---------- */
.intro { position: relative; overflow: clip; padding-block: clamp(1.25rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem); }
.intro__in { position: relative; display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .intro__in { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; } }
.intro__kicker { margin: 0 0 .6rem; font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.intro h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: .94; }
.intro h1 span, .svchero h1 span { display: block; color: var(--red-text); }
.intro__lead { margin-top: 1rem; max-width: 36rem; font-size: 1.15rem; color: var(--muted); }
.intro__facts { display: flex; flex-wrap: wrap; gap: .5rem .7rem; margin-top: 1rem; }
.intro__facts li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: .92rem; }
.intro__facts .icon { color: var(--blue-text); width: 1.1em; height: 1.1em; }
.intro__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.readmore { margin-top: .9rem; }
.readmore summary { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; cursor: pointer; list-style: none; font-weight: 700; color: var(--blue-text); }
.readmore summary::-webkit-details-marker { display: none; }
.readmore summary .icon { transition: transform .2s ease; }
.readmore[open] summary .icon { transform: rotate(180deg); }
.readmore__body { display: grid; gap: .6rem; max-width: 36rem; color: var(--muted); }

/* photo slideshow */
.slides { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: #07102b; box-shadow: var(--shadow-md); }
.slides__track { position: relative; aspect-ratio: 4 / 3; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; }
.slide.is-on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.slide figcaption { position: absolute; inset: auto 0 0; padding: 2.4rem 1rem .9rem; color: #fff; font-weight: 700; font-size: 1.05rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.slides__ctl { position: absolute; right: .6rem; bottom: .6rem; z-index: 3; display: flex; align-items: center; gap: .35rem; }
.slides__btn { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: #0b1b44; cursor: pointer; }
.slides__btn .icon-left { transform: rotate(90deg); } .slides__btn .icon-right { transform: rotate(-90deg); }
.slides__dots { display: inline-flex; gap: .3rem; padding: .35rem .5rem; border-radius: 999px; background: rgba(0, 0, 0, .45); }
.slides__dots button { width: .65rem; height: .65rem; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; }
.slides__dots button[aria-current="true"] { background: #fff; }
.slides__btn:focus-visible, .slides__dots button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* the short booking bar */
.quickwrap { padding-block: .25rem 1.4rem; position: relative; z-index: 2; }
.quickbar--small { padding: .9rem 1rem; gap: .6rem; margin: 0; }
.quickbar--small h2 { font-size: 1.55rem; }
.quickbar--small .quickbar__title p { font-size: .86rem; margin: 0; }
.quickbar--small .quickbar__fine { grid-column: 1 / -1; margin: 0; font-size: .74rem; line-height: 1.4; color: var(--muted); }
.quickbar--small .quickbar__fine p { display: inline; margin: 0; }
.fine { display: inline; }
.fine summary { display: inline; cursor: pointer; font-weight: 700; color: var(--blue-text); }
.fine[open] > span { display: block; margin-top: .3rem; }

/* home: the choice of service */
.choose { padding-block: clamp(1.5rem, 4vw, 3rem); }
.choose__grid { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .choose__grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }
.choose .pick { padding: 1.1rem 1.2rem 1.15rem; }
.choose .pick__txt b { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.pick__imgs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .3rem; }
.pick__imgs img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .28); background: #07102b; }
.choose .pick__go { justify-content: flex-end; border-top: 0; padding-top: 0; }
.choose .pick__choose { margin-left: 0; }

/* service pages: the intro line */
.svchero { position: relative; overflow: clip; padding-block: clamp(1.1rem, 3.5vw, 2.4rem) clamp(1rem, 3vw, 1.8rem); }
.svchero__in { position: relative; display: grid; gap: 1.2rem; align-items: center; }
@media (min-width: 800px) { .svchero__in { grid-template-columns: 1.4fr .6fr; gap: 2.5rem; } }
.svchero h1 { font-size: clamp(2.5rem, 6.5vw, 4.4rem); line-height: .95; }
.svchero__photo { display: none; }
@media (min-width: 800px) { .svchero__photo { display: block; max-width: 11rem; justify-self: end; } .svchero__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 999px 999px 18px 18px; box-shadow: var(--shadow-md); border: 3px solid var(--svc-ring); } }

/* steps 1 and 2 */
.pickstep, .detailstep { padding-block: clamp(1.4rem, 4vw, 2.4rem); }
.stepl { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.55rem, 3.6vw, 2.2rem); line-height: 1; text-transform: uppercase; }
.stepl b { display: inline-grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--text); color: var(--surface); font: 800 1.1rem var(--font-body); }
.ugrid { display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .ugrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; } }
@media (max-width: 699px) { .ugrid > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .4rem); } }
.ucard { all: unset; box-sizing: border-box; display: grid; gap: .35rem; width: 100%; padding: .45rem .45rem .7rem; border: 3px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; text-align: center; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.ucard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ucard:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ucard__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #07102b; }
.ucard__img img { width: 100%; height: 100%; object-fit: cover; }
.ucard__name { padding-inline: .2rem; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.05; text-transform: uppercase; }
.ucard[aria-pressed="true"] { border-color: var(--svc-ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--svc-ring) 40%, transparent), 0 0 24px 2px color-mix(in srgb, var(--svc-ring) 55%, transparent); }
.ugrid__note { margin-top: .9rem; color: var(--muted); }

.detail { display: grid; gap: 1.4rem; align-items: start; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.05fr .95fr; gap: 2.4rem; } .detail .stage { position: sticky; top: calc(var(--header-h) + var(--subnav-h) + 1rem); } }
.detailstep.is-flash .detail { animation: flash 1.2s ease; }
@keyframes flash { 0% { outline: 4px solid var(--svc-ring); outline-offset: 10px; border-radius: var(--r-lg); } 100% { outline: 4px solid transparent; outline-offset: 10px; } }
.dpanel h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.dpanel__blurb { margin: .35rem 0 1rem; color: var(--muted); font-size: 1.05rem; }
.problems { display: grid; gap: .6rem; }
.prob { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .9rem; align-items: center; width: 100%; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.prob:hover { border-color: var(--svc-ring); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.prob:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.prob__t { grid-area: 1 / 1; font-weight: 800; font-size: 1.08rem; line-height: 1.25; }
.prob__j { grid-area: 2 / 1; color: var(--muted); font-size: .9rem; }
.prob__j i { font-style: normal; }
.prob__p { grid-area: 1 / 2; text-align: right; white-space: nowrap; font-size: .85rem; color: var(--muted); }
.prob__p b { font-family: var(--font-display); font-size: 1.7rem; color: var(--blue-text); }
.prob__p em { font-style: normal; font-size: .75rem; }
.prob__go { grid-area: 2 / 2; justify-self: end; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border-radius: 999px; background: var(--svc-ring); color: #04162f; font-weight: 800; font-size: .85rem; }
.prob__go .icon { width: 1em; height: 1em; }
.dpanel__else { margin-top: .8rem; }

.stage { margin: 0; }
.stage__box { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--r-lg); background: #06102c; box-shadow: var(--shadow-md); }
.stage__img, .stage__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.stage__canvas { touch-action: pan-y; cursor: grab; }
.stage__canvas.is-drag { cursor: grabbing; }
.power { position: absolute; left: .8rem; bottom: .8rem; z-index: 3; display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem; border: 2px solid rgba(255, 255, 255, .55); border-radius: 999px; background: rgba(6, 16, 44, .8); color: #fff; font: 800 1rem var(--font-body); letter-spacing: .06em; cursor: pointer; backdrop-filter: blur(6px); }
.power__dot { width: .95rem; height: .95rem; border-radius: 50%; background: #34d399; box-shadow: 0 0 12px #34d399; }
.power[data-state="off"] .power__dot { background: #ef4444; box-shadow: 0 0 12px #ef4444; }
.stage__img[hidden], .stage__canvas[hidden], .power[hidden] { display: none; }
.power:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.stage.is-loading .stage__box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%); animation: shine-sweep 1.6s linear infinite; }

/* all prices */
.plist { display: grid; gap: .5rem; max-width: 52rem; }
.prow { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .85rem 1.1rem; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.prow:hover { border-color: var(--svc-ring); transform: translateY(-2px); }
.prow:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.prow__t { font-weight: 800; line-height: 1.25; }
.prow__t small { display: block; margin-top: .1rem; font-weight: 400; font-size: .88rem; color: var(--muted); }
.prow__p { flex: none; text-align: right; white-space: nowrap; }
.prow__p small { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prow__p b { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--blue-text); }
.prow__p em { display: block; font-style: normal; font-size: .72rem; color: var(--muted); }
.fine { font-size: .82rem; color: var(--muted); }
.pricestep .fine { margin-top: 1rem; max-width: 52rem; }

/* contact */
.contact__cards--3 { display: grid; gap: .9rem; grid-template-columns: 1fr; max-width: 62rem; margin-inline: auto; }
@media (min-width: 800px) { .contact__cards--3 { grid-template-columns: repeat(3, 1fr); } }

/* motion: respect people who asked for less */
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } .detailstep.is-flash .detail { animation: none; } .stage.is-loading .stage__box::after { animation: none; } }

/* ---------- booking pop-up: one question per screen ---------- */
.wz-units { display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: .8rem; }
@media (min-width: 560px) { .wz-units { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wz-units--one { grid-template-columns: 1fr; }
@media (min-width: 560px) { .wz-units--one { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wz-units--one .wz-unit { grid-column: 1 / -1; grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: .6rem .9rem; } }
.wz-unit { all: unset; box-sizing: border-box; display: grid; gap: .35rem; justify-items: center; padding: .4rem .4rem .6rem; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--bg); cursor: pointer; text-align: center; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.wz-unit:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.wz-unit:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wz-unit__img { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #07102b; }
.wz-unit__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wz-unit__ic { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--surface-2); color: var(--blue-text); }
.wz-unit__ic .icon { width: 2.2rem; height: 2.2rem; }
.wz-unit__name { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; line-height: 1.05; text-transform: uppercase; padding-inline: .15rem; }
.wz-switch { margin: .2rem 0 .8rem; }

.wz-recap { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .7rem; margin: 0 0 1rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); font-size: .95rem; }
.wz-recap img { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; }
.wz-recap__t { flex: 1 1 12rem; min-width: 0; }
.wz-recap__sep { opacity: .5; }
.wz-recap .btn-link { padding: .25rem .4rem; margin-left: auto; }
.wz-recap:empty { display: none; }

.wz-probs { display: grid; gap: .55rem; }
.wz-prob { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .05rem .8rem; align-items: center; width: 100%; padding: .8rem 1rem; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--bg); cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.wz-prob:hover { border-color: var(--blue); transform: translateY(-2px); }
.wz-prob:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wz-prob__t { grid-area: 1 / 1; font-weight: 800; line-height: 1.25; }
.wz-prob__j { grid-area: 2 / 1 / 2 / 3; color: var(--muted); font-size: .88rem; }
.wz-prob__p { grid-area: 1 / 2; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--blue-text); white-space: nowrap; }
.wz-prob--soft { border-style: dashed; }

.wz-card { margin-bottom: .9rem; padding: .85rem 1rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.wz-card[hidden] { display: none; }
.wz-card__t { font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; margin: 0 0 .5rem; }
.wz-card .field { margin-bottom: .4rem; }
.wz-card .wz-grid { margin-bottom: .3rem; }
.wz-more { margin: 0 0 .9rem; }
.wz-more > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--blue-text); }
.wz-fine { margin: .6rem 0 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.wz-hint--warn { color: var(--red-text); }
.wizard__foot .btn { flex: 1 1 0; justify-content: center; }
.wizard__foot #wz-back { flex: 0 0 auto; }

/* the plate and header stay readable when text scrolls under them */
.site-header { background: color-mix(in srgb, var(--bg) 93%, transparent); }
.subnav { background: color-mix(in srgb, var(--bg) 95%, transparent); }

/* ---------- time of day: sky, sun or moon behind the top block, greeting above the title ---------- */
:root { --tod-sky: linear-gradient(170deg, rgba(90, 170, 255, .3), transparent 80%); --tod-orb: #ffe27a; --tod-orb-glow: rgba(255, 214, 90, .55); --tod-orb-y: 14%; }
html[data-tod="dawn"]  { --tod-sky: linear-gradient(170deg, rgba(255, 190, 140, .42), rgba(255, 140, 170, .24) 48%, transparent 85%); --tod-orb: #ffc08a; --tod-orb-glow: rgba(255, 150, 110, .6); --tod-orb-y: 52%; }
html[data-tod="day"]   { --tod-sky: linear-gradient(170deg, rgba(90, 170, 255, .36), rgba(160, 215, 255, .2) 50%, transparent 88%); --tod-orb: #ffe27a; --tod-orb-glow: rgba(255, 214, 90, .6); --tod-orb-y: 10%; }
html[data-tod="dusk"]  { --tod-sky: linear-gradient(170deg, rgba(255, 120, 60, .38), rgba(170, 80, 200, .3) 52%, transparent 88%); --tod-orb: #ff9a52; --tod-orb-glow: rgba(255, 110, 50, .6); --tod-orb-y: 56%; }
html[data-tod="night"] { --tod-sky: radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1.5px 1.5px at 38% 12%, #fff, transparent), radial-gradient(1px 1px at 64% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 82% 16%, #fff, transparent), radial-gradient(1px 1px at 90% 44%, #fff, transparent), radial-gradient(1px 1px at 24% 52%, #fff, transparent), linear-gradient(170deg, rgba(30, 50, 140, .6), rgba(10, 20, 70, .42) 55%, transparent 92%); --tod-orb: #e8eefc; --tod-orb-glow: rgba(160, 190, 255, .5); --tod-orb-y: 12%; }
.intro::before, .svchero::before { background: var(--tod-sky), var(--tod-glow); }
.intro::after, .svchero::after { content: ""; position: absolute; z-index: 0; top: var(--tod-orb-y); right: clamp(.5rem, 5vw, 5rem); width: clamp(64px, 10vw, 130px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 36%, #fff, var(--tod-orb) 62%); box-shadow: 0 0 70px 26px var(--tod-orb-glow); opacity: .85; pointer-events: none; transition: top .6s ease; }
html[data-tod="night"] .intro::after, html[data-tod="night"] .svchero::after { background: radial-gradient(circle at 62% 38%, transparent 0 34%, var(--tod-orb) 35%); transform: rotate(-20deg); }
@media (max-width: 799px) { .intro::after, .svchero::after { opacity: .5; width: 56px; top: 1.2rem; right: 1rem; } }
.intro__in, .svchero__in { z-index: 1; }
.tod { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .7rem; padding: .3rem .85rem .3rem .4rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); font-weight: 700; font-size: .92rem; }
.tod__ic { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--tod-orb); color: #3a2a00; }
.tod__ic .icon { width: 1.05rem; height: 1.05rem; }
.tod__moon { display: none; }
html[data-tod="night"] .tod__sun { display: none; }
html[data-tod="night"] .tod__moon { display: block; }
html[data-tod="night"] .tod__ic { color: #0b1b44; }
.intro::after, .svchero::after { top: 1.4rem; width: clamp(56px, 7vw, 92px); box-shadow: 0 0 56px 20px var(--tod-orb-glow); }
html[data-tod="night"] .intro::after, html[data-tod="night"] .svchero::after { background: none; transform: none; box-shadow: inset -16px 6px 0 0 var(--tod-orb), 0 0 50px 14px var(--tod-orb-glow); }
@media (max-width: 799px) { .intro::after, .svchero::after { width: 44px; top: .9rem; } }
html[data-tod="night"] .intro::after, html[data-tod="night"] .svchero::after { box-shadow: inset -16px 6px 0 0 var(--tod-orb), 0 0 36px 6px rgba(160, 190, 255, .28); }
@media (max-width: 799px) { .svchero::after { display: none; } }
/* the pop-up: smaller pictures, a compact "something else" row */
.wz-unit__img, .wz-unit__ic { aspect-ratio: 16 / 10; }
.wz-units--one { grid-template-columns: 1fr; }
.wz-units--one .wz-unit { grid-column: 1 / -1; grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: .8rem; text-align: left; padding: .6rem .9rem; }
.wz-units--one .wz-unit__ic { width: 3rem; aspect-ratio: 1; }

/* the plate hangs below the header: exact heights (page.js re-measures them on load and resize) */
:root { --subnav-h: 103px; }
@media (min-width: 960px) { :root { --subnav-h: 73px; } }
@media (max-height: 520px) and (orientation: landscape) { :root { --subnav-h: 0px; } }

/* the shine runs behind the labels, so the text stays crisp while it passes */
.pick.pick--hvac > *, .pick.pick--app > *, .mode__switch :is(button, a)[data-set-mode] > * { position: relative; z-index: 3; }

/* the problem caption on the model while a problem card is pointed at */
.stage__cap { position: absolute; left: .8rem; right: .8rem; top: .8rem; z-index: 3; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; margin: 0; padding: .45rem .8rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 12px; background: rgba(6, 16, 44, .82); color: #fff; font-size: .92rem; line-height: 1.3; backdrop-filter: blur(6px); opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.stage__cap.is-on { opacity: 1; transform: none; }
.stage__cap-k { padding: .05rem .5rem; border-radius: 999px; background: #f59e0b; color: #2a1800; font-weight: 800; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.stage__cap i { font-style: normal; color: #9ee7ff; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .stage__cap { transition: none; } }

/* ---------- problems shown on the model ---------- */
@media (min-width: 900px) { .detail .stage { position: static; } .detail .stage-slot { position: sticky; top: calc(var(--header-h) + var(--subnav-h) + 1rem); } }
.stage__cap.has-book { pointer-events: none; padding-right: .5rem; }
.stage__book { pointer-events: auto; margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; min-height: 40px; padding: .35rem .9rem; border: 0; border-radius: 999px; background: var(--svc-ring); color: #04162f; font: 800 .95rem var(--font-body); cursor: pointer; }
.stage__book .icon { width: 1em; height: 1em; }
.stage__book:focus-visible, .stage__x:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.stage__x { position: absolute; right: .6rem; bottom: .6rem; z-index: 4; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(6, 16, 44, .8); color: #fff; cursor: pointer; }
.stage__x[hidden] { display: none; }
.prob.is-picked { border-color: var(--svc-ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--svc-ring) 45%, transparent); }
.prob.is-picked .prob__go { background: #fff; color: #04162f; box-shadow: 0 0 0 2px var(--svc-ring); }
/* a phone: the model is pinned at the bottom of the screen while a problem is shown on it */
.stage.is-peek { position: fixed; z-index: 85; left: .6rem; right: .6rem; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); margin: 0; }
.stage.is-peek .stage__box { aspect-ratio: auto; height: clamp(180px, 31vh, 250px); border: 2px solid var(--svc-ring); box-shadow: 0 12px 34px rgba(0, 0, 0, .55); }
.stage.is-peek .power { display: none; }
@media (min-width: 820px) { .stage.is-peek { bottom: .8rem; } }

/* booking pop-up: a day that is closed or full looks closed, and a tap on a phone never leaves a hover frame behind */
.when__opt label:hover { border-color: var(--line); transform: none; }
@media (hover: hover) { .when__opt label:hover { border-color: var(--blue); transform: translateY(-2px); } }
.when__opt input:disabled { cursor: not-allowed; }
.when__opt input:disabled + label { opacity: .55; cursor: not-allowed; border-style: dashed; background: var(--surface-2); transform: none; box-shadow: none; }
.when__opt input:disabled + label:hover { border-color: var(--line); transform: none; }
@media (hover: none) { .wz-unit:hover, .wz-prob:hover { border-color: var(--line); transform: none; box-shadow: none; } }
.wz-email-note { margin-top: .35rem; }

/* landscape phones: the header scrolls away, and the plate (Heating / Appliances + the call fee) goes with it instead of disappearing */
@media (max-height: 520px) and (orientation: landscape) {
  .subnav { display: block; position: static; }
  .js .subnav__in { padding-block: .35rem; }
  main { padding-top: 0; }
}

/* small-screen polish from the QA pass: readable brand line, 24px checkboxes, tappable slideshow dots and "Read more" */
@media (max-width: 400px) { .brand__sub { font-size: .66rem; letter-spacing: .08em; } }
.check input { width: 24px; height: 24px; }
.slides__dots { gap: 0; padding: 0 .2rem; }
.slides__dots button { position: relative; width: 24px; height: 24px; background: transparent; }
.slides__dots button::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.slides__dots button[aria-current="true"]::before { background: #fff; }
.fine summary { display: inline-block; padding: .5rem .25rem; margin: -.5rem 0; }
.readmore summary, .wz-more > summary { min-height: 44px; }

/* ---- "Pick a day and time" block ---- */
.schedstep { background: var(--surface-2); }
.sched { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; max-width: 62rem; margin-inline: auto; }
.sched__col, .sched__side { min-width: 0; }
.sched__col { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.sched__lab { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-weight: 800; }
.sched__lab b { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--blue); color: #fff; font-size: .9rem; }
.sched__lab span { font-weight: 500; font-size: .85rem; color: var(--muted); }
.sched__days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin: 0 0 1.1rem; padding: .2rem; }
.sched__day { all: unset; box-sizing: border-box; display: grid; gap: .1rem; min-width: 0; padding: .65rem .9rem; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--bg); text-align: center; cursor: pointer; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.sched__day b { font-size: 1rem; }
.sched__day span { font-size: .8rem; color: var(--muted); }
.sched__day:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sched__day[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--blue) 35%, transparent); }
.sched__day[aria-pressed="true"] span { color: rgba(255, 255, 255, .85); }
.sched__day:focus-visible, .sched__chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sched__day.is-full, .sched__day:disabled { cursor: not-allowed; opacity: .55; background: var(--surface-2); }
.sched__day.is-full:hover { border-color: var(--line); transform: none; box-shadow: none; }
.sched__day.is-full b { text-decoration: line-through; }
.sched__times { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.25rem; }
.sched__chip { all: unset; box-sizing: border-box; display: inline-flex; flex-direction: column; align-items: center; min-width: 8.5rem; padding: .6rem 1.1rem; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); font-weight: 700; line-height: 1.2; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.sched__chip small { font-size: .72rem; font-weight: 500; opacity: .75; }
.sched__chip:hover { border-color: var(--blue); }
.sched__chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.sched__chip:disabled { opacity: .5; cursor: not-allowed; text-decoration: line-through; background: var(--surface-2); }
.sched__chip:disabled:hover { border-color: var(--line); }
.sched__chip:disabled small { text-decoration: none; display: inline-block; }
.sched__go { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.sched__go .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.sched__hint { margin: 0; font-weight: 600; color: var(--muted); }
.sched__none { margin: 0; padding: .75rem 1rem; border-radius: var(--r-md); background: var(--surface-2); color: var(--muted); }
.sched__hours { margin: 1rem 0 0; font-size: .88rem; color: var(--muted); }
.sched__side { display: grid; align-content: start; gap: .7rem; padding: 1.25rem; border: 2px solid var(--red); border-radius: var(--r-lg); background: var(--surface); }
.sched__side h3 { margin: 0; font-size: 1.15rem; color: var(--red-text); }
.sched__side p { margin: 0; font-size: .95rem; color: var(--muted); }
.sched__side .btn { justify-content: center; }
.wz-pre { margin: 0 0 .9rem; padding: .55rem .8rem; border-radius: var(--r-md); background: color-mix(in srgb, var(--blue) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line)); font-weight: 700; font-size: .92rem; }
@media (min-width: 540px) { .sched__days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .sched { grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 1fr); align-items: start; } }
@media (max-width: 520px) { .sched__col, .sched__side { padding: 1rem; } .sched__chip { flex: 1 1 calc(50% - .4rem); min-width: 0; } .sched__go .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .sched__day, .sched__chip { transition: none; } .sched__day:hover { transform: none; } }

/* ---- Logo lockup as on the technician's shirt: wide bold name, "— SOLUTIONS LLC —", and the red | blue trade line ---- */
.brand { gap: .6rem; }
.brand__mark { width: 52px; height: 52px; }
.brand__text { display: grid; justify-items: center; text-align: center; gap: 3px; line-height: 1; }
.brand__name { font-family: "Montserrat", var(--font-display), system-ui, sans-serif; font-weight: 800; font-size: clamp(1.05rem, 5.2vw, 1.55rem); letter-spacing: .02em; line-height: 1; }
.brand__sub { display: inline-flex; align-items: center; gap: .28rem; margin: 0; font-family: "Montserrat", Inter, system-ui, sans-serif; font-weight: 600; font-size: clamp(.56rem, 2.6vw, .64rem); letter-spacing: .1em; text-transform: uppercase; color: inherit; white-space: nowrap; }
.brand__sub::before, .brand__sub::after { content: ""; flex: none; width: .6rem; height: 1.5px; background: currentColor; }
.brand__tag { display: inline-flex; align-items: center; gap: .32rem; font-family: "Montserrat", Inter, system-ui, sans-serif; font-weight: 700; font-size: clamp(.56rem, 2.6vw, .64rem); letter-spacing: .1em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.brand__tag b { font-weight: 700; }
.brand__tag .t-red { color: var(--tag-red); }
.brand__tag .t-blue { color: var(--tag-blue); }
.brand__tag i { flex: none; width: 1px; height: .85em; background: currentColor; opacity: .55; }
.footer .brand { --tag-red: #ff6b4a; --tag-blue: #5aadff; }
.footer .brand__sub { color: #dfe6fa; }
@media (max-width: 520px) { .brand__mark { width: 40px; height: 40px; } .brand { gap: .45rem; } }
@media (max-width: 350px) { .brand__sub, .brand__tag { letter-spacing: .04em; } .brand__sub::before, .brand__sub::after { width: .35rem; } }
