/* =====================================================
   Gallery: Community + CTA
   "BE PART OF WHAT WE'RE BUILDING"
   Figma: heading → stats → buttons (single section)
   ===================================================== */

.gallery-community-cta {
  background: #ffffff;
  padding: clamp(60px, 8vw, 100px) clamp(24px, 6.67vw, 96px);
}

.gallery-community-cta__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
}

/* ---- Heading block ---- */

.gallery-community-cta__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  width: 100%;
}

.gallery-community-cta__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 3.75vw, 54px);
  color: #21254a;
  text-align: center;
  margin: 0;
  line-height: 1.3;
  text-transform: uppercase;
  max-width: 620px;
}

.gallery-community-cta__sub {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.22vw, 32px);
  color: #21254a;
  text-align: center;
  margin: 0;
  line-height: 1.35;
  max-width: 900px;
}

/* ---- Stat cards row ---- */

.gallery-community-cta__cards {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.gallery-community-cta__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 2.78vw, 40px);
  border-radius: 12px;
  padding: clamp(20px, 2.22vw, 32px) 20px;
  min-width: 0;
}

.gallery-community-cta__card--light {
  background: #f5fdf0;
}

.gallery-community-cta__card--green {
  background: #b0f288;
}

.gallery-community-cta__card-icon {
  width: clamp(48px, 4.17vw, 60px);
  height: clamp(48px, 4.17vw, 60px);
  object-fit: contain;
  flex-shrink: 0;
}

.gallery-community-cta__card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  width: 100%;
}

.gallery-community-cta__card-stat {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 5.28vw, 76px);
  color: #000000;
  text-align: center;
  margin: 0;
  line-height: 1.15;
  width: 100%;
}

.gallery-community-cta__card-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.53vw, 22px);
  color: #21254a;
  text-align: center;
  margin: 0;
  line-height: 1.55;
  width: 100%;
}

/* ---- Buttons ---- */

.gallery-community-cta__buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 830px;
}

.gallery-community-cta__btn {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(12px, 1.11vw, 16px) clamp(20px, 2.22vw, 32px);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.39vw, 20px);
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.18s ease;
  border: none;
}

.gallery-community-cta__btn:hover {
  opacity: 0.88;
  color: #ffffff !important;
}

.gallery-community-cta__btn--navy {
  background: #21254a;
  color: #ffffff;
}

.gallery-community-cta__btn--blue {
  background: #59acf8;
  color: #000000;
}

/* ---- Responsive ---- */

@media (max-width: 1023px) {
  .gallery-community-cta__cards {
    flex-wrap: wrap;
  }
  .gallery-community-cta__card {
    flex: 1 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

@media (max-width: 767px) {
  .gallery-community-cta__cards {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .gallery-community-cta__card {
    flex: none;
    max-width: 100%;
    gap: 24px;
  }
  .gallery-community-cta__card-stat {
    font-size: clamp(40px, 8vw, 60px);
  }
  .gallery-community-cta__buttons {
    flex-direction: column;
    max-width: 480px;
  }
  .gallery-community-cta__btn {
    width: 100%;
    flex: unset;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 479px) {
  .gallery-community-cta {
    padding-left: 20px;
    padding-right: 20px;
  }
}
