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

/* Base Hero Styles */
.hero {
  position: relative;
  min-height: 80vh;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

/* Dark Overlay Gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 75%, 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-content{
  position:absolute;
  bottom:15%;
  width:85%;
  z-index:9;
}

.hero-subline {
  color: var(--white);
  font-size: 150%;
  margin-bottom:0;
}

.hero-title {
  color: var(--white);
  line-height: 1;
  font-size:450%;
  margin:0 0 5px;
}

.hero-text,
.hero-content-secondary {
  color: var(--white);
  font-size: 115%;
}

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

/* Service Card */
.hero.has-card {
  margin-bottom: 8rem;
  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: 991.98px) {
  .hero {
    padding: clamp(3rem, 10vh, 8rem) 0;
  }

  .hero-content{
    width: 75%;
  }
  
  
  .hero-service-card .col-md-4 {
    display: none;
  }
  
  .hero-content-secondary {
    padding-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 50vh;
  }
  
  .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-subline{
    font-size: 1.5rem;
  }


  .hero-text{
    font-size: 1.2rem;
  }

  .hero-content{
    width: 90%;
  }
  
  .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;
  }
}
