/* ==========================================================================
   JASA ENERGIES - HOME PAGE STYLES (EXACT MATCH TO REACT)
   ========================================================================== */

/* ── Hero Section ── */
.home-hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #F0FDF4 0%, #FAFBFC 40%, #FFFFFF 100%);
}

.home-hero-glow-1 {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero-glow-2 {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: clamp(110px, 12vh, 140px) clamp(16px, 3vw, 40px) clamp(40px, 6vh, 80px);
  gap: 40px;
}

/* Left Text Column (40%) */
.hero-text-col {
  flex: 0 0 40%;
  max-width: 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-main-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  font-weight: 700;
  color: #0F172A;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-sub-heading {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 600;
  color: #334155;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: clamp(0.85rem, 0.95vw, 1rem);
  color: #64748B;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Right Video Column (60%) */
.hero-video-col {
  width: 100%;
  flex: 0 0 60%;
  max-width: 60%;
}

.hero-video-player-box {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.14), 0 0 0 1px rgba(16,185,129,0.08);
  background: #0A1628;
  aspect-ratio: 16 / 9;
}

.hero-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.1) 25%, rgba(10,22,40,0) 50%, rgba(10,22,40,0.2) 75%, rgba(10,22,40,0.9) 100%);
  pointer-events: none;
}

.hero-video-title-box {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 10;
  pointer-events: none;
}

.hero-video-title-box h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.8vw, 2rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.hero-video-nav-arrows {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.hero-nav-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #FFFFFF;
}

.hero-nav-arrow-btn:hover {
  background: #10B981;
  border-color: #10B981;
}

/* Dots (Bottom Left) */
.hero-dot-indicators {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-dot-btn {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero-dot-btn.active {
  width: 28px;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16,185,129,0.6);
}

/* Thumbnails (Bottom Right) */
.hero-thumb-row {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 12px;
}

.hero-thumb-btn {
  width: 130px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
  background: #0A1628;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.hero-thumb-btn.active {
  border-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.4), 0 8px 24px rgba(0,0,0,0.5);
}

.hero-thumb-btn:hover:not(.active) {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.6);
}

.hero-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-thumb-btn:hover .hero-thumb-img {
  transform: scale(1.1);
}

.hero-thumb-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.2) 60%);
}

.hero-thumb-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  text-align: left;
}

.hero-thumb-playing-tag {
  font-size: 8px;
  font-weight: 700;
  color: #10B981;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hero-thumb-title {
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  font-family: var(--font-heading);
}

.hero-thumb-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hero-thumb-btn:hover:not(.active) .hero-thumb-play-icon {
  opacity: 1;
}

/* ── Responsive rules matching React Hero.jsx ── */
@media (max-width: 992px) {
  .hero-content-wrapper {
    flex-direction: column !important;
    padding-top: 120px !important;
    gap: 32px !important;
  }
  .hero-text-col {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }
  .hero-text-col h1,
  .hero-text-col p {
    text-align: center !important;
  }
  .hero-text-col .page-hero-tag {
    margin: 0 auto 24px auto !important;
  }
  .hero-buttons {
    justify-content: center !important;
  }
  .hero-video-col {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  .hero-thumb-row {
    display: none !important;
  }
  .hero-video-title-box h2 {
    font-size: 1.2rem !important;
  }
}

/* ── Dark Stats Bar Section ── */
.home-dark-stats {
  background: #0F172A;
  padding: 60px 0;
  position: relative;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 768px) {
  .home-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-stat-item {
  text-align: center;
}

.home-stat-val {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: #10B981;
  line-height: 1;
  margin-bottom: 8px;
}

.home-stat-lbl {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94A3B8;
}

/* ── Searchable Energy Solutions Hub ── */
.home-search-hub {
  padding: 90px 0;
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
  border-bottom: 1px solid #E2E8F0;
  position: relative;
}

/* ── Key Business Areas 3+2 Grid ── */
.business-areas-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .business-areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .business-areas-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .business-areas-grid > div:nth-child(1),
  .business-areas-grid > div:nth-child(2),
  .business-areas-grid > div:nth-child(3) {
    grid-column: span 2;
  }
  .business-areas-grid > div:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .business-areas-grid > div:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

/* ── Features 8-Box Grid ── */
.features-8-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .features-8-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-8-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Dark FAQ Section ── */
.home-dark-faq-section {
  padding: 100px 0;
  background: #0F172A;
  color: #FFFFFF;
  position: relative;
}

.home-faq-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: all 0.25s ease;
}

.home-faq-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.home-faq-q {
  font-size: 1.15rem;
  font-weight: 700;
  color: #10B981;
  margin-bottom: 10px;
}

.home-faq-a {
  font-size: 0.975rem;
  color: #94A3B8;
  line-height: 1.7;
}

/* ── Two Column Grid for Story & Content ── */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 992px) {
  .two-col-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
