/* Traverse Ridge Furnace Repair Co. — Custom Anti-Footprint Design System */
:root {
  --trf-slate: #162433;
  --trf-slate-dark: #0e1822;
  --trf-copper: #c85a2b;
  --trf-copper-hover: #a9471e;
  --trf-pine: #21423b;
  --trf-snow: #f7f8fa;
  --trf-sand: #ede9e2;
  --trf-white: #ffffff;
  --trf-ink: #1a202c;
  --trf-muted: #4a5568;
  --trf-border: #d8dee6;
  --trf-radius: 4px;
  --trf-max: 1160px;
}

*, *::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, sans-serif;
  color: var(--trf-ink);
  background: var(--trf-white);
  line-height: 1.65;
  padding-bottom: 64px;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--trf-slate);
  line-height: 1.25;
  margin-top: 0;
}
h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); margin-bottom: 0.85rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
p { margin: 0 0 1.05rem; }
a { color: var(--trf-copper); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--trf-copper-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--trf-copper);
  outline-offset: 2px;
}

.trf-wrap { max-width: var(--trf-max); margin: 0 auto; padding: 0 1.25rem; }
.trf-skip {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.trf-skip:focus {
  position: static; width: auto; height: auto; padding: 0.75rem 1rem;
  background: var(--trf-slate); color: var(--trf-white); display: inline-block; z-index: 999;
}

/* Top Utility Bar */
.trf-topbar {
  background: var(--trf-slate-dark);
  color: #e2e8f0;
  font-size: 0.875rem;
  padding: 0.45rem 0;
}
.trf-topbar-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem;
}
.trf-topbar a { color: #fbd38d; text-decoration: none; font-weight: 600; }

/* Header & Nav */
.trf-header {
  background: var(--trf-white);
  border-bottom: 1px solid var(--trf-border);
  position: sticky; top: 0; z-index: 100;
}
.trf-nav-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0;
}
.trf-brand {
  display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--trf-slate);
  font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.08rem;
}
.trf-nav { display: none; gap: 1.25rem; align-items: center; }
.trf-nav a {
  text-decoration: none; color: var(--trf-slate); font-weight: 600; font-size: 0.95rem;
}
.trf-nav a:hover { color: var(--trf-copper); }
.trf-menu-btn {
  background: var(--trf-snow); border: 1px solid var(--trf-border); border-radius: var(--trf-radius);
  padding: 0.45rem 0.75rem; font-weight: 600; color: var(--trf-slate); cursor: pointer;
}
.trf-mobile-nav {
  display: none; flex-direction: column; gap: 0.5rem; padding: 0.75rem 0 1rem; border-top: 1px solid var(--trf-border);
}
.trf-mobile-nav.is-open { display: flex; }
.trf-mobile-nav a { text-decoration: none; color: var(--trf-slate); font-weight: 600; padding: 0.35rem 0; }
@media (min-width: 900px) {
  .trf-nav { display: flex; }
  .trf-menu-btn, .trf-mobile-nav { display: none !important; }
}

/* Buttons */
.trf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  background: var(--trf-copper); color: var(--trf-white); font-weight: 700;
  padding: 0.8rem 1.35rem; border-radius: var(--trf-radius); text-decoration: none;
  border: 2px solid var(--trf-copper); cursor: pointer; transition: background 0.15s ease;
}
.trf-btn:hover { background: var(--trf-copper-hover); border-color: var(--trf-copper-hover); color: var(--trf-white); }
.trf-btn-outline {
  background: transparent; color: var(--trf-white); border-color: var(--trf-white);
}
.trf-btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--trf-white); }
.trf-btn-dark-outline {
  background: transparent; color: var(--trf-slate); border-color: var(--trf-slate);
}
.trf-btn-dark-outline:hover { background: var(--trf-slate); color: var(--trf-white); }

/* Hero */
.trf-hero {
  background: linear-gradient(135deg, var(--trf-slate) 0%, var(--trf-pine) 100%);
  color: var(--trf-white);
  padding: 3.25rem 0;
}
.trf-hero h1, .trf-hero h2 { color: var(--trf-white); }
.trf-hero-grid {
  display: grid; gap: 2rem; align-items: start;
}
@media (min-width: 860px) {
  .trf-hero-grid { grid-template-columns: 1.35fr 0.95fr; }
}
.trf-hero-eyebrow {
  display: inline-block; background: rgba(200,90,43,0.22); border: 1px solid #e07a4f;
  color: #fed7aa; font-size: 0.85rem; font-weight: 700; padding: 0.25rem 0.65rem;
  border-radius: var(--trf-radius); margin-bottom: 0.85rem;
}
.trf-hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.35rem; }
.trf-hero-card {
  background: var(--trf-white); color: var(--trf-ink); border-radius: var(--trf-radius);
  padding: 1.5rem; border-top: 4px solid var(--trf-copper); box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}
