/**
 * Beta Energy — Home Page Styles (index.html)
 */

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 0;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 20, 32, 0.45) 0%,
    rgba(10, 20, 32, 0.75) 60%,
    rgba(10, 20, 32, 0.95) 100%
  );
}

.hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-inner {
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 40px;
  padding-bottom: 40px;
  /* padding-left and padding-right come from .container */
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 58px);
  line-height: 1.08;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-light);
  background: linear-gradient(135deg, #18A0FB, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin-bottom: 36px;
  font-weight: 500;
  line-height: 1.6;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

/* Hero Stats Counter — full-width bar */
.hero-stats-wrap {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 16, 28, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.hero-stats .stat {
  text-align: center;
  padding: 38px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats .stat:first-child {
  border-left: none;
}

.hero-stats .stat b {
  display: block;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 4px;
}

.hero-stats .stat span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* =========================================
   INTRO SECTION
   ========================================= */
.intro {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-grid .eyebrow {
  margin-bottom: 10px;
}

.intro-grid h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.25;
}

.intro-grid p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 26px;
}

.intro-features {
  margin-bottom: 32px;
}

.intro-features li {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  padding-left: 30px;
  position: relative;
  margin-bottom: 14px;
}

.intro-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--white);
  background: var(--accent);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 110, 150, 0.3);
}

.intro-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.intro-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.intro-image-wrap:hover img {
  transform: scale(1.03);
}

/* =========================================
   BUSINESS UNITS DETAIL
   ========================================= */
.units-detail {
  background: #EAECEF;
}

.unit-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.unit-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: var(--white);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.unit-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.unit-card .tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.unit-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.25;
}

.unit-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.unit-card a,
.unit-card .link-text {
  font-size: 13px;
  font-weight: 700;
  color: #58c4f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.unit-card a:hover,
.unit-card:hover .link-text {
  color: var(--white);
  transform: translateX(4px);
}

.unit-card--ev {
  background-image: linear-gradient(180deg, rgba(10, 20, 32, 0.2) 0%, rgba(10, 20, 32, 0.92) 100%),
    url('https://images.unsplash.com/photo-1593941707882-a5bba14938c7?auto=format&fit=crop&w=800&q=75');
}

.unit-card--solar {
  background-image: linear-gradient(180deg, rgba(10, 20, 32, 0.2) 0%, rgba(10, 20, 32, 0.92) 100%),
    url('https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=800&q=75');
}

.unit-card--mant {
  background-image: linear-gradient(180deg, rgba(10, 20, 32, 0.2) 0%, rgba(10, 20, 32, 0.92) 100%),
    url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=800&q=75');
}

.unit-card--agro {
  background-image: linear-gradient(180deg, rgba(10, 20, 32, 0.2) 0%, rgba(10, 20, 32, 0.92) 100%),
    url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=800&q=75');
}

/* =========================================
   FINANCING SECTION
   ========================================= */
.financing {
  background: linear-gradient(120deg, var(--navy) 40%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 70px 0;
}

.financing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.financing-inner h2 {
  font-size: clamp(26px, 3.5vw, 32px);
  max-width: 540px;
  margin-bottom: 12px;
}

.financing-inner p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
}

.financing-cta {
  flex-shrink: 0;
}

/* =========================================
   FAQ ACCORDION
   ========================================= */
.faq {
  background: var(--white);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition-fast);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-q:hover {
  color: var(--accent);
}

.faq-q .plus {
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  line-height: 1;
}

.faq-item.open .faq-q .plus {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-a p {
  padding: 0 6px 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 680px;
}

/* =========================================
   FINAL CTA
   ========================================= */
.final-cta {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 16px;
  position: relative;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16.5px;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
  position: relative;
}

.final-cta .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* =========================================
   RESPONSIVE HOME RULES
   ========================================= */
@media (max-width: 1100px) {
  .unit-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .unit-detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 90px;
    padding-bottom: 60px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .hero-stats .stat {
    padding: 24px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-stats .stat:first-child {
    border-top: none;
  }

  .financing-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
