/* ============================================
   KONDI HVAC — shared styles
   Palette (research-driven):
   --ink     #081826  deep navy: trust / competence
   --paper   #F7F9FA  cool white: clean air
   --steel   #3D4E5A  body text
   --cool    #2C7DA0  cool blue accents
   --flame   #F07818  THE ONLY WARM COLOR — calls to action only
   ============================================ */

:root {
  --ink: #081826;
  --paper: #F7F9FA;
  --steel: #3D4E5A;
  --cool: #2C7DA0;
  --cool-tint: #E3EEF3;
  --flame: #F07818;
  --flame-dark: #D96608;
  --line: #D8E2E8;
  --max: 1120px;
  color-scheme: light only;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: #F7F9FA; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--steel);
  background: var(--paper);
}

img { max-width: 100%; display: block; }

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

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--ink);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: 1px; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cool);
  display: block;
  margin-bottom: 16px;
}

a { color: var(--cool); }

/* ---------- heat-to-cool divider (signature) ---------- */
.thermoline {
  height: 4px;
  border: 0;
  background: linear-gradient(90deg, var(--flame) 0%, #E8A13C 30%, var(--cool) 70%, var(--ink) 100%);
}

/* ---------- buttons: flame = action, nothing else is orange ---------- */
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 6px;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn-flame { background: var(--flame); color: #fff; }
.btn-flame:hover { background: var(--flame-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--cool);
  outline-offset: 2px;
}

/* ---------- welcome popup: bottom-right, non-blocking ---------- */
.welcome-overlay {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  max-width: 360px;
  width: calc(100% - 48px);
  pointer-events: none;
}
.welcome-overlay.open { display: block; }
.welcome-card {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  padding: 28px 24px 22px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  border: 1px solid var(--line);
  animation: welcomeIn 0.3s ease;
  pointer-events: auto;
}
@keyframes welcomeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.welcome-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  border: 0;
  background: var(--paper);
  border-radius: 50%;
  color: var(--steel);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome-close:hover { background: var(--line); }
.welcome-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  padding-right: 20px;
}
.welcome-card p {
  font-size: 0.9rem;
  color: var(--steel);
  margin-bottom: 18px;
}
.welcome-card .quickcontact { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.welcome-card .quickcontact .wrap { padding: 0; }
@media (max-width: 680px) {
  .welcome-overlay { bottom: 76px; right: 16px; width: calc(100% - 32px); max-width: 340px; }
}

/* ---------- quick contact strip: chat / call / text / email ---------- */
.quickcontact { background: #fff; border-bottom: 1px solid var(--line); }
.quickcontact .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.qc-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  text-decoration: none;
  color: var(--ink);
  border-right: 1px solid var(--line);
  transition: background 0.12s ease, color 0.12s ease;
}
.qc-btn:last-child { border-right: 0; }
.qc-btn svg { width: 20px; height: 20px; stroke: var(--cool); transition: stroke 0.12s ease; }
.qc-btn span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.qc-btn:hover { background: var(--flame); color: #fff; }
.qc-btn:hover svg { stroke: #fff; }

/* ---------- header ---------- */
.topbar {
  background: var(--ink);
  color: #C8DCE7;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 11px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 18px;
}
.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.logo span { color: var(--cool); }
.logo small {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 1.6px;
  color: var(--steel);
  margin-top: 3px;
  white-space: nowrap;
}

nav.main { display: flex; gap: 26px; }
nav.main a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
}
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--cool); }

.call-header {
  text-align: right;
  line-height: 1.2;
}
.call-header .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
}
.call-header a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--flame);
  text-decoration: none;
  white-space: nowrap;
}

