/* Excellent Heating & Air Solutions - styles
   Palette sampled from the combined logo (/workspace/brand/logo_combined.png):
   navy   #0E1472 / royal #0C3090  (EXCELLENT wordmark gradient)
   green  #005D27 / #008430        (green X, HEATING AND AIR line)
   gold   #D8C06C / deep #9C8430   (flame)
   Call buttons: gold with navy text (8.5:1). Green buttons: white text (5.4:1). */

:root {
  --green: #0a7a36;
  --green-dark: #005d27;
  --gold: #e0bf5a;
  --gold-hover: #d2ad42;
  --gold-deep: #9c8430;
  --gold-soft: #fbf6e4;
  --royal: #2346c8;
  --navy: #0d1b6b;
  --navy-2: #16308f;
  --alert: #b3261e;
  --ink: #1b2233;
  --muted: #535c6e;
  --line: #dde2ea;
  --bg-alt: #f3f6fa;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(13, 27, 107, .08);
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em;
  border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--royal); outline-offset: 2px;
}
.btn-call { background: var(--gold); color: var(--navy); box-shadow: inset 0 0 0 1px rgba(156, 132, 48, .55); }
.btn-call:hover { background: var(--gold-hover); }
.btn-quote { background: var(--green); color: #fff; }
.btn-quote:hover { background: var(--green-dark); }
.btn-lg { font-size: 1.125rem; min-height: 54px; padding: .8em 1.6em; }
.btn-block { width: 100%; }
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(13, 27, 107, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { flex: none; }
.brand img { height: 42px; width: auto; }
.main-nav { display: none; }
.header-call { min-height: 42px; padding: .55em 1.1em; font-size: .95rem; }
.header-call .call-label { display: none; }   /* phones: short "Call" label; sticky bar also has the number */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1200px 400px at 110% -10%, rgba(35, 70, 200, .45), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 44px 0 52px;
  overflow: hidden;
}
.hero::after { /* green / gold brand stripe */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--green) 0 50%, var(--gold) 50% 100%);
}
.hero h1 { color: #fff; font-size: clamp(1.85rem, 6.4vw, 3.1rem); letter-spacing: -.01em; max-width: 20ch; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #ecd98f;
}
.lead { font-size: 1.125rem; color: #e3ebf7; max-width: 60ch; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 22px; }
.hero-card { display: none; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.hero-facts li {
  font-size: .9rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 4.8vw, 2.25rem); }
.section-title::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 12px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green) 0 50%, var(--gold) 50% 100%);
}
.section-intro { color: var(--muted); margin-bottom: 28px; max-width: 65ch; }

