/* Homepage Section 5: practical service advantages. */

.why-choose {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 3.2vw, 3.75rem) clamp(4.5rem, 6vw, 6.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 4%, rgb(21 156 173 / 9%), transparent 34rem),
    linear-gradient(180deg, #07111e 0%, #050c17 100%);
}

.why-choose::before,
.why-choose::after {
  position: absolute;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: rgb(26 192 202 / 5%);
  content: "";
  filter: blur(6rem);
  pointer-events: none;
}

.why-choose::before {
  top: 34%;
  left: -15rem;
}

.why-choose::after {
  right: -16rem;
  bottom: 2%;
}

.why-choose__container {
  width: min(calc(100% - (2 * var(--container-gutter))), 82rem);
  max-width: none;
}

.why-choose__header {
  width: min(100%, 58rem);
  margin-inline: auto;
  text-align: center;
}

.why-choose__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.9rem;
  color: #5ce6e1;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.why-choose__eyebrow::before,
.why-choose__eyebrow::after {
  width: 1.55rem;
  height: 1px;
  background: currentcolor;
  content: "";
  opacity: 0.72;
}

.why-choose__header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 1.75rem + 2.3vw, 3.625rem);
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1.06;
  text-wrap: balance;
}

.why-choose__header h2 span,
.why-choose__header h2 strong {
  display: inline;
  font: inherit;
}

.why-choose__header h2 strong {
  background: linear-gradient(105deg, #20d3d0 8%, #68edf0 92%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-choose__header > p:last-child {
  max-width: 55rem;
  margin: 1.15rem auto 0;
  color: #b9c7d9;
  font-size: clamp(1.05rem, 0.99rem + 0.24vw, 1.22rem);
  line-height: 1.65;
  text-wrap: balance;
}

.why-choose__grid {
  display: grid;
  grid-auto-rows: 1fr;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 1.7vw, 1.625rem);
  margin-top: clamp(2.5rem, 3.2vw, 3.15rem);
}

.why-choose-card {
  position: relative;
  min-width: 0;
  min-height: 15.75rem;
  padding: clamp(1.75rem, 2.3vw, 2.25rem);
  padding-bottom: clamp(1.35rem, 1.5vw, 1.65rem);
  overflow: hidden;
  border: 1px solid rgb(72 205 214 / 20%);
  border-radius: 1.35rem;
  background:
    linear-gradient(145deg, rgb(15 35 57 / 92%) 0%, rgb(7 21 37 / 97%) 66%, rgb(5 17 31 / 99%) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 4%),
    0 1.1rem 2.75rem rgb(0 0 0 / 14%);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.why-choose-card::after {
  position: absolute;
  right: -4rem;
  bottom: -5.25rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: rgb(32 211 208 / 5%);
  content: "";
  filter: blur(2.4rem);
  pointer-events: none;
}

.why-choose-card__icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border: 1px solid rgb(76 231 228 / 22%);
  border-radius: 1.1rem;
  background: linear-gradient(145deg, rgb(32 211 208 / 18%), rgb(22 145 177 / 9%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%);
  color: #66eeeb;
}

.why-choose-card__icon svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.why-choose-card h3 {
  margin: 1.4rem 0 0;
  color: #fff;
  font-size: clamp(1.42rem, 1.2rem + 0.45vw, 1.66rem);
  font-weight: 790;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
}

.why-choose-card > p {
  margin: 0.85rem 0 0;
  color: #acbbcf;
  font-size: clamp(1rem, 0.95rem + 0.12vw, 1.08rem);
  line-height: 1.65;
}

@media (hover: hover) and (pointer: fine) {
  .why-choose-card:hover {
    border-color: rgb(72 220 222 / 44%);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 5%),
      0 1.1rem 2.75rem rgb(0 0 0 / 17%),
      0 0 2.5rem rgb(32 211 208 / 8%);
  }
}

@media (max-width: 67.99rem) {
  .why-choose__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-choose-card {
    min-height: 15rem;
  }
}

@media (max-width: 41.99rem) {
  .why-choose {
    padding-block: 3.25rem 4.25rem;
  }

  .why-choose__eyebrow {
    font-size: 0.69rem;
  }

  .why-choose__eyebrow::before,
  .why-choose__eyebrow::after {
    width: 1rem;
  }

  .why-choose__header h2 {
    font-size: clamp(2rem, 1.5rem + 2.6vw, 2.4rem);
    line-height: 1.1;
  }

  .why-choose__header h2 span,
  .why-choose__header h2 strong {
    display: block;
  }

  .why-choose__header > p:last-child {
    margin-top: 1rem;
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .why-choose__grid {
    grid-auto-rows: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 2.15rem;
  }

  .why-choose-card {
    min-height: 0;
    padding: 1.5rem;
    padding-bottom: 1.25rem;
    border-radius: 1.15rem;
  }

  .why-choose-card__icon {
    width: 3.65rem;
    height: 3.65rem;
    border-radius: 1rem;
  }

  .why-choose-card__icon svg {
    width: 1.85rem;
    height: 1.85rem;
  }

  .why-choose-card h3 {
    margin-top: 1.15rem;
    font-size: 1.34rem;
  }

  .why-choose-card > p {
    margin-top: 0.65rem;
    font-size: 0.96rem;
    line-height: 1.58;
  }
}

@media (max-width: 22rem) {
  .why-choose {
    padding-block: 3rem 3.75rem;
  }

  .why-choose-card {
    padding: 1.3rem;
    padding-bottom: 1.15rem;
  }

  .why-choose__header h2 {
    font-size: 1.9rem;
  }
}
