/* Cook's Air Conditioning & Heating — market-site design system.
   Vibe from cooksair.com: white ground, navy type and buttons, red for the call-to-action, light-blue accents,
   a touch of the logo's gold. Open Sans only, self-hosted. One system, eleven sites; variation lives in the
   hero modifier (.hero--*) and in the copy, never in a second stylesheet. */

@font-face { font-family: "Open Sans"; src: url("fonts/open-sans-latin.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/open-sans-latin-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }

:root {
  --navy: #202284;
  --navy-deep: #161866;
  --blue: #4398ba;
  --blue-soft: #e4f1f7;
  --blue-deep: #28627c;   /* text-size blue: 4.5:1+ on white, fog and blue-soft */
  --red: #df1b22;
  --red-deep: #b9151b;
  --gold: #f0a500;
  --ink: #1b1d2a;
  --slate: #4b5168;
  --mist: #c9d3e6;
  --paper: #ffffff;
  --fog: #f3f5fa;
  --line: #dde3ef;
  --font: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --band: clamp(56px, 8vw, 112px);
  --r: 14px;
  --shadow: 0 10px 30px rgba(32, 34, 132, 0.10);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --head-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture { display: block; max-width: 100%; height: auto; }
picture img { width: 100%; }
a { color: var(--navy); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.navy :focus-visible { outline-color: var(--gold); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(780px + 2 * var(--gutter)); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.navy { background: var(--navy); color: #fff; }
.navy h1, .navy h2, .navy h3 { color: #fff; }
.navy a { color: #fff; }
.kicker { margin: 0 0 0.6em; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; min-height: 50px; padding: 0 1.35em; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--fog); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { border-color: #fff; }
.btn-xl { min-height: 62px; font-size: 1.25rem; padding: 0 1.5em; font-feature-settings: "tnum" 1; }
.link, .link-light { display: inline-flex; align-items: center; gap: 0.35em; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link { color: var(--navy); text-decoration-color: var(--blue); }
.link-light { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.5); }
.link-light:hover { text-decoration-color: #fff; }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; height: var(--head-h); }
.brand img { height: 58px; width: auto; }
.nav { margin-left: auto; }
.nav > ul { display: flex; gap: 2px; align-items: center; }
.nav a, .nav-btn { display: inline-flex; align-items: center; gap: 4px; padding: 10px 11px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); background: none; border: 0; font-family: inherit; cursor: pointer; transition: background-color 0.2s; }
.nav a:hover, .nav-btn:hover { background: var(--fog); }
.nav a[aria-current="page"], .nav-btn.is-current { box-shadow: inset 0 -3px 0 var(--blue); }
.chev { width: 1em; height: 1em; transition: transform 0.2s; }
.nav-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.has-mega { position: relative; }
.mega { display: none; position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); min-width: 320px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 24px; z-index: 60; }
.nav-btn[aria-expanded="true"] + .mega { display: block; }
.mega-in { display: flex; gap: 32px; }
.mega-h { margin: 0 0 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-deep); white-space: nowrap; }
.mega ul li a { display: block; padding: 5px 6px; white-space: nowrap; font-weight: 500; }
.mega ul.two-col { columns: 2; column-gap: 24px; }
.mega-all { margin: 10px 0 0; font-size: 0.9rem; }
.mega-all a { font-weight: 700; }
.head-call { min-height: 44px; font-size: 0.95rem; }
.menu-btn { display: none; }

@media (max-width: 1099px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 14px; background: var(--fog); color: var(--navy); border: 0; border-radius: 999px; font: 700 1rem var(--font); cursor: pointer; }
  .menu-btn .i:nth-child(2) { display: none; }
  .menu-btn[aria-expanded="true"] .i:nth-child(1) { display: none; }
  .menu-btn[aria-expanded="true"] .i:nth-child(2) { display: block; }
  .head-call { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--head-h); background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100dvh - var(--head-h)); overflow: auto; }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; gap: 0; }
  .nav a, .nav-btn { width: 100%; justify-content: space-between; padding: 12px 8px; font-size: 1.05rem; }
  .mega { position: static; transform: none; min-width: 0; border: 0; box-shadow: none; padding: 4px 8px 12px; }
  .mega-in { flex-direction: column; gap: 14px; }
  .mega ul li a { white-space: normal; }
  .mega ul.two-col { columns: 1; }
}

/* hero */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; align-items: center; }
.hero-copy { padding: clamp(40px, 7vw, 96px) var(--gutter); max-width: 720px; justify-self: center; width: 100%; }
.hero .sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); opacity: 0.92; max-width: 60ch; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 22px 0 18px; }
.hero-photo picture img { width: 100%; height: 100%; object-fit: cover; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; font-size: 0.9rem; font-weight: 600; opacity: 0.9; }
.trust span::before { content: "✓ "; color: var(--gold); }
.stats { display: flex; flex-wrap: wrap; gap: 22px 36px; margin-top: 26px; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-size: 1.8rem; color: var(--gold); line-height: 1; }
.stats span { font-size: 0.85rem; opacity: 0.85; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; margin-bottom: 14px; opacity: 0.85; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: inherit; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy { justify-self: end; max-width: 640px; padding-right: 48px; }
  .hero-photo { height: 100%; min-height: 460px; }
  .hero-page .hero-photo { min-height: 380px; }
  .hero.no-photo .hero-grid { grid-template-columns: 1fr; }
  .hero.no-photo .hero-copy { justify-self: center; max-width: 820px; padding-right: var(--gutter); }
}

