/* Formula additions inherit the recovered Fable foundation unchanged. */

.candidate-actions,
.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.customer-story-feature {
  position: relative;
  overflow: hidden;
  background: var(--brand-white, #fff);
}

.customer-story-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: center;
}

.customer-story-feature .video-testimonial {
  width: min(100%, 25rem);
  justify-self: center;
  transform: rotate(-1deg);
}

.customer-story-feature .video-testimonial video {
  aspect-ratio: 9 / 16;
  max-height: 42rem;
  object-fit: cover;
}

.story-copy-rich h2 {
  max-width: 13ch;
  margin-bottom: 1rem;
  color: var(--brand-ink, #14212e);
}

.story-copy-rich .lede {
  max-width: 58ch;
}

.story-quote {
  margin: 1.7rem 0;
  border-left: 5px solid var(--brand-orange, #df713c);
  padding: 0.45rem 0 0.45rem 1.25rem;
  color: var(--brand-navy-deep, #102a47);
  font-family: var(--display-font, "Alfa Slab One", serif);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.35;
}

.story-reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.story-reasons article {
  min-height: 9rem;
  border-top: 4px solid var(--brand-orange, #df713c);
  border-radius: 0.7rem;
  padding: 1rem;
  background: var(--brand-paper, #f5f7fa);
}

.story-reasons strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brand-navy-deep, #102a47);
  font-family: var(--display-font, "Alfa Slab One", serif);
  font-weight: 400;
  line-height: 1.25;
}

.story-reasons p {
  margin: 0;
  color: #5b6f83;
  font-size: 0.86rem;
}

.foundation-pines {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: clamp(4rem, 8vw, 7rem);
  fill: var(--brand-paper, #f5f7fa);
  pointer-events: none;
}

.foundation-pines path {
  fill: inherit;
}

.foundation-pines .foundation-ridge {
  fill: rgba(132, 158, 184, 0.2);
}

.foundation-pines .foundation-forest-back {
  fill: #d8e2eb;
}

.foundation-pines .foundation-forest-front,
.foundation-pines .foundation-ground {
  fill: var(--brand-paper, #f5f7fa);
}

.project-protection {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(7rem, 13vw, 11rem);
  background: var(--brand-navy-deep, #102a47);
  color: var(--brand-white, #fff);
}

.protection-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.protection-copy h2 {
  max-width: 12ch;
  margin-bottom: 1rem;
  color: var(--brand-white, #fff);
}

.protection-copy > p:not(.eyebrow) {
  max-width: 55ch;
  color: var(--brand-sky-light, #d9e3ec);
}

.protection-copy .text-link {
  color: var(--brand-white, #fff);
}

.protection-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.protection-card {
  min-height: 18rem;
  border-top: 5px solid var(--brand-orange, #df713c);
  border-radius: 0.85rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  background: var(--brand-white, #fff);
  color: var(--brand-ink, #14212e);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
}

.protection-card > span {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--brand-orange-dark, #b94d23);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.protection-card strong {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--brand-navy-deep, #102a47);
  font-family: var(--display-font, "Alfa Slab One", serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.12;
}

.protection-card p {
  margin: 0;
  color: #556a7e;
  font-size: 0.92rem;
}

.protection-disclosure {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0;
  color: #bfcddd;
  font-size: 0.78rem;
  line-height: 1.55;
}

.project-protection .foundation-pines .foundation-ridge { fill: rgba(132, 158, 184, 0.2); }
.project-protection .foundation-pines .foundation-forest-back { fill: #d8e2eb; }
.project-protection .foundation-pines .foundation-forest-front,
.project-protection .foundation-pines .foundation-ground { fill: var(--brand-paper, #f5f7fa); }

.homeowner-concerns {
  background: var(--brand-paper, #f5f7fa);
}

.concerns-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.concerns-heading h2 {
  max-width: 13ch;
}

.concerns-heading > p {
  color: #576b7f;
  font-size: 1.12rem;
}

.concern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.concern-card {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  min-height: 14rem;
  border: 1px solid #d1dbe5;
  border-radius: 0.8rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: var(--brand-white, #fff);
}

.concern-card > span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-orange, #df713c);
  color: var(--brand-ink, #14212e);
  font-family: var(--display-font, "Alfa Slab One", serif);
}

.concern-card h3 {
  margin-bottom: 0.6rem;
  color: var(--brand-navy-deep, #102a47);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.concern-card p {
  margin: 0;
  color: #586d81;
}

.protection-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 1rem;
  margin-top: 1rem;
}

.protection-proof figure {
  position: relative;
  overflow: hidden;
  min-height: 23rem;
  margin: 0;
  border: 3px solid var(--brand-navy-deep, #102a47);
  border-radius: 0.8rem;
  background: var(--brand-navy, #2e578f);
}

.protection-proof figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.protection-proof figcaption {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: rgba(16, 42, 71, 0.94);
  color: var(--brand-white, #fff);
  font-family: var(--display-font, "Alfa Slab One", serif);
}

.proof-quote {
  display: grid;
  align-content: center;
  border-radius: 0.8rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--brand-navy, #2e578f);
  color: var(--brand-white, #fff);
}

.proof-quote img {
  width: 5rem;
  height: 5rem;
  margin-bottom: 1rem;
  border: 3px solid var(--brand-white, #fff);
  border-radius: 50%;
  object-fit: cover;
}

.proof-quote span {
  color: var(--brand-orange, #df713c);
  letter-spacing: 0.08em;
}

.proof-quote blockquote {
  margin: 0.8rem 0;
  font-family: var(--display-font, "Alfa Slab One", serif);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  line-height: 1.35;
}

.proof-quote p {
  margin: 0;
  color: var(--brand-sky-light, #d9e3ec);
  font-size: 0.82rem;
  font-weight: 800;
}

.replacement-story {
  background: var(--brand-white, #fff);
}

.replacement-story-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.replacement-story .video-testimonial {
  transform: rotate(1deg);
}

.replacement-story-copy h2 {
  max-width: 13ch;
}

.relationship-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 1.8rem 0;
  border-block: 1px solid #ccd6e0;
}

.relationship-line div {
  min-height: 7.5rem;
  border-right: 1px solid #ccd6e0;
  padding: 1.1rem;
}

.relationship-line div:last-child {
  border-right: 0;
}

.relationship-line strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brand-navy-deep, #102a47);
  font-family: var(--display-font, "Alfa Slab One", serif);
  font-weight: 400;
}

.relationship-line p {
  margin: 0;
  color: #5b6f82;
  font-size: 0.84rem;
}

.before-after-section {
  background: var(--brand-navy-deep, #102a47);
  color: var(--brand-white, #fff);
}

.before-after-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: end;
}

.before-after-heading h2 {
  max-width: 13ch;
  color: var(--brand-white, #fff);
}

.before-after-heading > p {
  color: var(--brand-sky-light, #d9e3ec);
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.before-after-grid figure,
.detail-strip figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 3px solid var(--brand-sky-light, #d9e3ec);
  border-radius: 0.75rem;
  background: var(--brand-navy, #2e578f);
}

.before-after-grid figure {
  min-height: 28rem;
}

.before-after-grid img,
.detail-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-grid figcaption,
.detail-strip figcaption {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  background: rgba(16, 42, 71, 0.94);
  color: var(--brand-white, #fff);
}

.before-after-grid figcaption strong,
.detail-strip figcaption strong {
  font-family: var(--display-font, "Alfa Slab One", serif);
  font-weight: 400;
}

.before-after-grid figcaption span,
.detail-strip figcaption span {
  color: var(--brand-sky-light, #d9e3ec);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.detail-strip figure {
  min-height: 18rem;
}

.service-closeout {
  background: var(--brand-paper, #f5f7fa);
}

.closeout-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.closeout-copy h2 {
  max-width: 13ch;
}

.closeout-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.closeout-steps li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  border-top: 1px solid #cad5df;
  padding: 1.25rem 0;
}

.closeout-steps li > span {
  color: var(--brand-orange-dark, #b94d23);
  font-family: var(--display-font, "Alfa Slab One", serif);
  font-size: 1.25rem;
}

.closeout-steps h3 {
  margin: 0 0 0.35rem;
  color: var(--brand-navy-deep, #102a47);
  font-family: var(--body-font, "Avenir Next", sans-serif);
  font-size: 1.08rem;
  line-height: 1.3;
}

.closeout-steps p {
  margin: 0;
  color: #5d7185;
}

.closeout-proof {
  margin-top: 1.25rem;
  border-top: 5px solid var(--brand-orange, #df713c);
  border-radius: 0.8rem;
  padding: 1.3rem;
  background: var(--brand-navy, #2e578f);
  color: var(--brand-white, #fff);
}

.closeout-proof blockquote {
  margin: 0 0 0.75rem;
  font-family: var(--display-font, "Alfa Slab One", serif);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.35;
}

.closeout-proof p {
  margin: 0;
  color: var(--brand-sky-light, #d9e3ec);
  font-size: 0.8rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .customer-story-grid,
  .protection-grid,
  .replacement-story-grid,
  .closeout-grid,
  .concerns-heading,
  .before-after-heading {
    grid-template-columns: 1fr;
  }

  .customer-story-feature .video-testimonial {
    width: min(100%, 22rem);
  }

  .story-reasons,
  .relationship-line,
  .detail-strip {
    grid-template-columns: 1fr;
  }

  .relationship-line div {
    border-right: 0;
    border-bottom: 1px solid #ccd6e0;
  }

  .relationship-line div:last-child {
    border-bottom: 0;
  }

  .protection-proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .protection-cards,
  .concern-grid,
  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .protection-card,
  .concern-card {
    min-height: 0;
  }

  .before-after-grid figure {
    min-height: 22rem;
  }

  .candidate-actions .btn,
  .story-actions .btn {
    width: 100%;
  }

}
