/* homeinspectioncost.net - cool-editorial design (talaria-site-designer)
   Home & Construction archetype: rugged, physical, worksite readout.
   Anton condensed UPPERCASE heads, Roboto body, JetBrains Mono figures.
   Targets the site's real class names: header .wrap, .logo, .logomark,
   .logotype, .lt-name, .lt-tag, .hgrad, .hero, .calc, .fld, .qty,
   .result, .bar, .feats, .feat, .faq, .ad, .guides, .gcard,
   .related, .disc, .lead, .cta, footer .wrap, .cols, cc-banner */

:root {
  --c-pop:     #DC5D1E;
  --c-pop-dk:  #8A380F;
  --c-amber:   #F6B623;
  --c-tint:    #F6EAD5;
  --c-floor:   #F4F3F1;
  --c-panel:   #FFFFFF;
  --c-ink:     #221E1B;
  --c-ink2:    #4B443D;
  --c-sub:     #7A716A;
  --c-rule:    #E3DED5;
  --c-rule2:   #D2CBBE;
  --c-steel:   #1B1815;
  --c-r:       4px;
  --c-maxw:    980px;
  --c-head:    'Anton', Impact, sans-serif;
  --c-body:    'Roboto', system-ui, sans-serif;
  --c-mono:    'JetBrains Mono', ui-monospace, monospace;
}

/* ---- reset / base ---- */
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: var(--c-body);
  color: var(--c-ink);
  background: var(--c-floor);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block }
a { color: var(--c-pop-dk); text-underline-offset: 2px }
a:hover { text-decoration: underline }
.wrap { max-width: var(--c-maxw); margin: 0 auto; padding: 0 22px }
h1, h2, h3, h4 {
  font-family: var(--c-head);
  font-weight: 400;
  line-height: 1.04;
  color: var(--c-ink);
  margin: 0 0 .5em;
  letter-spacing: .01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem) }
h2 { font-size: clamp(1.18rem, 2.2vw, 1.42rem) }
h3 { font-size: 1.02rem }
p { margin: 0 0 1rem }
ul { padding-left: 1.4em; margin: .5rem 0 1rem }
li { margin-bottom: .4em }
:focus-visible { outline: 3px solid var(--c-amber); outline-offset: 2px }
a, button, select, input { transition: background-color .14s ease, border-color .14s ease, color .14s ease, transform .1s ease }
button:active, .cta:active { transform: scale(.98) }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto } }

