/* Hero Component Styles */

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-background) 50%, var(--color-primary) 100%);
  opacity: 0.9;
}

.hero--full {
  min-height: calc(100vh - var(--header-height));
}

.hero__container {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-2xl);
}

.hero__actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero with Image */
.hero--split {
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.hero--split .hero__container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero--split .hero__content {
  text-align: left;
  max-width: 600px;
  flex: 1;
}

.hero--split .hero__actions {
  justify-content: flex-start;
}

.hero--split .hero__image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl);
}

.hero__image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Hero Background Patterns */
.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
}

.hero__pattern svg {
  width: 100%;
  height: 100%;
}

/* Hero Stats */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-3xl);
  padding-top: var(--spacing-3xl);
  border-top: 1px solid var(--color-border);
}

.stat {
  text-align: center;
}

.stat__value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.stat__label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Badges */
.hero__badges {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-top: var(--spacing-xl);
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
}

.badge__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Hide logo on desktop */
.hero__logo {
  display: none;
}

/* Mobile hero image - hidden on desktop */
.hero__image-mobile {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
  }
  
  /* Reset split layout on mobile */
  .hero--split {
    min-height: auto;
  }
  
  .hero--split .hero__container {
    display: block;
    text-align: center;
    max-width: 100%;
    width: 100%;
    padding: var(--spacing-2xl) var(--spacing-lg);
    margin: 0 auto;
  }
  
  /* Hide the extra container (stats container) on mobile to prevent two-column layout */
  .hero > .container:not(.hero__container) {
    display: none;
  }
  
  .hero--split .hero__content {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  
  /* Hide the desktop hero image on mobile */
  .hero--split .hero__image {
    display: none !important;
  }
  
  /* Show mobile hero image */
  .hero__image-mobile {
    display: block !important;
    width: 100%;
    max-width: 300px;
    margin: var(--spacing-xl) auto;
    text-align: center;
  }
  
  .hero__image-mobile img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }
  
  .hero--split .hero__content {
    text-align: center;
  }
  
  .hero--split .hero__actions {
    justify-content: center;
  }
  
  .hero__image {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .hero__image img {
    max-height: 400px;
  }
  
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Mobile logo display */
  .hero--mobile-logo .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero--mobile-logo .hero__logo {
    display: block !important;
    width: 250px;
    height: 250px;
    margin: var(--spacing-2xl) auto;
    order: 2;
  }
  
  .hero--mobile-logo .hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  
  .hero--mobile-logo .hero__title {
    order: 0;
    margin-bottom: var(--spacing-md);
  }
  
  .hero--mobile-logo .hero__subtitle {
    order: 1;
    margin-bottom: 0;
  }
  
  .hero--mobile-logo .hero__actions {
    order: 3;
    margin-top: var(--spacing-2xl);
  }
  
  /* Hide the split image on mobile for homepage */
  .hero--mobile-logo.hero--split .hero__image {
    display: none !important;
  }
  
  .hero--mobile-logo .hero__badges {
    order: 4;
  }
}