/* ██████████████████████████████████████████████████████████
   §2  HERO SYSTEM (v2.0 – Professional Upgrade)
   ──────────────────────────────────────────────────────────
   Upgrade Notes:
   • Fixed mobile content sticking to header (padding-top)
   • Admin-controlled overlay opacity via CSS custom props
   • Improved CTA button styles with proper hover/focus
   • Added .hero-description for longer body text
   • Better responsive breakpoints (mobile-first)
   • Text alignment support (left/center/right)
   • Improved animation stagger system
   • Accessibility: focus-visible, reduced-motion
   ██████████████████████████████████████████████████████████ */

/* ----------------------------------------------------------
   HERO ROOT
---------------------------------------------------------- */
.hero-industrial {
  position: relative;
  min-height: 86vh;
  background-color: var(--mt-neutral-950);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}

/* Dark readability overlay — now uses CSS custom properties
   set inline by hero_module.php for admin control */
.hero-industrial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--hero-overlay-start, rgba(12, 14, 20, 0.77)),
    var(--hero-overlay-end, rgba(10, 12, 18, 0.85))
  );
  z-index: 0;
}

/* Premium radial glow accent */
.hero-industrial::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(var(--mt-brand-primary-rgb), 0.18),
    transparent 60%
  );
  z-index: 1;
  pointer-events: none;
}


/* ----------------------------------------------------------
   HERO INNER
---------------------------------------------------------- */
.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 86vh;
  display: flex;
  align-items: center;
  /* KEY FIX: Prevent content from hiding behind fixed header */
  padding-top: 140px;
  padding-bottom: var(--mt-space-16);
}

.hero-industrial .container {
  max-width: 920px;
}


/* ----------------------------------------------------------
   HERO TYPOGRAPHY
---------------------------------------------------------- */
.hero-micro {
  display: inline-block;
  font-size: var(--mt-text-xs);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: var(--mt-weight-bold);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--mt-space-4);
  padding: 6px 18px;
  border-radius: var(--mt-radius-full);
  background: rgba(var(--mt-brand-primary-rgb), 0.15);
  border: 1px solid rgba(var(--mt-brand-primary-rgb), 0.25);
  animation: heroFadeUp 0.6s var(--mt-ease-default) both;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: var(--mt-leading-tight);
  color: var(--mt-text-inverse);
  margin-bottom: var(--mt-space-5);
  letter-spacing: var(--mt-tracking-tight);
  animation: heroFadeUp 0.75s var(--mt-ease-default) both;
}

.hero-subtitle {
  font-size: var(--mt-text-md);
  line-height: var(--mt-leading-normal);
  color: rgba(255, 255, 255, 0.88);
  max-width: 700px;
  margin-bottom: var(--mt-space-6);
  animation: heroFadeUp 0.9s var(--mt-ease-default) both;
}

/* Center subtitle when text-center */
.text-center .hero-subtitle,
.text-center .hero-description {
  margin-left: auto;
  margin-right: auto;
}

/* Description — NEW: for longer body copy */
.hero-description {
  font-size: var(--mt-text-sm);
  line-height: var(--mt-leading-relaxed);
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin-bottom: var(--mt-space-8);
  animation: heroFadeUp 0.95s var(--mt-ease-default) both;
}

.text-center .hero-description {
  margin-left: auto;
  margin-right: auto;
}


/* ----------------------------------------------------------
   HERO PROOF BADGES
---------------------------------------------------------- */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--mt-space-10);
  animation: heroFadeUp 1.0s var(--mt-ease-default) both;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: var(--mt-weight-semibold);
  border-radius: var(--mt-radius-full);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  transition:
    background var(--mt-duration-fast) ease,
    border-color var(--mt-duration-fast) ease;
}

.hero-proof span:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-proof span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mt-brand-primary);
  flex-shrink: 0;
}


/* ----------------------------------------------------------
   HERO ACTIONS (CTA Buttons)
---------------------------------------------------------- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: heroFadeUp 1.1s var(--mt-ease-default) both;
}

/* Base button */
.hero-industrial .mt-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 36px;
  border-radius: var(--mt-radius-full);
  font-size: var(--mt-text-sm);
  font-weight: var(--mt-weight-bold);
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    transform var(--mt-duration-fast) var(--mt-ease-default),
    box-shadow var(--mt-duration-fast) var(--mt-ease-default),
    background var(--mt-duration-fast) ease,
    border-color var(--mt-duration-fast) ease;
}

