/* ============================================================
   Appliance Rentals - Integrations index page (Figma rebrand)
   Shares component styles with homepage.css; page classes: aru-*, ari-*.
   ============================================================ */

/* ---------- hero ---------- */
.aru-hero {
  padding: 36px var(--ar-gutter) 0;
}
.aru-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 420px;
  background-color: var(--ar-navy);
  background-image: url("../../images/homepage/hero-bg.webp");
  background-image: image-set(url("../../images/homepage/hero-bg.webp") 1x, url("../../images/homepage/hero-bg@2x.webp") 2x);
  background-size: cover;
  background-position: center;
  border-radius: 60px;
  overflow: hidden;
  padding: 50px 20px 40px;
  text-align: center;
}
.aru-hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 56, 0.78);
}
.aru-hero-inner > * {
  position: relative;
}
.aru-hero-title {
  margin: 0;
  max-width: 765px;
  font-weight: 700;
  font-size: 40px;
  line-height: 50px;
  color: #fff;
  text-align: center;
}
.aru-hero-subtitle {
  margin: 14px 0 0;
  max-width: 640px;
  font-weight: 300;
  font-size: 24px;
  line-height: 34px;
  color: #fff;
  text-align: center;
}
.aru-hero-subtitle strong {
  font-weight: 700;
}
.aru-hero-inner .ara-cta-btn {
  margin-top: 28px;
}
.aru-hero-inner .ar-cityform {
  margin-top: 20px;
}

/* ---------- available integrations ---------- */
.aru-story {
  padding: 100px var(--ar-gutter) 0;
  text-align: center;
}
.aru-story .ar-pill {
  margin-bottom: 22px;
}
.aru-story .ar-section-title.ar-left {
  text-align: center;
}

.ari-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 367px);
  gap: 40px;
  justify-content: center;
  margin-top: 48px;
}
.ari-card,
.ari-card * {
  text-decoration: none !important;
}
.ari-card {
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.ari-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.ari-card-logo {
  display: block;
  height: 32px;
  width: auto;
  margin-bottom: 20px;
}
.ari-card .aru-benefit-title {
  font-size: 24px;
}
.ari-card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: var(--ar-navy);
}

/* ---------- how it works ---------- */
.aru-benefits {
  margin-top: 100px;
  background: var(--ar-mint);
  padding: 101px var(--ar-gutter) 84px;
  text-align: center;
}
.aru-benefits .aru-benefit-cards {
  grid-template-columns: repeat(3, 367px);
}
.aru-benefits-cta {
  margin-top: 48px !important;
}

.ari-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ar-navy);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}

/* ---------- callout ---------- */
.aru-callout {
  padding: 100px var(--ar-gutter) 150px;
}
.aru-callout-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 394px;
  background-color: var(--ar-navy);
  background-image: url("../../images/homepage/hero-bg.webp");
  background-image: image-set(url("../../images/homepage/hero-bg.webp") 1x, url("../../images/homepage/hero-bg@2x.webp") 2x);
  background-size: cover;
  background-position: center;
  border-radius: 60px;
  padding: 45px 20px 40px;
  justify-content: center;
}
.aru-callout-title {
  margin: 0;
  font-weight: 700;
  font-size: 32px;
  line-height: 38px;
  color: #fff;
  text-align: center;
}
.aru-callout-text {
  margin: 13px 0 0;
  max-width: 600px;
  font-weight: 300;
  font-size: 24px;
  line-height: 34px;
  color: #fff;
  text-align: center;
}
.aru-callout-inner .ara-cta-btn {
  margin-top: 26px;
}

.page-content .ar-review:last-child {
  padding-bottom: 150px;
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  .aru-hero-title {
    font-size: 28px;
    line-height: 36px;
  }
  .aru-hero-subtitle {
    font-size: 18px;
    line-height: 26px;
  }
  .aru-hero-inner {
    min-height: 340px;
    border-radius: 30px;
  }
  .aru-story {
    padding-top: 60px;
  }
  .ari-card-grid,
  .aru-benefits .aru-benefit-cards {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin-top: 32px;
    gap: 24px;
  }
  /* homepage.css's mobile rule strips card chrome and forces a 48px icon
     column for icon+text cards; the integrations card has no icon and
     needs its own white-box layout restored. */
  .page-content .ari-card-grid .aru-benefit-card {
    background: #fff;
    border: 1px solid #e1e1e3;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.07);
    border-radius: 20px;
    padding: 28px 22px;
    display: block;
  }
  .ari-card .aru-benefit-title {
    margin-top: 0;
  }
  .aru-benefits {
    margin-top: 60px;
    padding: 50px 20px 50px;
  }
  .aru-callout {
    padding: 60px 20px 80px;
  }
  .aru-callout-inner {
    border-radius: 30px;
    min-height: 300px;
  }
  .aru-callout-title {
    font-size: 24px;
    line-height: 30px;
  }
  .aru-callout-text {
    font-size: 17px;
    line-height: 25px;
    max-width: 315px;
  }
}