/* ten openings: one per market, so no two sites start the same way */
.hero--full-bleed .hero-grid { grid-template-columns: 1fr; }
.hero--full-bleed .hero-photo { position: absolute; inset: 0; z-index: 0; min-height: 0; }
.hero--full-bleed .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(32, 34, 132, 0.96) 0%, rgba(32, 34, 132, 0.82) 55%, rgba(32, 34, 132, 0.45) 100%); }
.hero--full-bleed .hero-copy { position: relative; z-index: 1; justify-self: start; max-width: 760px; padding-block: clamp(72px, 10vw, 140px); }
.hero--stacked-stats .hero-grid { grid-template-columns: 1fr; }
.hero--stacked-stats .hero-copy { justify-self: center; max-width: 900px; text-align: center; padding-bottom: 24px; }
.hero--stacked-stats .hero-act, .hero--stacked-stats .trust, .hero--stacked-stats .stats { justify-content: center; }
.hero--stacked-stats .hero-photo { min-height: 0; aspect-ratio: 16 / 7; }
.hero--photo-left .hero-photo { order: -1; }
.hero--photo-left .hero-copy { justify-self: start; padding-left: 48px; }
.hero--card-over-photo { background: var(--fog); color: var(--ink); }
.hero--card-over-photo .hero-grid { grid-template-columns: 1fr; }
.hero--card-over-photo .hero-photo { min-height: 0; aspect-ratio: 21 / 9; }
.hero--card-over-photo .hero-copy { background: var(--navy); border-radius: var(--r); margin: -90px auto 48px; max-width: 880px; padding: 40px; box-shadow: var(--shadow); position: relative; z-index: 1; width: calc(100% - 2 * var(--gutter)); }
.hero--diagonal { background: var(--navy-deep); }
.hero--diagonal::before { content: ""; position: absolute; inset: 0; background: var(--navy); clip-path: polygon(0 0, 62% 0, 48% 100%, 0 100%); }
.hero--diagonal .hero-copy { position: relative; }
.hero--diagonal .hero-photo { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.hero--minimal-type { background: #fff; color: var(--ink); }
.hero--minimal-type h1 { color: var(--navy); font-size: clamp(2.4rem, 6vw, 4.6rem); }
.hero--minimal-type .hero-grid { grid-template-columns: 1fr; }
.hero--minimal-type .hero-copy { justify-self: center; max-width: 960px; }
.hero--minimal-type .hero-photo { display: none; }
.hero--minimal-type .link-light { color: var(--navy); text-decoration-color: var(--blue); }
.hero--minimal-type .kicker { color: var(--blue-deep); }
.hero--minimal-type .trust { color: var(--slate); }
.hero--grid-mosaic .hero-photo { padding: 28px; }
.hero--grid-mosaic .hero-photo picture { border: 10px solid #fff; border-radius: 4px; box-shadow: 18px 18px 0 var(--gold); }
.hero--band-top { background: #fff; color: var(--ink); border-top: 12px solid var(--blue); }
.hero--band-top h1 { color: var(--navy); }
.hero--band-top .kicker { color: var(--red); }
.hero--band-top .link-light { color: var(--navy); text-decoration-color: var(--blue); }
.hero--band-top .trust { color: var(--slate); }
.hero--band-top .stats strong { color: var(--navy); }
.hero--phone-first .hero-copy h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.hero--phone-first .hero-act { flex-direction: column; align-items: flex-start; }
.hero--phone-first .hero-act .btn-xl { min-height: 80px; font-size: clamp(1.6rem, 4vw, 2.6rem); padding: 0 1.1em; }
.hero--hub-directory .hero-grid { grid-template-columns: 1fr; }
.hero--hub-directory .hero-copy { justify-self: center; max-width: 900px; text-align: center; }
.hero--hub-directory .hero-act, .hero--hub-directory .trust { justify-content: center; }
.hero--hub-directory .hero-photo { display: none; }
@media (max-width: 899px) {
  .hero--photo-left .hero-copy, .hero--full-bleed .hero-copy { padding-left: var(--gutter); }
  .hero--card-over-photo .hero-copy { margin-top: -40px; padding: 28px; }
  .hero--diagonal::before, .hero--diagonal .hero-photo { clip-path: none; }
  .hero-photo { aspect-ratio: 16 / 10; }
}

/* bands + prose */
.band { padding-block: var(--band); }
.band + .band { padding-top: 0; }
.prose > h2, .prose > h3 { margin-top: 1.6em; }
.prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--fog); color: var(--navy); }
.prose blockquote { margin: 0 0 1.2em; padding: 14px 20px; border-left: 4px solid var(--blue); background: var(--blue-soft); border-radius: 0 10px 10px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose strong { color: var(--navy); }
.inline-cta { margin: 1.4em 0; }
.fig { margin: 1.6em 0; }
.fig picture { border-radius: var(--r); overflow: hidden; }
.fig figcaption { font-size: 0.875rem; color: var(--slate); margin-top: 8px; }
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.svc-grid-1 { grid-template-columns: minmax(0, 820px); justify-content: center; }
@media (min-width: 900px) { .svc-grid:not(.svc-grid-1) { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .svc-aside { position: sticky; top: calc(var(--head-h) + 16px); } }
.svc-aside .fig { margin: 0 0 20px; }

/* service tiles, chips, related */
.svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.svc-list li a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(32, 34, 132, 0.06); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.svc-list li a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.svc-name { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.svc-blurb { color: var(--slate); font-size: 0.95rem; }
.rel-kind { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chips a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--blue-soft); color: var(--navy); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.chips a:hover { background: var(--mist); }
.related { padding-block: 0 var(--band); }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.rel-grid li a { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--r); background: var(--fog); text-decoration: none; height: 100%; }
.rel-name { font-weight: 700; color: var(--navy); }
.rel-blurb { font-size: 0.92rem; color: var(--slate); }
.services-home h2, .areas-home h2, .other-svc h2 { margin-bottom: 22px; }

/* faq */
.faq { padding-block: 0 var(--band); }
.faq h2 { margin-bottom: 18px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.1rem; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-size: 1.6rem; color: var(--blue); font-weight: 300; }
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 0 18px; color: var(--slate); }
.faq-a p:last-child { margin: 0; }

/* reviews */
.quote-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.quote { margin: 0; padding: 24px; background: var(--fog); border-radius: var(--r); }
.quote blockquote { margin: 0 0 12px; font-size: 1.02rem; }
.quote figcaption { font-size: 0.9rem; color: var(--slate); }

/* cta band */
.cta { padding-block: clamp(48px, 7vw, 88px); }
.cta-grid { display: grid; gap: 28px; align-items: center; }
.cta .sub { opacity: 0.9; margin: 8px 0 0; }
.cta-act { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.big-phone { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; text-decoration: none; letter-spacing: -0.02em; font-feature-settings: "tnum" 1; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1fr auto; } }

/* contact form */
.form { display: grid; gap: 14px; padding: 28px; background: var(--fog); border-radius: var(--r); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--mist); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; font-weight: 600; margin: 0; }
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; margin: 0 0 1.4em; }
.facts div { padding: 14px 16px; border-left: 3px solid var(--blue); background: var(--fog); border-radius: 0 10px 10px 0; }
.facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-deep); }
.facts dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); }

/* footer */
.site-foot { padding: 56px 0 100px; }
.foot-grid { display: grid; gap: 32px; }
.foot-brand img { height: 64px; width: auto; margin-bottom: 16px; }
.nap { font-size: 0.95rem; line-height: 1.7; opacity: 0.92; }
.nap-name { font-weight: 700; }
.foot-phone { font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.site-foot h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.site-foot nav li { margin-bottom: 6px; font-size: 0.95rem; }
.site-foot nav a { text-decoration: none; opacity: 0.92; }
.site-foot nav a:hover { text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.85rem; opacity: 0.85; }
.foot-legal p { margin: 0; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .site-foot { padding-bottom: 56px; } }

/* sticky call bar (phones) */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(32, 34, 132, 0.97); backdrop-filter: blur(8px); }
.callbar .btn { flex: 1; min-height: 48px; }
@media (min-width: 900px) { .callbar { display: none; } }

/* legal */
.legal-page .prose { font-size: 1rem; }
.legal-page h1 { margin-bottom: 0.6em; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .svc-list li a { transition: none; } }
@media print { .site-head, .callbar, .cta, .site-foot nav { display: none; } .navy { background: #fff !important; color: #000 !important; } }
