/* White River Furnace Repair — Indiana Limestone & Deep Cobalt Design System */
:root {
  --bg-limestone: #f7f6f2;
  --bg-surface: #ffffff;
  --bg-muted: #eeece5;
  --ink-primary: #1a222d;
  --ink-secondary: #424e5e;
  --cobalt-deep: #162a45;
  --cobalt-mid: #223f66;
  --rust-cta: #c84b31;
  --rust-cta-hover: #a93b24;
  --sage-soft: #e6efe9;
  --sage-ink: #1e4d32;
  --border-stone: #dad6cc;
  --font-display: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --shadow-card: 0 2px 10px rgba(22, 42, 69, 0.06);
  --max-w: 1140px;
}

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

a { color: var(--cobalt-mid); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--rust-cta); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--rust-cta);
  outline-offset: 2px;
}

.wrf-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--cobalt-deep); color: #fff; padding: 10px 16px; z-index: 1000;
}
.wrf-skip:focus { left: 10px; top: 10px; }

.wrf-shell { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Top Utility Bar */
.wrf-topbar {
  background: var(--cobalt-deep);
  color: #e9edf3;
  font-size: 0.875rem;
  padding: 8px 0;
}
.wrf-topbar-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
}
.wrf-topbar a { color: #ffffff; font-weight: 600; text-decoration: none; }
.wrf-topbar a:hover { text-decoration: underline; }

/* Header & Navigation */
.wrf-mast {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-stone);
  position: sticky; top: 0; z-index: 90;
}
.wrf-mast-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px;
}
.wrf-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--cobalt-deep); font-weight: 700; font-size: 1.1rem;
}
.wrf-brand img { display: block; width: 38px; height: 38px; }
.wrf-nav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-muted); border: 1px solid var(--border-stone);
  color: var(--ink-primary); padding: 8px 12px; border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer;
}
.wrf-nav { display: none; }
.wrf-nav.is-open {
  display: flex; flex-direction: column; gap: 6px;
  position: absolute; top: 70px; left: 0; right: 0;
  background: var(--bg-surface); border-bottom: 1px solid var(--border-stone);
  padding: 16px 20px; box-shadow: var(--shadow-card);
}
.wrf-nav a {
  color: var(--ink-primary); text-decoration: none; font-weight: 600; padding: 6px 8px;
  border-radius: var(--radius-sm);
}
.wrf-nav a:hover { background: var(--bg-muted); color: var(--cobalt-deep); }
.wrf-cta-nav {
  background: var(--rust-cta); color: #fff !important; padding: 9px 15px !important;
  border-radius: var(--radius-sm); display: inline-block; text-align: center;
}
.wrf-cta-nav:hover { background: var(--rust-cta-hover) !important; color: #fff !important; }

@media (min-width: 960px) {
  .wrf-nav-toggle { display: none; }
  .wrf-nav {
    display: flex; flex-direction: row; align-items: center; gap: 18px;
    position: static; background: none; border: none; padding: 0; box-shadow: none;
  }
}

/* Breadcrumbs */
.wrf-crumb {
  font-size: 0.875rem; color: var(--ink-secondary); padding: 14px 0 6px;
}
.wrf-crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wrf-crumb li + li::before { content: "/"; margin-right: 6px; color: var(--border-stone); }

/* Hero */
.wrf-hero {
  background: linear-gradient(135deg, #162a45 0%, #203b5f 100%);
  color: #ffffff;
  padding: 46px 0 52px;
}
.wrf-hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
}
@media (min-width: 860px) {
  .wrf-hero-grid { grid-template-columns: 1.35fr 0.95fr; gap: 36px; }
}
.wrf-eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; background: rgba(255,255,255,0.14); padding: 4px 10px;
  border-radius: var(--radius-sm); margin-bottom: 12px; color: #f6e7d8;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.24; color: var(--cobalt-deep); margin-top: 0; }
.wrf-hero h1 { color: #ffffff; font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 14px; }
.wrf-hero p.wrf-lead { color: #e4ebf4; font-size: 1.08rem; margin-bottom: 22px; max-width: 62ch; }
.wrf-btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wrf-btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  text-decoration: none; padding: 13px 22px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; font-size: 1rem;
}
.wrf-btn-primary { background: var(--rust-cta); color: #ffffff; }
.wrf-btn-primary:hover { background: var(--rust-cta-hover); color: #ffffff; }
.wrf-btn-ghost { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.45); }
.wrf-btn-ghost:hover { background: rgba(255,255,255,0.12); color: #ffffff; }

.wrf-hero-card {
  background: var(--bg-surface); color: var(--ink-primary);
  border-radius: var(--radius-md); padding: 22px 24px;
  border-top: 4px solid var(--rust-cta); box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.wrf-hero-card h2 { font-size: 1.25rem; margin-bottom: 10px; }
.wrf-check-list { list-style: none; padding: 0; margin: 0 0 14px; }
.wrf-check-list li {
  padding: 6px 0 6px 24px; position: relative; font-size: 0.95rem;
  border-bottom: 1px solid var(--bg-muted);
}
.wrf-check-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--sage-ink); font-weight: 700;
}
.wrf-note-muted { font-size: 0.84rem; color: var(--ink-secondary); margin: 0; }

/* Sections & Cards */
.wrf-section { padding: 44px 0; }
.wrf-section-alt { background: var(--bg-surface); border-top: 1px solid var(--border-stone); border-bottom: 1px solid var(--border-stone); }
.wrf-snippet-box {
  background: var(--sage-soft); border-left: 4px solid var(--sage-ink);
  padding: 18px 20px; border-radius: var(--radius-sm); margin: 18px 0 26px;
}
.wrf-snippet-box strong { color: var(--sage-ink); }

.wrf-grid-3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 20px;
}
.wrf-grid-2 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.wrf-card {
  background: var(--bg-surface); border: 1px solid var(--border-stone);
  border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-card);
}
.wrf-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.wrf-card p { margin: 0 0 12px; color: var(--ink-secondary); font-size: 0.96rem; }
.wrf-card-link { font-weight: 700; text-decoration: none; color: var(--rust-cta); }
.wrf-card-link:hover { text-decoration: underline; }

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

/* Inner Page Layout */
.wrf-page-head {
  background: var(--bg-surface); border-bottom: 1px solid var(--border-stone); padding: 26px 0 30px;
}
.wrf-page-head h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 10px; }
.wrf-content-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px; padding: 36px 0;
}
@media (min-width: 900px) {
  .wrf-content-grid { grid-template-columns: 2.1fr 1fr; align-items: start; }
}
.wrf-article h2 { margin-top: 28px; font-size: 1.48rem; }
.wrf-article h3 { margin-top: 20px; font-size: 1.16rem; }
.wrf-sidebar-box {
  background: var(--bg-surface); border: 1px solid var(--border-stone);
  border-radius: var(--radius-md); padding: 20px; margin-bottom: 20px;
}
.wrf-sidebar-box.is-sticky { position: sticky; top: 90px; }

