/* ==========================================================================
   Proven Construction LLC — bat-proofing.css
   Bat Proofing & Exclusion page only. Linked from bat-proofing.html and
   nowhere else.

   Consumes the token layer defined in styles.css (--color-*, --space-*,
   --radius-*, --shadow-*, --step-*, --ease*, --transition*). Defines no new
   tokens of its own.

   Sections
     1. Hero + breadcrumb
     2. Signs list
     3. Entry-point diagram + numbered list
     4. Process steps
     5. Scope (what we do / what we refer out)
     6. FAQ
     7. Responsive
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Hero + breadcrumb
   -------------------------------------------------------------------------- */

/* The source photo carries a phone watermark in the bottom-left corner; a
   focal point up on the gable keeps it outside the crop at every size. */
.bp-hero {
  background-position: center 28%;
}

.bp-hero .hero-content {
  max-width: 860px;
}

/* .page-hero zeroes the paragraph margin because most page heroes end on it;
   this one has buttons underneath. */
.bp-hero .hero-content > p {
  margin-bottom: var(--space-7);
}

.bp-crumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}

.bp-crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-accent-glow);
  text-decoration: underline;
  text-decoration-color: rgba(240, 140, 66, 0.45);
  text-underline-offset: 0.2em;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.bp-crumbs a:hover,
.bp-crumbs a:focus {
  color: var(--color-white);
  text-decoration-color: currentColor;
}


/* --------------------------------------------------------------------------
   2. Signs list
   Typeset rather than carded: a navy rule over each entry, no box, no icon.
   -------------------------------------------------------------------------- */
.bp-kicker {
  font-size: var(--step-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--color-accent-ink);
  margin-bottom: var(--space-5);
}

.bp-signs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-7) var(--grid-gap);
}

.bp-sign {
  border-top: 2px solid var(--color-primary);
  padding-top: var(--space-4);
}

.bp-sign h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.bp-sign p {
  font-size: var(--step-sm);
  line-height: 1.62;
  color: var(--color-text-muted);
}

