/* Custom CSS overrides for Xarp website */

/* Restore footer gradient (remove dark overlay image) */
.footer {
  background-image: linear-gradient(106deg, #32a7e9 9.18%, #b6ffff 91.98%) !important;
}

/* Make footer text black for better contrast against bright gradient */
.footer .text-block,
.footer .text-block-3,
.footer .footer-link {
  color: #000 !important;
}

/* Add top margin to team page bottom heading */
.promox {
  margin-top: 60px !important;
}

/* Increase team member name font size to balance with role text */
.team-name {
  font-size: 1.5em;
  margin-top: 12px;
  margin-bottom: 4px;
}

.team-role {
  font-size: 1em;
  opacity: 0.8;
}

/* Fix hero section to use auto height instead of fixed heights */
.hero.desktop {
  height: auto !important;
  min-height: 600px;
}

/* Override fixed heights at all breakpoints */
@media screen and (min-width: 1280px) {
  .hero.desktop {
    height: auto !important;
  }
}

@media screen and (min-width: 1440px) {
  .hero.desktop {
    height: auto !important;
  }
}

@media screen and (min-width: 1920px) {
  .hero.desktop {
    height: auto !important;
  }
}

/* Fix mobile hero heights to prevent cropping */
@media screen and (max-width: 991px) {
  .hero,
  .hero.desktop,
  .hero.mobile.tablet {
    height: auto !important;
    min-height: 600px;
    overflow: visible !important;
  }

  .hero-container {
    display: flex !important;
    flex-direction: column;
  }

  .image-6,
  .hero video {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
  }
}

@media screen and (max-width: 479px) {
  .hero,
  .hero.mobile,
  .hero.desktop {
    height: auto !important;
    min-height: 500px;
    overflow: visible !important;
  }

  .hero-container {
    display: flex !important;
    flex-direction: column;
  }
}

/* Reduce spacing between hero and next section */
.hero.desktop .section-padding-large {
  padding-bottom: 40px;
}

.section-2 {
  padding-top: 20px;
  padding-bottom: 40px;
}

/* Make section-2 heading always visible (override Webflow animation) */
.work-top-block {
  opacity: 1 !important;
}

/* Further reduce spacing at larger resolutions */
@media screen and (min-width: 1920px) {
  .hero.desktop .section-padding-large {
    padding-bottom: 20px;
  }

  .section-2 {
    padding-top: 10px;
    padding-bottom: 30px;
  }
}

/* 1. Increase hero description font size at 1290px+ */
@media screen and (min-width: 1290px) {
  .text-block {
    font-size: 24px;
  }
}

/* 2. Hide Learn More button (will also remove from HTML) */
.f-header-button-wrapper-2 {
  display: none;
}

/* 3. Fix 3-column layout for "Snap a Selfie" section - always 3 columns on desktop */
@media screen and (min-width: 992px) {
  .f-header-grid-2._3column {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
}

/* 4. Increase font size for retailer benefits text */
@media screen and (min-width: 1290px) {
  .larger-para {
    font-size: 2.2em;
    line-height: 1.3em;
  }
}

/* 5. Fix 3-column layout for ecosystem images - always 3 columns on desktop */
@media screen and (min-width: 992px) {
  .f-header-grid-2._3column {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
}

/* 6. Increase ecosystem description font size */
@media screen and (min-width: 1290px) {
  .larger-para {
    font-size: 2.2em;
  }
}

/* 7. Team page layout fixes */
/* Desktop (1920px+): 7 columns in a row */
@media screen and (min-width: 1920px) {
  .f-header-grid-2._3column.promoapp {
    grid-template-columns: repeat(7, 1fr) !important;
  }
}

/* Large laptop (1290px - 1919px): 7 columns in a row */
@media screen and (min-width: 1290px) and (max-width: 1919px) {
  .f-header-grid-2._3column.promoapp {
    grid-template-columns: repeat(7, 1fr) !important;
  }
}

/* Medium laptop (992px - 1289px): 4 columns, 2 rows */
@media screen and (min-width: 992px) and (max-width: 1289px) {
  .f-header-grid-2._3column.promoapp {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Tablet (768px - 991px): 3 columns */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .f-header-grid-2._3column.promoapp {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Mobile (below 768px): 2 columns */
@media screen and (max-width: 767px) {
  .f-header-grid-2._3column.promoapp {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Ensure images don't break layout */
.f-image-cover-2 {
  width: 100%;
  height: auto;
  object-fit: cover;
}
