/* ============================
   Hale's Heat & Air, LLC
   Brand colors sampled from business card
   ============================ */
:root {
  color-scheme: light;
  --navy: #16232e;
  --navy-2: #1f3040;
  --blue: #4a8fc2;
  --blue-dark: #386f9c;
  --blue-tint: #eaf3fa;
  --orange: #e2632e;
  --orange-dark: #c74e1f;
  --text: #26333f;
  --text-light: #5c6b78;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --border: #e3eaf0;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(22, 35, 46, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(22, 35, 46, 0.12);

  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-head: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; text-transform: none; margin-bottom: 0.4em; }

p { margin: 0 0 1em; color: var(--text-light); }

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

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

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-call {
  background: var(--blue);
  color: #fff;
  padding: 8px 16px;
}
.btn-call .icon { width: 14px; height: 14px; }
.btn-call:hover { background: var(--blue-dark); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 1; min-width: 0; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--font-head); font-size: clamp(0.85rem, 4vw, 1.15rem); color: var(--blue-dark); font-weight: 600; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-name strong { color: var(--navy); }
.brand-sub { font-size: 0.68rem; letter-spacing: 1.5px; color: var(--orange-dark); text-transform: uppercase; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav {
  display: flex;
  gap: 18px;
  font-weight: 600;
  font-size: 0.88rem;
}
.main-nav a { color: var(--text); padding: 6px 0; position: relative; white-space: nowrap; }
.main-nav a:hover { color: var(--blue-dark); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1180px) {
  .main-nav { display: flex; }
  .hamburger { display: none; }
}

/* Header call button is redundant with the sticky mobile call bar below this width */
@media (max-width: 599px) {
  .btn-call { display: none; }
}

/* Mobile dropdown nav */
@media (max-width: 1179px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 60px 0 70px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(226,99,46,0.55), transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(74,143,194,0.5), transparent 50%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #223e52 100%);
  z-index: -1;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: center;
}
.eyebrow {
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--orange);
  margin-bottom: 10px;
}
.hero .eyebrow { color: #ffb08a; }
.hero h1 { color: #fff; margin-bottom: 0.35em; }
.hero h1 span { color: var(--blue); }
.hero-lead { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 22px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; font-size: 0.85rem; color: rgba(255,255,255,0.75); font-weight: 600; }
.hero-trust li { display: flex; align-items: center; gap: 6px; }
.hero-trust li::before { content: '\2713'; color: var(--blue); font-weight: 700; }

.hero-art { display: none; }
.hero-logo { width: 220px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35)); }

@media (min-width: 900px) {
  .hero { padding: 100px 0 110px; }
  .hero-inner { flex-direction: row; text-align: left; align-items: center; justify-content: space-between; }
  .hero-copy { flex: 1; }
  .hero-lead { margin-left: 0; }
  .hero-ctas { justify-content: flex-start; }
  .hero-trust { justify-content: flex-start; }
  .hero-art { display: block; flex-shrink: 0; }
  .hero-logo { width: 280px; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark p { color: rgba(255,255,255,0.75); }
.section-dark h2 { color: #fff; }

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-lead { font-size: 1.05rem; }

/* ---------- Services ---------- */
.grid { display: grid; gap: 22px; }
.services-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--orange), var(--blue));
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.service-card p { margin-bottom: 0; font-size: 0.95rem; }

.service-card-link { font-size: 0.88rem; font-weight: 600; color: var(--blue-dark); }
.service-card-link:hover { color: var(--orange-dark); }

/* ---------- Maintenance Membership ---------- */
.membership-pricing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 44px;
  max-width: 880px;
}
.membership-price {
  flex: 1 1 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.membership-price .price { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--orange-dark); }
.membership-price .price small { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--text-light); }
.membership-price .price-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-top: 4px; }
.membership-price-note { display: flex; flex-direction: column; justify-content: center; }
.membership-price .price-sub { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }

.membership-grid { grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; }
@media (min-width: 780px) { .membership-grid { grid-template-columns: 1fr 1fr; } }
.membership-grid .card { display: flex; flex-direction: column; }
.membership-grid .card > .btn { margin-top: auto; }

.check-list-columns { display: block; column-count: 1; column-gap: 20px; }
@media (min-width: 500px) { .check-list-columns { column-count: 2; } }
.check-list-columns li { break-inside: avoid; margin-bottom: 8px; }

/* ---------- Coil Cleaning ---------- */
.coil-grid { grid-template-columns: 1fr; max-width: 880px; margin: 0 auto; }
@media (min-width: 780px) { .coil-grid { grid-template-columns: 1fr 1fr; } }

