/* ============================================
   EV Charging App - Page Styles
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background-color: var(--color-gray-20); /* #3a3a3a */
  padding: 0;
      min-height: 580px;
}

.hero__content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  min-height: 580px;
}

.hero__content {
  flex: 1;
  max-width: 485px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 110px 0 80px 0;
  color: var(--color-white);
}

.hero__title {
  font-size: var(--h1-size); /* 40px */
  font-weight: var(--font-bold);
  line-height: var(--h1-line-height); /* 1.3 */
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0;
  color: var(--color-white);
}

.hero__description {
  font-size: var(--body-size); /* 16px */
  line-height: var(--body-line-height); /* 1.5 */
  margin: 0;
  color: var(--color-white);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.hero__image {
    /* flex: 1; */
    /* max-width: 580px; */
    /* height: 590px; */
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Responsive - Tablet (1279px) */
@media (max-width: 1279px) {
  .hero__content-wrapper {
    flex-direction: column;
    min-height: auto;
    gap: 0;
  }

  .hero__content {
    max-width: 100%;
    padding: 40px 0;
    text-align: center;
    align-items: center;
    order: 1;
  }

  .hero__image {
    max-width: 100%;
    height: 400px;
    order: 2;
  }

  .hero__buttons {
    justify-content: center;
  }
}

/* Responsive - Mobile (768px) */
@media (max-width: 768px) {
  .hero__content {
    padding: 60px 20px;
    text-align: left;
  }

  .hero__image {
    height: 450px;
  }

  .hero__title {
    font-size: var(--h1-mobile-size); /* 30px */
    letter-spacing: 0.9px;
  }

  .hero__buttons .btn {
    width: 100%;
  }
}

/* ============================================
   FUNCTION SECTION
   ============================================ */
.function-section {
  padding: 80px 0 0px;
  background-color: var(--color-white);
}

section.function-section::after {
  content: "";
  display: block;
  border-bottom: 2px solid #F1F3F5;
  max-width: 1148px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 40px;
}

.function-section__content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.function-section__image {
  width: 363px;
  height: 502px;
  flex-shrink: 0;
  border-radius: 11.829px;
  overflow: hidden;
  background-color: var(--color-gray-95);
}

.function-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.function-section__text {
  flex: 1;
  min-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.function-section__header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.function-section__number {
  width: 22px;
  height: 22px;
  background-color: var(--color-gray-20);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.2px;
  font-weight: var(--font-bold);
  line-height: 1.55;
  flex-shrink: 0;
}

.function-section__title {
  font-size: var(--h2-size); /* 32px */
  font-weight: var(--font-bold);
  line-height: var(--h2-line-height); /* 1.3 */
  color: var(--color-gray-20);
  margin: 0;
  flex: 1;
}

.function-section__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.function-section__subtitle {
  font-size: var(--body-size); /* 16px */
  font-weight: var(--font-medium);
  line-height: var(--body-line-height); /* 1.5 */
  color: var(--color-gray-20);
  margin: 0;
}

.function-section__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.function-section__list-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.function-section__bullet {
  width: 8px;
  height: 8px;
  background-color: var(--color-green-60);
  border-radius: 50%;
  flex-shrink: 0;
}

.function-section__list-text {
  font-size: var(--body-size); /* 16px */
  font-weight: var(--font-regular);
  line-height: var(--body-line-height); /* 1.5 */
  color: var(--color-gray-20);
  margin: 0;
  flex: 1;
}

.function-section__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.benefit-badge {
  flex: 1;
  min-width: 182px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-badge__label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-xl); /* 16px */
  font-size: var(--body-small-size); /* 14px */
  font-weight: var(--font-semi-bold);
  line-height: 1.55;
  color: var(--color-gray-20);
  width: fit-content;
}

.benefit-badge--business .benefit-badge__label {
  background-color: rgba(53, 119, 216, 0.2); /* Blue */
}

.benefit-badge--driver .benefit-badge__label {
  background-color: rgba(58, 241, 133, 0.2); /* Green */
}

.benefit-badge__text {
  font-size: var(--body-small-size); /* 14px */
  font-weight: var(--font-regular);
  line-height: 1.55;
  color: var(--color-gray-20);
  margin: 0;
}

/* Last function section with extra bottom padding */
.function-section--last {
  padding-bottom: 80px;
}

/* ===================================
   KEY BENEFITS SECTION
   =================================== */

.key-benefits {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.key-benefits__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.key-benefits__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-gray-20);
  z-index: 1;
}

.key-benefits__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.5;
  z-index: 2;
}

