/* Greater Dayton Home Inspections — forest / sand / terracotta local-inspector look */
:root {
  --forest: #1b4332;
  --forest-deep: #081c15;
  --forest-mid: #2d6a4f;
  --sand: #f3ead9;
  --sand-deep: #e8dcc4;
  --paper: #faf7f0;
  --terra: #b85c38;
  --terra-hover: #9a4a2c;
  --ink: #1a1a1a;
  --muted: #4a4a4a;
  --line: #d4c8b0;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 4px 16px rgba(8, 28, 21, 0.1);
  --max: 1040px;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --slab: "Rockwell", "Roboto Slab", "Courier New", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--forest-mid); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--terra); }
h1, h2, h3, h4 {
  font-family: var(--sans);
  line-height: 1.25;
  color: var(--forest-deep);
  font-weight: 700;
  margin: 0 0 0.55em;
}
h1 {
  font-family: var(--slab);
  font-size: clamp(1.75rem, 3.8vw, 2.35rem);
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.35rem, 2.8vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.reading { max-width: 40em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Top bar — phone always visible */
.topbar {
  background: var(--forest-deep);
  color: #c8d5cc;
  font-size: 0.92rem;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  justify-content: space-between; align-items: center;
  padding: 0.55rem 0;
}
.topbar a { color: var(--sand); text-decoration: none; font-weight: 650; }
.topbar a:hover { color: #fff; }
.topbar .sep { opacity: 0.45; margin: 0 0.35rem; }

/* Header / nav */
.site-header {
  background: var(--sand);
  border-bottom: 3px solid var(--forest);
  position: sticky; top: 0; z-index: 40;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.65rem 0;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: inherit; }
.brand img, .brand svg { width: min(240px, 58vw); height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--sans);
  font-size: 1.05rem; color: var(--forest); font-weight: 800;
}
.brand-text span {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 650;
}
.nav-toggle {
  display: none; background: var(--forest); color: var(--sand);
  border: 0; border-radius: var(--radius); padding: 0.55rem 0.8rem; font-weight: 700; cursor: pointer;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem; }
.nav a {
  color: var(--forest-deep); text-decoration: none; font-weight: 600; font-size: 0.94rem;
  padding: 0.45rem 0.6rem; border-radius: var(--radius);
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(27,67,50,0.1); color: var(--forest-deep); }
.nav .cta-call {
  background: var(--terra); color: var(--white) !important; margin-left: 0.35rem;
}
.nav .cta-call:hover { background: var(--terra-hover); }

/* Hero — classic local business, not SaaS product */
.hero {
  background: var(--forest);
  color: var(--sand);
  padding: clamp(2rem, 5vw, 3.25rem) 0;
  border-bottom: 4px solid var(--terra);
}
.hero h1 { color: var(--sand); max-width: 18ch; }
.hero .lede {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: #d5e0d8; max-width: 36em; margin-bottom: 1.35rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.1rem; }
.trust-line {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem;
  font-size: 0.92rem; font-weight: 600; color: #c5d4cb;
  border-top: 1px solid rgba(243,234,217,0.2); padding-top: 1rem; margin-top: 0.25rem;
}
.trust-line span::before {
  content: "✓ "; color: #95c4a8; font-weight: 800;
}
/* Legacy badge classes restyled as plain trust chips (not SaaS pills) */
.badge-row { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.badge {
  display: inline; background: none; border: 0; border-radius: 0;
  color: #c5d4cb; font-size: 0.9rem; font-weight: 600; padding: 0;
}
.badge::before { content: "✓ "; color: #95c4a8; font-weight: 800; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border-radius: var(--radius); font-weight: 700; font-size: 1rem;
  padding: 0.8rem 1.2rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-amber, .btn-cta { background: var(--terra); color: var(--white); }
.btn-amber:hover, .btn-cta:hover { background: var(--terra-hover); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--sand); border-color: rgba(243,234,217,0.5);
}
.btn-outline:hover { background: rgba(243,234,217,0.12); color: #fff; }
.btn-navy, .btn-forest { background: var(--forest); color: var(--sand); }
.btn-navy:hover, .btn-forest:hover { background: var(--forest-deep); color: var(--sand); }
.btn-ghost {
  background: var(--white); color: var(--forest); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--forest); color: var(--forest-deep); }
.btn-lg { padding: 0.95rem 1.4rem; font-size: 1.05rem; }

/* Sections */
.section { padding: clamp(2rem, 4.5vw, 3.25rem) 0; }
.section-alt { background: var(--sand); }
.section-navy, .section-forest {
  background: var(--forest-deep); color: var(--sand);
}
.section-navy h2, .section-navy h3,
.section-forest h2, .section-forest h3 { color: var(--sand); }
.section-navy a, .section-forest a { color: #e8b89a; }
.section-navy .muted, .section-forest .muted { color: #a8b8ae; }
.kicker {
  display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--terra); margin-bottom: 0.4rem;
  font-family: var(--sans);
}
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; }

/* Cards / grids — plain, workmanlike */
.grid-2 {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-3 {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.25rem; box-shadow: none;
}
.card h3 { margin-bottom: 0.4em; }
.card.lift:hover { border-color: var(--forest-mid); }
.icon-dot {
  width: 2rem; height: 2rem; border-radius: 4px;
  background: var(--sand); color: var(--forest);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 0.65rem; font-size: 0.9rem;
  border: 1px solid var(--line);
}

/* Call strip — terracotta bar, phone-first */
.call-strip {
  background: var(--terra);
  color: var(--white); padding: 1rem 0;
}
.call-strip .wrap {
  display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; justify-content: space-between;
}
.call-strip strong { font-size: 1.1rem; }
.call-strip a.btn { background: var(--forest-deep); color: var(--sand); }
.call-strip a.btn:hover { background: var(--forest); }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.88rem; color: var(--muted); padding: 1rem 0 0;
}
.breadcrumbs a { color: var(--forest-mid); text-decoration: none; }
.breadcrumbs a:hover { color: var(--terra); }
.breadcrumbs span[aria-hidden] { margin: 0 0.4rem; opacity: 0.5; }

/* Page hero (inner) */
.page-hero {
  background: var(--sand); border-bottom: 1px solid var(--line);
  padding: 0.5rem 0 1.75rem;
}
.page-hero h1 { margin-top: 0.35rem; }
.page-hero .lede { color: var(--muted); max-width: 40em; font-size: 1.05rem; }

/* FAQ */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.85rem 1.05rem; margin-bottom: 0.55rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--forest-deep);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terra); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.75rem 0 0.2rem; color: var(--ink); }

/* Area chips */
.area-list {
  display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 0 0 1rem;
}
.area-list a, .area-list span {
  display: inline-block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.35rem 0.75rem; font-size: 0.9rem; font-weight: 600;
  color: var(--forest); text-decoration: none;
}
.area-list a:hover { border-color: var(--forest); background: var(--sand); }

/* Credential chips / lists — local-shop trust, not SaaS pills */
.cred-chips {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  list-style: none; padding: 0; margin: 1rem 0 0;
}
.cred-chips li {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  font-size: 0.88rem; font-weight: 650; color: var(--forest-deep);
}
.cred-list { margin-top: 0.35rem; }
.cred-list li { margin-bottom: 0.55em; }

/* Contact blocks */

.contact-panel {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--forest);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow);
}
.contact-panel .phone {
  font-size: clamp(1.55rem, 4vw, 2.1rem); font-weight: 800; color: var(--forest);
  text-decoration: none; display: inline-block; margin: 0.35rem 0 0.75rem;
  font-family: var(--sans);
}
.contact-panel .phone:hover { color: var(--terra); }
.placeholder-box {
  border: 2px dashed var(--sand-deep); border-radius: var(--radius);
  background: rgba(27,67,50,0.04); padding: 1.4rem; margin-top: 1rem;
  color: var(--muted);
}
.placeholder-box h3 { color: var(--forest); margin-bottom: 0.35em; }

