/* Premier Climate Control — rebuilt 2026-08-23
   Palette taken from the original site's own CSS, not invented:
     navy #151C62 (headings)  orange #FE7420 (panels)  blue #054AAB (buttons)
     body grey #71757B */

:root {
  --navy:      #151C62;
  --navy-deep: #0E1345;
  --orange:    #FE7420;
  --orange-dk: #E4600F;
  --blue:      #054AAB;
  --blue-dk:   #043B88;

  --ground:    #FFFFFF;
  --surface:   #FFFFFF;
  --sunken:    #F4F6FA;
  --ink:       #1E2430;
  --ink-soft:  #4A515E;
  --ink-mute:  #71757B;
  --rule:      #E1E6EF;
  --rule-firm: #C7CFDD;
  --on-dark:   #FFFFFF;

  --disp: "Libre Franklin", Helvetica, Arial, sans-serif;
  --body: "Libre Franklin", Helvetica, Arial, sans-serif;

  --shell: 1240px;
  --r: 3px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:    #0D1017;
    --surface:   #141924;
    --sunken:    #101520;
    --ink:       #E9EDF5;
    --ink-soft:  #BFC7D6;
    --ink-mute:  #8D96A8;
    --rule:      #232B3A;
    --rule-firm: #35405400;
    --rule-firm: #354054;
    --navy:      #8FA0E8;
    --navy-deep: #0A0E28;
    --blue:      #4C8DE8;
    --blue-dk:   #3C74C4;
  }
}

