/* ============ DESIGN TOKENS ============ */
:root {
  --navy: #0a3a73;
  --navy-dark: #07294f;
  --navy-deep: #052244;
  --orange: #e8731c;
  --orange-dark: #cf6210;
  --green: #3a9e4a;
  --green-dark: #2f8a3e;
  --blue: #2b7fd4;
  --blue-dark: #1f6cbb;
  --ink: #1f2a37;
  --muted: #5a6b7b;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 58, 115, 0.08);
  --shadow-lg: 0 18px 50px rgba(10, 58, 115, 0.14);
  --container: 1120px;
}

/* ============ RESET / BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { color: var(--navy); line-height: 1.15; font-weight: 800; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.78rem; font-weight: 700; color: var(--blue); margin-bottom: 10px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem; padding: 13px 26px; border-radius: 8px;
  cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-block { width: 100%; }
.btn-furnace { background: var(--orange); color: #fff; }
.btn-furnace:hover { background: var(--orange-dark); }
.btn-heatpump { background: var(--green); color: #fff; }
.btn-heatpump:hover { background: var(--green-dark); }
.btn-ac { background: var(--blue); color: #fff; }
.btn-ac:hover { background: var(--blue-dark); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.03);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 24px; }
.brand-logo { height: 60px; width: auto; max-width: 70vw; flex: none; object-fit: contain; }
.main-nav { display: flex; gap: 28px; margin-left: 20px; }
.main-nav a {
  font-weight: 600; color: var(--ink); font-size: 0.95rem; padding: 6px 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: var(--navy); border-color: var(--navy); }
.header-phone { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.phone-icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy);
  color: #fff; display: grid; place-items: center; flex: none;
}
.phone-text strong { display: block; color: var(--navy); font-size: 1.25rem; line-height: 1.1; }
.phone-text small { color: var(--muted); font-size: 0.72rem; line-height: 1.2; display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(180deg, #eef3fb 0%, #f7f9fc 100%);
  position: relative; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center;
  padding: 70px 24px;
}
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.5px; }
.hero-copy p { color: var(--muted); font-size: 1.1rem; margin: 22px 0 30px; max-width: 460px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image img { border-radius: var(--radius); width: 100%; }

/* ============ SERVICES ============ */
.services { padding: 0 0 80px; margin-top: -40px; position: relative; z-index: 2; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; }
.media-frame { overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card-media img { height: 210px; width: 100%; object-fit: contain; background: #fff; padding: 14px; transform: scale(1.25); }
.card-icon {
  position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow);
  color: #fff; border: 3px solid #fff;
}
.icon-furnace { background: var(--orange); }
.icon-heatpump { background: var(--green); }
.icon-ac { background: var(--blue); }
.card-body { padding: 40px 26px 26px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card-body p { color: var(--muted); font-size: 0.96rem; margin-bottom: 20px; }
.feature-list { text-align: left; margin: 0 auto 22px; display: inline-block; }
.feature-list li { position: relative; padding-left: 28px; margin-bottom: 8px; font-size: 0.95rem; color: var(--ink); }
.feature-list li::before {
  content: "\2714"; position: absolute; left: 0; top: 0; width: 18px; height: 18px;
  font-size: 11px; color: #fff; border-radius: 50%; display: grid; place-items: center; line-height: 18px;
}
.feature-list.furnace li::before { background: var(--orange); }
.feature-list.heatpump li::before { background: var(--green); }
.feature-list.ac li::before { background: var(--blue); }
.card-body .btn { margin-top: auto; }

/* ============ ABOUT ============ */
.about { padding: 30px 0 80px; }
.about-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.about-copy h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 18px; }
.about-copy p { color: var(--muted); margin-bottom: 22px; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; font-weight: 600; color: var(--ink); }
.check-list li::before {
  content: "\2714"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  background: var(--blue); color: #fff; border-radius: 50%; font-size: 12px;
  display: grid; place-items: center; line-height: 20px;
}
.about-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }

/* ============ WHY CHOOSE US ============ */
.why { padding: 50px 0; background: var(--bg-soft); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.why-icon { color: var(--navy); display: inline-flex; margin-bottom: 12px; }
.why-item h4 { font-size: 1.05rem; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: 0.92rem; }

/* ============ CTA BAND ============ */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 44px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-text h2 { color: #fff; font-size: 1.9rem; }
.cta-text p { color: rgba(255,255,255,.85); }
.cta-band .btn-white { font-size: 1.3rem; padding: 16px 34px; }

/* ============ CONTACT ============ */
.contact { padding: 80px 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
.contact-copy p { color: var(--muted); margin-bottom: 26px; }
.contact-details li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 600; }
.contact-details svg { color: var(--navy); flex: none; }
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,58,115,.12);
}
.field textarea { resize: vertical; }
.hidden-field { display: none; }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.8); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 40px; }
.footer-logo { height: 64px; width: auto; max-width: 100%; background: #fff; padding: 12px 18px; border-radius: 10px; box-sizing: content-box; object-fit: contain; }
.footer-col h5 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { color: rgba(255,255,255,.8); overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; }
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,.6); text-align: center; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 24px;
  }
  .site-header.nav-open .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-inner { padding: 50px 24px; }
  .hero-image { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; }
}