.bp-sign p a,
.bp-further a {
  color: var(--color-accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(176, 87, 17, 0.4);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.bp-sign p a:hover,
.bp-further a:hover {
  color: var(--color-primary);
  text-decoration-color: currentColor;
}


/* --------------------------------------------------------------------------
   3. Entry-point diagram + numbered list
   -------------------------------------------------------------------------- */
.bp-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.bp-diagram {
  margin: 0;
  padding: var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.bp-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Line-art house. Navy outlines on white, like a marked-up elevation. */
.bpd-ground {
  stroke: var(--color-primary);
  stroke-width: 2;
}

.bpd-wall,
.bpd-chimney {
  fill: var(--color-white);
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linejoin: round;
}

.bpd-siding line {
  stroke: var(--color-border);
  stroke-width: 1;
}

.bpd-opening,
.bpd-vent {
  fill: var(--color-bg-light);
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linejoin: round;
}

.bpd-detail {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.25;
}

.bpd-roof {
  fill: var(--color-primary);
}

.bpd-ridge {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bpd-flashing {
  fill: none;
  stroke: var(--color-secondary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bpd-lifted {
  stroke: var(--color-primary);
  stroke-width: 2;
}

.bpd-marker line {
  stroke: var(--color-accent-btn);
  stroke-width: 2;
  stroke-dasharray: 4 3;
}

/* White number on the button-orange fill clears 4.5:1; the white ring
   separates the badge from whatever line work sits behind it. */
.bpd-marker circle {
  fill: var(--color-accent-btn);
  stroke: var(--color-white);
  stroke-width: 3;
}

.bpd-marker text {
  fill: var(--color-white);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  text-anchor: middle;
}

/* The list the diagram's numbers refer to. */
/* styles.css only resets list-style on <ul>; these are <ol>s with drawn
   numbers, so the native markers have to go. */
.bp-points,
.bp-steps {
  list-style: none;
}

.bp-points {
  counter-reset: bp-point;
  display: grid;
  gap: var(--space-5);
}

.bp-points li {
  counter-increment: bp-point;
  position: relative;
  padding-left: 52px;
}

.bp-points li::before {
  content: counter(bp-point);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-accent-btn);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}

.bp-points h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-1);
}

.bp-points p {
  font-size: var(--step-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}


/* --------------------------------------------------------------------------
   4. Process steps
   A vertical run with a connecting rule, so the order reads as an order.
   -------------------------------------------------------------------------- */
.bp-steps {
  counter-reset: bp-step;
  max-width: 880px;
}

.bp-step {
  counter-increment: bp-step;
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: var(--space-6);
  padding-bottom: var(--space-7);
}

.bp-step > * {
  grid-column: 2;
}

.bp-step::before {
  content: counter(bp-step, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px var(--color-white);
}

.bp-step::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.bp-step:last-child {
  padding-bottom: 0;
}

.bp-step:last-child::after {
  content: none;
}

.bp-step h3 {
  font-size: 1.25rem;
  margin: 14px 0 var(--space-2);
}

.bp-step p {
  max-width: var(--measure);
  color: var(--color-text-muted);
}


/* --------------------------------------------------------------------------
   5. Scope
   -------------------------------------------------------------------------- */
.bp-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.bp-scope-col {
  padding: var(--space-7);
  border-radius: var(--radius-lg);
}

.bp-scope-col h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-5);
}

.bp-scope-col li {
  position: relative;
  padding-left: 30px;
  line-height: 1.6;
}

.bp-scope-col li + li {
  margin-top: var(--space-3);
}

.bp-scope-col--do {
  background-color: var(--color-primary);
  background-image: linear-gradient(160deg, #21486F 0%, var(--color-primary) 55%, var(--color-primary-deep) 100%);
  color: rgba(255, 255, 255, 0.92);
  border-top: 3px solid var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.bp-scope-col--do h3 {
  color: var(--color-white);
}

/* Checkmark drawn from two borders — no icon font, no extra request. */
.bp-scope-col--do li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.42em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--color-accent-glow);
  border-bottom: 2px solid var(--color-accent-glow);
  transform: rotate(-45deg);
}

.bp-scope-col--refer {
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
}

.bp-scope-col--refer li + li {
  margin-top: var(--space-4);
}

.bp-scope-col--refer li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.8em;
  width: 14px;
  height: 2px;
  background: var(--color-text-muted);
}

.bp-scope-col--refer strong {
  color: var(--color-primary);
}


/* --------------------------------------------------------------------------
   6. FAQ
   Native <details>, so it works with no script and keyboard for free.
   -------------------------------------------------------------------------- */
.bp-faq {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.bp-faq details {
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--header-height) + var(--space-5));
}

.bp-faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  min-height: 44px;
  padding: var(--space-5) 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.bp-faq summary::-webkit-details-marker {
  display: none;
}

.bp-faq summary::after {
  content: '';
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid var(--color-accent-ink);
  border-bottom: 2px solid var(--color-accent-ink);
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--transition);
}

.bp-faq details[open] > summary::after {
  transform: translateY(3px) rotate(-135deg);
}

.bp-faq summary:hover {
  color: var(--color-accent-ink);
}

.bp-faq details > p {
  max-width: var(--measure);
  color: var(--color-text);
}

.bp-faq details > p:last-child {
  margin-bottom: var(--space-5);
}

.bp-further {
  margin-top: var(--space-7);
  text-align: center;
  color: var(--color-text-muted);
}


/* --------------------------------------------------------------------------
   7. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .bp-signs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bp-entry,
  .bp-scope {
    grid-template-columns: 1fr;
  }

  .bp-entry {
    gap: var(--space-7);
  }

}

@media (max-width: 600px) {
  .bp-signs {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .bp-diagram {
    padding: var(--space-3);
  }

  .bp-step {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: var(--space-4);
  }

  .bp-step::before {
    width: 44px;
    height: 44px;
    font-size: 0.875rem;
  }

  .bp-step::after {
    left: 21px;
    top: 44px;
  }

  .bp-step h3 {
    font-size: 1.125rem;
    margin-top: 9px;
  }

  .bp-scope-col {
    padding: var(--space-5);
  }

  .bp-faq summary {
    font-size: 1.0625rem;
  }
}