:root[data-theme="dark"] {
  --ground:    #0D1017;
  --surface:   #141924;
  --sunken:    #101520;
  --ink:       #E9EDF5;
  --ink-soft:  #BFC7D6;
  --ink-mute:  #8D96A8;
  --rule:      #232B3A;
  --rule-firm: #354054;
  --navy:      #8FA0E8;
  --navy-deep: #0A0E28;
  --blue:      #4C8DE8;
  --blue-dk:   #3C74C4;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; background: var(--orange); color: #fff; padding: 10px 16px; z-index: 300; }
.skip:focus { left: 0; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 26px; }

h1, h2, h3, h4 {
  font-family: var(--disp);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(31px, 4.4vw, 50px); }
h2 { font-size: clamp(25px, 3vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 16px; }

.lead { font-size: 18.5px; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-mute); }
.small { font-size: 14px; }
.center { text-align: center; }

/* ---------- top bar ---------- */

.topbar { background: var(--navy); color: #DDE3F5; font-size: 14px; }
.topbar .shell { display: flex; gap: 22px; align-items: center; min-height: 42px; flex-wrap: wrap; }
.topbar .spacer { flex: 1; }
.topbar a { color: #DDE3F5; text-decoration: none; }
.topbar a:hover { color: var(--orange); }

/* ---------- masthead ---------- */

.masthead { background: var(--surface); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 100; }
.masthead .shell { display: flex; align-items: center; gap: 24px; min-height: 88px; }
.brand img { height: 54px; width: auto; }
.brand { display: flex; align-items: center; text-decoration: none; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a {
  font-family: var(--disp); font-weight: 600; font-size: 15.5px;
  color: var(--navy); text-decoration: none; padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--orange); }
.nav a.on { border-bottom-color: var(--orange); }
.nav a.cta { background: var(--orange); color: #fff; padding: 11px 22px; border-radius: var(--r); border-bottom: none; }
.nav a.cta:hover { background: var(--navy); color: #fff; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.burger span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; font-family: var(--disp); font-weight: 600; font-size: 16px;
  background: var(--blue); color: #fff; text-decoration: none;
  padding: 13px 30px; border-radius: var(--r); border: 2px solid var(--blue); cursor: pointer;
}
.btn:hover { background: var(--blue-dk); border-color: var(--blue-dk); color: #fff; }
.btn.orange { background: var(--orange); border-color: var(--orange); }
.btn.orange:hover { background: var(--orange-dk); border-color: var(--orange-dk); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--rule-firm); }
.btn.ghost:hover { border-color: var(--orange); color: var(--orange); background: transparent; }
.btn.big { font-size: 17px; padding: 15px 34px; }

/* ---------- hero ---------- */

.hero {
  background: var(--sunken);
  background-image: url("img/home_electric_dark_texture.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  border-bottom: 1px solid var(--rule);
  text-align: center;
  padding: 74px 0 78px;
}
.hero .kicker { font-weight: 600; color: var(--navy); max-width: 54ch; margin: 0 auto 14px; }
.hero h1 { max-width: 20ch; margin: 0 auto 26px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- the alternating image / colour split (the site's signature block) ---------- */

.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo > * { min-height: 460px; }
.duo .shot { background-size: cover; background-position: center; }
.duo .panel {
  background: var(--orange); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 56px 8%;
}
.duo .panel.navy { background: var(--navy); }
.duo .panel h2 {
  color: #fff; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(22px, 2.4vw, 31px); margin-bottom: 16px;
}
.duo .panel p { color: rgba(255,255,255,.94); max-width: 46ch; margin-bottom: 22px; }
.duo .panel .btn { background: var(--blue); border-color: var(--blue); }
.duo .panel .btn:hover { background: #fff; border-color: #fff; color: var(--navy); }
.duo .panel.navy .btn { background: var(--orange); border-color: var(--orange); }
.duo .panel.navy .btn:hover { background: #fff; border-color: #fff; color: var(--navy); }
.duo .icon { width: 46px; height: 46px; margin-bottom: 16px; opacity: .95; }
.duo .icon svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 1.6; }

/* ---------- bands ---------- */

.band { padding: 66px 0; }
.band.alt { background: var(--sunken); border-block: 1px solid var(--rule); }
.pagehead {
  background: var(--navy); color: #fff; padding: 58px 0 52px;
  background-image: linear-gradient(rgba(21,28,98,.92), rgba(21,28,98,.92));
  background-size: cover; background-position: center;
}
.pagehead h1 { color: #fff; }
.pagehead .lead { color: rgba(255,255,255,.9); }
.pagehead .eyebrow { color: var(--orange); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.section-title { margin-bottom: 12px; }
.section-intro { color: var(--ink-mute); max-width: 60ch; margin-bottom: 32px; }

/* ---------- cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  text-decoration: none; color: inherit; display: flex; flex-direction: column; overflow: hidden;
}
.card:hover { border-color: var(--orange); }
.card .card-img { aspect-ratio: 16/10; background: var(--sunken); background-size: cover; background-position: center; }
.card .card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; }
.card p { color: var(--ink-mute); font-size: 15px; margin: 0; }
.card .more { margin-top: auto; padding-top: 10px; font-family: var(--disp); font-weight: 600; font-size: 15px; color: var(--blue); }
.card:hover .more { color: var(--orange); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--orange); border-radius: var(--r); padding: 22px; text-align: center; }
.stat b { display: block; font-family: var(--disp); font-size: 34px; font-weight: 700; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-mute); font-size: 14.5px; }

/* ---------- prose ---------- */

.prose { max-width: 70ch; }
.prose h2 { margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 8px; }
.prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 7px; }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.figures img { border-radius: var(--r); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- catalogue ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.chip {
  font-family: var(--disp); font-weight: 600; font-size: 14.5px;
  background: var(--surface); color: var(--navy);
  border: 1px solid var(--rule-firm); border-radius: 100px; padding: 8px 18px; cursor: pointer;
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 20px; }
.unit { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.unit:hover { border-color: var(--orange); }
/* flex + object-fit, not grid + max-height: a percentage max-height against an
   aspect-ratio-derived height collapses the image to nothing */
.unit-img { background: #fff; aspect-ratio: 4/3; padding: 14px; display: flex; align-items: center; justify-content: center; }
.unit-img img { width: 100%; height: 100%; object-fit: contain; }
.unit-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.brand-tag { font-family: var(--disp); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.unit-body h3 { font-size: 17px; line-height: 1.25; }
.btu { align-self: flex-start; font-family: var(--disp); font-weight: 600; font-size: 12.5px; background: var(--sunken); color: var(--navy); padding: 4px 10px; border-radius: 100px; font-variant-numeric: tabular-nums; }
.quote-link { margin-top: auto; padding-top: 10px; font-family: var(--disp); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.noresult { text-align: center; color: var(--ink-mute); padding: 34px 0; }

/* ---------- cta ---------- */

.cta-band { background: var(--navy); color: #fff; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.86); margin: 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 44px; align-items: start; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--disp); font-weight: 600; font-size: 15px; color: var(--navy); }
.field .hint { font-weight: 400; font-size: 13.5px; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule-firm); border-radius: var(--r); padding: 12px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }

.contact-details { background: var(--sunken); border: 1px solid var(--rule); border-top: 3px solid var(--orange); border-radius: var(--r); padding: 28px; }
.contact-details h2 { font-size: 22px; margin-bottom: 16px; }
.contact-details dl { margin: 0; }
.contact-details dt { font-family: var(--disp); font-weight: 600; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-top: 14px; }
.contact-details dd { margin: 0; color: var(--ink); }

#formstatus:not(:empty) { padding: 14px 16px; border-radius: var(--r); margin-bottom: 20px; border: 1px solid var(--rule-firm); background: var(--sunken); }
#formstatus.ok { background: #E7F3EA; border-color: #2F7D46; color: #2F7D46; }
#formstatus.bad { background: #FDEDE4; border-color: var(--orange); color: var(--orange-dk); }

/* ---------- footer ---------- */

.foot { background: var(--navy-deep); color: #C9D1E8; padding: 56px 0 0; }
.foot .grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 38px; padding-bottom: 42px; }
.foot img.flogo { height: 48px; margin-bottom: 14px; }
.foot h4 { font-family: var(--disp); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.foot a { color: #C9D1E8; text-decoration: none; }
.foot a:hover { color: var(--orange); }
.bare { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; padding-bottom: 24px; font-size: 13.5px; color: #8E99BE; }

/* ---------- responsive ---------- */

@media (max-width: 1060px) {
  .contact-grid { grid-template-columns: 1fr; }
  .foot .grid { grid-template-columns: 1fr 1fr; }
}

/* Collapse to the burger well before the nav starts cramping. At 768px the
   full nav squeezed "Air Conditioners" and the CTA onto two lines each. */
@media (max-width: 980px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--surface);
    border-bottom: 1px solid var(--rule); box-shadow: 0 10px 24px rgba(16,24,48,.10);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 26px 18px; display: none;
    max-height: calc(100vh - 130px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 15px 2px; border-bottom: 1px solid var(--rule);
    border-left: 3px solid transparent; font-size: 17px;
  }
  .nav a.on { border-bottom-color: var(--rule); border-left-color: var(--orange); padding-left: 12px; }
  .nav a.cta { text-align: center; margin-top: 14px; border: 0; padding: 14px 22px; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .burger span { transition: transform .18s ease, opacity .18s ease; }
}

@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .duo > * { min-height: 0; }
  .duo .shot { min-height: 260px; }
  .duo .panel { padding: 46px 26px; }
  .row2 { grid-template-columns: 1fr; }
  .cta-in { flex-direction: column; align-items: stretch; text-align: left; }
  .cta-in .btn { align-self: flex-start; }
}

/* Phones */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .shell { padding: 0 20px; }

  /* the top bar was wrapping onto two lines; keep the phone number, which is
     the thing someone on a phone actually taps */
  .topbar { font-size: 13.5px; }
  .topbar .shell { justify-content: center; gap: 0 18px; min-height: 38px; }
  .topbar .spacer { display: none; }
  .topbar span:first-child { display: none; }
  .topbar a[href^="mailto"] { display: none; }
  .topbar a[href^="tel"] { font-weight: 600; }

  .masthead .shell { min-height: 66px; gap: 12px; }
  .brand img { height: 40px; }

  .hero { padding: 40px 0 44px; background-size: cover; background-position: center; }
  /* 20ch was forcing five ragged lines on a 390px screen */
  .hero h1 { max-width: none; font-size: clamp(27px, 7.4vw, 36px); line-height: 1.16; }
  .hero .kicker { font-size: 15.5px; margin-bottom: 16px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .band { padding: 44px 0; }
  .pagehead { padding: 40px 0 36px; }
  h2 { font-size: clamp(23px, 6.2vw, 30px); }

  .duo .panel { padding: 40px 22px; }
  .duo .panel h2 { font-size: clamp(21px, 6vw, 27px); }
  .duo .shot { min-height: 220px; }

  .cards { gap: 16px; }
  .units { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .unit-body { padding: 13px 14px 15px; }
  .unit-body h3 { font-size: 15.5px; }

  .filters { gap: 8px; margin-bottom: 22px; }
  .chip { font-size: 14px; padding: 11px 16px; line-height: 1.15; }

  /* comfortable tap targets on touch devices */
  .field input, .field select, .field textarea { padding: 13px 14px; font-size: 16px; }
  .btn { padding: 14px 26px; }
  .btn.big { width: 100%; text-align: center; }

  .stat-row { grid-template-columns: 1fr 1fr; }
  .foot { padding-top: 40px; }
  .foot .grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 30px; }

  /* footer and top-bar links were ~18px tall — too small to hit reliably
     with a thumb, so give them real vertical padding on touch screens */
  .bare { gap: 0; }
  .bare a { display: inline-block; padding: 10px 0; }
  .bare li:not(:has(a)) { padding: 10px 0; }
  .topbar a { display: inline-block; padding: 8px 2px; }
  .contact-details dd a { display: inline-block; padding: 4px 0; }
}

@media (max-width: 380px) {
  .stat-row { grid-template-columns: 1fr; }
  .units { grid-template-columns: 1fr; }
}
