/* Clear Air inner pages: service and area detail pages, both hubs, and the homepage's new links.
   Loaded after style.css and built only from its tokens. */

/* Homepage links into the new pages */
.col li a, .area__cols li a { color: var(--text); text-decoration-color: rgba(11, 70, 81, .35); text-decoration-thickness: 1px; }
.col li a:hover, .area__cols li a:hover { color: var(--heat); text-decoration-color: currentColor; }
.services__all, .area__all { margin-top: 24px; font-weight: 700; }
.season__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; }
.season__links a { margin-top: 0; }

/* Breadcrumb */
.crumbs { background: var(--sky); border-bottom: 1px solid var(--line); font-size: .9375rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 12px 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 7px; height: 7px; margin: 0 12px 0 10px; border-top: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); transform: rotate(45deg); }
.crumbs a { color: var(--teal); }
.crumbs [aria-current] { color: var(--muted); }

/* Page hero: the homepage's photo band and overlapping card, shorter */
.phero { padding-bottom: 56px; }
.phero .hero__media img { height: clamp(220px, 30vw, 400px); }
.phero .hero__media .ph-inspection { object-position: 30% 30%; }
.phero .hero__media .ph-maintenance { object-position: 50% 52%; }
/* Service heroes: keep each subject above the overlapping card. */
.phero .hero__media .ph-furnace { object-position: 50% 55%; }
.phero .hero__media .ph-heat-pump { object-position: 50% 30%; }
.phero .hero__media .ph-thermostat { object-position: 50% 25%; }
.phero .hero__media .ph-service-hoses { object-position: 50% 100%; }
.phero .hero__media .ph-ac-gauges { object-position: 50% 72%; }
.phero .hero__media .ph-mini-split { object-position: 50% 12%; }
.phero .hero__media .ph-ac-install { object-position: 50% 68%; }
.phero .hero__media .ph-filter-change { object-position: 50% 45%; }
.phero .hero__media .ph-dirty-filter { object-position: 50% 30%; }
.phero .hero__media .ph-hygrometer { object-position: 50% 50%; }
.phero .hero__media .ph-floor-vent { object-position: 50% 100%; }
.phero .hero__card { margin-top: clamp(-150px, -9vw, -80px); max-width: 760px; }
.phero h1 { font-size: clamp(1.875rem, 1.35rem + 1.9vw, 2.875rem); }
.phero__tel { color: var(--muted); }
.phero__tel b { color: var(--teal); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Detail layout */
.page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 64px; align-items: start; padding-block: 72px 96px; }
.page__main { max-width: 72ch; }
.page__main > .gas { margin: 0 0 48px; }
.pblock + .pblock, .gas + .pblock { margin-top: 56px; }
.pblock h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; }
.pblock > p { margin-top: 12px; }
.pnote { margin-top: 18px; color: var(--muted); }

.dots, .ticks { display: grid; gap: 10px; margin-top: 18px; }
.dots li { padding-left: 20px; position: relative; }
.dots li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sky-2); box-shadow: inset 0 0 0 2px var(--teal-2); }
.ticks li { padding: 12px 16px 12px 46px; position: relative; background: var(--sky); border-radius: 12px; font-weight: 700; color: var(--teal); }
.ticks li::before { content: ""; position: absolute; left: 18px; top: 1.05em; width: 12px; height: 7px; border-left: 2px solid var(--teal-2); border-bottom: 2px solid var(--teal-2); transform: rotate(-45deg); }

.steps { counter-reset: step; list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--sky-2); }
.steps li:last-child { padding-bottom: 0; }

#carbon-monoxide { padding: 28px; background: var(--heat-bg); border-radius: 16px; }
#carbon-monoxide h2 { color: var(--heat); font-size: 1.375rem; }

.pblock--split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; padding: 28px; background: var(--sky); border-radius: 16px; }
.pblock--split h2 { font-size: 1.3125rem; }

.faqs { margin-top: 12px; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 44px 18px 0; font-weight: 700; color: var(--teal); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; background: var(--heat); transition: transform .2s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--heat); }
.faq p { padding: 0 0 20px; max-width: 64ch; }

/* Sidebar */
.page__side { display: grid; gap: 20px; }
.side { padding: 24px; background: var(--sky); border-radius: 16px; }
.side > h2 { font-size: 1.125rem; }
.side > p { margin-top: 6px; color: var(--muted); }
.side .zip { padding: 0; background: none; border-radius: 0; }
.zip h2 { font-size: 1.25rem; }
.rlinks { display: grid; gap: 14px; margin-top: 14px; }
.rlinks a, .sgroup a, .arealist a { font-weight: 700; }
.rlinks span, .sgroup span { display: block; color: var(--muted); font-size: .9375rem; }
.side__all { margin-top: 16px; font-weight: 700; }
.rlinks--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; margin-top: 18px; }
.rlinks--wide li { padding-top: 14px; border-top: 2px solid var(--sky-2); }
.alinks { margin-top: 12px; }
.alinks--tight { columns: 2; column-gap: 20px; }
.alinks li { padding: 5px 0; break-inside: avoid; }

/* Grouped service links (hub and area pages) */
.sgroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: 24px; }
.sgroup h2, .sgroup h3 { font-size: 1.25rem; padding-bottom: 10px; border-bottom: 2px solid currentColor; color: var(--teal-2); }
.sgroup--heat h2, .sgroup--heat h3 { color: var(--heat); }
.sgroup ul { display: grid; gap: 14px; margin-top: 14px; }

/* Hubs */
.hub { padding-block: 72px 88px; }
.hub__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.hub .replace { margin-top: 48px; }
.replace h2 { font-size: 1.25rem; }
.season__h { color: var(--white); text-decoration: none; }
.season__h:hover { color: #FFD9C4; text-decoration: underline; }
.season p { margin-top: 10px; }
.arealist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin-top: 20px; }
.arealist li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.arealist span { color: var(--muted); font-size: .9375rem; }

@media (max-width: 1040px) {
  .page { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .page__main { max-width: none; }
  .page__side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .hub__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .phero .hero__media img { height: 200px; }
  .phero .hero__card { margin-top: -48px; }
  .page { padding-block: 48px 64px; }
  .page__side, .hub__groups, .sgroups, .arealist, .pblock--split, .rlinks--wide { grid-template-columns: minmax(0, 1fr); }
  .pblock--split, #carbon-monoxide { padding: 22px; }
  .hub { padding-block: 48px 64px; }
}
@media (max-width: 480px) {
  .phero h1 { font-size: clamp(1.5rem, 1rem + 1.9vw, 2rem); }
}
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