.trf-hero-card h2 { color: var(--trf-slate); font-size: 1.25rem; margin-bottom: 0.65rem; }
.trf-checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.trf-checklist li {
  padding: 0.35rem 0 0.35rem 1.45rem; position: relative; font-size: 0.95rem;
}
.trf-checklist li::before {
  content: "✓"; position: absolute; left: 0; color: var(--trf-copper); font-weight: 800;
}

/* Sections */
.trf-section { padding: 3rem 0; }
.trf-section-snow { background: var(--trf-snow); }
.trf-section-sand { background: var(--trf-sand); }
.trf-section-slate { background: var(--trf-slate); color: var(--trf-white); }
.trf-section-slate h2, .trf-section-slate h3 { color: var(--trf-white); }

/* Direct Answer / Snippet Box */
.trf-direct-answer {
  background: var(--trf-snow); border-left: 4px solid var(--trf-copper);
  padding: 1.15rem 1.35rem; border-radius: var(--trf-radius); margin: 1.25rem 0 1.75rem;
}

/* Grids & Cards */
.trf-grid { display: grid; gap: 1.25rem; }
@media (min-width: 680px) { .trf-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .trf-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.trf-card {
  background: var(--trf-white); border: 1px solid var(--trf-border); border-radius: var(--trf-radius);
  padding: 1.35rem; display: flex; flex-direction: column; justify-content: space-between;
}
.trf-card-accent { border-top: 3px solid var(--trf-copper); }
.trf-badge-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1rem 0; }
.trf-badge {
  background: var(--trf-white); border: 1px solid var(--trf-border); padding: 0.45rem 0.9rem;
  border-radius: var(--trf-radius); font-weight: 700; font-size: 0.92rem; color: var(--trf-slate);
}

/* Breadcrumbs */
.trf-breadcrumbs {
  font-size: 0.88rem; color: var(--trf-muted); padding: 0.85rem 0 0;
}
.trf-breadcrumbs a { color: var(--trf-slate); text-decoration: none; font-weight: 600; }
.trf-breadcrumbs a:hover { text-decoration: underline; }

/* Tables */
.trf-table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table.trf-table {
  width: 100%; border-collapse: collapse; background: var(--trf-white); font-size: 0.95rem;
}
table.trf-table th, table.trf-table td {
  border: 1px solid var(--trf-border); padding: 0.7rem 0.85rem; text-align: left;
}
table.trf-table th { background: var(--trf-slate); color: var(--trf-white); font-weight: 700; }
table.trf-table tr:nth-child(even) td { background: var(--trf-snow); }

/* FAQ Accordion */
.trf-faq-item {
  border: 1px solid var(--trf-border); border-radius: var(--trf-radius);
  background: var(--trf-white); margin-bottom: 0.75rem;
}
.trf-faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 1rem 1.2rem;
  font-weight: 700; font-size: 1rem; color: var(--trf-slate); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.trf-faq-a { padding: 0 1.2rem 1rem; color: var(--trf-ink); }
.trf-faq-a[hidden] { display: none; }

/* Calculator & Forms */
.trf-form-group { margin-bottom: 1rem; }
.trf-form-group label { display: block; font-weight: 700; margin-bottom: 0.35rem; color: var(--trf-slate); }
.trf-form-group input, .trf-form-group select, .trf-form-group textarea {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--trf-border);
  border-radius: var(--trf-radius); font-size: 1rem; font-family: inherit;
}
.trf-calc-output {
  background: var(--trf-sand); border-left: 4px solid var(--trf-copper);
  padding: 1.25rem; border-radius: var(--trf-radius); margin-top: 1.25rem;
}

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

/* Article Layout */
.trf-article-body { max-width: 78ch; }
.trf-meta-line { font-size: 0.9rem; color: var(--trf-muted); margin-bottom: 1.25rem; }

/* Footer */
.trf-footer {
  background: var(--trf-slate-dark); color: #cbd5e1; padding: 3rem 0 2rem; font-size: 0.92rem;
}
.trf-footer h3 { color: var(--trf-white); font-size: 1.05rem; margin-bottom: 0.75rem; }
.trf-footer a { color: #f1f5f9; text-decoration: none; }
.trf-footer a:hover { color: #fbd38d; text-decoration: underline; }
.trf-footer ul { list-style: none; padding: 0; margin: 0; }
.trf-footer li { margin-bottom: 0.45rem; }
.trf-footer-bottom {
  border-top: 1px solid #2d3e50; margin-top: 2rem; padding-top: 1.25rem; font-size: 0.85rem; color: #94a3b8;
}

/* Sticky Mobile Call Bar */
.trf-mobile-call {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--trf-copper);
  color: var(--trf-white); text-align: center; padding: 0.85rem 1rem; font-weight: 800;
  text-decoration: none; z-index: 200; box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
}
@media (min-width: 768px) { .trf-mobile-call { display: none; } }
