/* Imperial County HVAC Directory — site styles */
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semibold.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-bold.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400 700; font-display: swap; src: url("../fonts/source-sans-3.woff2") format("woff2"); }

:root {
  --ink: #13232E;        /* text, headings */
  --ink-soft: #46596A;   /* secondary text */
  --blue: #1D5C96;       /* links, buttons */
  --blue-dark: #15456F;
  --canal: #E6F0F6;      /* cool surface */
  --line: #D5E1EA;
  --heat: #D9541E;       /* heat data and alerts only */
  --white: #FFFFFF;
  --head: "Barlow", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p, ul, ol { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; }

/* Lease banner */
.lease { background: var(--ink); color: #fff; font-size: 15px; }
.lease .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; padding: 9px 0; text-align: center; }
.lease a { color: #fff; font-weight: 600; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo svg { flex-shrink: 0; }
.logo b { display: block; font-family: var(--head); font-size: 22px; line-height: 1; }
.logo small { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 3px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 16px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid var(--blue); cursor: pointer; font-family: var(--body); }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--canal); color: var(--blue-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero .lead { font-size: 21px; color: var(--ink-soft); max-width: 34em; }

/* The heat year: signature element */
.year { margin: 0; background: var(--canal); border-radius: 14px; padding: 26px 24px 20px; }
.year h2 { font-size: 1.25rem; margin-bottom: 4px; }
.year .note { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 190px; }
.bar { position: relative; border-radius: 5px 5px 2px 2px; display: flex; align-items: flex-start; justify-content: center; }
.bar span { font-family: var(--head); font-weight: 700; font-size: 13px; color: #fff; padding-top: 6px; }
.bar.cool span { color: var(--ink); }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: 6px; font-size: 13px; text-align: center; color: var(--ink-soft); }
.tasks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 16px; }
.tasks li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.tasks b { font-family: var(--head); }

/* Sections */
.band { padding: 56px 0; }
.band.alt { background: var(--canal); }
.intro { max-width: 40em; color: var(--ink-soft); }
.cities { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cities li { border-bottom: 1px solid var(--line); }
.cities a { display: block; padding: 18px 14px 18px 0; text-decoration: none; color: var(--ink); }
.cities a:hover b { color: var(--blue); text-decoration: underline; }
.cities b { display: block; font-family: var(--head); font-size: 1.35rem; }
.cities small { color: var(--ink-soft); font-size: 15px; }

table.often { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 17px; }
.often th, .often td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.often th { font-family: var(--head); font-weight: 600; color: var(--ink-soft); font-size: 15px; }
.often td:first-child { font-weight: 600; width: 32%; }
.often td:nth-child(2) { width: 22%; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; margin-top: 24px; }
.guides a { font-family: var(--head); font-weight: 700; font-size: 1.3rem; text-decoration: none; }
.guides a:hover { text-decoration: underline; }
.guides p { color: var(--ink-soft); margin-top: 6px; font-size: 17px; }

.app-cta { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 40px; align-items: center; background: var(--ink); color: #DDE7EE; border-radius: 14px; padding: 36px 40px; }
.app-cta h2 { color: #fff; margin-bottom: 8px; }
.app-cta p { margin: 0; }
.app-cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.app-cta .btn:hover { background: var(--canal); }

/* Article pages */
.page { padding: 44px 0 64px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.crumbs { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.article { max-width: 42em; }
.article h2 { margin-top: 1.6em; }
.article .lead { font-size: 20px; color: var(--ink-soft); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 14px 0; margin: 0 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink-soft); }
.facts b { color: var(--ink); }
.side { position: sticky; top: 20px; display: grid; gap: 20px; }
.side-box { background: var(--canal); border-radius: 12px; padding: 22px; }
.side-box h2 { font-size: 1.2rem; margin-bottom: 8px; }
.side-box p { font-size: 16px; color: var(--ink-soft); }
.side-box ul { list-style: none; padding: 0; margin: 0; font-size: 16px; display: grid; gap: 6px; }
.callout { border-left: 4px solid var(--heat); background: #FBEFE9; padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 1.4em 0; }
.callout p:last-child { margin: 0; }
.checklist li { margin-bottom: .5em; }

/* Form */
.form { display: grid; gap: 16px; max-width: 34em; margin-top: 20px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 16px; }
.form input, .form select, .form textarea { font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid #B9CAD6; border-radius: 8px; background: #fff; color: var(--ink); }
.form small { font-weight: 400; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D6DF; padding: 48px 0 32px; font-size: 16px; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.disclose { margin-top: 32px; padding-top: 20px; border-top: 1px solid #2E4352; font-size: 14px; color: #9FB2C0; }

@media (max-width: 900px) {
  .hero-grid, .page-grid, .app-cta { grid-template-columns: 1fr; }
  .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guides { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .side { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero { padding-top: 36px; }
  .bars { height: 150px; gap: 4px; }
  .months { gap: 4px; font-size: 12px; }
  .bar span { font-size: 11px; }
  .tasks li { grid-template-columns: 78px 1fr; }
  .app-cta { padding: 28px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .often td:nth-child(2) { white-space: normal; }
}
