/* Cold Mountain Inspections: brand tokens */
:root {
  --pine: #1F3A2E; --pine-mid: #4C7A5E; --sage: #8FB59A;
  --ember: #E0662B; --ember-text: #A9461A;
  --bone: #F4EFE6; --paper: #FFFFFF; --ink: #232A26; --muted: #5B6860; --rule: #D8D0C2;
  --pass: #2F7D4F; --fail: #B3261E;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --r-sm: 2px; --r-md: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 17px/1.6 var(--font); color: var(--ink); background: var(--bone); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember-text); }
a:hover { color: var(--pine); }
h1, h2, h3 { color: var(--pine); line-height: 1.15; margin: 0 0 14px; text-wrap: balance; }
h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 14px; text-wrap: pretty; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ember-text); margin-bottom: 10px; }
.eyebrow.light { color: var(--sage); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--r-md);
  font: 700 16px var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-ember { background: var(--ember-text); color: #fff; }
.btn-ember:hover { background: #8E3A15; color: #fff; }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: #142a20; color: #fff; }
.btn-ghost { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-ghost:hover { background: var(--pine); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(244, 239, 230, .96); border-bottom: 1px solid var(--rule); backdrop-filter: blur(6px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.logo img { width: 196px; }
nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
nav a:hover { color: var(--ember-text); }
nav a.btn { color: #fff; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 19px; color: var(--ink); max-width: 56ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--muted); font-weight: 600; }
.proof li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--ember); margin-right: 8px; vertical-align: 1px; }
.hero-card { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 12px; }
.hero-card img { border-radius: var(--r-sm); }
.hero-card figcaption { font-size: 14px; color: var(--muted); padding: 10px 4px 2px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 2px 7px; border-radius: var(--r-sm); color: #fff; margin-right: 6px; }
.tag-fail { background: var(--fail); }
.tag-pass { background: var(--pass); }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section.pine { background: var(--pine); color: var(--bone); }
.section.pine h2 { color: #fff; }
.section.pine a { color: #F2A57E; }
.cards { display: grid; gap: 20px; margin-top: 28px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 24px; }
.card p { margin: 0; font-size: 16px; }
.note { margin-top: 24px; font-size: 15px; color: var(--muted); max-width: 80ch; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { counter-increment: s; border-top: 3px solid var(--pine); padding-top: 14px; font-size: 16px; }
.steps li::before { content: counter(s); display: block; font-size: 30px; font-weight: 800; color: var(--ember); line-height: 1; margin-bottom: 8px; }
.steps b { color: var(--pine); }
.caption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* HOA */
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 7px; border-left: 3px solid var(--ember); border-bottom: 3px solid var(--ember); transform: rotate(-45deg); }
.stat-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat-panel div { background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--pine); border-radius: var(--r-md); padding: 20px; }
.stat-panel b { display: block; font-size: 32px; font-weight: 800; color: var(--pine); line-height: 1.1; }
.stat-panel span { font-size: 15px; color: var(--muted); }

/* About */
.mission { margin: 0; background: rgba(255, 255, 255, .06); border-left: 0; border-top: 3px solid var(--ember); padding: 28px; border-radius: var(--r-md); }
.mission p:last-child { font-size: 22px; line-height: 1.4; font-weight: 700; color: #fff; margin: 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { padding: 12px 0; border-top: 1px solid var(--rule); }
.contact-list span { display: block; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-weight: 700; font-size: 18px; text-decoration: none; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--pine); margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; font: 16px var(--font); color: var(--ink); background: #fff; border: 1px solid #B9B0A0;
  border-radius: var(--r-sm); padding: 11px 12px; min-height: 46px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(224, 102, 43, .35); border-color: var(--ember-text); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hidden-field { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--pine); color: var(--bone); padding: 36px 0; font-size: 15px; }
.site-footer a { color: #F2A57E; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot > div { display: flex; gap: 14px; align-items: center; }
.foot p { margin: 0; }

/* Simple pages */
.simple { min-height: 70vh; display: flex; align-items: center; padding: 80px 0; }

@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 36px; }
  .cards.three { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .logo img { width: 140px; }
  .bar { flex-wrap: nowrap; }
  .hero { padding: 36px 0 48px; }
  .section { padding: 56px 0; }
  .steps, .field-row, .stat-panel { grid-template-columns: 1fr; }
}

/* Field photos */
.photo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.field-photo { margin: 0; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.field-photo a { display: block; }
.field-photo img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.field-photo figcaption { padding: 16px 18px 18px; }
.field-photo h3 { font-size: 17px; margin-bottom: 10px; color: var(--pine); }
.hero-card.field-photo { padding: 0; }
.hero-card.field-photo img { border-radius: 0; }
.hero-card.field-photo figcaption { padding: 16px 18px 18px; color: var(--ink); font-size: 15px; }
.section.pine .photo-row { margin-top: 48px; }
.section.pine .field-photo { border-color: transparent; }
.findings { counter-reset: f; list-style: none; padding: 0; margin: 0; font-size: 15px; }
.findings li { counter-increment: f; position: relative; padding-left: 32px; margin-bottom: 8px; line-height: 1.45; }
.findings li:last-child { margin-bottom: 0; }
.findings li::before { content: counter(f); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: #E02020; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.findings-pass { margin: 0; font-size: 15px; }
@media (max-width: 640px) { .photo-row { grid-template-columns: 1fr; } }

/* Multi-page header */
nav a[aria-current="page"]:not(.btn) { color: var(--ember-text); }
nav a[aria-current="page"]:not(.btn)::after { content: ""; display: block; height: 2px; background: var(--ember); margin-top: 3px; }
nav .nav-phone { color: var(--pine); font-weight: 700; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--paper); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--pine); transition: transform .2s, opacity .2s; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.page-title { font-size: clamp(32px, 4.6vw, 46px); }

/* Home link cards */
.link-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
a.card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--ember); transform: translateY(-2px); color: var(--ink); }
a.card h3 { margin: 0; }
a.card .more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; color: var(--ember-text); }

/* CTA band */
.cta-band { background: var(--paper); border-top: 1px solid var(--rule); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner p:last-child { margin: 0; color: var(--muted); }
.cta-inner .cta-row { margin: 0; }

/* Green cursor circle */
.cursor { position: fixed; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; pointer-events: none; z-index: 1000;
  border: 2px solid #3E8A5C; background: rgba(143, 181, 154, .28); opacity: 0;
  transition: width .2s, height .2s, opacity .2s, background-color .2s; }
.cursor.on { opacity: 1; }
.cursor.hover { width: 52px; height: 52px; background: rgba(143, 181, 154, .18); }
.cursor.press { width: 22px; height: 22px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

@media (max-width: 1060px) {
  .menu-toggle { display: flex; }
  .bar { flex-wrap: nowrap; position: relative; }
  .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bone); border-bottom: 1px solid var(--rule); padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .nav-open nav { display: flex; }
  .site-header nav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  nav a[aria-current="page"]:not(.btn)::after { display: none; }
  .site-header nav .btn { margin-top: 16px; }
  .link-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .link-cards { grid-template-columns: 1fr; } }
