/* ========================================
   HERO COMPONENT (UNIFIED)
   ======================================== */

/* Base hero */
.hero {
  position: relative;
  padding: var(--spacing-16) 0;
  color: white;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-color: var(--color-primary-dark);
}

/* Hero sizes */
.hero-sm {
  padding: var(--spacing-8) 0;
  min-height: 300px;
}

.hero-lg {
  padding: var(--spacing-20) 0;
  min-height: 600px;
}

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

/* Hero with background image */
.hero-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 30, 60, 0.95) 0%,
    rgba(20, 40, 75, 0.9) 50%,
    rgba(15, 35, 65, 0.95) 100%
  );
  z-index: 1;
}

.hero-bg-image .container {
  position: relative;
  z-index: 2;
}

/* Hero with overlay gradient */
.hero-gradient {
  background: linear-gradient(
    135deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 50%,
    var(--color-primary-light) 100%
  );
}

.hero-gradient-secondary {
  background: linear-gradient(
    135deg,
    var(--color-secondary-dark) 0%,
    var(--color-secondary) 50%,
    var(--color-secondary-light) 100%
  );
}

/* Hero content */
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-content-left {
  margin-left: 0;
  text-align: left;
}

.hero-content-right {
  margin-right: 0;
  text-align: right;
}

/* Hero title */
.hero-title {
  font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-6xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-4);
  color: white;
  letter-spacing: var(--letter-spacing-tight);
}

.hero-sm .hero-title {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
}

.hero-lg .hero-title {
  font-size: clamp(var(--font-size-5xl), 6vw, var(--font-size-7xl));
}

/* Hero subtitle */
.hero-subtitle {
  font-size: clamp(var(--font-size-lg), 2vw, var(--font-size-2xl));
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-4);
  color: rgba(255, 255, 255, 0.9);
}

/* Hero description */
.hero-description {
  font-size: clamp(var(--font-size-base), 1.5vw, var(--font-size-lg));
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-6);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
}

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

.hero-content-left .hero-description {
  margin-left: 0;
}

.hero-content-right .hero-description {
  margin-right: 0;
}

/* Hero actions (buttons) */
.hero-actions {
  display: flex;
  gap: var(--spacing-4);
  align-items: center;
  flex-wrap: wrap;
}

.hero-content .hero-actions {
  justify-content: center;
}

.hero-content-left .hero-actions {
  justify-content: flex-start;
}

.hero-content-right .hero-actions {
  justify-content: flex-end;
}

/* Hero badge/label */
.hero-label {
  display: inline-block;
  padding: var(--spacing-1) var(--spacing-3);
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: white;
  margin-bottom: var(--spacing-3);
}

/* Hero with stats */
.hero-stats {
  display: flex;
  gap: var(--spacing-8);
  margin-top: var(--spacing-8);
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: white;
  line-height: var(--line-height-tight);
}

.hero-stat-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

/* Hero with media */
.hero-media {
  position: relative;
  border-radius: var(--border-radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero split layout */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-8);
  align-items: center;
}

.hero-split-reverse {
  direction: rtl;
}

.hero-split-reverse .hero-content {
  direction: ltr;
}

/* Hero waves/shaps */
.hero-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.hero-shape svg {
  display: block;
  width: 100%;
  height: auto;
  fill: white;
}

/* Hero breadcrumbs */
.hero-breadcrumb {
  margin-bottom: var(--spacing-4);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
}

.hero-breadcrumb a {
  color: white;
  text-decoration: none;
}

.hero-breadcrumb a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: var(--spacing-10) 0;
    min-height: 400px;
  }
  
  .hero-split {
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
  }
  
  .hero-stats {
    gap: var(--spacing-4);
    justify-content: center;
  }
  
  .hero-stat-number {
    font-size: var(--font-size-3xl);
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    align-items: center;
  }
}