/* Salt Lake City Air Conditioning
   Layout: utility bar + masthead, split opener with a symptom triage card,
   two-column service/area pages with a sticky call card, plain document
   pages for company and legal content. */

:root {
  --ink: #12232a;
  --ink-2: #4b5e65;
  --line: #d6e0e1;
  --paper: #f4f7f6;
  --card: #ffffff;
  --frost: #e3f0ef;
  --brand: #0d5c63;
  --brand-ink: #083e43;
  --heat: #d9581f;
  --heat-ink: #b04516;
  --on-dark: #e9f2f1;
  --on-dark-2: #a9c3c3;

  --display: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max: 1180px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--heat); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.005em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.kicker { font: 700 .8rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.prose { display: flex; flex-direction: column; gap: 14px; max-width: 70ch; color: var(--ink-2); }
.small { font-size: .9rem; color: var(--ink-2); }
.tnum { font-variant-numeric: tabular-nums; }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--r); font: 700 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.button-call { background: var(--heat); color: #fff; }
.button-call:hover { background: var(--heat-ink); color: #fff; }
.button-solid { background: var(--brand); color: #fff; }
.button-solid:hover { background: var(--brand-ink); color: #fff; }
.button-line { background: transparent; color: var(--brand); border-color: var(--brand); }
.button-line:hover { background: var(--brand); color: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.wc-phone { white-space: nowrap; }

/* utility bar + masthead */
.utility { background: var(--brand-ink); color: var(--on-dark-2); font-size: .85rem; }
.utility .container { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.utility a { color: var(--on-dark); font-weight: 700; text-decoration: none; }
@media (max-width: 700px) { .utility .note { display: none; } .utility .container { justify-content: center; } }

.masthead { position: sticky; top: 0; z-index: 40; background: var(--card); border-bottom: 1px solid var(--line); }
.masthead .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { flex: none; }
.brand-name { font: 800 1.15rem/1.05 var(--display); letter-spacing: .01em; }
.brand-name small { display: block; font: 600 .72rem/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li > a, .menu summary { display: block; padding: 10px 12px; color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; border-radius: var(--r); cursor: pointer; }
.menu > li > a:hover, .menu summary:hover { background: var(--frost); color: var(--brand-ink); }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.menu details { position: relative; }
.submenu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 14px 34px rgba(18,35,42,.12); padding: 8px; list-style: none; margin: 0; }
.submenu a { display: block; padding: 9px 12px; border-radius: 4px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.submenu a:hover { background: var(--frost); }
.menu .button { margin-left: 8px; min-height: 42px; padding: 10px 16px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; font: 700 .9rem/1 var(--body); color: var(--ink); cursor: pointer; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--card); border-bottom: 1px solid var(--line); padding: 10px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); }
  .menu.open { display: flex; }
  .submenu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .menu .button { margin: 8px 0 0; }
}

/* home opener */
.opener { background: linear-gradient(180deg, var(--frost) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.opener .container { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-block: 64px 72px; }
.opener h1 { max-width: 16ch; }
.opener .lede { font-size: 1.2rem; }
@media (max-width: 900px) { .opener .container { grid-template-columns: 1fr; gap: 32px; padding-block: 44px 52px; } }

.triage { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--heat); border-radius: var(--r); padding: 26px; box-shadow: 0 18px 40px rgba(13,92,99,.10); display: flex; flex-direction: column; gap: 14px; }
.triage h2 { font-size: 1.45rem; }
.triage ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.triage li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 700; }
.triage li a:hover { border-color: var(--brand); background: var(--frost); }
.triage li a span { color: var(--ink-2); font-weight: 600; font-size: .85rem; white-space: nowrap; }

/* photos */
.photo { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--frost); aspect-ratio: 16 / 9; max-width: 100%; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-wide { aspect-ratio: 21 / 8; }
@media (max-width: 640px) { .photo-wide { aspect-ratio: 16 / 9; } }
.two-col .photo { margin-top: 12px; }

/* sections */
.band { padding-block: 72px; }
.band-tight { padding-block: 48px; }
.band-white { background: var(--card); border-block: 1px solid var(--line); }
.band-dark { background: var(--brand-ink); color: var(--on-dark); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p, .band-dark .lede { color: var(--on-dark-2); }
.band-dark .kicker { color: #f4a37c; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; max-width: 760px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

/* season strip */
.seasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid rgba(233,242,241,.2); border-radius: var(--r); overflow: hidden; }
.season { padding: 22px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid rgba(233,242,241,.2); }
.season:first-child { border-left: 0; }
.season .months { font: 700 .85rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: #f4a37c; }
.season.peak { background: rgba(217,88,31,.16); }
@media (max-width: 860px) { .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } .season:nth-child(3) { border-left: 0; } .season:nth-child(n+3) { border-top: 1px solid rgba(233,242,241,.2); } }
@media (max-width: 520px) { .seasons { grid-template-columns: 1fr; } .season { border-left: 0; } .season + .season { border-top: 1px solid rgba(233,242,241,.2); } }

/* service index */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.svc-list a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); height: 100%; }
.svc-list a:hover { border-color: var(--brand); box-shadow: 0 8px 22px rgba(13,92,99,.08); }
.svc-list .ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; background: var(--frost); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.svc-list h3 { font-size: 1.2rem; }
.svc-list p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .svc-list { grid-template-columns: 1fr; } }

/* reasons */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.reasons.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reason { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--brand); }
.reason p { color: var(--ink-2); }
@media (max-width: 900px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .reasons, .reasons.cols-2 { grid-template-columns: 1fr; } }

/* town chips */
.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.towns a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.towns a:hover { border-color: var(--brand); color: var(--brand); }
.towns a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* faq */
.qa { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font: 700 1.15rem/1.3 var(--display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--frost); color: var(--brand); display: flex; align-items: center; justify-content: center; font: 700 1.1rem/1 var(--body); }
.qa details[open] summary::after { content: "\2212"; }
.qa details > p { padding: 0 0 20px; color: var(--ink-2); max-width: 72ch; }

/* call-to-action panel */
.cta-panel { background: var(--brand); color: #fff; border-radius: var(--r); padding: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
.cta-panel h2 { color: #fff; }
.cta-panel p { color: var(--on-dark); max-width: 58ch; }
.cta-panel .button-line { color: #fff; border-color: rgba(255,255,255,.7); }
.cta-panel .button-line:hover { background: #fff; color: var(--brand-ink); }
@media (max-width: 760px) { .cta-panel { grid-template-columns: 1fr; padding: 28px; } }

/* inner page header */
.pagehead { background: var(--brand-ink); color: var(--on-dark); }
.pagehead .container { padding-block: 40px 48px; display: flex; flex-direction: column; gap: 14px; }
.pagehead h1 { color: #fff; max-width: 22ch; }
.pagehead .lede { color: var(--on-dark-2); }
.pagehead .kicker { color: #f4a37c; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--on-dark-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--on-dark); }
.pagehead .button-line { color: #fff; border-color: rgba(255,255,255,.6); }
.pagehead .button-line:hover { background: #fff; color: var(--brand-ink); }

/* two-column body with sticky call card */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-block: 56px 72px; align-items: start; }
.layout main { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.layout section { display: flex; flex-direction: column; gap: 16px; }
.aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.callcard { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--heat); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.callcard h2 { font-size: 1.3rem; }
.callcard .button { width: 100%; }
.sidelinks { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; }
.sidelinks h2 { font-size: 1.05rem; margin-bottom: 8px; }
.sidelinks ul { list-style: none; margin: 0; padding: 0; }
.sidelinks li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .95rem; }
.sidelinks li:last-child a { border-bottom: 0; }
.sidelinks a[aria-current="page"] { color: var(--ink); }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; gap: 40px; } .aside { position: static; } }

/* detail list */
.details { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.details > div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 28px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.details dt { font: 700 1.1rem/1.3 var(--display); }
.details dd { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .details > div { grid-template-columns: 1fr; } }

/* cost table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .96rem; vertical-align: top; }
thead th { background: var(--frost); font: 700 .8rem/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }
td + td { font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.fineprint { font-size: .85rem; color: var(--ink-2); background: var(--frost); border-radius: var(--r); padding: 12px 14px; }

/* numbered process (real sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 18px; padding-bottom: 22px; position: relative; }
.steps li::before { content: counter(step); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 1.15rem/1 var(--display); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line); }
.steps h3 { padding-top: 10px; }
.steps p { color: var(--ink-2); }

/* local notes */
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.notes li { position: relative; padding: 14px 16px 14px 46px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-2); }
.notes li::before { content: ""; position: absolute; left: 16px; top: 19px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--heat); }

/* document pages */
.doc { max-width: 780px; padding-block: 56px 80px; display: flex; flex-direction: column; gap: 18px; }
.doc h2 { margin-top: 22px; }
.doc h3 { margin-top: 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.updated { font-size: .9rem; color: var(--ink-2); }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.monogram { width: 52px; height: 52px; border-radius: 50%; background: var(--frost); color: var(--brand); display: flex; align-items: center; justify-content: center; font: 800 1.1rem/1 var(--display); }
.person .role { font-weight: 700; color: var(--heat-ink); font-size: .9rem; }
.person p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; } }
.role-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.role-card .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.role-card h4 { font: 700 .8rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
@media (max-width: 640px) { .role-card .cols { grid-template-columns: 1fr; } }

/* forms */
.formwrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; padding-block: 56px 80px; align-items: start; }
@media (max-width: 860px) { .formwrap { grid-template-columns: 1fr; gap: 32px; } }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #b9c8ca; border-radius: var(--r); font: 1rem/1.4 var(--body); background: #fff; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(13,92,99,.25); border-color: var(--brand); }
.contact-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contact-lines li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-lines strong { font-family: var(--display); font-size: 1.05rem; }

/* footer */
.footer { background: var(--ink); color: #b7c6c8; padding-block: 56px 28px; font-size: .95rem; }
.footer .grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer h2 { font: 700 .82rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: #d9e4e5; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .fine { font-size: .82rem; color: #8ea2a5; margin-top: 12px; }
.footer .base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8ea2a5; }
@media (max-width: 860px) { .footer .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer .grid { grid-template-columns: 1fr; } }

/* mobile call bar */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; gap: 10px; padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(18,35,42,.08); }
  .callbar .button { flex: 1; min-height: 46px; }
  body { padding-bottom: 72px; }
}

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