/* =========================================================
   SMART CHARGING MOBILE APP SECTION
   Figma size: 1738px wide x 867px high
========================================================= */

.smart-charge-section {
  /* Change these image paths in one place when assets are updated */
  --smart-charge-bg: url("../../assets/images/bgimage1.png");
  --smart-charge-phone-image: url("../../assets/images/mobileImg.png");

  position: relative;
  width: min(1775px, 100%);
  min-height: 867px;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.2)),
    var(--smart-charge-bg) lightgray 50% / cover no-repeat;
}

/* Soft overlay keeps white text readable on the background image */
.smart-charge-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.smart-charge-content {
  position: relative;
  z-index: 1;
  width: min(1438px, calc(100% - 80px));
  min-height: 867px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 70px;
}

/* =========================================================
   LEFT CONTENT
========================================================= */

.smart-charge-copy {
  max-width: 860px;
}

.smart-charge-title {
  margin: -95px 0 58px;
  color: #ffffff;
  text-align: center;
  font-family: "Zalando Sans Expanded", "Segoe UI", Arial, sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

.smart-charge-features {
  display: grid;
  gap: 46px;
}

.smart-charge-feature {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.smart-charge-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  color: #ffb000;
  text-shadow: 0 0 10px rgba(255, 176, 0, 0.45);
}

.smart-charge-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.smart-charge-feature h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-family: "Zalando Sans Expanded", "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;

}

.smart-charge-feature p {
  margin: 0;
  color: #ffffff;
  /* text-align: right; */
  font-family: "Zalando Sans Expanded", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 150%;
}

/* =========================================================
   APP STORE BUTTONS
========================================================= */

.smart-charge-stores {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 0px;
  flex-wrap: wrap;
  padding-left: 62px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.store-button .store-badge {
  display: block;
  width: auto;
  max-width: 220px;
  height: auto;
}

.store-button:hover {
  opacity: 0.95;
}


/* =========================================================
   MOBILE APP IMAGE
   Figma size: 243px x 493px, aspect ratio 35 / 71
========================================================= */

.smart-charge-phone {
  position: relative;
  left: -124px;
  width: 243px;
  height: 493px;
  justify-self: center;
  border-radius: 34px;
  background: var(--smart-charge-phone-image) lightgray 50% / cover no-repeat;
  box-shadow: 0 4px 100px 0 #000000;
  aspect-ratio: 35 / 71;
}

/* Phone edge overlay. The background image remains visible behind it. */
.smart-charge-phone::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 10px solid rgba(7, 16, 24, 0.95);
  border-radius: 34px;
  pointer-events: none;
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */

@media (max-width: 1180px) {
  .smart-charge-content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 48px;
    padding: 80px 0;
  }

  .smart-charge-copy {
    max-width: 860px;
  }

  .smart-charge-stores {
    justify-content: center;
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .smart-charge-section {
    min-height: auto;
  }

  .smart-charge-content {
    width: min(100% - 32px, 560px);
    min-height: auto;
    padding: 64px 0;
  }

  .smart-charge-title {
    margin-bottom: 42px;
    font-size: clamp(28px, 8vw, 40px);
  }

  .smart-charge-feature {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 14px;
  }

  .smart-charge-feature h3 {
    font-size: 20px;
  }

  .smart-charge-feature p {
    text-align: left;
    font-size: 14px;
  }

  .smart-charge-stores {
    gap: 18px;
    margin-top: 46px;
  }

  .store-button {
    width: 178px;
    height: 64px;
    font-size: 21px;
  }

  .smart-charge-phone {
    width: min(243px, 76vw);
    height: auto;
  }
}
