/* =========================================================
   Elwood Heating Inc. — site styles (mobile-first)
   Body font: Open Sans · Heading font: Inter
   ========================================================= */

:root {
  --brand:        #1a56db;
  --brand-dark:   #1442ad;
  --accent:       #16a34a;   /* green — pulse dot / checks */
  --ink:          #15212e;
  --ink-soft:     #46586a;
  --line:         #e3e8ee;
  --bg:           #ffffff;
  --bg-alt:       #f5f8fb;
  --bg-dark:      #121d29;
  --max:          1160px;
  --radius:       12px;
  --shadow:       0 10px 30px rgba(16, 42, 84, .08);
  --font-head:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-body:    'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 18px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.18; color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.5vw, 2.15rem); margin-bottom: .6em; }
h3 { font-size: 1.15rem; margin-bottom: .35em; }
p  { margin-bottom: 1rem; color: var(--ink-soft); }
a  { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 1rem 1.2rem; color: var(--ink-soft); }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-head);
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }

.muted { color: var(--ink-soft); font-size: .9rem; }

/* buttons that sit together: side by side, wrapping on small screens */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 18px; max-width: var(--max); margin: 0 auto;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { max-height: 44px; width: auto; }
.nav__links { display: none; list-style: none; margin: 0; }
.nav__links a { color: var(--ink); font-weight: 600; font-size: .96rem; font-family: var(--font-head); }
.nav__links a:hover { color: var(--brand); text-decoration: none; }

/* phone link + pulsing availability dot */
.nav__call {
  background: var(--brand); color: #fff !important;
  padding: 10px 16px; border-radius: var(--radius); font-weight: 700;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
}
.nav__call:hover { background: var(--brand-dark); text-decoration: none; }
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #4ade80; flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, .65); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.nav__toggle { display: block; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--ink); line-height: 1; padding: 4px; }

/* mobile menu (default) */
.nav__links {
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; align-items: flex-start; gap: 0;
  background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 16px;
  box-shadow: var(--shadow);
}
.nav__links.open { display: flex; }
.nav__links li { width: 100%; padding: 8px 0; list-style: none; }
.nav__links .has-dropdown { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 2px; }
.dropdown { position: static; display: none; flex-basis: 100%; box-shadow: none; border: 0; padding: 4px 0 4px 14px; min-width: 0; margin: 0; }
@media (max-width: 900px) { .has-dropdown.open > .dropdown { display: block; } }
.dropdown li { list-style: none; }
.dropdown a { display: block; padding: 7px 0; font-size: .92rem; font-weight: 500; }

/* submenu arrow toggle (mobile) */
.submenu-toggle { background: none; border: 0; padding: 4px 10px; cursor: pointer; color: var(--ink); display: flex; align-items: center; }
.submenu-toggle svg { width: 18px; height: 18px; transition: transform .2s ease; }
.has-dropdown.open .submenu-toggle svg { transform: rotate(180deg); }

/* desktop nav */
@media (min-width: 901px) {
  .nav__toggle { display: none; }
  .submenu-toggle { display: none; }
  .nav__links .has-dropdown { display: list-item; }
  .nav__links {
    display: flex; position: static; flex-direction: row; align-items: center;
    gap: 22px; background: none; border: 0; padding: 0; box-shadow: none;
  }
  .nav__links li { width: auto; padding: 0; }
  .has-dropdown { position: relative; }
  .dropdown {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    min-width: 260px; padding: 8px 0; box-shadow: var(--shadow);
  }
  .has-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; display: none; }
  .has-dropdown:hover::after { display: block; }
  .has-dropdown:hover .dropdown { display: block; }
  .dropdown a { display: block; padding: 9px 18px; font-size: .92rem; }
  .dropdown a:hover { background: var(--bg-alt); }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,25,38,.62), rgba(13,25,38,.8)); z-index: 1; }
