:root {
  --deep: #052345;
  --deepest: #041a35;
  --ink: #08264b;
  --muted: #475e75;
  --cool: #edf6ff;
  --paper: #fff;
  --line: #d9e6f1;
  --blue: #0067b9;
  --blue-dark: #005699;
  --heat: #ff3e23;
  --heat-dark: #ae2d1c;
  --ice: #79c8ff;
  --body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; font-weight: 800; }
h1 { font-size: clamp(2.86rem, 5.1vw, 5.35rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.25rem, 4vw, 3.85rem); letter-spacing: -.047em; }
h3 { font-size: clamp(1.24rem, 2vw, 1.64rem); letter-spacing: -.032em; }
h4 { font-size: 1.02rem; line-height: 1.3; }
.wrap { width: min(100% - 88px, 1280px); margin-inline: auto; }
.skip { position: absolute; z-index: 10; left: 16px; top: 12px; padding: 8px 14px; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.top { background: #fff; color: var(--ink); }
.top::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--heat) 0 11%, var(--blue) 11% 46%, var(--deep) 46%); }
.footer { background: #fff; color: var(--ink); border-top: 1px solid var(--line); }
.top-inner { min-height: 112px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.brand { display: block; flex: 0 0 auto; width: clamp(148px, 16vw, 210px); }
.brand img { display: block; width: 100%; height: auto; }
.footer .brand { width: 132px; }
.footer .top-inner { min-height: 96px; }
.top nav { display: flex; gap: clamp(18px, 3.2vw, 46px); font-weight: 600; font-size: .9rem; }
.top nav a:hover { color: var(--blue); }
.staff-link:hover { color: var(--blue); text-decoration: underline; }
.button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 10px 18px; border: 1px solid transparent; border-radius: 7px; background: var(--blue); color: #fff; font-weight: 750; font-size: .9rem; text-align: center; }
.button:hover { background: var(--blue-dark); }
.button-small { min-height: 42px; padding: 8px 14px; }
.hero { background: linear-gradient(115deg, var(--deepest), var(--deep)); color: #fff; overflow: hidden; }
.hero h1 span { color: var(--ice); }
.hero .button { background: #fff; color: var(--ink); }
.hero .button:hover { background: #dcefff; }
.hero :focus-visible { outline-color: var(--ice); }
.hero-inner { min-height: 510px; display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(20px, 3.5vw, 46px); align-items: stretch; position: relative; }
.hero-copy { position: relative; z-index: 1; align-self: center; padding-block: 72px; }
.eyebrow { color: var(--blue-dark); font-size: .76rem; line-height: 1.3; letter-spacing: .17em; font-weight: 800; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: 11px; color: #cae8ff; margin-bottom: 20px; }
.hero .eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--heat); border-radius: 2px; }
.hero-description { margin-top: 24px; max-width: 470px; color: #d8e8f6; font-size: clamp(1rem, 1.4vw, 1.14rem); }
.hero-photo { position: relative; margin-block: 32px; border: 1px solid #78bfff3b; border-radius: 18px; overflow: hidden; background: var(--deep) url("/hvac-workshop.webp") 56% center / cover no-repeat; }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, #04274930, transparent 60%), linear-gradient(0deg, #041b374a, transparent 52%); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 26px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-dark); font-weight: 750; font-size: .91rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link.light { color: #e2f2ff; }
.services { padding-block: 62px 72px; }
.section-lead .eyebrow { margin-bottom: 10px; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.service { display: flex; align-items: flex-start; flex-direction: column; padding: 24px clamp(16px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.service:hover { transform: translateY(-2px); border-color: #a9c7e2; box-shadow: 0 10px 26px #0523450f; }
#load-calculations { border-top: 3px solid var(--heat); padding-top: 22px; }
.service-icon { display: inline-grid; place-items: center; width: 47px; height: 47px; border-radius: 8px; background: var(--cool); color: var(--blue-dark); }
#load-calculations .service-icon { background: #fff0ed; color: var(--heat-dark); }
.service h3 { margin-top: 15px; }
.service p { color: var(--muted); margin-top: 10px; max-width: 330px; }
.service .text-link { margin-top: auto; padding-top: 17px; }
.about { padding-block: 56px 64px; background: #f7fbff; border-top: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: minmax(260px, .95fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 72px); align-items: start; }
.about-copy .eyebrow { margin-bottom: 12px; }
.about-copy h2 { font-size: clamp(1.85rem, 3vw, 2.65rem); }
.about-lead { color: var(--muted); margin-top: 16px; max-width: 460px; }
.about-points { display: grid; gap: 16px; }
.about-point { display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: start; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.about-point .service-icon { width: 42px; height: 42px; }
.about-point h3 { font-size: 1.06rem; margin-top: 1px; }
.about-point p { color: var(--muted); font-size: .93rem; margin-top: 5px; }
.intake { padding-block: 68px 78px; background: #eef6fc; border-top: 1px solid var(--line); }
.intake-inner { display: grid; grid-template-columns: minmax(225px, .75fr) minmax(0, 1.5fr); gap: clamp(32px, 8vw, 115px); align-items: start; }
.intake-intro { max-width: 360px; }
.intake-intro h2 { margin-block: 15px 18px; }
.intake-intro p { color: var(--muted); margin-top: 12px; }
.form-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; scroll-margin-top: 16px; box-shadow: 0 10px 35px #0523450d; }
.form-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f2f7fc; padding: 7px; gap: 7px; border-bottom: 1px solid var(--line); }
.form-switch button { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); font-size: .9rem; font-weight: 750; }
.form-switch button[aria-pressed="true"] { background: var(--blue-dark); color: white; }
.form-switch button[aria-pressed="false"]:hover { border-color: #a6c4de; }
.request-form, .success { display: grid; gap: 15px; padding: clamp(17px, 3.3vw, 36px); }
.request-form h3 { margin-bottom: 5px; }
.field, .form-section { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: .9rem; font-weight: 700; }
.field small { font-size: .72rem; margin-left: 7px; color: #48657f; font-weight: 500; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.address-grid { grid-template-columns: 2fr 1fr 1.2fr; }
input:not([type="file"]), select, textarea { min-width: 0; width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid #a9bfd4; border-radius: 5px; color: var(--ink); background: #fff; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #5d7084; }
.form-section { gap: 13px; border-top: 1px solid var(--line); padding-top: 15px; }
.trap { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); }
.estimate { background: #fff3ef; border: 1px solid #f1cec4; border-left: 4px solid var(--heat); border-radius: 7px; padding: 12px 14px; }
.estimate-main { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-weight: 700; }
.estimate strong { font-size: 1.65rem; color: var(--heat-dark); }
.estimate p { color: #634945; font-size: .85rem; }
.estimate-breakdown { margin: 4px 0 6px; font-weight: 600; color: #542d27; }
.topic-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.topic-chips > span { font-size: .82rem; font-weight: 650; color: var(--muted); margin-right: 2px; }
.chip { padding: 5px 11px; border: 1px solid #bfd4e7; border-radius: 999px; background: #f4f9fe; color: var(--ink); font-size: .81rem; font-weight: 650; transition: background .12s ease, border-color .12s ease; }
.chip:hover { background: #e3f0fc; border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.upload { display: grid; grid-template-columns: auto 1fr; gap: 8px 11px; align-items: center; border: 1px dashed #83a9cb; border-radius: 6px; padding: 11px 13px; background: #f6faff; }
.upload small { display: block; color: var(--muted); }
.upload input { grid-column: 1 / -1; width: 100%; color: var(--ink); font-size: .88rem; }
.upload input::file-selector-button { cursor: pointer; border: 1px solid #adcade; border-radius: 4px; background: white; color: var(--ink); padding: 4px 8px; margin-right: 8px; }
.upload-list { font-size: .84rem; padding: 9px 12px; border-radius: 6px; background: #f4f8fc; border: 1px solid var(--line); color: var(--ink); }
.upload-list.over { background: #fbece7; border-color: #eab9ae; color: #752016; }
.upload-list ul { margin: 6px 0 0; padding-left: 18px; }
.confirmation-summary { padding: 12px 14px; border-radius: 7px; background: #f4f9fe; border: 1px solid var(--line); font-size: .92rem; color: var(--ink); }
.submit, .success .button { justify-self: start; }
.error { color: #752016; background: #fbece7; padding: 8px 12px; border-radius: 4px; }
.success > svg { color: #326750; }
.footer .top-inner > p, .staff-link { color: var(--muted); font-size: .85rem; }
.inbox { padding-block: 40px 80px; }
.inbox h1 { margin-block: 14px 18px; }
.inbox-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.inbox-filter { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .86rem; font-weight: 650; }
.inbox-filter:hover { border-color: var(--blue); color: var(--blue); }
.inbox-filter[aria-current="page"] { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.inbox-item { border: 1px solid var(--line); background: white; border-radius: 8px; margin-bottom: 12px; padding: 14px 16px; }
.inbox-item summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.inbox-item summary span { color: var(--muted); font-size: .88rem; }
.inbox-badge { padding: 2px 9px; border-radius: 999px; font-size: .78rem !important; font-weight: 700; }
.inbox-badge.accepted { background: #e8f5ee; color: #1e5c3a; }
.inbox-badge.failed { background: #fbece7; color: #8c2318; }
.inbox-badge.pending { background: #fff4e5; color: #7a4b00; }
.inbox-item dl { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.inbox-item dl div { display: grid; grid-template-columns: minmax(115px, 180px) 1fr; gap: 10px; }
.inbox-item dt { font-weight: 700; }
.inbox-item dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.inbox-item dd a { text-decoration: underline; }
.inbox-files { padding-left: 0; list-style: none; margin: 12px 0 0; }
.inbox-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 960px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-inner { grid-template-columns: 1fr; }
  .wrap { width: min(100% - 48px, 1280px); }
  .hero-inner { min-height: 450px; }
  .hero-copy { padding-block: 56px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .top-inner { flex-wrap: wrap; min-height: auto; padding-block: 12px; gap: 10px; }
  .top .brand { width: clamp(110px, 34vw, 153px); }
  .top nav { order: 3; width: 100%; justify-content: flex-start; gap: 16px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .84rem; overflow-x: auto; }
  .button-small { font-size: .79rem; padding-inline: 9px; min-height: 38px; gap: 5px; }
  .hero-inner { display: flex; flex-direction: column; min-height: auto; }
  .hero-copy { align-self: start; padding-block: 42px 23px; }
  .hero-inner { gap: 0; }
  .hero-description { margin-top: 18px; }
  .hero-copy .actions { gap: 13px; margin-top: 19px; }
  .hero-photo { min-height: 215px; margin: 0 0 22px; background-position: 62% 43%; }
  .services, .about, .intake { padding-block: 42px; }
  .service-grid { grid-template-columns: 1fr; margin-top: 23px; }
  .service { padding: 18px; }
  #load-calculations { padding-top: 16px; }
  .service .text-link { padding-top: 11px; }
  .intake-inner { grid-template-columns: 1fr; gap: 23px; }
  .footer .top-inner { min-height: 80px; }
  .footer .top-inner > p { display: none; }
}
@media (max-width: 395px) {
  .field-grid:not(.address-grid) { grid-template-columns: 1fr; }
  .form-switch button { font-size: .79rem; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
[hidden] { display: none !important; }
.form-section { margin: 0; min-inline-size: 0; padding-inline: 0; border-inline: 0; border-bottom: 0; }
.form-section legend { padding-inline: 0 12px; font-weight: 750; }
.upload-note { color: var(--muted); font-size: .82rem; }