/* Footer */
.site-footer {
  background: var(--forest-deep); color: #a8b8ae; padding: 2.25rem 0 1.35rem; margin-top: 0;
  font-size: 0.95rem;
}
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { color: #e8b89a; }
.footer-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 1.5rem;
}
.site-footer h3 {
  color: var(--sand); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-family: var(--sans); margin-bottom: 0.7rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.footer-bottom {
  border-top: 1px solid rgba(243,234,217,0.12); padding-top: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  font-size: 0.8rem; color: #7a8c82;
}
.footer-bottom .walked { opacity: 0.75; }
.footer-bottom .walked a {
  color: #7a8c82; text-decoration: underline; text-underline-offset: 2px; font-weight: 400;
}

/* 404 */
.err-page { text-align: center; padding: 4rem 0 5rem; }
.err-page .code {
  font-size: 3.5rem; font-weight: 800; color: var(--forest); font-family: var(--sans); line-height: 1;
  margin-bottom: 0.5rem;
}

/* Mobile nav */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    padding: 0.5rem 0 0.75rem; border-top: 1px solid var(--line); margin-top: 0.35rem;
  }
  .site-header .wrap { flex-wrap: wrap; }
  .nav.is-open { display: flex; }
  .nav .cta-call { margin-left: 0; text-align: center; }
  .hero h1 { max-width: none; }
}
@media (max-width: 480px) {
  .wrap { width: min(var(--max), calc(100% - 1.25rem)); }
  .topbar .email-hide { display: none; }
}