/* ---- header (dark, chunky) ---- */
header {
  background: var(--c-steel);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .wrap {
  max-width: var(--c-maxw);
  margin: 0 auto;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* brand mark */
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none }
.logo:hover { text-decoration: none }
.logomark {
  width: 40px;
  height: 40px;
  border-radius: var(--c-r);
  background: var(--c-pop);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.logomark svg { width: 22px; height: 22px }
.logotype { display: flex; flex-direction: column; line-height: 1.05 }
.lt-name {
  font-family: var(--c-head);
  font-weight: 400;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.lt-name .ac { color: var(--c-amber) }
.lt-tag {
  font-family: var(--c-mono);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: 3px;
}
header nav a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  margin-left: 15px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
header nav a:hover { color: #fff; border-bottom-color: var(--c-pop); text-decoration: none }

/* hazard rule under header - topic-true here, not a network default */
.hgrad {
  height: 4px;
  background: repeating-linear-gradient(-45deg, var(--c-pop), var(--c-pop) 12px, var(--c-amber) 12px, var(--c-amber) 24px);
}

/* ---- hero (homepage: two-column readout) ---- */
.hero { background: var(--c-floor); border-bottom: 1px solid var(--c-rule); color: var(--c-ink); overflow: hidden }
.hero .wrap { max-width: var(--c-maxw); margin: 0 auto; padding: 0 22px; display: block }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  color: var(--c-ink);
  margin: .12em 0 .32em;
  max-width: 15ch;
  line-height: .98;
}
.hero p { font-size: 1.04rem; color: var(--c-ink2); max-width: 50ch; margin-bottom: .5rem; font-family: var(--c-body) }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-steel);
  color: var(--c-amber);
  padding: 5px 12px;
  border-radius: var(--c-r);
  font-family: var(--c-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* byline */
.byline { display: flex; align-items: center; gap: 10px; color: var(--c-sub); font-size: .84rem; margin: 10px 0 0 }
.byline b { color: var(--c-ink); font-weight: 700 }
.byline .av, .byline img.av {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--c-tint); display: inline-block; object-fit: cover; border: 1px solid var(--c-rule);
}
.hero .byline { display: none }
.byline.light { color: var(--c-sub); display: flex }
.byline.light b { color: var(--c-ink) }

/* ---- main content ---- */
main { max-width: var(--c-maxw); margin: 0 auto; padding: 28px 22px }
main h2 {
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  margin: 1.8em 0 .5em;
  padding-bottom: .32em;
  border-bottom: 3px solid var(--c-ink);
  display: inline-block;
}
main h2:first-child { margin-top: 0 }
main p { color: var(--c-ink2) }
main ul li { color: var(--c-ink2) }
main strong { color: var(--c-ink) }

/* section spec-number labels (real sequence: 01 input, 02 readout) */
.spec-label {
  font-family: var(--c-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-pop-dk);
  display: block;
  margin-bottom: 6px;
}

/* ---- calculator card (worksite readout) ---- */
.calc {
  background: var(--c-panel);
  border: 1px solid var(--c-rule);
  border-top: 4px solid var(--c-pop);
  border-radius: var(--c-r);
  padding: 26px;
  margin: -36px 0 24px;
  position: relative;
  box-shadow: 0 10px 28px rgba(34,30,27,.1);
}
.calc h2 {
  font-family: var(--c-head);
  font-size: 1.32rem;
  border: none;
  margin: 0 0 16px;
  padding: 0;
  display: block;
}

/* form fields */
.fld { display: flex; flex-direction: column; gap: 5px; margin: 13px 0; font-family: var(--c-body); font-weight: 700; font-size: .84rem; color: var(--c-ink2); text-transform: uppercase; letter-spacing: .02em }
.fld select, .qty input {
  padding: 11px 13px;
  border: 1px solid var(--c-rule2);
  border-radius: var(--c-r);
  font-size: 1rem;
  font-family: var(--c-body);
  font-weight: 400;
  text-transform: none;
  background: var(--c-floor);
  color: var(--c-ink);
}
.fld select:focus, .qty input:focus { outline: none; border-color: var(--c-pop); background: #fff; box-shadow: 0 0 0 3px rgba(220,93,30,.16) }
.hint { display: block; color: var(--c-sub); font-weight: 400; font-size: .78rem; margin-top: 3px; font-family: var(--c-body); text-transform: none; letter-spacing: 0 }

.qty { display: flex; align-items: center; gap: 12px; margin: 13px 0; font-weight: 700; font-size: .84rem; color: var(--c-ink2); text-transform: uppercase }
.qty input { width: 88px }

/* result display - mono figures, readout style */
.result {
  margin-top: 18px;
  padding: 20px 22px;
  background: var(--c-steel);
  border-radius: var(--c-r);
  text-align: center;
  color: #fff;
}
.result > div:first-child { font-family: var(--c-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6) }
.result .big {
  font-family: var(--c-mono);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--c-amber);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  display: block;
  margin: 5px 0;
}
.bar { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--c-tint), var(--c-pop), var(--c-pop-dk)); margin: 14px 0 4px; position: relative }
.bar i { position: absolute; top: -6px; width: 3px; height: 16px; background: var(--c-amber); border-radius: 1px }
#outnote, #outarea { color: rgba(255,255,255,.65) !important }

/* lead / CTA block */
.lead { margin-top: 16px; background: var(--c-tint); border: 1px solid var(--c-rule2); border-radius: var(--c-r); padding: 18px 20px; text-align: left }
.lead h3 { margin: 0 0 4px; font-size: 1rem; font-family: var(--c-head); font-weight: 400 }
.lead small { color: var(--c-ink2); font-size: .8rem }
.cta {
  display: inline-block;
  margin-top: 10px;
  background: var(--c-pop);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--c-r);
  text-decoration: none;
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--c-pop-dk);
}
.cta:hover { background: var(--c-pop-dk); color: #fff; text-decoration: none }
.cta:active { transform: translateY(1px) scale(.98) }

/* ---- feature cards ---- */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 20px 0 }
.feat { background: var(--c-panel); border: 1px solid var(--c-rule); border-radius: var(--c-r); padding: 16px; display: flex; gap: 12px; align-items: flex-start }
.feat span { font-weight: 700; display: block; font-size: .88rem; color: var(--c-ink); text-transform: uppercase; letter-spacing: .02em }
.feat small { color: var(--c-sub); font-size: .8rem }