/* mobile nav */
.menu-btn { display: none; background: none; border: 2px solid var(--ink); border-radius: 6px; padding: 8px 12px; font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  background: url('images/houston-skyline.jpg');
  background-size: cover;
  background-position: center 65%;
  color: #DCE8EF;
  padding: 200px 0 170px;
  position: relative;
  overflow: hidden;
}
.hero .wrap.hero-text { max-width: 720px; }
.hero .eyebrow {
  display: inline-block;
  background: rgba(10,20,29,0.72);
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 1.1rem;
  letter-spacing: 3.5px;
  color: #8FC4DC;
  margin-bottom: 12px;
}
.hero h1 {
  color: #fff;
  margin: 6px 0 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.55), 0 8px 30px rgba(0,0,0,0.65);
}
.hero h1 em {
  font-style: normal;
  color: #9FD3EA;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6), 0 8px 30px rgba(0,0,0,0.7);
}
.hero p.lede {
  font-size: 1.15rem;
  max-width: 46ch;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.55);
}
.hero .actions { margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: #fff; background: rgba(10,20,29,0.35); }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* thermostat readout — the signature */
.thermo {
  background: #0A2130;
  border: 1px solid #1D4258;
  border-radius: 14px;
  padding: 34px 30px;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
}
.thermo .row { display: flex; justify-content: space-around; align-items: baseline; gap: 18px; }
.thermo .temp { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; line-height: 1; }
.thermo .temp.out { color: var(--flame); }
.thermo .temp.in { color: #7FB6CE; }
.thermo .cap { font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; color: #6E8FA1; margin-top: 10px; display: block; }
.thermo .divider { width: 1px; background: #1D4258; align-self: stretch; }
.thermo .tagline { margin-top: 24px; padding-top: 20px; border-top: 1px solid #1D4258; font-size: 0.95rem; font-weight: 600; letter-spacing: 1.8px; color: #C8DCE7; text-transform: uppercase; }

/* ---------- trust strip ---------- */
.truststrip { background: #fff; border-bottom: 1px solid var(--line); }
.truststrip .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink);
}
.truststrip b { color: var(--cool); font-weight: 700; font-size: 1.1rem; }

/* ---------- sections ---------- */
section.block { padding: 76px 0; }
section.block.tint { background: var(--cool-tint); }
.block-head { max-width: 640px; margin-bottom: 44px; }
.block-head p { margin-top: 12px; }

/* ---------- service cards ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--cool);
}
.card p { font-size: 0.98rem; }
.card a.more {
  margin-top: auto;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- why us ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why .item { border-top: 4px solid var(--cool); padding-top: 18px; }
.why .item h3 { margin-bottom: 8px; }
.why .item p { font-size: 0.95rem; }

/* ---------- financing band ---------- */
.band {
  background: var(--ink);
  color: #DCE8EF;
  padding: 56px 0;
}
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.band h2 { color: #fff; }
.band p { color: #B9CDD9; max-width: 52ch; margin-top: 8px; }
.band .btn-ghost { color: #fff; border-color: #fff; background: rgba(255,255,255,0.08); }
.band .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- forms ---------- */
form.quote { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
form.quote .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--cool);
  outline-offset: 1px;
  border-color: var(--cool);
}
form .btn { border: 0; cursor: pointer; width: 100%; }

/* ---------- footer ---------- */
footer.site {
  background: var(--ink);
  color: #8FA9B9;
  padding: 56px 0 32px;
  font-size: 0.95rem;
}
footer.site .cols { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
footer.site h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
footer.site a { color: #B9CDD9; text-decoration: none; display: block; padding: 3px 0; }
footer.site a:hover { color: #fff; }
footer.site .phone { font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--flame) !important; }
footer.site .fine { border-top: 1px solid #1D4258; padding-top: 22px; font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer.site .fine .licnum { font-size: 0.72rem; letter-spacing: 1.1px; text-transform: none; }
footer.site .fine .licnum a { display: inline; color: #B9CDD9; text-decoration: underline; }
footer.site .fine .licnum a:hover { color: #fff; }
footer.site .regulator { margin-top: 16px; padding-top: 14px; border-top: 1px solid #1D4258; }
footer.site .regulator p { font-size: 0.78rem; line-height: 1.6; color: #7E9AAB; margin: 0; }
footer.site .regulator a { display: inline; color: #9FC4D8; text-decoration: underline; }
footer.site .regulator a:hover { color: #fff; }

/* ---------- mobile sticky call bar ---------- */
.callbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--flame);
  text-align: center;
  padding: 14px 130px 14px 14px;
}
.callbar a {
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- page hero (interior pages) ---------- */
.pagehero { background: var(--ink); color: #B9CDD9; padding: 56px 0; }
.pagehero.has-photo { background-size: cover; background-position: center; }
.pagehero.has-photo.tall { padding: 130px 0 120px; background-position: center 22%; }
@media (max-width: 800px) {
  .pagehero.has-photo.tall { padding: 80px 0 70px; background-position: center 20%; }
}
.pagehero .eyebrow { font-size: 1.15rem; letter-spacing: 3.5px; color: #8FC4DC; }
.pagehero h1 { color: #fff; margin-top: 8px; }
.pagehero p { max-width: 60ch; margin-top: 12px; font-size: 1.1rem; }
.pagehero .btn-ghost { color: #fff; border-color: #fff; background: rgba(255,255,255,0.08); }
.pagehero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- stat block ---------- */
.statblock { background: #fff; border-bottom: 1px solid var(--line); }
.statblock .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 24px;
}
.statblock .stat { text-align: center; }
.statblock .num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--ink);
  line-height: 1;
}
.statblock .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cool);
  margin-top: 8px;
  display: block;
}
@media (max-width: 680px) {
  .statblock .wrap { grid-template-columns: 1fr 1fr; }
}

/* ---------- photo feature ---------- */
.photo-feature {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 32px 0;
}
.photo-feature img {
  width: 100%;
  height: auto;
  display: block;
}
.photo-feature .cap {
  background: var(--ink);
  color: #B9CDD9;
  padding: 14px 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* photo-feature used as a grid column instead of full-width */
.grid .photo-feature { margin: 0; height: 100%; display: flex; flex-direction: column; }
.grid .photo-feature img { flex: 1; object-fit: cover; min-height: 260px; }
@media (max-width: 900px) {
  .grid .photo-feature img { min-height: 220px; }
}

/* staggered photo pair: one top-left, one offset bottom-right */
.photo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 8px 0 12px;
}
.photo-duo .photo-feature { margin: 0; }
.photo-duo .offset { margin-top: 72px; }
@media (max-width: 800px) {
  .photo-duo { grid-template-columns: 1fr; }
  .photo-duo .offset { margin-top: 0; }
}

/* ---------- compact service grid (services page) ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 28px;
}
.svc-card h3 { margin-bottom: 12px; }
.svc-card p { font-size: 0.96rem; }
.svc-card p + p { margin-top: 10px; }
.svc-card a { font-weight: 600; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ---------- service detail rows ---------- */
.svc-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.svc-row:last-child { border-bottom: 0; }
.svc-row h3 { position: sticky; top: 100px; }
.svc-row p + p { margin-top: 10px; }

/* ---------- area list ---------- */
.arealist { columns: 3; gap: 30px; }
.arealist li { list-style: none; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 1rem; break-inside: avoid; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .arealist { columns: 2; }
  .svc-row { grid-template-columns: 1fr; gap: 10px; }
  .svc-row h3 { position: static; }
}

@media (max-width: 680px) {
  nav.main {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 18px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 2px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .call-header { display: none; }
  .callbar { display: block; }
  body { padding-bottom: 62px; }
  .grid.cols-3, .grid.cols-2, .why { grid-template-columns: 1fr; }
  form.quote .two { grid-template-columns: 1fr; }
  .arealist { columns: 1; }
  .topbar .wrap { justify-content: center; }
  footer.site .cols { grid-template-columns: 1fr; }
}
