/* ============================================================
   CROPGENE — HERO SECTIONS
   Dynamic Multi-Slide Carousel, Botanical Floating Particles,
   Live Counter Stats & Premium Enterprise Content Styling
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--header-height) + var(--space-6));
  padding-bottom: var(--space-12);
}

.hero--full {
  min-height: 100vh;
}

/* ============================================================
   HERO BACKGROUND CAROUSEL
   ============================================================ */

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s ease-in-out, transform 8s ease-out;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  animation: heroSlideKenBurns 8s ease-out forwards;
}

.hero-slide.fade-out {
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

@keyframes heroSlideKenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08) translate(-0.5%, -0.5%);
  }
}

/* Hero Overlay with Ambient Brand Glows */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 15% 45%, rgba(212, 37, 132, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 35%, rgba(45, 128, 78, 0.20) 0%, transparent 60%),
    linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.78) 0%,
      rgba(15, 23, 42, 0.52) 45%,
      rgba(15, 23, 42, 0.18) 75%,
      rgba(15, 23, 42, 0.04) 100%
    );
}

@media (max-width: 768px) {
  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.85) 0%,
      rgba(15, 23, 42, 0.60) 60%,
      rgba(15, 23, 42, 0.35) 100%
    );
  }
}

/* ============================================================
   FLOATING BOTANICAL PARTICLES
   ============================================================ */

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.leaf-particle {
  position: absolute;
  font-size: 1.4rem;
  opacity: 0.18;
  animation: floatLeaf linear infinite;
  user-select: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes floatLeaf {
  0% {
    transform: translateY(105vh) rotate(0deg) translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 0.22;
  }
  88% {
    opacity: 0.22;
  }
  100% {
    transform: translateY(-10vh) rotate(720deg) translateX(120px);
    opacity: 0;
  }
}

/* ============================================================
   PREMIUM HERO CONTENT TYPOGRAPHY
   ============================================================ */

.hero .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero__content {
  max-width: 740px;
  color: var(--color-white);
}

/* Frosted Eyebrow Badge with 5 Brand Logo Color Dots */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FBBF24;
  margin-bottom: var(--space-4);
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero__badge-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  animation: dotPulseWave 2.4s infinite ease-in-out;
}

.hero__badge-dot--magenta {
  background: #D42584;
  box-shadow: 0 0 8px rgba(212, 37, 132, 0.8);
  animation-delay: 0s;
}

.hero__badge-dot--amber {
  background: #ECA137;
  box-shadow: 0 0 8px rgba(236, 161, 55, 0.8);
  animation-delay: 0.2s;
}

.hero__badge-dot--coral {
  background: #E56767;
  box-shadow: 0 0 8px rgba(229, 103, 103, 0.8);
  animation-delay: 0.4s;
}

.hero__badge-dot--cyan {
  background: #48B8E2;
  box-shadow: 0 0 8px rgba(72, 184, 226, 0.8);
  animation-delay: 0.6s;
}

.hero__badge-dot--green {
  background: #68B84B;
  box-shadow: 0 0 8px rgba(104, 184, 75, 0.8);
  animation-delay: 0.8s;
}

@keyframes dotPulseWave {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-5);
  line-height: 1.12;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero__title-accent {
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 14px rgba(245, 158, 11, 0.35));
}

.hero__description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-8);
  max-width: 620px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.hero__actions .btn--primary {
  background: linear-gradient(135deg, #E83E8C 0%, #D42584 60%, #B01869 100%);
  box-shadow: 0 8px 25px rgba(212, 37, 132, 0.45);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--duration-fast) var(--ease-default), box-shadow var(--duration-fast) var(--ease-default);
}

.hero__actions .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 37, 132, 0.6);
}

.hero__actions .btn--primary .btn__icon--arrow {
  transition: transform var(--duration-fast) var(--ease-default);
}

.hero__actions .btn--primary:hover .btn__icon--arrow {
  transform: translateX(4px);
}

.hero__actions .btn--outline-white {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: background var(--duration-fast) var(--ease-default), transform var(--duration-fast) var(--ease-default);
}

.hero__actions .btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ============================================================
   PREMIUM HERO STATS COUNTER BAR
   ============================================================ */

.hero-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding: var(--space-6) var(--space-8);
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  width: fit-content;
}

.hero-stat {
  text-align: left;
  color: var(--color-white);
}

.hero-stat:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  padding-right: var(--space-8);
}

.hero-stat .stat-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #FBBF24;
  display: block;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(251, 191, 36, 0.35);
}

.hero-stat .stat-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}

/* ============================================================
   SCROLL DOWN INDICATOR
   ============================================================ */

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default), transform var(--duration-fast) var(--ease-default);
  cursor: pointer;
}

.hero-scroll-indicator:hover {
  color: #FBBF24;
  transform: translateX(-50%) translateY(3px);
}

.hero-scroll-text {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroArrowBounce 2s infinite ease-in-out;
}

@keyframes heroArrowBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ============================================================
   PAGE HERO (Inner Pages: Products, About, Gallery, Contact)
   ============================================================ */

.page-hero {
  position: relative;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 48px;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(212, 37, 132, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 40%, rgba(45, 128, 78, 0.22) 0%, transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.64) 55%, rgba(15, 23, 42, 0.44) 100%);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

.page-hero__content {
  position: relative;
  z-index: 3;
  color: var(--color-white);
  max-width: 820px;
  width: 100%;
}

.page-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.page-hero__breadcrumb a:hover {
  color: #FBBF24;
}

.page-hero__breadcrumb-sep {
  color: rgba(255, 255, 255, 0.5);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.4);
}

.page-hero__title-accent {
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.page-hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: var(--leading-relaxed);
  max-width: 660px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   RESPONSIVE (Mobile & Tablet)
   ============================================================ */

@media (max-width: 1024px) {
  .hero-stats {
    gap: var(--space-6);
    padding: var(--space-4) var(--space-6);
  }

  .hero-stat:not(:last-child) {
    padding-right: var(--space-6);
  }

  .hero-stat .stat-number {
    font-size: 1.85rem;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(var(--header-height) + var(--space-6));
    padding-bottom: var(--space-8);
  }

  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.85) 0%,
      rgba(15, 23, 42, 0.65) 50%,
      rgba(15, 23, 42, 0.88) 100%
    );
  }

  .hero__badge {
    font-size: 0.72rem;
    padding: 5px 14px;
    gap: 8px;
    margin-bottom: var(--space-3);
  }

  .hero__badge-dots {
    gap: 4px;
  }

  .hero__badge-dot {
    width: 6px;
    height: 6px;
  }

  .hero__title {
    font-size: clamp(2rem, 7.5vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: var(--space-4);
  }

  .hero__description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-6);
  }

  .hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding-block: var(--space-3);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    width: 100%;
    margin-top: var(--space-6);
    padding: var(--space-4) var(--space-5);
  }

  .hero-stat:not(:last-child) {
    border-right: none;
    padding-right: 0;
  }

  .hero-stat .stat-number {
    font-size: 1.6rem;
  }

  .hero-stat .stat-label {
    font-size: 0.68rem;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .page-hero {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 32px;
    min-height: auto;
  }

  .page-hero__title {
    font-size: var(--text-3xl);
  }

  .page-hero__breadcrumb {
    padding: 4px 14px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.active,
  .leaf-particle,
  .hero-scroll-arrow,
  .hero__badge-dot {
    animation: none !important;
    transition: none !important;
  }
}
