/**
 * Hero Block Styles
 * 
 * Modern hero section with Bootstrap integration
 * Supports background images/videos, overlay gradients, and service cards
 */

/* Base Hero Styles */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: clamp(4rem, 15vh, 10rem) 0;
  min-height:20vh;
}
.hero.has-backgroundimage{
    min-height: 90vh;    
}
.hero.has-slider{
    min-height: auto;
    padding:0!important;    
}

.hero.has-slider.has-content .swiper-slide:before{
  content: '';
  position: absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background: linear-gradient(90deg, rgba(74, 96, 97, 1) 0%, rgba(74, 96, 97, 0.3) 60%, transparent 100%);
  z-index: 8;
}

.hero.has-slider .swiper-slide{
    height:auto;    
}
.hero.has-slider .swiper-button-next,
.hero.has-slider .swiper-button-prev{
  /* position:relative; */
  z-index:9;
}
.hero.has-slider .hero-service-card{
  transform:none;
  border-radius:none;
  text-align:center;
}
.hero.has-slider .hero-service-card .hero-card-content{
  padding:20px 20px 25px;
}
.hero.has-slider .hero-service-card .card-text p{
  margin-bottom:0;
}


/* Dark Overlay Gradient */
/* .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
} */

/* Background Video */
.hero-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* Hero Content */
.hero.has-backgroundimage .hero-content,
.hero.has-slider .hero-content {
  position:absolute;
  bottom:25%;
  z-index:9;
}

.hero-subline {
  color: var(--brand-secondary-color, #3498db);
  font-size:125%;
  letter-spacing: 0.1em;
  margin:0;
}

.hero-title {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
  font-size:350%;
  margin:0;
}

.hero-text,
.hero-content-secondary {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.125rem;
  line-height: 1.7;
}

.hero-content-secondary {
  padding-top: 3rem;
}

/* Service Card */
.hero.has-card {
  padding-bottom: 4rem;
}

.hero-service-card {
  transform: translateY(50%);
  background: linear-gradient(
    90deg,
    var(--brand-secondary-color, #2c3e50) 0%,
    var(--brand-secondary-color-lighter, #34495e) 100%
  );
  color: white;
  overflow: hidden;
}

.hero-card-image {
  object-fit: cover;
}

.hero-card-content {
  padding: 2rem;
}

.hero-card-content .card-title {
  color: white;
  margin-bottom: 1rem;
  word-wrap: break-word;
}

.hero-card-content .card-text {
  color: rgba(255, 255, 255, 0.9);
}

/* Contact Buttons (Fixed Sidebar) */
.hero-contact-buttons {
  bottom: 50px;
  z-index: 1000;
}

.hero-contact-buttons .btn {
  width: 60px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px 0 0 30px !important;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-contact-icon {
  width: 20px;
  height: 20px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .hero {
    padding: clamp(3rem, 10vh, 8rem) 0;
  }
  
  .hero-service-card .col-md-4 {
    display: none;
  }
  
  .hero-content-secondary {
    padding-top: 2rem;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
  }
  
  .hero::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
  }
  
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-contact-buttons .btn {
    width: 50px;
    height: 45px;
    opacity: 0.9;
  }
  
  .hero-contact-icon {
    width: 18px;
    height: 18px;
  }
  
  .hero.has-card {
    margin-bottom: 4rem;
  }
  
  .hero-service-card {
    transform: translateY(0);
    margin-top: 2rem;
  }
}
