/* =========================================================
   YES I CAN ROOFING & EXTERIORS
   BLOCK 07 — WHY HOMEOWNERS CHOOSE YES I CAN ROOFING
   PREMIUM COMPACT TRUST STRIP
   ========================================================= */

.why-choose {
  width: 100%;
  padding: 34px 0 36px;
  background: #ffffff;
  border-top: 1px solid #edf1f4;
}

.why-choose__inner {
  width: min(calc(100% - 72px), var(--content-max-width));
  margin: 0 auto;
}

.why-choose__header {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

.why-choose__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #e3131b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.why-choose__title {
  margin: 0;
  color: #07182b;
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.why-choose__intro {
  max-width: 650px;
  margin: 9px auto 0;
  color: #687687;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.why-choose__panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid #e1e7ec;
  border-radius: 10px;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fbfcfd 100%
    );
  box-shadow:
    0 10px 28px rgba(3, 23, 43, 0.04),
    0 2px 7px rgba(3, 23, 43, 0.025);
  overflow: hidden;
}

.why-choose__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      #03172b 0%,
      #03172b 76%,
      #e3131b 76%,
      #e3131b 100%
    );
}

.why-choose__item {
  position: relative;
  min-width: 0;
  min-height: 214px;
  padding: 25px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.why-choose__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 27px;
  right: 0;
  bottom: 25px;
  width: 1px;
  background: #e1e7ec;
}

.why-choose__icon {
  width: 38px;
  height: 38px;
  margin-bottom: 13px;
  fill: #0a1b2f;
}

.why-choose__item:nth-child(2) .why-choose__icon,
.why-choose__item:nth-child(5) .why-choose__icon {
  fill: #e3131b;
}

.why-choose__item h3 {
  min-height: 38px;
  margin: 0;
  color: #0a1b2f;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.22;
  text-transform: uppercase;
}

.why-choose__rule {
  width: 30px;
  height: 2px;
  margin: 12px 0 11px;
  background: #e3131b;
  border-radius: 99px;
}

.why-choose__item p {
  max-width: 175px;
  margin: 0;
  color: #697788;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.52;
}

.why-choose__footer {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.why-choose__footer-line {
  height: 1px;
  background: #e4e9ee;
}

.why-choose__footer p {
  margin: 0;
  color: #748190;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
}

.why-choose__footer strong {
  color: #0a1b2f;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .why-choose__panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .why-choose__item {
    min-height: 196px;
  }

  .why-choose__item:nth-child(3)::after {
    display: none;
  }

  .why-choose__item:nth-child(-n + 3) {
    border-bottom: 1px solid #e1e7ec;
  }
}

@media (max-width: 760px) {
  .why-choose {
    padding: 30px 0 32px;
  }

  .why-choose__inner {
    width: min(calc(100% - 30px), var(--content-max-width));
  }

  .why-choose__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-choose__item {
    min-height: 190px;
    padding: 22px 14px 18px;
    border-bottom: 1px solid #e1e7ec;
  }

  .why-choose__item:nth-child(odd)::after {
    display: block;
  }

  .why-choose__item:nth-child(even)::after {
    display: none;
  }

  .why-choose__item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .why-choose__footer {
    display: none;
  }
}

@media (max-width: 480px) {
  .why-choose__inner {
    width: min(calc(100% - 24px), var(--content-max-width));
  }

  .why-choose__panel {
    grid-template-columns: 1fr;
  }

  .why-choose__item {
    min-height: 0;
    padding: 20px 18px;
  }

  .why-choose__item::after {
    display: none !important;
  }

  .why-choose__item:not(:last-child) {
    border-bottom: 1px solid #e1e7ec;
  }

  .why-choose__item h3 {
    min-height: 0;
  }

  .why-choose__item p {
    max-width: 280px;
  }
}