.key-benefits .container {
  position: relative;
  z-index: 3;
}

.key-benefits__title {
  font-size: var(--h2-size); /* 32px */
  font-weight: var(--font-bold);
  line-height: 1.3;
  color: var(--color-white);
  margin: 0 0 40px 0;
  text-align: left;
}

.key-benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Key Benefit Card */
.key-benefit-card {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  background: linear-gradient(137.66deg, #1F1F1F 0%, #3A3A3A 100%);
  border: 1px solid rgba(31, 31, 31, 0.3);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--color-white);
}

.key-benefit-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.key-benefit-card__title {
  font-size: var(--h4-size); /* 20px */
  font-weight: var(--font-bold);
  line-height: 1.45;
  color: var(--color-white);
  margin: 0;
  flex: 1 1 0;
  min-width: 130px;
}

.key-benefit-card__icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-gray-20);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.key-benefit-card__icon svg {
  width: 24px;
  height: 24px;
}

.key-benefit-card__text {
  font-size: var(--body-size); /* 16px */
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--color-white);
  margin: 0;
}

/* ===================================
   CTA INTEGRATE SECTION
   =================================== */

.cta-integrate {
    background-color: var(--color-white);
    position: relative;
    min-height: 520px;
}

.cta-integrate__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.cta-integrate__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cta-integrate__image::before,
.cta-integrate__image::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1;
  pointer-events: none;
}

.cta-integrate__image::before {
  top: 0;
  background: linear-gradient(to bottom, #f1f3f5 0%, transparent 100%);
}

.cta-integrate__image::after {
  bottom: 0;
  background: linear-gradient(to top, #f1f3f5 0%, transparent 100%);
}

.cta-integrate__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  min-height: 520px;
}

.cta-integrate__content {
  padding: 60px 0;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.cta-integrate__title {
  font-size: var(--h2-size); /* 32px */
  font-weight: var(--font-bold);
  line-height: 1.3;
  color: var(--color-gray-20);
  margin: 0;
}

.cta-integrate__description {
  font-size: var(--body-size); /* 16px */
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--color-gray-20);
  margin: 0;
}


/* Responsive - Tablet (1279px) */
@media (max-width: 1279px) {
  .function-section__content {
    flex-direction: column;
  }

  .function-section__text {
    min-width: auto;
  }

  .function-section__image {
    width: 100%;
    max-width: 363px;
    margin: 0 auto;
  }

  .key-benefits__grid {
    grid-template-columns: 1fr;
  }

  .cta-integrate {
    min-height: auto;
  }

  .cta-integrate__image {
    position: relative;
    width: 100%;
    height: 400px;
  }

  .cta-integrate__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cta-integrate__content {
    padding: 40px 20px;
  }
}

/* Responsive - Mobile (768px) */
@media (max-width: 768px) {
  .function-section {
    padding: 60px 0 40px;
  }

  .function-section--last {
    padding-bottom: 60px;
  }

  .function-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .function-section__image {
    max-width: 100%;
    height: auto;
    aspect-ratio: 363 / 502;
  }

  .benefit-badge {
    min-width: 100%;
  }

  .key-benefits__grid {
    gap: 30px;
  }

  .key-benefit-card__header {
    justify-content: space-between;
  }

  .cta-integrate__image {
    height: 520px;
  }

  .cta-integrate__content {
    padding: 40px 20px;
    gap: 24px;
  }

  .cta-integrate .btn {
    width: 100%;
  }
}

