/* Home "Why choose us" — mobile-first; desktop row at 1080px.
   Corner dots reuse .left-dots / .right-dots from home.css (same as hero).
   Shell uses constrained-box so dots stay inset on ultra-wide viewports
   (same pattern as our-numbers-section). */

.home-why-choose-section {
  --home-why-choose-card-bg: #2d2951;
  width: 100%;
  align-self: stretch;
  background: var(--linear-gradientDark);
  /* Beat .home .page > section { min-height: 700px }. */
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.home-why-choose-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
  /* Do not set max-width here — .constrained-box caps ultra-wide layouts
     (our-numbers uses the same pattern via section-wrapper constrained-box). */
  margin: 0 auto;
  padding: 56px 24px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Same inset as .right-dots bottom so the top-left pattern is not flush. */
.home-why-choose-section .left-dots {
  top: 72px;
}

@media (max-width: 1080px) {
  .home-why-choose-section .left-dots {
    top: 24px;
  }
}

.home-why-choose-title {
  margin: 0;
  width: 100%;
  text-align: center;
  color: var(--light-inverseOnSurface);
  font-family: var(--display-display-medium-font-family);
  font-size: var(--display-display-medium-font-size);
  font-weight: var(--display-display-medium-font-weight);
  line-height: var(--display-display-medium-line-height);
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.home-why-choose-title-plain,
.home-why-choose-title-accent {
  vertical-align: middle;
}

.home-why-choose-title-accent {
  position: relative;
  top: 4px;
  font-family: 'Gentium Book Basic', serif;
  font-size: 52px;
  font-style: italic;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -1px;
  color: var(--light-tertiary);
}

.home-why-choose-grid {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.home-why-choose-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  min-height: 272px;
  padding: 24px;
  border-radius: 48px;
  background: var(--home-why-choose-card-bg);
  overflow: hidden;
  box-sizing: border-box;
}

.home-why-choose-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: block;
}

.home-why-choose-card-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

.home-why-choose-card-title {
  margin: 0;
  width: 100%;
  color: var(--fixed-white);
  font-family: var(--title-title-large-font-family);
  font-size: var(--title-title-large-font-size);
  font-weight: var(--title-title-large-font-weight);
  line-height: var(--title-title-large-line-height);
}

.home-why-choose-card-subtitle {
  margin: 0;
  width: 100%;
  color: var(--fixed-onPrimaryFixedVariant);
  font-family: var(--body-body-large-font-family);
  font-size: var(--body-body-large-font-size);
  font-weight: var(--body-body-large-font-weight);
  line-height: 18px;
  overflow-wrap: break-word;
}

.home-why-choose-section .btn--sign-up {
  position: relative;
  z-index: 1;
  align-self: center;
}

@media (min-width: 1080px) {
  .home-why-choose-shell {
    /* Horizontal inset comes from .constrained-box; keep vertical padding here. */
    padding: 72px 0;
    gap: 72px;
  }

  .home-why-choose-grid {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .home-why-choose-card {
    width: 280px;
    flex: 0 0 280px;
    min-height: 238px;
    height: 238px;
  }

  .home-why-choose-icon {
    width: 64px;
    height: 64px;
  }
}
