/* Furnace Repair Pros - Herriman, UT | Custom Production Stylesheet */
:root {
  --navy: #0F2942;
  --navy-dark: #091B2C;
  --navy-light: #1A3A5C;
  --amber: #C2410C;
  --amber-hover: #9A3412;
  --amber-soft: #FFF7ED;
  --slate-bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: #1E293B;
  --text-muted: #475569;
  --success-bg: #ECFDF5;
  --success-text: #065F46;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 41, 66, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 41, 66, 0.10);
  --max-w: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background: var(--slate-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 68px;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

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

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

/* Skip Link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 1000;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 6px; }

/* Top Utility Bar */
.top-bar {
  background: var(--navy-dark);
  color: #E2E8F0;
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.top-bar a { color: #FDBA74; font-weight: 600; text-decoration: none; }
.top-bar a:hover { text-decoration: underline; }

/* Header & Nav */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 16px;
}
.brand-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-link span.sub {
  display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--slate-bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-weight: 600; color: var(--navy); cursor: pointer;
}
.main-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 16px 20px; box-shadow: var(--shadow-md);
}
.main-nav.open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nav-list a {
  color: var(--navy); font-weight: 600; text-decoration: none; font-size: 0.95rem;
  padding: 6px 0; display: block;
}
.nav-list a:hover { color: var(--amber); }
.header-cta {
  display: none;
  background: var(--amber); color: #fff; font-weight: 700; text-decoration: none;
  padding: 10px 18px; border-radius: 8px; font-size: 0.95rem; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.header-cta:hover { background: var(--amber-hover); color: #fff; }

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

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

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: #FFFFFF;
  padding: 52px 0 56px;
}
.hero-inner-page { padding: 38px 0 42px; }
.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.9fr; }
}
.hero-badge {
  display: inline-block; background: rgba(253, 186, 116, 0.16); color: #FDBA74;
  border: 1px solid rgba(253, 186, 116, 0.35);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 16px; font-size: clamp(1.9rem, 3.6vw, 2.85rem); line-height: 1.15;
  letter-spacing: -0.02em; color: #FFFFFF;
}
.hero p.lead {
  font-size: 1.1rem; color: #E2E8F0; margin: 0 0 22px; max-width: 640px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: #FFFFFF; font-weight: 700; font-size: 1.05rem;
  padding: 14px 24px; border-radius: 8px; text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.35);
}
.btn-primary:hover { background: var(--amber-hover); color: #FFFFFF; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); color: #FFFFFF; font-weight: 600; font-size: 0.98rem;
  padding: 13px 20px; border-radius: 8px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); color: #FFFFFF; }

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 24px;
}
.hero-card h2 { margin: 0 0 12px; font-size: 1.15rem; color: #FDBA74; }
.hero-card ul { margin: 0; padding-left: 18px; color: #E2E8F0; font-size: 0.95rem; }
.hero-card li { margin-bottom: 8px; }
.referral-note {
  margin-top: 14px; font-size: 0.82rem; color: #CBD5E1;
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 10px;
}

/* Snippet-Ready Direct Answer Box */
.snippet-box {
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
}
.snippet-box strong.label {
  display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--amber-hover); margin-bottom: 4px;
}
.snippet-box p { margin: 0; color: var(--text); font-size: 1.02rem; }

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

/* Cards & Grids */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.card h3 { margin: 0 0 10px; font-size: 1.18rem; color: var(--navy); }
.card p { margin: 0 0 14px; color: var(--text-muted); font-size: 0.96rem; flex-grow: 1; }
.card-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { text-decoration: underline; }
.card-icon {
  width: 40px; height: 40px; border-radius: 8px; background: #EFF6FF; color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}

/* Main Content Layout for Inner Pages */
.content-layout {
  display: grid; grid-template-columns: 1fr; gap: 36px; padding: 40px 0 56px;
}
@media (min-width: 960px) {
  .content-layout { grid-template-columns: 1fr 330px; align-items: start; }
}
.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 720px) { .article-body { padding: 38px; } }
.article-body h2 { color: var(--navy); margin: 32px 0 12px; font-size: 1.48rem; line-height: 1.3; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { color: var(--navy-light); margin: 24px 0 8px; font-size: 1.18rem; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.95rem; }
th, td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; vertical-align: top; }
th { background: var(--navy); color: #FFFFFF; font-weight: 700; }
tr:nth-child(even) td { background: #F8FAFC; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.sidebar-cta {
  background: var(--navy); color: #FFFFFF; border: none;
}
.sidebar-cta h3 { color: #FFFFFF; margin: 0 0 10px; font-size: 1.2rem; }
.sidebar-cta p { color: #E2E8F0; font-size: 0.94rem; margin: 0 0 16px; }
.sidebar-box h3 { margin: 0 0 12px; font-size: 1.08rem; color: var(--navy); }
.sidebar-links { list-style: none; margin: 0; padding: 0; }
.sidebar-links li { border-bottom: 1px solid var(--border); padding: 8px 0; }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { text-decoration: none; font-weight: 600; color: var(--navy); font-size: 0.94rem; }
.sidebar-links a:hover { color: var(--amber); text-decoration: underline; }

/* Brands Grid */
.brands-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.brand-pill {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; text-align: center; font-weight: 700; color: var(--navy);
  font-size: 0.95rem;
}

/* Process Steps */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; position: relative;
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff;
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px; font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 16px 20px;
  font-size: 1.02rem; font-weight: 700; color: var(--navy); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q:hover { background: #F8FAFC; }
.faq-a { padding: 0 20px 18px; color: var(--text); font-size: 0.96rem; display: none; }
.faq-item.open .faq-a { display: block; }

/* Map Embed */
.map-frame {
  width: 100%; height: 320px; border: 1px solid var(--border); border-radius: var(--radius);
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; color: var(--navy); font-size: 0.94rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #CBD5E1; border-radius: 6px;
  font-family: inherit; font-size: 1rem; color: var(--text); background: #fff;
}
.form-status {
  display: none; background: var(--success-bg); color: var(--success-text);
  padding: 14px 16px; border-radius: 8px; font-weight: 600; border: 1px solid #A7F3D0;
}

/* CTA Banner */
.cta-banner {
  background: var(--navy); color: #FFFFFF; padding: 44px 0; text-align: center;
}
.cta-banner h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: #FFFFFF; }
.cta-banner p { margin: 0 auto 22px; max-width: 620px; color: #E2E8F0; }

/* Footer */
.site-footer {
  background: var(--navy-dark); color: #CBD5E1; padding: 44px 0 24px; font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px; }
@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; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer a:hover { color: #FDBA74; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px;
  font-size: 0.82rem; color: #94A3B8;
}

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