/* Boise Asbestos Inspection — shared stylesheet */
/* High-desert professional: clean white ground, deep basalt charcoal, foothills sage */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f2;
  --bg-sand: #f0efe9;
  --card: #ffffff;
  --ink: #262a29;
  --ink-soft: #5c6360;
  --charcoal: #272c2b;
  --charcoal-deep: #191d1c;
  --sage: #5c7c54;
  --sage-dark: #47613f;
  --sage-tint: #eaf0e6;
  --line: #dfe3dc;
  --radius: 6px;
  --shadow: 0 1px 8px rgba(25, 29, 28, 0.07);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.68;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.15rem; }

a { color: var(--sage-dark); }
a:hover { color: var(--sage); }

h1, h2, h3 { font-family: var(--serif); color: var(--charcoal); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4.6vw, 2.7rem); margin-bottom: 0.7rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.85rem); margin: 2.3rem 0 0.8rem; }
h3 { font-size: 1.18rem; margin: 1.4rem 0 0.5rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.3rem; }
li { margin-bottom: 0.45rem; }

/* ---------- Header (solid charcoal bar) ---------- */
.site-header {
  background: var(--charcoal);
  color: #f2f4f1;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--sage);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand svg { flex: 0 0 auto; }
.brand .brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  color: #a9c39f;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--charcoal);
  border-bottom: 3px solid var(--sage);
  box-shadow: var(--shadow);
  padding: 0.7rem 1.15rem 1.1rem;
}
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 0.5rem 0.2rem;
  text-decoration: none;
  color: #e8ece6;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-nav a:hover { color: #b9d2ae; }
.nav-call {
  display: inline-block;
  margin-top: 0.9rem;
  background: var(--sage);
  color: #fff !important;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  border-bottom: none !important;
}
.nav-call:hover { background: var(--sage-dark); }

@media (min-width: 940px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    align-items: center;
    gap: 0.4rem;
  }
  .site-nav ul { display: flex; gap: 0.1rem; align-items: center; }
  .site-nav a { border-bottom: none; padding: 0.4rem 0.55rem; font-size: 0.92rem; }
  .nav-call { margin-top: 0; margin-left: 0.45rem; padding: 0.5rem 0.95rem; font-size: 0.92rem; }
  .nav-drop { position: relative; }
  .nav-drop > a::after { content: " ▾"; font-size: 0.7em; }
  .nav-drop ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--charcoal);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    box-shadow: var(--shadow);
    min-width: 260px;
    padding: 0.35rem;
    flex-direction: column;
    gap: 0;
  }
  .nav-drop:hover ul, .nav-drop:focus-within ul { display: flex; }
  .nav-drop ul a { padding: 0.45rem 0.7rem; width: 100%; }
}