.hero-industrial .mt-hero-btn:hover {
  transform: translateY(-3px);
}

.hero-industrial .mt-hero-btn:active {
  transform: translateY(1px);
}

.hero-industrial .mt-hero-btn:focus-visible {
  outline: 2px solid var(--mt-brand-primary);
  outline-offset: 3px;
}

/* Primary CTA */
.hero-industrial .mt-hero-btn-primary {
  background: var(--mt-brand-primary);
  color: #fff;
  box-shadow:
    0 8px 24px rgba(var(--mt-brand-primary-rgb), 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-industrial .mt-hero-btn-primary:hover {
  background: var(--mt-brand-primary-hover);
  box-shadow:
    0 12px 32px rgba(var(--mt-brand-primary-rgb), 0.45),
    0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Secondary CTA */
.hero-industrial .mt-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(10px);
}

.hero-industrial .mt-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.50);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}


/* ----------------------------------------------------------
   HERO SLIDESHOW (STRUCTURE) — preserved for future use
---------------------------------------------------------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-nav {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hero-nav span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background var(--mt-duration-fast) ease;
}

.hero-nav span.is-active {
  background: var(--mt-brand-primary);
}


/* ----------------------------------------------------------
   HERO ANIMATION
---------------------------------------------------------- */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}


/* ----------------------------------------------------------
   CONTEXT HERO (Inner pages — shorter)
---------------------------------------------------------- */
.hero-industrial.context-hero {
  min-height: 360px;
}

.hero-industrial.context-hero .hero-overlay {
  min-height: 360px;
  padding-top: 120px;
  padding-bottom: var(--mt-space-10);
}

.hero-industrial.context-hero .hero-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: var(--mt-space-3);
}

.hero-industrial.context-hero .hero-proof,
.hero-industrial.context-hero .hero-actions {
  display: none;
}


/* ----------------------------------------------------------
   HERO RESPONSIVE
---------------------------------------------------------- */

/* Tablet */
@media (max-width: 991px) {
  .hero-overlay {
    padding-top: 120px;
    padding-bottom: var(--mt-space-12);
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .hero-industrial .mt-hero-btn {
    padding: 13px 28px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .hero-industrial,
  .hero-industrial .hero-overlay {
    min-height: 80vh;
  }

  .hero-overlay {
    padding-top: 110px;
    padding-bottom: var(--mt-space-10);
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .hero-subtitle {
    font-size: var(--mt-text-base);
  }

  .hero-description {
    font-size: var(--mt-text-xs);
  }

  .hero-proof {
    gap: 8px;
    margin-bottom: var(--mt-space-8);
  }

  .hero-proof span {
    font-size: 0.72rem;
    padding: 6px 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .mt-hero-btn {
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* Force center on mobile for readability */
  .hero-industrial .container {
    text-align: center !important;
  }

  .hero-proof {
    justify-content: center !important;
  }

  .hero-actions {
    justify-content: center !important;
    align-items: center;
  }
}

/* Small mobile */
@media (max-width: 575px) {
  .hero-overlay {
    padding-top: 90px;
    padding-bottom: var(--mt-space-8);
  }

  .hero-industrial,
  .hero-industrial .hero-overlay {
    min-height: 75vh;
  }

  .hero-industrial.context-hero {
    min-height: 260px;
  }

  .hero-industrial.context-hero .hero-overlay {
    min-height: 260px;
    padding-top: 80px;
  }

  .hero-micro {
    font-size: 0.65rem;
    letter-spacing: 2px;
    padding: 5px 14px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }
}


/* ----------------------------------------------------------
   ACCESSIBILITY: Reduced motion
---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-micro,
  .hero-title,
  .hero-subtitle,
  .hero-description,
  .hero-proof,
  .hero-actions,
  .hero-industrial .mt-hero-btn {
    animation: none !important;
    transition: none !important;
  }
}
