/**
 * Hero Component
 * Unified hero sections for Clevertech theme
 * 
 * Structure:
 * - Base hero styles
 * - Hero variants (page, service, gradient, etc.)
 * - Hero elements (title, subtitle, CTA, etc.)
 * - Background options
 */

/* ========================================
   Design Tokens
   ======================================== */
:root {
  /* Hero Heights */
  --hero-height-sm: 300px;
  --hero-height-md: 400px;
  --hero-height-lg: 500px;
  --hero-height-xl: 600px;
  --hero-height-full: 100vh;
  
  /* Hero Spacing */
  --hero-padding-y: 5rem;
  --hero-padding-x: 2rem;
  
  /* Hero Overlays */
  --hero-overlay-dark: rgba(0, 0, 0, 0.5);
  --hero-overlay-light: rgba(255, 255, 255, 0.9);
  --hero-overlay-gradient: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  
  /* Hero Gradients */
  --hero-gradient-primary: linear-gradient(135deg, #0066cc 0%, #00bfff 100%);
  --hero-gradient-service: linear-gradient(135deg, #0077BE 0%, #00BFFF 100%);
  --hero-gradient-corporate: linear-gradient(135deg, #2C3E50 0%, #3498DB 100%);
  --hero-gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

/* ========================================
   Base Hero
   ======================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hero-height-lg);
  padding: var(--hero-padding-y) var(--hero-padding-x);
  background: var(--hero-gradient-primary);
  color: white;
  text-align: center;
  overflow: hidden;
}

/* Hero Container */
.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-xl, 1280px);
  margin: 0 auto;
}

/* Hero Content Wrapper */
.hero__content {
  max-width: 800px;
  margin: 0 auto;
}

/* ========================================
   Hero Elements
   ======================================== */

/* Hero Title */
.hero__title {
  font-size: var(--fs-5xl, 3rem);
  font-weight: var(--fw-extrabold, 800);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: inherit;
}

/* Hero Subtitle */
.hero__subtitle {
  font-size: var(--fs-xl, 1.25rem);
  font-weight: var(--fw-regular, 400);
  line-height: var(--lh-relaxed, 1.6);
  margin-bottom: 2rem;
  opacity: 0.95;
  color: inherit;
}

/* Hero Buttons */
.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Hero Stats */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-size: var(--fs-3xl, 2.5rem);
  font-weight: var(--fw-bold, 700);
  margin-bottom: 0.5rem;
}

.hero__stat-label {
  font-size: var(--fs-sm, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* Hero Badge */
.hero__badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-size: var(--fs-sm, 0.875rem);
  font-weight: var(--fw-semibold, 600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

/* ========================================
   Hero Background Options
   ======================================== */

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

.hero--image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-overlay-dark);
  z-index: 1;
}

/* Hero with Pattern */
.hero--pattern::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

/* ========================================
   Hero Variants
   ======================================== */

/* Page Hero (Standard Pages) */
.hero--page {
  min-height: var(--hero-height-md);
  background: var(--hero-gradient-corporate);
}

/* Service Hero */
.hero--service {
  min-height: var(--hero-height-lg);
  background: var(--hero-gradient-service);
}

/* Homepage Hero */
.hero--home {
  min-height: var(--hero-height-full);
  background: var(--hero-gradient-primary);
}

/* Dark Hero */
.hero--dark {
  background: var(--hero-gradient-dark);
}

/* Light Hero */
.hero--light {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--color-text, #333333);
}

.hero--light .hero__title,
.hero--light .hero__subtitle {
  color: var(--color-heading, #1a1a1a);
}

/* Centered Hero */
.hero--centered {
  text-align: center;
}

.hero--centered .hero__content {
  margin: 0 auto;
}

/* Left-aligned Hero */
.hero--left {
  text-align: left;
}

.hero--left .hero__content {
  margin-left: 0;
  margin-right: auto;
}

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

/* Split Hero (Content + Image) */
.hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero--split .hero__content {
  max-width: none;
}

.hero--split .hero__image {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.hero--split .hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* ========================================
   Hero Sizes
   ======================================== */

.hero--sm {
  min-height: var(--hero-height-sm);
  padding: 3rem var(--hero-padding-x);
}

.hero--md {
  min-height: var(--hero-height-md);
}

.hero--lg {
  min-height: var(--hero-height-lg);
}

.hero--xl {
  min-height: var(--hero-height-xl);
}

.hero--full {
  min-height: var(--hero-height-full);
}

/* ========================================
   Hero Animations
   ======================================== */

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content > * {
  animation: heroFadeIn 0.8s ease-out;
  animation-fill-mode: both;
}

.hero__title {
  animation-delay: 0.1s;
}

.hero__subtitle {
  animation-delay: 0.2s;
}

.hero__buttons {
  animation-delay: 0.3s;
}

.hero__stats {
  animation-delay: 0.4s;
}

/* ========================================
   WordPress Block Compatibility
   ======================================== */

/* WordPress Cover Block */
.wp-block-cover {
  /* Can inherit hero styles */
}

.wp-block-cover.hero {
  /* Applies hero component styles to cover block */
}

/* WordPress Group Block as Hero */
.wp-block-group.hero {
  /* Applies hero component styles to group block */
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero__title {
    font-size: var(--fs-4xl, 2.25rem);
  }
  
  .hero__subtitle {
    font-size: var(--fs-lg, 1.125rem);
  }
  
  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero__buttons .btn {
    width: 100%;
  }
  
  .hero--split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero--split .hero__image {
    display: none;
  }
  
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero--full {
    min-height: 70vh;
  }
  
  .hero__title {
    font-size: var(--fs-3xl, 1.875rem);
  }
}

/* ========================================
   Migration Helpers
   ======================================== */

/* Map old hero classes during migration */
.page-hero,
.service-hero,
.about-hero,
.contact-hero,
.diensten-hero,
.tarieven-hero,
.pricing-hero,
.cybersecurity-hero,
.cybersecurity-hero-section,
.webhosting-hero-section {
  /* Will inherit from .hero with appropriate variant */
}

/* Old hero content mapping */
.hero-title,
.diensten-hero-content h1 {
  /* Maps to .hero__title */
}

.hero-subtitle,
.diensten-hero-content .hero-subtitle {
  /* Maps to .hero__subtitle */
}

.hero-buttons,
.hero-cta-buttons {
  /* Maps to .hero__buttons */
}

.hero-stats,
.trust-indicators {
  /* Maps to .hero__stats */
}