/* SalemHVAC — generated by factory/generate.js; edit the factory, not this file */
:root {
  --navy: #3a1d1d;
  --navy-dark: #2a1313;
  --blue: #8c3b3b;
  --orange: #f0b429;
  --orange-dark: #d69e1f;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --text: #26313c;
  --text-light: #5d6b78;
  --border: #dfe5ea;
  --radius: 8px;
  --maxw: 1060px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; font-size: 17px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
a { color: var(--blue); }
/* Keyboard users could previously tab through the whole site with no visible focus. */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--navy); padding: 12px 20px; z-index: 200; font-weight: 700; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.topbar { background: var(--navy-dark); color: #d6e2ec; font-size: 14px; padding: 6px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
header.site { background: var(--navy); color: #fff; padding: 14px 0; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { font-size: 23px; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -.5px; }
.logo span { color: var(--orange); }
.nav-scroll { display: flex; min-width: 0; }
nav.main { display: flex; gap: 4px; flex-wrap: wrap; }
nav.main a { color: #e9eff5; text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 6px; }
nav.main a:hover, nav.main a.active { background: rgba(255,255,255,.13); color: #fff; }
.btn { display: inline-block; background: var(--orange); color: #fff !important; text-decoration: none; font-weight: 700; padding: 13px 26px; border-radius: var(--radius); border: none; font-size: 17px; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--orange-dark); }
.btn.ghost { background: transparent; border: 2px solid #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.big { font-size: 19px; padding: 16px 32px; }
.hero { background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 45%, var(--blue) 100%); color: #fff; padding: 66px 0 74px; }
.hero h1 { font-size: 40px; line-height: 1.15; letter-spacing: -1px; margin-bottom: 18px; }
.hero p.sub { font-size: 20px; color: #dbe7f1; max-width: 700px; margin-bottom: 30px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .trust { margin-top: 26px; font-size: 15px; color: #becfdd; }
/* Two-column hero: the right half used to be dead gradient on every desktop view. */
.hero .hero-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 40px; align-items: center; }
.hero .hero-art { justify-self: end; width: 100%; max-width: 460px; }
.hero .hero-art img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .hero .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero .hero-art { justify-self: start; max-width: 420px; }
}
.page-hero { background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 45%, var(--blue) 100%); color: #fff; padding: 50px 0; }
.page-hero h1 { font-size: 35px; letter-spacing: -.8px; margin-bottom: 12px; }
.page-hero p { font-size: 19px; color: #dbe7f1; max-width: 740px; margin-bottom: 24px; }
section.block { padding: 60px 0; }
section.block.alt { background: var(--bg-alt); }
.block h1, .block h2 { font-size: 31px; letter-spacing: -.5px; margin-bottom: 12px; color: var(--navy); }
.block .lead { font-size: 18px; color: var(--text-light); max-width: 740px; margin-bottom: 32px; }
.block h3 { font-size: 21px; color: var(--navy); margin: 28px 0 8px; }
.block p + p { margin-top: 14px; }
.block ul { margin: 14px 0 14px 22px; }
.block li { margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 25px; box-shadow: 0 1px 4px rgba(20,30,40,.06); }
.card h3 { margin: 0 0 10px; font-size: 20px; color: var(--navy); }
.card p { font-size: 15.5px; color: var(--text-light); margin-bottom: 14px; }
.card a.more { font-weight: 700; text-decoration: none; }
.cta-band { background: var(--orange); color: #fff; text-align: center; padding: 42px 0; }
.cta-band h2 { font-size: 28px; margin-bottom: 8px; letter-spacing: -.5px; }
.cta-band p { font-size: 18px; margin-bottom: 20px; }
.cta-band .btn { background: var(--navy); }
.cta-band .btn:hover { background: var(--navy-dark); }
form.lead-form { max-width: 560px; }
form.lead-form label { display: block; font-weight: 700; font-size: 15px; margin: 16px 0 6px; color: var(--navy); }
form.lead-form input, form.lead-form select, form.lead-form textarea { width: 100%; padding: 12px 14px; font-size: 16px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; background: #fff; }
form.lead-form textarea { min-height: 110px; resize: vertical; }
form.lead-form button { margin-top: 22px; }
form.lead-form input:focus, form.lead-form select:focus, form.lead-form textarea:focus { border-color: var(--blue); }
form.lead-form .req { color: var(--orange-dark); }
.field-hint { font-size: 13.5px; color: var(--text-light); margin-top: 6px; }
.form-note { font-size: 13.5px; color: var(--text-light); margin-top: 14px; }
.crumbs { background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: 14px; padding: 10px 0; color: var(--text-light); }
.crumbs a { color: var(--blue); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 4px; }
.updated { font-size: 14px; color: var(--text-light); background: var(--bg-alt); border-left: 3px solid var(--orange); padding: 8px 14px; border-radius: 4px; margin-bottom: 22px; }
.grid.related .card h3 { margin-bottom: 6px; }
.grid.related .card h3 a { color: var(--navy); text-decoration: none; }
.grid.related .card h3 a:hover { text-decoration: underline; }
.grid.related .card p { margin-bottom: 0; }
figure.fig { margin: 30px 0 8px; }
figure.fig img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
figure.fig figcaption { font-size: 15px; color: var(--text-light); margin-top: 10px; line-height: 1.5; }
/* Cost tables: the honest-numbers block. Scrolls rather than squashing on phones. */
.table-wrap { overflow-x: auto; margin: 22px 0 10px; -webkit-overflow-scrolling: touch; }
table.costs { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 16px; }
table.costs th, table.costs td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.costs thead th { background: var(--navy); color: #fff; font-size: 15px; letter-spacing: .2px; }
table.costs thead th:first-child { border-radius: var(--radius) 0 0 0; }
table.costs thead th:last-child { border-radius: 0 var(--radius) 0 0; }
table.costs tbody tr:nth-child(even) { background: var(--bg-alt); }
table.costs td.num { font-weight: 700; color: var(--navy); white-space: nowrap; }
table.costs td .why { display: block; font-size: 14.5px; color: var(--text-light); font-weight: 400; margin-top: 3px; }
.source-note { font-size: 14px; color: var(--text-light); margin-top: 8px; }
.steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 18px 20px 18px 66px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.steps li strong { display: block; color: var(--navy); font-size: 18px; margin-bottom: 2px; }
.faq details { border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; background: #fff; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--navy); font-size: 17px; }
.faq details p { margin-top: 10px; color: var(--text-light); font-size: 16px; }
footer.site { background: var(--navy-dark); color: #a3b6c7; padding: 46px 0 80px; font-size: 15px; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 30px; }
footer.site h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
footer.site a { color: #cbdcea; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
.disclosure { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: 13.5px; line-height: 1.6; }
.callbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--orange); text-align: center; padding: 14px; z-index: 100; box-shadow: 0 -2px 10px rgba(0,0,0,.25); }
.callbar a { color: #fff; font-weight: 800; font-size: 18px; text-decoration: none; }
@media (max-width: 760px) {
  .hero { padding: 46px 0 54px; }
  .hero h1 { font-size: 30px; }
  .hero p.sub { font-size: 17px; }
  .page-hero { padding: 38px 0; }
  .page-hero h1 { font-size: 27px; }
  .block { padding: 46px 0; }
  .block h2 { font-size: 25px; }
  .callbar { display: block; }
  body { padding-bottom: 58px; }
  .topbar { display: none; }
  header.site { padding: 10px 0; }
  header.site .container { flex-wrap: wrap; gap: 10px; }
  .logo { font-size: 20px; }
  header.site > .container > .btn { padding: 10px 16px; font-size: 15px; margin-left: auto; }
  nav.main { display: flex; order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  nav.main::-webkit-scrollbar { display: none; }
  nav.main a { white-space: nowrap; font-size: 14px; padding: 7px 12px; background: rgba(255,255,255,.08); border-radius: 999px; }
  /* Half the nav sits off-screen on a phone with nothing saying so — this fades the
     right edge so the row reads as scrollable. */
  .nav-scroll { position: relative; order: 3; flex-basis: 100%; }
  .nav-scroll::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 34px; pointer-events: none; background: linear-gradient(to right, rgba(0,0,0,0), var(--navy) 78%); }
  .nav-scroll nav.main { order: 0; flex-basis: auto; width: 100%; }
  table.costs { font-size: 15px; }
  .steps li { padding: 16px 16px 16px 60px; }
}
