/* -- ESS (Energy Storage System) Page Styles -- */

/* -- Hero Banner Section -- */
.ess-hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.6rem 0 1.2rem;
  margin-top: 0;
  background-color: #002147;
  border-radius: 0 0 0.4rem 0.4rem;
  overflow: hidden;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  color: #fff;
}

/* Overlay for better text readability on background image */
.ess-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,33,71,0.85) 0%, rgba(0,33,71,0.6) 50%, rgba(0,33,71,0.4) 100%);
  z-index: 0;
}

.ess-hero-section > * {
  position: relative;
  z-index: 1;
}

.ess-hero-inner {
  margin: 0 auto;
  width: 83.5%;
}

.ess-hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 8rem;
}

.ess-hero-pre-title {
  font-size: 0.2rem;
  font-weight: 700;
  color: #5BC2E7;
  font-family: 'HelveticaNeueLTPro-Bd', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

.ess-hero-title {
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01rem;
  font-family: 'HelveticaNeueLTPro-Bd', sans-serif;
  color: #fff;
  margin-bottom: 0.1rem;
}

.ess-hero-subtitle {
  display: block;
  font-size: 0.32rem;
  font-weight: 500;
  color: #5BC2E7;
  line-height: 1.3;
  font-family: 'HelveticaNeueLTPro-Md', sans-serif;
  margin-top: 0.1rem;
}

.ess-hero-desc {
  font-size: 0.18rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  font-family: 'HelveticaNeueLTPro-Roman', sans-serif;
  max-width: 6rem;
  margin-top: 0.15rem;
}

.ess-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.14rem 0.4rem;
  background: #5BC2E7;
  color: #002147;
  font-size: 0.18rem;
  font-weight: 700;
  font-family: 'HelveticaNeueLTPro-Bd', sans-serif;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
}

.ess-hero-btn:hover {
  background: #fff;
  color: #002147;
  transform: translateY(-2px);
}

/* -- Responsive: Large screens -- */
@media (max-width: 1560px) {
  .ess-hero-title {
    font-size: 0.5rem;
  }
  .ess-hero-subtitle {
    font-size: 0.28rem;
  }
}

/* -- Responsive: Tablet -- */
@media (max-width: 1024px) {
  .ess-hero-section {
    min-height: auto;
    padding: 1.2rem 0 0.8rem;
  }
  .ess-hero-text {
    max-width: 100%;
  }
  .ess-hero-title {
    font-size: 0.4rem;
  }
  .ess-hero-subtitle {
    font-size: 0.24rem;
  }
  .ess-hero-desc {
    font-size: 0.16rem;
    max-width: 100%;
  }
}

/* -- Responsive: Mobile -- */
@media (max-width: 768px) {
  .ess-hero-section {
    min-height: auto;
    padding: 1.2rem 0.2rem 0.6rem;
    border-radius: 0;
  }
  .ess-hero-inner {
    width: 90%;
  }
  .ess-hero-pre-title {
    font-size: 0.16rem;
  }
  .ess-hero-title {
    font-size: 0.28rem;
  }
  .ess-hero-subtitle {
    font-size: 0.18rem;
  }
  .ess-hero-desc {
    font-size: 0.14rem;
  }
  .ess-hero-btn {
    font-size: 0.16rem;
    padding: 0.12rem 0.3rem;
    align-self: flex-start;
  }
}

/* -- Related Products Section -- */
.related-products-section {
  padding: 0.8rem 0;
}

.related-products-section .pt-title-line {
  width: 0.4rem;
  height: 3px;
  background: #5BC2E7;
  margin: 0 auto 0.3rem;
}

.related-products-section .title {
  text-align: center;
  font-size: 0.36rem;
  font-weight: 700;
  color: #002147;
  margin-bottom: 0.6rem;
  font-family: 'HelveticaNeueLTPro-Bd', sans-serif;
}

.products-grid {
  display: flex;
  gap: 0.4rem;
}

.product-group {
  flex: 1;
  padding: 0.3rem;
}

.product-group.full-width {
  width: 100%;
}

.product-group .group-title {
  font-size: 0.24rem;
  font-weight: 700;
  color: #002147;
  margin-bottom: 0.1rem;
  font-family: 'HelveticaNeueLTPro-Bd', sans-serif;
}

.product-group .group-description {
  font-size: 0.16rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0.3rem;
  font-family: 'HelveticaNeueLTPro-Roman', sans-serif;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.2rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.2rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 0.08rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  border-color: #5BC2E7;
  box-shadow: 0 4px 12px rgba(91, 194, 231, 0.15);
  transform: translateY(-2px);
}

.product-card .product-image {
  width: 100%;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.15rem;
  overflow: hidden;
}

.product-card .product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card .product-info {
  text-align: center;
  width: 100%;
  margin-bottom: 0.1rem;
}

.product-card .product-name {
  font-size: 0.18rem;
  font-weight: 700;
  color: #002147;
  margin: 0 0 0.05rem 0;
  font-family: 'HelveticaNeueLTPro-Bd', sans-serif;
}

.product-card .product-desc {
  font-size: 0.14rem;
  color: #666;
  margin: 0;
  font-family: 'HelveticaNeueLTPro-Roman', sans-serif;
}

.product-card .product-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.32rem;
  height: 0.32rem;
  border: 1.5px solid #5BC2E7;
  border-radius: 50%;
  color: #5BC2E7;
  transition: all 0.3s ease;
}

.product-card:hover .product-arrow {
  background: #5BC2E7;
  color: #fff;
}

/* -- Responsive: Tablet -- */
@media (max-width: 1024px) {
  .products-grid {
    flex-direction: column;
  }
  
  .product-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -- Responsive: Mobile -- */
@media (max-width: 768px) {
  .related-products-section {
    padding: 0.5rem 0;
  }
  
  .related-products-section .title {
    font-size: 0.28rem;
  }
  
  .product-group .group-title {
    font-size: 0.2rem;
  }
  
  .product-group .group-description {
    font-size: 0.14rem;
  }
  
  .product-cards {
    grid-template-columns: 1fr;
  }
  
  .product-card .product-image {
    height: 1.2rem;
  }
  
  .product-card .product-name {
    font-size: 0.16rem;
  }
  
  .product-card .product-desc {
    font-size: 0.12rem;
  }
}