.coil-card { display: flex; flex-direction: column; }
.coil-card h3 { text-transform: uppercase; font-family: var(--font-head); font-size: 1.4rem; color: var(--blue-dark); }
.coil-price { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--orange-dark); margin-bottom: 14px; }
.coil-price span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--text-light); text-transform: none; }

.check-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--text); }
.check-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--blue-dark); font-weight: 700; }

.coil-for { font-size: 0.88rem; color: var(--text-light); margin-bottom: 20px; }
.coil-for strong { color: var(--navy); }

.coil-pricing-table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 0.92rem; }
.coil-pricing-table th,
.coil-pricing-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.coil-pricing-table th { color: var(--navy); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.8rem; }
.coil-pricing-table td { color: var(--text-light); }
.coil-pricing-table tr:last-child td { border-bottom: none; font-weight: 600; color: var(--orange-dark); }

.coil-card > .btn { margin-top: auto; }

.btn-outline-dark {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue-dark);
}
.btn-outline-dark:hover { background: var(--blue-tint); transform: translateY(-2px); }

/* ---------- Why Us ---------- */
.why-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}
.why-copy { max-width: 640px; text-align: center; }
.why-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 18px;
  text-align: left;
}
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-list p { margin: 2px 0 0; font-size: 0.92rem; }
.why-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.why-visual { width: 100%; max-width: 320px; }
.why-badge {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
}
.why-badge img { width: 100px; margin: 0 auto 16px; }
.why-badge p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.95rem; }
.why-badge strong { color: #fff; font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.5px; }

@media (min-width: 900px) {
  .why-inner { flex-direction: row; text-align: left; align-items: center; }
  .why-copy { text-align: left; }
}

/* ---------- Service Area ---------- */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.area-tags span {
  background: var(--blue-tint);
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(74,143,194,0.25);
}

/* ---------- Testimonials ---------- */
.testimonial-grid { grid-template-columns: 1fr; max-width: 780px; margin: 0 auto; }
@media (min-width: 640px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }

.testimonial-card { text-align: center; }
.stars { color: var(--orange); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-quote { font-size: 1.05rem; color: var(--navy); font-style: italic; margin-bottom: 10px; }
.testimonial-author { margin: 0; font-weight: 600; font-size: 0.9rem; color: var(--text-light); }
.testimonial-more { text-align: center; margin: 32px 0 0; }
.testimonial-more a { font-weight: 600; color: var(--blue-dark); }
.testimonial-more a:hover { color: var(--orange-dark); }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .contact-inner { grid-template-columns: 1fr 1fr; align-items: start; }
}

.contact-methods { display: grid; gap: 14px; margin-top: 28px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-method:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.contact-method .icon { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--orange); fill: none; }
.contact-method div { display: flex; flex-direction: column; }
.contact-method strong { font-size: 0.95rem; }
.contact-method span { color: rgba(255,255,255,0.7); font-size: 0.88rem; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text);
  resize: vertical;
}
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235c6b78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 7.5 10 12.5 15 7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-row select:invalid { color: var(--text-light); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74,143,194,0.18);
}
.form-note { font-size: 0.8rem; color: var(--text-light); text-align: center; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1922; color: rgba(255,255,255,0.7); padding: 36px 0 90px; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--orange); }
.footer-info { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; font-weight: 600; font-size: 0.9rem; }
.footer-info a:hover { color: var(--blue); }
.footer-copy { font-size: 0.8rem; margin: 0; color: rgba(255,255,255,0.45); }

@media (min-width: 800px) {
  .site-footer { padding-bottom: 36px; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Mobile sticky call bar ---------- */
.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 -6px 18px rgba(0,0,0,0.18);
}
.mobile-call-bar .icon { width: 18px; height: 18px; fill: #fff; stroke: none; }

@media (min-width: 800px) {
  .mobile-call-bar { display: none; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 86px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top img { width: 100%; height: 100%; object-fit: contain; }

@media (min-width: 800px) {
  .back-to-top { bottom: 24px; width: 54px; height: 54px; padding: 8px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--navy);
  padding: 14px 20px;
  border-radius: 12px;
  border-left: 4px solid var(--blue);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  max-width: min(90vw, 420px);
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
  background: var(--blue);
}
.toast-success { border-left-color: #2e9e5b; }
.toast-success .toast-icon { background: #2e9e5b; }
.toast-success .toast-icon::before { content: '\2713'; }
.toast-error { border-left-color: #d64545; }
.toast-error .toast-icon { background: #d64545; }
.toast-error .toast-icon::before { content: '!'; }