/* ---------- Hero (light sand ground — calm, no dark drama) ---------- */
.hero {
  background: linear-gradient(170deg, var(--bg-sand) 0%, #f7f7f3 60%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 2.7rem 0 2.9rem;
}
.hero .kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 0.6rem;
}
.hero p.lead { font-size: 1.13rem; max-width: 46rem; color: #414846; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.hero-points li { margin: 0; display: flex; align-items: center; gap: 0.45rem; }
.hero-points svg { flex: 0 0 auto; }

.hero-grid { display: grid; gap: 1.9rem; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.3fr 1fr; } }
.hero-art { display: none; }
@media (min-width: 920px) { .hero-art { display: block; } }
.hero-art-photo { display: block; }
.hero-art-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(25, 29, 28, 0.16);
}
@media (max-width: 919px) { .hero-art-photo img { max-height: 250px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.btn-call { background: var(--sage); color: #fff; }
.btn-call:hover { background: var(--sage-dark); color: #fff; }
.btn-quote { background: var(--charcoal); color: #fff; }
.btn-quote:hover { background: var(--charcoal-deep); color: #fff; }
.btn-ghost { background: #fff; color: var(--charcoal); border: 1.5px solid var(--charcoal); padding: 0.75rem 1.4rem; }
.btn-ghost:hover { background: var(--bg-alt); color: var(--charcoal); }

/* ---------- Content sections ---------- */
main { padding: 2.2rem 0 3rem; }
.section-alt {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  margin: 2rem 0;
}
.section-alt h2:first-child, .section-alt h3:first-child { margin-top: 0; }

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1.4rem 0;
}
@media (min-width: 700px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .card-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card a.more { font-weight: 700; text-decoration: none; }

/* Numbered process list — square sage markers */
.steps { list-style: none; margin: 1.4rem 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.3rem 3.2rem;
  margin: 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 5px;
  background: var(--sage);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.55rem;
  bottom: 0.2rem;
  width: 2px;
  background: var(--line);
}
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 0 0 0.3rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 500px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.97rem;
}
th, td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--charcoal); color: #fff; font-weight: 600; }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg-alt); }

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--charcoal);
  padding: 0.95rem 1.15rem;
  list-style: none;
  position: relative;
  padding-right: 2.4rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--sage);
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 1.15rem 1rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* Callout / notice */
.notice {
  border-left: 4px solid var(--sage);
  background: var(--sage-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
}
.notice.plain { border-left-color: var(--charcoal); background: var(--bg-alt); }
.notice p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band {
  background: var(--charcoal);
  color: #dbe1dc;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin: 2.4rem 0 0;
  text-align: center;
  border-bottom: 4px solid var(--sage);
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { max-width: 42rem; margin-left: auto; margin-right: auto; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .btn-quote { background: #fff; color: var(--charcoal); }
.cta-band .btn-quote:hover { background: var(--bg-sand); }

/* ---------- Quote form ---------- */
.quote-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  max-width: 560px;
}
.quote-form h3 { margin-top: 0; }
.quote-form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0.9rem 0 0.25rem;
  color: var(--charcoal);
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #c3cabf;
  border-radius: 5px;
  font: inherit;
  background: var(--bg-alt);
  color: var(--ink);
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
  background: #fff;
}
.quote-form button { margin-top: 1.2rem; width: 100%; justify-content: center; }
.quote-form .form-note { font-size: 0.83rem; color: var(--ink-soft); margin: 0.7rem 0 0; }

.form-split { display: grid; gap: 1.6rem; align-items: start; margin: 1.5rem 0; }
@media (min-width: 880px) { .form-split { grid-template-columns: 1.1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal-deep);
  color: #aab4ad;
  padding: 2.4rem 0 1.6rem;
  margin-top: 3rem;
  font-size: 0.94rem;
}
.footer-cols { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 740px) { .footer-cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h4 {
  color: #fff;
  font-family: var(--serif);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: #c4cfc6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-phone { font-weight: 700; color: #fff !important; font-size: 1.05rem; }
.footer-disclosure {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: #8b968e;
}
.footer-disclosure p { margin-bottom: 0.5rem; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  background: var(--charcoal-deep);
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.25);
}
.mobile-call-bar a {
  flex: 1;
  text-align: center;
  padding: 0.9rem 0.5rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  font-size: 0.98rem;
}
.mobile-call-bar .bar-call { background: var(--sage); }
.mobile-call-bar .bar-quote { background: var(--charcoal); }
@media (min-width: 940px) { .mobile-call-bar { display: none; } }
@media (max-width: 939px) { body { padding-bottom: 3.4rem; } }

/* Breadcrumb-ish page meta */
.page-meta { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.page-meta a { color: var(--ink-soft); }

/* ---------- Content imagery ---------- */
figure.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  object-fit: cover;
}
.shot figcaption { font-size: 0.86rem; color: var(--ink-soft); padding: 0.45rem 0.15rem 0; }

.img-pair { display: grid; gap: 1.1rem; margin: 1.7rem 0; }
.img-pair .shot img { aspect-ratio: 4 / 3; }
@media (min-width: 700px) { .img-pair { grid-template-columns: 1fr 1fr; } }

.media-row { display: grid; gap: 1.5rem; margin: 1.9rem 0; align-items: start; }
.media-row .shot img { aspect-ratio: 4 / 3; }
.media-row .shot img.tall { aspect-ratio: 3 / 4; }
.media-row .shot img.pos-top { object-position: center 20%; }
.media-row > div > h2:first-child, .media-row > div > h3:first-child { margin-top: 0; }
@media (min-width: 840px) {
  .media-row { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .media-row.flip { grid-template-columns: 0.85fr 1.15fr; }
  .media-row.flip .shot { order: -1; }
}
@media (max-width: 839px) {
  .media-row .shot img, .media-row .shot img.tall { aspect-ratio: 4 / 3; max-height: 360px; }
}
.section-alt .media-row { margin: 0; }

/* Credential strip */
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 1.3rem 0;
  padding: 0.9rem 1.15rem;
  background: var(--sage-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}
.badge-strip span { display: inline-flex; align-items: center; gap: 0.45rem; }
.badge-strip svg { flex: 0 0 auto; }

/* 404 */
.error-page { text-align: center; padding: 3rem 0; }
.error-page .big { font-family: var(--serif); font-size: 5rem; font-weight: 700; color: var(--sage); line-height: 1; }

/* Utility */
.center { text-align: center; }
.small { font-size: 0.88rem; color: var(--ink-soft); }

/* auto: unset CTAs hidden until configured */
.phone-cta { display: none !important; }
