/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Default hero background with fallback */
.hero {
  background-image:
    linear-gradient(
      135deg,
      rgba(10, 10, 10, 0.55) 0%,
      transparent 60%
    ),
    url("/imgs/hero-bg-service-van-mobile.webp");
  /* background-color: var(--primary-black);  */
}

/* Subtle overlay for better text readability */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--primary-black) 100%
  );
  opacity: 0.15;
  z-index: 1;
}

/* Brand accent overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(
      circle at 20% 80%,
      var(--primary-red) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 20%,
      var(--red-dark) 0%,
      transparent 40%
    );
  opacity: 0.15;
  z-index: 1;
}

/* Make sure hero content stays above the overlays */
.hero > * {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--container-padding);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

/* Hero Left - Premium Logo */
.hero-left {
  text-align: center;
}

.hero-logo {
  max-width: 280px;
  margin: 0 auto;
  position: relative;
  padding: var(--space-xl);
}

/* Clean hero logo with basic semi-transparent background */
.hero-logo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 112%;
  height: 112%;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: -1;
}

.hero-logo::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 115%;
  height: 115%;
  background: rgba(139, 37, 0, 0.1);
  border-radius: 50%;
  z-index: -2;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Simple hover effect */
.hero-logo:hover::before {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.hero-logo img,
.hero-logo .footer-logo-image {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2)) contrast(1.1)
    brightness(1.05);
  transition: all var(--transition-base);
  position: relative;
  z-index: 2;
  margin: auto;
}

.hero-logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3)) contrast(1.15)
    brightness(1.1);
}

/* Hero Right - Content */
.hero-right {
  text-align: center;
  contain: layout style;
}

.hero-badge {
  display: inline-block;
  color: var(--primary-white);
  margin-bottom: var(--space-xl);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid;
  will-change: opacity;
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.hero-title {
  color: var(--primary-white);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  will-change: opacity;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  color: var(--primary-white);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  will-change: opacity;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Animated Quote Button */
.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  will-change: opacity;
  animation: fadeInUp 0.4s ease-out 0.6s both;
}

/* Tablet Layout */
@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-md);
    align-items: center;
  }

  .hero-left {
    text-align: left;
  }

  .hero-logo {
    max-width: 260px;
    margin: 0;
  }

  .hero-right {
    text-align: left;
  }

  .hero-buttons {
    justify-content: flex-start;
  }



  .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Desktop Enhancements */
@media (min-width: 824px) {
  .hero {
    background-image:
      linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.55) 0%,
        transparent 60%
      ),
      url('/imgs/hero-bg-service-van2.webp');
    background-size: cover;
    background-position: top center;
    min-height: 90vh;
  }

  .hero-content {
    padding: var(--space-5xl) var(--container-padding);
    margin-top: 80px;
  }

  .hero-logo {
    max-width: 300px;
    padding: var(--space-lg);
  }


}

/* Large Desktop */
@media (min-width: 1200px) {
  .hero::after {
    opacity: 0.2;
  }
  .hero::before {
    opacity: 0.4;
  }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  .hero {
    min-height: 90vh;
    background-size: cover;
    background-position: center center;
  }

  .hero-content {
    padding-top: calc(var(--space-5xl) + var(--space-xl));
  }

  .hero-logo {
    max-width: 180px;
    padding: var(--space-lg);
  }

  .hero-logo img {
    width: 150px;
  }





  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    white-space: nowrap;
  }

  /* Reduce overlay intensity on mobile */
  .hero::before {
    opacity: 0.15;
  }
  .hero::after {
    opacity: 0.1;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .hero-buttons .btn-primary {
    animation: none;
  }

  .hero-logo::after {
    animation: none;
    opacity: 0;
  }

  .hero-title,
  .hero-subtitle,
  .hero-buttons,
  .hero-badge {
    animation: none;
  }

  .hero-logo img,
  .hero-logo::before {
    transition: none;
  }

  .hero-buttons .btn-primary::before {
    display: none;
  }
}



/* Add more page-specific hero classes as needed */