.hero__inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 64px 18px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .82rem; font-weight: 700; opacity: .92; font-family: var(--font-head); }
.hero h1 { color: #fff; margin: 10px 0 14px; max-width: 22ch; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.1rem; max-width: 52ch; }
.hero__cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
@media (min-width: 901px) { .hero__inner { padding: 96px 18px; } }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { background: var(--bg-alt); border-top: 1px solid var(--line); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.breadcrumbs li + li::before { content: "\203A"; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- trust badge banner ---------- */
.trust-band { background: var(--bg-dark); padding: 18px 0; }
.trust-band .wrap { display: grid; grid-template-columns: 1fr; gap: 12px; }
.trust-badge { display: flex; align-items: center; gap: 12px; color: #fff; }
.trust-badge svg { width: 30px; height: 30px; flex: 0 0 auto; color: #4ade80; }
.trust-badge span { font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.3; }
@media (min-width: 640px) { .trust-band .wrap { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1000px) { .trust-band .wrap { grid-template-columns: repeat(4, 1fr); } }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section--alt { background: var(--bg-alt); }
.section__lead { max-width: 68ch; }
.section--full .section__lead, .full-width .section__lead { max-width: none; }
.center { text-align: center; }
.center .section__lead { margin: 0 auto; }
@media (min-width: 901px) { .section { padding: 64px 0; } }

/* two-column split */
.split { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 801px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* content + sticky why-us card */
.split-sticky { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.split-sticky__main .section__lead { max-width: none; }
@media (min-width: 901px) { .split-sticky { grid-template-columns: 1.7fr 1fr; gap: 56px; } }
.why-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
@media (min-width: 901px) { .split-sticky__aside { position: sticky; top: 88px; } }
.why-card__title { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--ink); margin-bottom: 14px; display: block; }
.check-list { list-style: none; margin: 0 0 18px; padding: 0; }
.check-list li {
  position: relative; padding-left: 30px; margin-bottom: 11px;
  color: var(--ink-soft); font-size: .96rem; line-height: 1.5;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px;
  border-radius: 50%; background: var(--accent);
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: 7px; width: 9px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.why-card .btn { width: 100%; text-align: center; }

/* feature / why-us grid — single column on mobile, always */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 701px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #f4f7fa;
  border: 1px solid #e7edf3;
  border-radius: 14px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), #4f83ea);
  opacity: 0; transition: opacity .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d5e0ec; }
.card:hover::before { opacity: 1; }
.section--alt .card { background: #fff; border-color: var(--line); }
.card h3 { margin-bottom: .45em; }
.card h2 { font-size: 1.25rem; margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card__go { font-weight: 700; font-family: var(--font-head); display: inline-block; margin-top: 10px; }

/* service / area link list */
.linklist { display: grid; grid-template-columns: 1fr; gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 501px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 801px) { .linklist { grid-template-columns: repeat(3, 1fr); } }
.linklist a {
  display: block; padding: 14px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 600;
  font-family: var(--font-head); font-size: .95rem;
}
.linklist a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* cost table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { background: var(--bg-alt); font-family: var(--font-head); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--font-head); font-size: 1.02rem; padding: 15px 26px 15px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding-bottom: 16px; margin-bottom: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; text-align: center; padding: 52px 18px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-band .btn { background: #fff; color: var(--brand); }
.cta-band .btn:hover { background: #eef2f8; }

/* map embed */
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* inline site images */
.img-band { padding: 14px 0; }
.img-band img { width: 100%; border-radius: var(--radius); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.8); padding: 52px 0 24px; }
.footer-heading { display: block; color: #fff; margin-bottom: 14px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: .02em; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 641px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 981px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.8); font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: rgba(255,255,255,.75); font-size: .93rem; }
.footer-logo { background: #fff; border-radius: 8px; padding: 6px 10px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { max-height: 36px; width: auto; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15); margin-top: 38px; padding-top: 20px;
  font-size: .85rem; color: rgba(255,255,255,.6);
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between;
}
.footer-bottom a { color: rgba(255,255,255,.6); font-size: .85rem; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- sticky mobile call button ---------- */
.sticky-call {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  display: none; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #fff !important;
  padding: 15px 20px; border-radius: 14px; font-family: var(--font-head);
  font-weight: 800; font-size: 1.05rem; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.sticky-call:hover { text-decoration: none; }
.sticky-call svg { width: 20px; height: 20px; }
body.show-sticky-call .sticky-call { display: flex; }
@media (min-width: 901px) { .sticky-call, body.show-sticky-call .sticky-call { display: none !important; } }

/* ---------- slim page hero (hero-less pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--bg-dark) 0%, #1c3a63 100%);
  color: #fff; padding: 38px 0; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.65rem, 4vw, 2.4rem); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.88); max-width: 62ch; margin: 0 auto; font-size: 1.05rem; }
.page-hero .btn { margin-top: 18px; }
.page-hero__stars {
  color: #fbbf24; font-size: 1.3rem; letter-spacing: 7px;
  margin-top: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
@media (min-width: 901px) { .page-hero { padding: 52px 0; } }

/* phone link — stable hook for dynamic number insertion */
.wc-phone { font-weight: 700; }
