/* ================= HEADER OVERLAY FIX ================= */
/* This forces the navigation bar to sit transparently over the banner */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent; /* Adjust to a glassmorphism rgba if desired */
}

/* ================= HERO SLIDER ================= */
.home-hero {
  width: 100%;
  height: 100vh;
  min-height: 720px;
  position: relative;
  overflow: hidden;
  background: #06140f;
}

.banner-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  transition:
    opacity 0.9s ease,
    visibility 0.9s ease,
    transform 1.5s ease;
}

.banner-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(4, 16, 12, 0.96) 0%,
      rgba(8, 31, 24, 0.82) 38%,
      rgba(8, 31, 24, 0.42) 66%,
      rgba(0, 0, 0, 0.18) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.48) 0%,
      rgba(0, 0, 0, 0.10) 45%,
      rgba(0, 0, 0, 0.58) 100%
    );
}

.banner-content {
  position: absolute;
  left: 6%;
  top: 55%;
  transform: translateY(-50%);
  max-width: min(760px, 88vw);
  color: #ffffff;
  z-index: 8;
}

.banner-tag,
.banner-content h1,
.banner-content p,
.banner-btn {
  opacity: 0;
}

.banner-slide.active .banner-tag {
  animation: fadeUp 0.6s ease 0.05s forwards;
}

.banner-slide.active .banner-content h1 {
  animation: fadeUp 0.7s ease 0.15s forwards;
}

.banner-slide.active .banner-content p {
  animation: fadeUp 0.75s ease 0.25s forwards;
}

.banner-slide.active .banner-btn {
  animation: fadeUp 0.8s ease 0.35s forwards;
}

.banner-tag {
  display: inline-block;
  padding: 11px 24px;
  margin-bottom: 28px;
  color: #d7a84f;
  border: 1px solid #d7a84f;
  border-radius: 40px;
  background: rgba(215, 168, 79, 0.1);
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 900;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}

.banner-content h1 {
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.12;
  margin-bottom: 20px;
  font-weight: 970;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.58);
}

.banner-content p {
  max-width: 660px;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.75;
  color: #e6f0ec;
  margin-bottom: 34px;
}

.banner-btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 40px;
  background: linear-gradient(135deg, #d7a84f, #f2c76f);
  color: #081c15;
  text-decoration: none;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 950;
  transition: 0.35s ease;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.banner-btn:hover {
  background: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

.highlight-section {
  padding: 60px 6%;
  background: #fffbe9;
  text-align: center;
}

.highlight-section h2 {
  font-size: 42px;
  font-weight: 900;
  color: #07140f;
  margin-bottom: 35px;
  letter-spacing: 1px;
}

.highlight-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.highlight-card {
  position: relative;
  height: 310px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  transition: 0.4s ease;
}

.highlight-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 55px rgba(0,0,0,0.28);
}

.highlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.highlight-card:hover img {
  transform: scale(1.08);
}

.highlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.05),
    rgba(0,0,0,0.75)
  );
}

.highlight-card h3 {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 28px;
  z-index: 2;
  color: white;
  font-size: 25px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ================= SLIDER CONTROLS ================= */
.slider-arrow {
  position: absolute;
  top: 52%;
  transform: translateY(-50%);
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(215, 168, 79, 0.75);
  background: rgba(7, 20, 15, 0.62);
  color: #d7a84f;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: 0.35s ease;
  backdrop-filter: blur(10px);
}

.slider-arrow:hover {
  background: #d7a84f;
  color: #07140f;
  transform: translateY(-50%) scale(1.08);
}

.prev-slide {
  left: 34px;
}

.next-slide {
  right: 34px;
}

.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 45;
}

.dot {
  width: 38px;
  height: 5px;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: 0.35s ease;
}

.dot.active {
  width: 58px;
  background: #d7a84f;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1180px) {
  .main-navbar {
    padding: 0 4%;
    gap: 20px;
  }

  .brand-logo img {
    width: 210px;
  }

  .nav-menu {
    gap: 24px;
  }

  .consult-btn {
    padding: 14px 22px;
  }
}

@media (max-width: 980px) {
  .home-hero {
    min-height: 600px;
  }

  .banner-content {
    left: 7%;
    right: 7%;
    top: 56%;
    max-width: 86vw;
  }

  .slider-arrow {
    width: 48px;
    height: 48px;
    font-size: 30px;
  }

  .prev-slide {
    left: 18px;
  }

  .next-slide {
    right: 18px;
  }
}

@media (max-width: 600px) {
  /* Fix: Reduced height to prevent overly long banners on mobile */
  .home-hero {
    height: 60vh;
    min-height: 550px; 
  }

  /* Fix: Center aligned content for better mobile readability */
  .banner-content {
    top: 50%;
    left: 5%;
    right: 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; 
  }

  .banner-tag {
    margin-bottom: 20px;
  }

  .banner-content h1 {
    font-size: clamp(45px, 8vw, 45px);
    margin-bottom: 18px;
  }

  .banner-content p {
    font-size: clamp(16px, 4vw, 16px);
    margin-bottom: 26px;
  }

  /* Fix: Prevented button from stretching across the whole screen */
  .banner-btn {
    width: auto; 
    padding: 14px 30px;
  }

  .slider-arrow {
    display: none;
  }
}

@media (max-width: 1100px) {
  .highlight-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .highlight-section {
    padding: 45px 5%;
  }

  .highlight-section h2 {
    font-size: 30px;
  }

  .highlight-container {
    grid-template-columns: 1fr;
  }

  .highlight-card {
    height: 260px;
  }
}

/* Keyframes for animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
