/* HeartBuild roofing content. Load AFTER checkup.css on roof.html only.
   Targets the middle service sections; excludes hero, reviews and contact. */
#home > .section:not(.hero):not(#contact) {
  --roof-accent: #8a2222;
  --roof-ink: #302929;
  --roof-muted: #655b58;
  --roof-border: #e5dcd5;
  padding: clamp(2.75rem, 5vw, 4.75rem) 0;
  background: #fffdf9;
  color: var(--roof-ink);
}
#home > .section.proof:not(.hero):not(#contact) { background: #f3eee8; }
#home > .section:not(.hero):not(#contact) > .container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}
#home > .section:not(.hero):not(#contact) .section-head {
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
#home > .section:not(.hero):not(#contact) h2 {
  max-width: 25ch;
  margin: 0 0 1.75rem;
  font-family: Syne, Montserrat, Arial, sans-serif;
  font-size: clamp(1.8rem, 3.3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.025em;
  color: var(--roof-ink);
  text-wrap: balance;
}
#home > .section:not(.hero):not(#contact) .section-head h2 { margin-bottom: 0; }
#home > .section:not(.hero):not(#contact) h3 {
  margin: 2rem 0 .8rem;
  font-family: Syne, Montserrat, Arial, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.3;
  color: var(--roof-ink);
}
#home > .section:not(.hero):not(#contact) p {
  max-width: 76ch;
  margin: 0 0 1.15rem;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--roof-muted);
}
#home > .section:not(.hero):not(#contact) > .container > p:first-of-type {
  font-size: 1.075rem;
  color: #49403b;
}
#home > .section:not(.hero):not(#contact) strong { color: var(--roof-ink); }
#home > .section:not(.hero):not(#contact) .service-list,
#home > .section:not(.hero):not(#contact) .proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0 2.25rem;
}
#home > .section:not(.hero):not(#contact) .service,
#home > .section:not(.hero):not(#contact) .proof-item {
  min-width: 0;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  background: #fff;
  border: 1px solid var(--roof-border);
  border-top: 3px solid var(--roof-accent);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgb(67 44 30 / 4%);
}
#home > .section:not(.hero):not(#contact) :is(.service, .proof-item) h3 { margin-top: 0; }
#home > .section:not(.hero):not(#contact) :is(.service, .proof-item) p {
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 0;
}
#home > .section:not(.hero):not(#contact) > .container > ul {
  max-width: 82ch;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  list-style: none;
}
#home > .section:not(.hero):not(#contact) > .container > ul > li {
  position: relative;
  margin: 0;
  padding: 1rem 0 1rem 1.6rem;
  border-bottom: 1px solid var(--roof-border);
  color: var(--roof-muted);
  font-size: 1rem;
  line-height: 1.75;
}
#home > .section:not(.hero):not(#contact) > .container > ul > li::before {
  content: '';
  position: absolute;
  top: 1.65rem;
  left: 0;
  width: .45rem;
  height: .45rem;
  background: var(--roof-accent);
  border-radius: 50%;
}
#home > .section:not(.hero):not(#contact) .steps {
  max-width: 84ch;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
#home > .section:not(.hero):not(#contact) .steps li {
  display: block;
  position: relative;
  min-height: 3rem;
  margin: 0;
  padding: .25rem 0 1.75rem 4rem;
  color: var(--roof-muted);
  font-size: 1rem;
  line-height: 1.8;
  counter-increment: step;
}
#home > .section:not(.hero):not(#contact) .steps li strong { display: block; margin-bottom: .25rem; }
#home > .section:not(.hero):not(#contact) .steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: .15rem;
  left: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #f2e5df;
  color: var(--roof-accent);
  font-weight: 800;
  font-size: .9rem;
  line-height: 2.75rem;
  text-align: center;
}
#home > .section:not(.hero):not(#contact) .faq {
  max-width: 900px;
  margin: .75rem 0;
  padding: 0;
  border: 1px solid var(--roof-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
#home > .section:not(.hero):not(#contact) .faq summary {
  padding: 1.25rem 1.5rem;
  color: var(--roof-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}
#home > .section:not(.hero):not(#contact) .faq summary::marker { color: var(--roof-accent); }
#home > .section:not(.hero):not(#contact) .faq[open] { border-color: #c8a69a; }
#home > .section:not(.hero):not(#contact) .faq[open] summary { background: #faf5f0; }
#home > .section:not(.hero):not(#contact) .faq p {
  margin: 0;
  padding: 1rem 1.5rem 1.4rem;
  font-size: .975rem;
}
#home > .section:not(.hero):not(#contact) :is(a, summary):focus-visible {
  outline: 3px solid var(--roof-accent);
  outline-offset: 4px;
}
#home > .section:not(.hero):not(#contact) .work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
#home > .section:not(.hero):not(#contact) .work {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--roof-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
#home > .section:not(.hero):not(#contact) .work figcaption { padding: 1.5rem; }
#home > .section:not(.hero):not(#contact) .work p { font-size: .95rem; margin: .5rem 0 .85rem; }
#home > .section:not(.hero):not(#contact) .text-link { text-underline-offset: .2em; }
#home > .section:not(.hero):not(#contact) .button { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 850px) {
  #home > .section:not(.hero):not(#contact) .service-list,
  #home > .section:not(.hero):not(#contact) .proof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  #home > .section:not(.hero):not(#contact) > .container { width: calc(100% - 36px); }
  #home > .section:not(.hero):not(#contact) .work-grid { grid-template-columns: 1fr; }
  #home > .section:not(.hero):not(#contact) h2 { max-width: none; }
  #home > .section:not(.hero):not(#contact) .faq summary { padding: 1.1rem; }
  #home > .section:not(.hero):not(#contact) .faq p { padding: .9rem 1.1rem 1.2rem; }
  #home > .section:not(.hero):not(#contact) .steps li { padding-left: 3.5rem; }
}
