/* Salt City Heating & Cooling: demo site for a made-up business, by Clinton Square Tech.
   World: the round wall thermostat. Flat colour, depth by overlap only; the dial's circle sets the shapes. */
@font-face { font-family: "Red Hat Display"; src: url("fonts/red-hat-display-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Red Hat Display"; src: url("fonts/red-hat-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Red Hat Display"; src: url("fonts/red-hat-display-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("fonts/red-hat-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("fonts/red-hat-text-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("fonts/red-hat-text-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --frost: #E9F0F6;      /* page ground: a Syracuse January */
  --white: #FFFFFF;
  --ink: #0E2235;
  --muted: #3D5266;
  --heat: #C93A12;       /* white on it 5.13:1; on frost only for large type */
  --heat-deep: #9A2B0C;
  --heat-tint: #F8DCCF;
  --cool: #1A5FAF;       /* white on it 6.36:1 */
  --cool-tint: #D3E3F5;
  --steel: #9AA7B4;
  --line: #C3CFDA;
  --demo: #FFD84D;
  --display: "Red Hat Display", system-ui, sans-serif;
  --text: "Red Hat Text", system-ui, sans-serif;
  --max: 1200px;
  --gutter: 48px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--frost); color: var(--ink); font-family: var(--text); font-size: 19px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
::selection { background: var(--cool-tint); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: var(--cool); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--heat); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--white); padding: 10px 14px; }

/* Demo notice: deliberately outside the site's own palette */
.demo-bar { background: var(--demo); color: var(--ink); text-align: center; padding: 10px 16px; font-size: 16px; border-bottom: 2px solid var(--ink); }
.demo-bar p { margin: 0; }
.demo-bar a { color: var(--ink); font-weight: 700; margin-left: 6px; white-space: nowrap; }

.emergency { background: var(--heat); color: var(--white); text-align: center; padding: 10px 16px; font-size: 17px; }
.emergency p { margin: 0; }
.emergency a { color: var(--white); font-weight: 700; white-space: nowrap; }
.emergency a:hover { color: var(--white); text-decoration-thickness: 3px; }
.emergency a:focus-visible, .svc.plan a:focus-visible, footer a:focus-visible, .callbar:focus-visible { outline-color: var(--white); }
.dial-call:focus-visible, .top .nav-call:focus-visible, .btn-heat:focus-visible { outline-color: var(--ink); }

/* Header */
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 48px; }
.brand-dial { width: 40px; height: 40px; border-radius: 50%; flex: none; background: conic-gradient(from 225deg, var(--heat) 0 135deg, var(--cool) 135deg 270deg, transparent 270deg); -webkit-mask: radial-gradient(circle, transparent 11px, #000 12px); mask: radial-gradient(circle, transparent 11px, #000 12px); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.1; }
.brand-name b { display: block; font-weight: 900; font-size: 21px; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; font-weight: 500; font-size: 17px; }
.top nav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover { color: var(--cool); }
.top .nav-call { background: var(--heat); color: var(--white); border-radius: 999px; padding: 0 18px; font-weight: 700; }
.top .nav-call:hover { background: var(--heat-deep); color: var(--white); }

/* Hero: the thermostat dial is the call button */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero h1 { font-weight: 900; font-size: clamp(38px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 20px; }
.lede { font-size: 21px; color: var(--muted); margin: 0 0 22px; max-width: 32em; }
.hero-alt { margin: 0; font-size: 18px; }
.hero-alt a { font-weight: 700; }

.dial-wrap { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; margin-left: auto; }
.dial-svg { width: 100%; height: 100%; }
.d-bezel { fill: var(--steel); }
.d-face { fill: var(--white); }
.d-heat, .d-cool { fill: none; stroke-width: 12; stroke-linecap: round; }
.d-heat { stroke: var(--heat); }
.d-cool { stroke: var(--cool); }
.d-minor { stroke: var(--steel); stroke-width: 1.5; }
.d-major { stroke: var(--ink); stroke-width: 3; }
.d-label { font-family: var(--display); font-weight: 700; font-size: 17px; fill: var(--ink); text-anchor: middle; }
.d-set { transform-origin: 200px 200px; transform: rotate(121.5deg); }
.d-set-mark { fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .d-set { animation: setpoint 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
  @keyframes setpoint { from { transform: rotate(0deg); } to { transform: rotate(121.5deg); } }
}
.dial-call {
  position: absolute; left: 50%; top: 50%; width: 47%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--heat); color: var(--white); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 8px var(--line);
}
.dial-call:hover { background: var(--heat-deep); color: var(--white); }
.dial-call:active { transform: translate(-50%, -50%) scale(0.97); }
.dc-top, .dc-bottom { font-family: var(--display); font-weight: 700; font-size: 17px; }
.dc-num { font-family: var(--display); font-weight: 900; font-size: clamp(20px, 2vw, 27px); line-height: 1.1; white-space: nowrap; }

/* Services: heat on the left, the plan in the middle, cool on the right, like the dial */
.services { padding: 72px 0; background: var(--white); }
.services h2, .area h2, .reviews h2, .quote h2 { font-weight: 900; font-size: clamp(30px, 3.2vw, 42px); letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 28px; }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
/* Heat and cool meet in the middle like the two halves of the dial; the plan runs underneath both */
.svc.heat { border-radius: 20px 0 0 0; }
.svc.cool { border-radius: 0 20px 0 0; }
.svc.plan { grid-column: 1 / -1; border-radius: 0 0 20px 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 8px 40px; align-items: center; }
.svc.plan .plan-copy p { margin-bottom: 0; }
.svc.plan ul { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.svc.plan .svc-link { margin-top: 0; align-self: center; }
.svc { padding: 28px 32px 26px; display: flex; flex-direction: column; }
.svc h3 { font-weight: 900; font-size: 26px; margin-bottom: 10px; }
.svc p { margin: 0 0 14px; }
.svc ul { margin: 0 0 20px; padding: 0; list-style: none; }
.svc li { padding: 6px 0 6px 22px; position: relative; border-top: 1px solid rgba(14, 34, 53, 0.14); }
.svc li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.svc-link { margin-top: auto; font-weight: 700; align-self: flex-start; }
.svc.heat { background: var(--heat-tint); }
.svc.heat h3 { color: var(--heat-deep); }
.svc.heat .svc-link { color: var(--heat-deep); }
.svc.cool { background: var(--cool-tint); }
.svc.cool h3 { color: var(--cool); }
.svc.plan { background: var(--ink); color: var(--white); }
.svc.plan li { border-top-color: rgba(255, 255, 255, 0.2); }
.svc.plan .svc-link { color: var(--white); }
.svc.plan .svc-link:hover { color: var(--cool-tint); }

/* Service area */
.area .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.area p { margin: 0 0 10px; max-width: 30em; }
.area .area-note { color: var(--muted); font-size: 17px; }
.towns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.towns li { background: var(--white); border-radius: 999px; padding: 14px 20px 14px 46px; position: relative; font-family: var(--display); font-weight: 700; font-size: 21px; }
.towns li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--cool); }

/* Reviews placeholder: says where reviews would go, invents none */
.reviews .wrap { padding-top: 8px; padding-bottom: 72px; }
.reviews h2 { margin-bottom: 18px; }
.placeholder { border: 2px dashed var(--steel); border-radius: 20px; padding: 28px; max-width: 52em; background: rgba(255, 255, 255, 0.5); }
.placeholder p { margin: 0; color: var(--muted); }
.placeholder strong { color: var(--ink); }

/* Quote form */
.quote { background: var(--white); padding: 72px 0 88px; }
.quote .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.quote-head p { margin: 0; color: var(--muted); max-width: 26em; }
.quote-head a { font-weight: 700; white-space: nowrap; }
form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label, legend { display: grid; gap: 6px; font-weight: 700; font-size: 16px; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  font: inherit; font-size: 18px; font-weight: 400; color: var(--ink); caret-color: var(--heat);
  background: var(--frost); border: 1.5px solid #7D8E9E; border-radius: 10px; padding: 12px 14px; min-height: 50px; width: 100%;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--cool); outline-offset: 1px; border-color: var(--ink); }
textarea { resize: vertical; }
::placeholder { color: var(--muted); opacity: 1; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { margin-bottom: 8px; padding: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 17px; background: var(--frost); border: 1.5px solid transparent; border-radius: 999px; padding: 10px 16px; min-height: 48px; cursor: pointer; }
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { background: var(--cool-tint); border-color: var(--cool); }
.choice input { width: 20px; height: 20px; accent-color: var(--cool); margin: 0; flex: none; }
.btn-heat { justify-self: start; font: inherit; font-family: var(--display); font-weight: 900; font-size: 19px; background: var(--heat); color: var(--white); border: 0; border-radius: 999px; padding: 16px 28px; min-height: 52px; cursor: pointer; }
.btn-heat:hover { background: var(--heat-deep); }
.btn-heat:active { transform: translateY(1px); }
.form-status { margin: 0; font-weight: 700; min-height: 1.5em; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--heat-deep) !important; box-shadow: 0 0 0 1px var(--heat-deep); }
fieldset[aria-invalid="true"] .choice { border-color: var(--heat-deep); }
.form-status.is-error { color: var(--heat-deep); }
.form-status.is-done { color: var(--ink); background: var(--cool-tint); border-radius: 12px; padding: 12px 16px; }

footer { background: var(--ink); color: var(--white); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 28px; padding-bottom: 32px; font-size: 16px; }
footer p { margin: 0; }
footer a { color: var(--white); }
footer a[href^="tel"] { white-space: nowrap; }
footer a:hover { color: var(--cool-tint); }

/* Phone-only sticky call bar */
.callbar { display: none; }

@media (max-width: 900px) {
  .svc-row { grid-template-columns: 1fr; }
  .svc.heat { border-radius: 20px 20px 0 0; }
  .svc.cool { border-radius: 0; }
  .svc.plan { grid-template-columns: 1fr; gap: 14px; }
  .svc.plan .svc-link { align-self: flex-start; }
  .area .wrap, .quote .wrap { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 18px; padding-bottom: 76px; }
  .demo-bar { font-size: 15px; }
  .emergency { font-size: 16px; }
  .top nav { gap: 0 18px; font-size: 16px; }
  .top .nav-call { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; padding-bottom: 44px; }
  .lede { font-size: 18px; }
  .dial-wrap { max-width: 340px; margin: 0 auto; }
  .dc-top, .dc-bottom { font-size: 14px; }
  .dc-num { font-size: 21px; }
  .services, .quote { padding: 52px 0; }
  .area .wrap { padding-top: 52px; padding-bottom: 52px; }
  .towns { grid-template-columns: 1fr 1fr; gap: 10px; }
  .towns li { font-size: 18px; padding: 12px 14px 12px 40px; }
  .towns li::before { left: 14px; }
  .reviews .wrap { padding-bottom: 52px; }
  .field-row, .choices { grid-template-columns: 1fr; }
  .svc.plan ul { grid-template-columns: 1fr; }
  .callbar {
    display: flex; align-items: center; justify-content: center; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10;
    min-height: 56px; border-radius: 999px; background: var(--heat); color: var(--white); text-decoration: none;
    font-family: var(--display); font-weight: 900; font-size: 20px; box-shadow: 0 6px 18px -6px rgba(14, 34, 53, 0.55);
  }
  .callbar.is-away { transform: translateY(150%); visibility: hidden; }
  @media (prefers-reduced-motion: no-preference) { .callbar { transition: transform 200ms ease-out, visibility 200ms; } }
  .callbar:hover { color: var(--white); background: var(--heat-deep); }
}
