/* Billings Asbestos Testing — shared stylesheet */
/* Big Sky professional: rimrock-sandstone warm ground, deep spruce primary,
   Yellowstone-slate accent, rimrock-clay reserved for call CTAs. Sturdy serif display. */
:root {
  --sand: #f7f2e7;
  --sand-deep: #eee4cf;
  --sand-dark: #e4d6b9;
  --card: #fffcf5;
  --ink: #2b2f2a;
  --ink-soft: #5c6156;
  --spruce: #1d3a2e;
  --spruce-deep: #122a20;
  --slate: #40606f;
  --slate-deep: #304a57;
  --clay: #ae5427;
  --clay-deep: #8c401b;
  --line: #dcd2ba;
  --radius: 6px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", 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(--sand);
  color: var(--ink);
  line-height: 1.68;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

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

a { color: var(--slate); }
a:hover { color: var(--slate-deep); }

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

/* ---------- Top strip + header ---------- */
.top-strip {
  background: var(--spruce-deep);
  color: var(--sand-deep);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.top-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.top-strip a { color: #f2e7ca; font-weight: 700; text-decoration: none; }
.top-strip a:hover { color: #fff; }
.top-strip .strip-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-header {
  background: var(--card);
  border-bottom: 3px solid var(--spruce);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--spruce);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.12;
}
.brand svg { flex: 0 0 auto; }
.brand .brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--clay);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-weight: 700;
  color: var(--spruce);
  cursor: pointer;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 3px solid var(--spruce);
  box-shadow: 0 8px 18px rgba(18, 42, 32, 0.18);
  padding: 0.8rem 1.15rem 1.15rem;
}
.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: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--sand-deep);
}
.site-nav a:hover { color: var(--clay); }
.nav-call {
  display: inline-block;
  margin-top: 0.9rem;
  background: var(--clay);
  color: #fff !important;
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  border-bottom: none !important;
}
.nav-call:hover { background: var(--clay-deep); }

@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: 2px solid transparent;
    padding: 0.35rem 0.55rem;
    font-size: 0.93rem;
  }
  .site-nav a:hover { border-bottom-color: var(--clay); color: var(--ink); }
  .nav-call { margin-top: 0; margin-left: 0.45rem; padding: 0.5rem 0.95rem; font-size: 0.93rem; }
  .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(--card);
    border: 1px solid var(--line);
    border-top: 3px solid var(--clay);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 10px 20px rgba(18, 42, 32, 0.16);
    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%; border-bottom: 2px solid transparent; }
}

/* ---------- Heroes ---------- */
.hero {
  background: linear-gradient(180deg, var(--sand-deep) 0%, var(--sand-dark) 100%);
  border-bottom: 5px solid var(--clay);
  padding: 2.7rem 0 3rem;
}
.hero .kicker {
  display: inline-block;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.65rem;
}
.hero p.lead { font-size: 1.13rem; max-width: 46rem; color: #43483e; }
.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: #4c5348;
  font-weight: 600;
}
.hero-points li { margin: 0; display: flex; align-items: center; gap: 0.42rem; }
.hero-points svg { flex: 0 0 auto; }

.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.35fr 1fr; } }
.hero-art { display: none; }
@media (min-width: 900px) { .hero-art { display: block; } }
.hero-art-photo { display: block; }
.hero-art-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: 10px 10px 0 var(--spruce);
}
@media (max-width: 899px) { .hero-art-photo img { max-height: 250px; box-shadow: 6px 6px 0 var(--spruce); } }