/* ---- data tables ---- */
table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; background: var(--c-panel); border: 1px solid var(--c-rule); border-radius: var(--c-r); overflow: hidden; font-size: .93rem }
th {
  font-family: var(--c-mono);
  font-weight: 500;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  text-align: left;
  padding: 11px 14px;
  background: var(--c-steel);
}
td { text-align: left; border-bottom: 1px solid var(--c-rule); padding: 11px 14px; color: var(--c-ink2); font-family: var(--c-mono); font-size: .9rem }
tr:last-child td { border-bottom: 0 }
tr td:first-child { font-weight: 700; color: var(--c-ink); font-family: var(--c-body) }

/* ---- FAQ ---- */
.faq { background: var(--c-panel); border: 1px solid var(--c-rule); border-radius: var(--c-r); padding: 2px 18px; margin: 8px 0 }
.faq summary {
  font-family: var(--c-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--c-ink);
}
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; font-family: var(--c-mono); font-size: 1.3rem; color: var(--c-pop); font-weight: 400; flex: 0 0 auto }
.faq details[open] summary::after { content: "\2212" }

/* ---- guide cards ---- */
.guides { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 10px 0 20px }
.gcard { display: block; border: 1px solid var(--c-rule); border-left: 4px solid var(--c-pop); border-radius: var(--c-r); padding: 16px 18px; background: var(--c-panel); text-decoration: none; color: var(--c-ink); transition: border-color .14s, transform .12s }
.gcard:hover { border-left-color: var(--c-amber); transform: translateY(-2px); text-decoration: none }
.gcard strong { display: block; color: var(--c-ink); font-family: var(--c-head); font-size: 1.02rem; font-weight: 400; text-transform: uppercase; margin-bottom: 5px; line-height: 1.15 }
.gcard small { color: var(--c-sub); font-size: .8rem }

/* ---- related tags ---- */
.related { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 }
.related a { text-decoration: none; border: 1px solid var(--c-rule2); background: var(--c-panel); padding: 7px 14px; border-radius: var(--c-r); font-size: .86rem; color: var(--c-ink2) }
.related a:hover { border-color: var(--c-pop); color: var(--c-pop-dk); text-decoration: none }

/* ---- ad placeholder ---- */
.ad { margin: 24px 0; min-height: 90px; background: none; border: 1px dashed var(--c-rule2); border-radius: var(--c-r); display: flex; align-items: center; justify-content: center; color: var(--c-sub); font-family: var(--c-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase }

/* ---- disclaimer ---- */
.disc { font-size: .8rem; color: var(--c-sub); background: var(--c-panel); border: 1px solid var(--c-rule); border-radius: var(--c-r); padding: 13px 16px; margin-top: 18px; line-height: 1.6 }

/* ---- ctabar ---- */
.ctabar { margin: 14px 0 18px }
.ctabar .cta { display: inline-block }

/* ---- form card (contact) ---- */
.form-card { background: var(--c-panel); border: 1px solid var(--c-rule); border-radius: var(--c-r); padding: 24px; max-width: 560px }
.field { display: flex; flex-direction: column; gap: 5px; margin: 12px 0; font-weight: 700; font-size: .84rem; color: var(--c-ink2); text-transform: uppercase; letter-spacing: .02em }
.field input, .field textarea { padding: 11px 13px; border: 1px solid var(--c-rule2); border-radius: var(--c-r); font-size: 1rem; font-family: var(--c-body); font-weight: 400; text-transform: none; background: var(--c-floor); color: var(--c-ink) }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-pop); background: #fff; box-shadow: 0 0 0 3px rgba(220,93,30,.16) }
#formResult { margin-top: 10px; font-weight: 700; color: var(--c-pop-dk) }

/* ---- about banner ---- */
.aboutbanner { border-radius: var(--c-r); padding: 22px; display: flex; align-items: center; justify-content: center; margin: 10px 0 18px; background: var(--c-tint); border: 1px solid var(--c-rule); border-top: 4px solid var(--c-pop) }

