/* ============================================================
   hero.css — KRITA Renewables
   Recreated exactly from Cordia Energy Solar Ref Design
   Concave Gradient Sweeping Mask, Centered Premium Typography,
   and Overlapping Photographic Canopy Image.
   ============================================================ */

.hero {
  position: relative;
  background: #ffffff;
  padding: 90px 0 160px 0;
  /* Clear 90px sticky header, leave bottom space for overlapping image */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Concave pill-shaped sweeping gradient canvas */
.hero-curved-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 900px;
  background: var(--grad-cordia);
  /* Concave curve clip path - sweeps upward at left/right edges, dips in center */
  clip-path: ellipse(70% 65% at 50% 35%);
  z-index: 1;
}

/* Relative container to stack above gradient canvas */
.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px var(--sp-8) 0;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

/* Premium bold pill-badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 700;
  color: #283c5a; /* Crisp black */
  margin-bottom: var(--sp-6);
  text-transform: uppercase;
  letter-spacing: .1em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  margin-bottom: var(--sp-6);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #000000; /* Crisp black */
}

.hero-sub {
  font-size: 1.25rem;
  color: #000000; /* Crisp black */
  font-weight: 600;
  max-width: 720px;
  margin: 0 auto var(--sp-4);
  line-height: 1.6;
}

.hero-desc {
  font-size: 1.15rem;
  color: #1e293b; /* Premium dark slate */
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto var(--sp-8);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--sp-12);
}

.hero .btn-outline {
  border-color: rgba(0, 0, 0, 0.25);
  color: #000000;
}

.hero .btn-outline:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.hero .btn-primary {
  color: #283c5a;
  border-color: #283c5a;
}

.hero .btn-primary:hover {
  color: #ffffff;
  border-color: #ffffff;
}


/* Centered photographic canopy panel overlapping the section below */
.hero-image-wrap {
  position: relative;
  z-index: 3;
  max-width: 1080px;
  margin: var(--sp-6) auto -240px;
  /* Big negative bottom margin to overlap about section */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(35, 18, 60, 0.18);
  border: 4px solid #ffffff;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 380px;
  max-height: 560px;
}

/* Responsive adjustments for Cordia hero */
@media (max-width: 1024px) {
  .hero-curved-bg {
    width: 180%;
    height: 580px;
  }

  .hero-image-wrap {
    margin-bottom: -180px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 90px 0 100px 0;
  }

  .hero-curved-bg {
    width: 220%;
    height: 650px;
    clip-path: ellipse(75% 70% at 50% 30%);
  }

  .hero-container {
    padding-top: var(--sp-8);
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .hero-image-wrap {
    margin-bottom: -120px;
    border-radius: 16px;
  }
}