/* Furnace Repair Pros — Tinley Park, IL | Custom Design System */
:root {
  --bg-page: #f4f7fa;
  --bg-surface: #ffffff;
  --bg-ink: #0f233c;
  --bg-ink-deep: #091628;
  --bg-tint: #eaf0f6;
  --accent: #d9531e;
  --accent-hover: #b84214;
  --accent-soft: #fdf0ea;
  --text-main: #1b2838;
  --text-muted: #4b5c70;
  --border: #d8e1eb;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(15, 35, 60, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 35, 60, 0.1);
  --max-w: 1180px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.65;
  font-size: 16px;
  padding-bottom: 68px;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

img, svg { max-width: 100%; height: auto; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Top Utility Bar */
.top-strip {
  background: var(--bg-ink-deep);
  color: #dbe6f2;
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.top-strip a { color: #ffffff; font-weight: 600; text-decoration: none; }

/* Header & Navigation */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bg-ink);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand-sub { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.03em; text-transform: uppercase; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-tint);
  color: var(--bg-ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
}
.main-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nav-list a { color: var(--bg-ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 4px 0; display: block; }
.nav-list a:hover { color: var(--accent); }
.header-cta { display: none; }

@media (min-width: 960px) {
  .main-nav { display: block; position: static; background: transparent; border: 0; padding: 0; box-shadow: none; }
  .nav-list { flex-direction: row; align-items: center; gap: 22px; }
  .header-cta { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.18s ease, transform 0.12s ease;
}
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-hover); color: #ffffff; transform: translateY(-1px); }
.btn-secondary { background: var(--bg-surface); color: var(--bg-ink); border-color: var(--bg-ink); }
.btn-secondary:hover { background: var(--bg-tint); color: var(--bg-ink); }
.btn-outline-light { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.45); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #ffffff; }

/* Breadcrumbs */
.breadcrumbs {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #8395aa; }
.breadcrumbs a { color: var(--bg-ink); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-ink-deep) 0%, var(--bg-ink) 100%);
  color: #ffffff;
  padding: 52px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.35fr 0.95fr; } }
.eyebrow {
  display: inline-block;
  background: rgba(217, 83, 30, 0.2);
  border: 1px solid rgba(217, 83, 30, 0.55);
  color: #ffd7c7;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 16px;
  color: #ffffff;
}
.hero-lead { font-size: 1.1rem; color: #dce6f2; margin: 0 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-note { font-size: 0.85rem; color: #b9c9db; margin: 0; }

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.hero-card h2 { font-size: 1.15rem; margin: 0 0 12px; color: #ffffff; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.check-dot {
  flex: 0 0 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 2px;
}

/* Sections & Cards */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { max-width: 760px; margin-bottom: 28px; }
.section-header h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--bg-ink); margin: 0 0 10px; line-height: 1.25; }
.section-header p { margin: 0; color: var(--text-muted); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 10px; font-size: 1.15rem; color: var(--bg-ink); }
.card p { margin: 0 0 12px; color: var(--text-main); }
.card p:last-child { margin-bottom: 0; }

/* Snippet Answer Box */
.snippet-box {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 22px 0;
}
.snippet-box strong { color: var(--bg-ink); }

/* Brand Chips */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.brand-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  text-align: center;
  font-weight: 700;
  color: var(--bg-ink);
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-ink); color: #ffffff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* Article Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 960px) { .article-layout { grid-template-columns: 2fr 1fr; } }
.prose h2 { color: var(--bg-ink); margin: 28px 0 12px; font-size: 1.45rem; line-height: 1.28; }
.prose h3 { color: var(--bg-ink); margin: 22px 0 8px; font-size: 1.18rem; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; }
.prose li { margin-bottom: 6px; }
.sidebar-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.sidebar-box h3 { margin: 0 0 12px; font-size: 1.1rem; color: var(--bg-ink); }
.sidebar-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

/* FAQ Accordion */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px 20px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--bg-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-panel { padding: 0 20px 18px; color: var(--text-main); border-top: 1px solid var(--border); }
.faq-panel[hidden] { display: none; }

/* Forms & Calculator */
.form-grid { display: grid; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; color: var(--bg-ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #b9c7d8;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #ffffff;
}
.calc-result {
  background: var(--bg-ink);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 24px;
}
.calc-price { font-size: 2rem; font-weight: 800; color: #ffb394; margin: 6px 0 12px; }

/* Map Embed */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-tint);
}
.map-wrap iframe { display: block; width: 100%; height: 340px; border: 0; }

/* CTA Banner */
.cta-banner {
  background: var(--bg-ink);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-banner h2 { margin: 0 0 6px; color: #ffffff; font-size: 1.55rem; }
.cta-banner p { margin: 0; color: #d4e0ed; max-width: 620px; }

/* Footer */
.site-footer {
  background: var(--bg-ink-deep);
  color: #cfdbe8;
  padding: 48px 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 30px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h3 { color: #ffffff; font-size: 1rem; margin: 0 0 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #dbe6f2; text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 20px;
  font-size: 0.84rem;
  color: #a9bacd;
}

/* Mobile Sticky Call Bar */
.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--accent);
  padding: 10px 16px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}
.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}
@media (min-width: 768px) { .mobile-call-bar { display: none; } }
