/* ============================================
   PREMIUM HERO SLIDER CSS
   ============================================ */

.hero-slider-section {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 540px;
  overflow: hidden;
  background-color: var(--primary-color);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease-in-out, visibility 1.5s;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05); /* Slight scale for pan effect */
  transition: transform 10s ease-out;
}

.hero-slide.active .hero-media video,
.hero-slide.active .hero-media img {
  transform: scale(1);
}

/* Subtle gradient to ensure the image isn't totally blown out */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: flex-end; /* Align to bottom */
  justify-content: flex-start; /* Align left */
  padding-bottom: 4rem; /* Desktop padding */
}

/* Premium Solid Architectural Block */
.hero-text-wrap {
  background: linear-gradient(
    135deg,
    rgba(30, 20, 10, 0.72) 0%,
    rgba(60, 40, 20, 0.60) 100%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 3rem 3.5rem;
  max-width: 580px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 3px solid var(--accent-color);
  /* Animate in */
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1.1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s;
}

.hero-slide.active .hero-text-wrap {
  opacity: 1;
  transform: translateX(0);
}

.hero-title {
  color: white;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 460px;
  line-height: 1.7;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
}

.hero-btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px; /* Pill shape */
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  flex: 1;
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-btn-primary:hover {
  background: white;
  color: var(--primary-color);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-3px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .hero-slider-section {
    height: 65vh;
    min-height: 500px;
  }

  .hero-content {
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    align-items: flex-end;
  }
  
  .hero-text-wrap {
    padding: 2rem 1.5rem;
    max-width: 100%;
    width: calc(100% - 2rem);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    border-left: 3px solid var(--accent-color);
    transform: translateY(40px);
    text-align: center;
    align-items: center;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    /* Use padding on the parent instead of margin to avoid overflow */
    box-sizing: border-box;
  }
  
  .hero-slide.active .hero-text-wrap {
    transform: translateY(0);
  }
  
  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.85rem;
  }
  
  .hero-btn {
    width: 100%;
    padding: 1rem 1.5rem;
  }
}