/* Services */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 24px; }
.section-intro + .cards { margin-top: 0; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.2rem; margin-top: 14px; }
/* Emergency: full-width banner card under the 3x2 (2x3 on tablet) grid */
.card-wide { grid-column: 1 / -1; background: var(--gold-soft); border-color: #eadca9; }
.card-wide .btn { margin-top: 16px; width: 100%; }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; }
.card-icon svg { width: 26px; height: 26px; fill: #fff; }
.icon-navy { background: var(--navy-2); }
.icon-green { background: var(--green); }
.icon-gold { background: var(--gold-deep); }

/* Why us */
.features { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.features li {
  position: relative; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  padding: 18px 18px 18px 58px;
}
.features li::before { /* check mark badge */
  content: ""; position: absolute; left: 18px; top: 20px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.features strong { display: block; color: var(--navy); font-size: 1.08rem; }
.features span { color: var(--muted); }

/* Photo placeholders (TODO: replace with real job photos) */
.photo-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.photo-placeholder {
  aspect-ratio: 16 / 9; border-radius: var(--radius);
  display: grid; place-items: center;
  border: 2px dashed #b9c4d6;
  background:
    repeating-linear-gradient(45deg, rgba(13, 27, 107, .035) 0 12px, transparent 12px 24px),
    var(--bg-alt);
  color: var(--muted); font-weight: 600;
}
.photo figure, .photo { margin: 0; }
.photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photo figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* Service area */
.area-list {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.area-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px 10px 32px; position: relative; font-weight: 600; color: var(--navy);
  font-size: .98rem;
}
.area-list li::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--gold-deep);
}
.area-note { color: var(--muted); margin: 0; }

/* Quote */
.section-quote { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #e3ebf7; }
.section-quote .section-title { color: #fff; }
.quote-inner { display: grid; gap: 28px; }
.quote-phone a { color: #fff; font-size: 1.75rem; font-weight: 800; text-decoration: none; }
.quote-hours { color: #ecd98f; }
.quote-form {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); font-size: .98rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; /* 16px+ prevents iOS zoom */
  padding: 12px 14px; border: 1px solid #b9c4d6; border-radius: 8px; background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--royal); }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
.req { color: var(--alert); }
.form-note { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }
.hidden-field { position: absolute; left: -9999px; }
.form-success {
  background: #e9f5ec; border: 1px solid #b7dcc0; color: #1c4d25;
  padding: 14px 16px; border-radius: 8px; margin-bottom: 16px;
}

/* ---------- Footer ---------- */
.site-footer { background: #080f45; color: #c6d1e3; padding: 44px 0 calc(84px + env(safe-area-inset-bottom)); font-size: .95rem; } /* bottom room for sticky mobile bar */
.site-footer a { color: #fff; }
.footer-inner { display: grid; gap: 24px; grid-template-columns: 1fr; }
.footer-name { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: .4em; }
.footer-head { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; margin-bottom: .4em; }
.footer-phone { font-size: 1.35rem; font-weight: 800; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 14px; font-size: .85rem; color: #93a1ba; }
.footer-bottom p { margin: 0; }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(13, 27, 107, .12);
}
.mobile-bar .btn { min-height: 50px; font-size: 1.05rem; }

/* ---------- Small phones ---------- */
@media (max-width: 359px) {
  .brand img { height: 36px; }
  .header-call { padding: .55em .8em; }
}

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  .brand img { height: 50px; }
  .header-call .call-label { display: inline; }
  .header-call .call-short { display: none; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-placeholder { aspect-ratio: 4 / 3; }
  .area-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --header-h: 90px; }
  .site-footer { padding-bottom: 14px; }
  .mobile-bar { display: none; }
  .brand img { height: 66px; }
  .hero-inner { display: grid; grid-template-columns: 1.45fr 1fr; gap: 56px; align-items: center; }
  .hero-card {
    display: block; background: #fff; color: var(--ink); border-radius: 16px; padding: 28px 28px 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  }
  .hero-card img { width: 250px; margin: 0 auto 18px; }
  .hero-card dl { margin: 0 0 16px; }
  .hero-card dl div { padding: 10px 0; border-top: 1px solid var(--line); }
  .hero-card dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--green-dark); }
  .hero-card dd { margin: 0; font-weight: 600; color: var(--navy); }
  .hero-card-phone {
    display: block; text-align: center; font-size: 1.5rem; font-weight: 800; color: var(--green-dark);
    text-decoration: none; padding-top: 12px; border-top: 1px solid var(--line);
  }
  .main-nav { display: flex; gap: 28px; margin-left: auto; }
  .main-nav a { color: var(--navy); font-weight: 600; text-decoration: none; }
  .main-nav a:hover { color: var(--green); }
  .header-call { font-size: 1rem; padding: .65em 1.2em; }
  .hero { padding: 80px 0 88px; }
  .lead { font-size: 1.25rem; }
  .section { padding: 80px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .card-wide { display: flex; align-items: center; gap: 20px; }
  .card-wide h3 { margin-top: 0; }
  .card-wide-body { flex: 1; }
  .card-wide .btn { margin-top: 0; width: auto; white-space: nowrap; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .area-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quote-inner { grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
  .quote-form { padding: 32px; }
}