/* FAQ Accordion */
.wrf-faq-item {
  background: var(--bg-surface); border: 1px solid var(--border-stone);
  border-radius: var(--radius-sm); margin-bottom: 10px;
}
.wrf-faq-btn {
  width: 100%; text-align: left; background: none; border: none; padding: 16px 18px;
  font-weight: 700; font-size: 1rem; color: var(--cobalt-deep); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.wrf-faq-panel { padding: 0 18px 16px; color: var(--ink-secondary); }
.wrf-faq-panel[hidden] { display: none; }

/* Calculator & Contact Form */
.wrf-form-group { margin-bottom: 16px; }
.wrf-form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--cobalt-deep); }
.wrf-form-group select, .wrf-form-group input, .wrf-form-group textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-stone);
  border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit; background: #fff;
}
.wrf-calc-result {
  background: var(--cobalt-deep); color: #fff; padding: 22px; border-radius: var(--radius-md); margin-top: 18px;
}
.wrf-calc-price { font-size: 2rem; font-family: var(--font-display); font-weight: 700; color: #f6e7d8; }

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

/* Footer */
.wrf-footer {
  background: var(--cobalt-deep); color: #d9e1ec; padding: 44px 0 28px; margin-top: 32px;
}
.wrf-footer h3 { color: #ffffff; font-size: 1.05rem; margin-bottom: 12px; }
.wrf-footer a { color: #e8eef7; text-decoration: none; }
.wrf-footer a:hover { text-decoration: underline; color: #ffffff; }
.wrf-footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; margin-bottom: 28px;
}
.wrf-footer ul { list-style: none; padding: 0; margin: 0; }
.wrf-footer li { margin-bottom: 7px; font-size: 0.92rem; }
.wrf-footer-legal {
  border-top: 1px solid rgba(255,255,255,0.16); padding-top: 18px; font-size: 0.84rem; color: #c4cfde;
}

/* Sticky Mobile Call Bar */
.wrf-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  background: var(--rust-cta); text-align: center; padding: 12px 16px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.wrf-sticky-bar a {
  color: #ffffff; font-weight: 700; text-decoration: none; font-size: 1.05rem; display: block;
}
@media (min-width: 768px) { .wrf-sticky-bar { display: none; } }