/* Inner-page photo heroes: photo under a spruce/slate wash, light type */
.hero.hero-photo {
  background-color: var(--spruce-deep);
  background-image:
    linear-gradient(120deg, rgba(18, 42, 32, 0.94) 0%, rgba(29, 58, 46, 0.86) 45%, rgba(48, 74, 87, 0.72) 100%),
    var(--hero-img);
  background-size: cover, cover;
  background-position: center, var(--hero-pos, center 35%);
  background-repeat: no-repeat, no-repeat;
  color: #ece5d2;
}
.hero.hero-photo h1 { color: #fdfaf1; }
.hero.hero-photo p.lead { color: #ddd6c2; }
.hero.hero-photo .kicker { color: #e0a678; }
.hero.hero-photo .page-meta, .hero.hero-photo .page-meta a { color: #b9b8a4; }
.hero.hero-photo .hero-points { color: #cfcab5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.55rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.01rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-call { background: var(--clay); color: #fff; }
.btn-call:hover { background: var(--clay-deep); color: #fff; }
.btn-quote { background: var(--spruce); color: var(--sand); }
.btn-quote:hover { background: var(--spruce-deep); color: var(--sand); }
.hero-photo .btn-quote, .cta-band .btn-quote { background: var(--sand); color: var(--spruce); }
.hero-photo .btn-quote:hover, .cta-band .btn-quote:hover { background: #fff; color: var(--spruce); }
.btn-slate { background: var(--slate); color: #fff; }
.btn-slate:hover { background: var(--slate-deep); color: #fff; }

/* ---------- Content sections ---------- */
main { padding: 2.3rem 0 3rem; }
.section-alt {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--slate);
  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: 1.05rem;
  grid-template-columns: 1fr;
  margin: 1.4rem 0;
}
@media (min-width: 700px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .card-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--slate);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.1rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card a.more { font-weight: 700; text-decoration: none; color: var(--clay); }
.card a.more:hover { color: var(--clay-deep); }

/* Numbered process list — square slate markers */
.steps { list-style: none; margin: 1.4rem 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.35rem 3.2rem;
  margin: 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 4px;
  background: var(--slate);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 1.06rem;
  top: 2.6rem;
  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: 480px;
  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(--spruce); color: var(--sand); font-weight: 600; font-family: var(--serif); }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--sand); }

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
}
.faq details[open] { border-left: 4px solid var(--clay); }
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--spruce);
  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(--clay);
}
.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(--clay);
  background: #f6e9dc;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
}
.notice.cool { border-left-color: var(--slate); background: #e9ecec; }
.notice p:last-child { margin-bottom: 0; }

/* Reassurance strip */
.assure-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.7rem;
  margin: 1.4rem 0;
  padding: 0.95rem 1.15rem;
  background: var(--spruce);
  color: var(--sand);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
}
.assure-strip span { display: inline-flex; align-items: center; gap: 0.45rem; }
.assure-strip svg { flex: 0 0 auto; }

/* CTA band */
.cta-band {
  background: var(--spruce-deep);
  color: #d9d3bf;
  border-radius: var(--radius);
  border-top: 5px solid var(--clay);
  padding: 2rem 1.5rem;
  margin: 2.4rem 0 0;
  text-align: center;
}
.cta-band h2 { color: #fdfaf1; margin-top: 0; }
.cta-band p { max-width: 42rem; margin-left: auto; margin-right: auto; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Quote form ---------- */
.quote-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--clay);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  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(--spruce);
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #c2b48e;
  border-radius: 4px;
  font: inherit;
  background: var(--sand);
  color: var(--ink);
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid var(--slate);
  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: 860px) { .form-split { grid-template-columns: 1.1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--spruce-deep);
  color: #b3bcae;
  border-top: 5px solid var(--clay);
  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: 720px) { .footer-cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h4 {
  color: #f4efdf;
  font-family: var(--serif);
  font-size: 0.98rem;
  margin-bottom: 0.6rem;
}
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: #cdd4c6; 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(244, 239, 223, 0.18);
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: #98a294;
}
.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(--spruce-deep);
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.28);
}
.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(--clay); }
.mobile-call-bar .bar-quote { background: var(--slate); }
@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: 4px;
  border: 1px solid var(--line);
  box-shadow: 7px 7px 0 var(--sand-dark);
  object-fit: cover;
}
.shot figcaption { font-size: 0.86rem; color: var(--ink-soft); padding: 0.55rem 0.15rem 0; font-style: italic; }

.img-pair { display: grid; gap: 1.2rem; margin: 1.8rem 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.6rem; 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 > div > h2:first-child, .media-row > div > h3:first-child { margin-top: 0; }
@media (min-width: 820px) {
  .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: 819px) {
  .media-row .shot img, .media-row .shot img.tall { aspect-ratio: 4 / 3; max-height: 360px; }
}
.section-alt .media-row { margin: 0; }

/* 404 */
.error-page { text-align: center; padding: 3rem 0; }
.error-page .big { font-family: var(--serif); font-size: 5rem; font-weight: 700; color: var(--slate); 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; }
