/* Why Syncare Exists — base 1920px, scales via media queries */

.about-why {
  width: 100%;
  max-width: var(--syncare-design-width, 1920px);
  margin: 0 auto;
  padding: 110px var(--syncare-section-padding, 150px);
  background: linear-gradient(180deg, #f7fbfe 0%, #ffffff 100%);
  box-sizing: border-box;
}

.about-why__inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.about-why__header {
  width: 100%;
  margin: 0 auto 158px;
  text-align: center;
}

.about-why__eyebrow {
  margin: 0 0 16px;
  text-align: center;
  font: normal normal 500 36px/36px Montserrat, sans-serif;
  letter-spacing: 0.29px;
  color: #479ec7;
}

.about-why__heading {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 48px;
  text-align: center;
  font: normal normal bold 60px/72px Montserrat, sans-serif;
  letter-spacing: 3px;
  color: #274760;
  white-space: nowrap;
}

.about-why__intro {
  width: 659px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  font: normal normal normal 16px/28px Montserrat, sans-serif;
  letter-spacing: 0.13px;
  color: #274760;
}

.about-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 486px);
  justify-content: center;
  column-gap: 76px;
  row-gap: 76px;
}

/* Extra vertical space when a 4th+ card wraps to the next row (icons overhang) */
.about-why__grid:has(.about-why-card:nth-child(4)) {
  row-gap: 120px;
}

.about-why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 486px;
  max-width: 100%;
  min-height: 411px;
  padding: 134.5px 40px 95px;
  text-align: center;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(39, 71, 96, 0.1);
  box-sizing: border-box;
}

.about-why-card__icon {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 135px;
  height: 135px;
  border: 10px solid #ffffff;
  border-radius: 50%;
  background: #479ec7;
  box-shadow: 0 12px 28px rgba(39, 71, 96, 0.12);
  box-sizing: border-box;
  transform: translate(-50%, -50%);
}

.about-why-card__icon img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.about-why-card__title {
  margin: 0 0 34px;
  text-align: center;
  font: normal normal bold 36px/36px Montserrat, sans-serif;
  letter-spacing: 0.29px;
  color: #274760;
}

.about-why-card__text {
  margin: 0;
  text-align: center;
  font: normal normal normal 16px/28px Montserrat, sans-serif;
  letter-spacing: 0.13px;
  color: #274760;
}

/* ── ≤1600px ── */
@media (max-width: 1600px) {
  .about-why__header {
    margin-bottom: 120px;
  }

  .about-why__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 48px;
  }

  .about-why__grid:has(.about-why-card:nth-child(4)) {
    row-gap: 100px;
  }

  .about-why-card {
    width: 100%;
  }
}

/* ── ≤1440px ── */
@media (max-width: 1440px) {
  .about-why {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .about-why__header {
    margin-bottom: 100px;
  }

  .about-why__eyebrow {
    font-size: 28px;
    line-height: 1.3;
  }

  .about-why__heading {
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: 2px;
    margin-bottom: 36px;
    white-space: normal;
  }

  .about-why__intro {
    width: 600px;
    font-size: 15px;
    line-height: 1.7;
  }

  .about-why__grid {
    column-gap: 40px;
    row-gap: 40px;
  }

  .about-why__grid:has(.about-why-card:nth-child(4)) {
    row-gap: 96px;
  }

  .about-why-card {
    min-height: 380px;
    padding: 120px 32px 80px;
  }

  .about-why-card__icon {
    width: 120px;
    height: 120px;
  }

  .about-why-card__icon img {
    width: 56px;
    height: 56px;
  }

  .about-why-card__title {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 28px;
  }
}

/* ── ≤1200px ── */
@media (max-width: 1200px) {
  .about-why__heading {
    font-size: 40px;
    letter-spacing: 1.5px;
  }

  .about-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 88px;
  }

  .about-why__grid:has(.about-why-card:nth-child(4)) {
    row-gap: 110px;
  }

  .about-why-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 486px;
    justify-self: center;
  }
}

/* ── 1024px only — three cards in one row ── */
@media (min-width: 1024px) and (max-width: 1024px) {
  .about-why__header {
    margin-bottom: 80px;
  }

  .about-why__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    margin: 0;
    column-gap: 28px;
    row-gap: 88px;
  }

  .about-why__grid:has(.about-why-card:nth-child(4)) {
    row-gap: 100px;
  }

  .about-why-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

  .about-why-card {
    width: 100%;
    min-height: 340px;
    padding: 100px 16px 56px;
  }

  .about-why-card__icon {
    width: 96px;
    height: 96px;
    border-width: 8px;
  }

  .about-why-card__icon img {
    width: 44px;
    height: 44px;
  }

  .about-why-card__title {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 16px;
  }

  .about-why-card__text {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* ── ≤1023px — tablet / stacked ── */
@media (max-width: 1023px) {
  .about-why__header {
    margin-bottom: 100px;
  }

  .about-why__grid {
    grid-template-columns: 1fr;
    max-width: 486px;
    margin: 0 auto;
    row-gap: 88px;
    column-gap: 0;
  }

  .about-why__grid:has(.about-why-card:nth-child(4)) {
    row-gap: 96px;
  }

  .about-why-card,
  .about-why-card:last-child:nth-child(odd) {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    grid-column: auto;
  }
}

/* ── ≤900px ── */
@media (max-width: 900px) {
  .about-why {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .about-why__eyebrow {
    font-size: 22px;
    line-height: 1.2;
  }

  .about-why__heading {
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: 1.5px;
    margin-bottom: 32px;
  }

  .about-why__header {
    margin-bottom: 96px;
  }

  .about-why__intro {
    width: auto;
  }

  .about-why__grid {
    row-gap: 80px;
  }

  .about-why__grid:has(.about-why-card:nth-child(4)) {
    row-gap: 88px;
  }

  .about-why-card {
    min-height: 0;
    padding: 120px 32px 72px;
  }
}

/* ── ≤575px ── */
@media (max-width: 575px) {
  .about-why {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .about-why__eyebrow {
    font-size: 20px;
  }

  .about-why__heading {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .about-why__intro {
    font-size: 15px;
    line-height: 1.55;
  }

  .about-why__header {
    margin-bottom: 88px;
  }

  .about-why__grid {
    row-gap: 72px;
  }

  .about-why__grid:has(.about-why-card:nth-child(4)) {
    row-gap: 80px;
  }

  .about-why-card {
    padding: 100px 24px 56px;
  }

  .about-why-card__icon {
    width: 108px;
    height: 108px;
  }

  .about-why-card__icon img {
    width: 52px;
    height: 52px;
  }

  .about-why-card__title {
    font-size: 24px;
    line-height: 1.35;
    margin-bottom: 20px;
  }

  .about-why-card__text {
    font-size: 15px;
    line-height: 1.55;
  }
}