/* ---- footer (dark bookend, grid ALWAYS) ---- */
footer { background: var(--c-steel); color: rgba(255,255,255,.62); margin-top: 36px; border-top: 4px solid var(--c-pop) }
footer .wrap { max-width: var(--c-maxw); margin: 0 auto; padding: 40px 22px 24px; font-size: .88rem }
footer .cols { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 32px; align-items: start; margin-bottom: 18px }
footer .cols a { display: block; margin: 0 0 9px; color: rgba(255,255,255,.72); text-decoration: none }
footer .cols a:hover { color: var(--c-amber); text-decoration: none }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr } }
footer strong { color: #fff; font-family: var(--c-head); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: 1.05rem }
footer small { color: rgba(255,255,255,.48) }
footer p { color: rgba(255,255,255,.55); margin: 6px 0 0 }
.site-footer .brand svg rect{ fill:#fff }
.site-footer .brand .name{ color:#fff }
footer .cols div:first-child strong { color: #fff !important }

/* related mesh in footer */
.related-mesh { margin-top: 14px; font-size: .8rem; line-height: 1.8; color: rgba(255,255,255,.42); border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px }
.related-mesh a { color: rgba(255,255,255,.55); text-decoration: underline; text-underline-offset: 2px; margin-right: 0 }
.related-mesh a:hover { color: var(--c-amber) }

/* ---- cookie consent banner ---- */
#cc-banner { background: var(--c-steel) !important; border-top: 1px solid rgba(255,255,255,.12) }
#cc-acc { background: var(--c-pop) !important; color: #fff !important; border: 0 !important; border-radius: var(--c-r) !important; padding: 8px 16px !important; cursor: pointer !important; font-weight: 700 !important }
#cc-acc:hover { background: var(--c-pop-dk) !important }
#cc-rej { background: transparent !important; color: rgba(255,255,255,.8) !important; border: 1px solid rgba(255,255,255,.2) !important; border-radius: var(--c-r) !important }

/* ---- inner page hero (article/guide - no .hero wrapper, just main) ---- */
main h1 { font-family: var(--c-head); font-size: clamp(1.7rem, 3.6vw, 2.35rem); color: var(--c-ink); line-height: 1.02; margin: 0 0 .4em }
main > .byline { margin-bottom: 16px }

/* ---- number highlights (mono) ---- */
.num, .mono, .big { font-family: var(--c-mono); font-variant-numeric: tabular-nums }

/* ---- mobile ---- */
@media (max-width: 640px) {
  header .wrap { padding: 12px 16px }
  header nav a { margin-left: 10px; font-size: .72rem }
  .lt-name { font-size: 1.02rem }
  .lt-tag { display: none }
  main { padding: 20px 16px }
  .calc { margin: -24px 0 18px; padding: 18px }
  .result .big { font-size: 1.6rem }
  footer .wrap { padding: 28px 16px 18px }
  footer .cols { gap: 20px }
}

/* ---- homepage two-column hero (worksite mascot left, tool right) ---- */
.hero-row { display: grid !important; grid-template-columns: 1fr 1.08fr; gap: 30px; align-items: stretch; padding-top: 42px !important; padding-bottom: 38px !important }
.hero-left { display: flex; flex-direction: column; min-width: 0 }
.hero-left .pill { margin-bottom: 14px }
.hero-left h1 { margin-bottom: .34em }
.hero-left > p { margin-bottom: 0; flex-shrink: 0 }
.hero-mascot-wrap { margin-top: 20px; flex: 1 1 auto; min-height: 180px; display: flex; align-items: flex-end }
.hero-mascot-wrap svg { width: 100%; max-width: 300px; height: auto }
.hero-right { display: flex; flex-direction: column; min-width: 0 }
.hero-right .calc { margin: 0 !important; flex: 1 }
.hero .art { display: none }

@media (max-width: 860px) {
  .hero-row { grid-template-columns: 1fr !important; gap: 0 !important; padding-bottom: 0 !important; padding-top: 26px !important }
  .hero-left { padding-bottom: 16px }
  .hero-mascot-wrap { display: none }
  .hero-right { padding-bottom: 24px }
}

/* AI-discoverability alignment rule (standing rule) */
body:not(:has(.calc-layout)) .tool-hero .wrap{max-width:760px}
