/*
  PERBAIKAN FINAL SLIDER BERANDA
  File ini sengaja dipanggil setelah CSS lama supaya tampilan awal tidak berantakan.
*/

html,
body {
  margin: 0 !important;
  width: 100% !important;
  overflow-x: hidden !important;
}

body {
  background: #04130f !important;
}

.site-noise {
  z-index: 0 !important;
}

/* Header dibuat stabil, tidak ikut membesar oleh ukuran logo asli */
body > header.topbar {
  position: fixed !important;
  top: 16px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: min(1160px, calc(100vw - 32px)) !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  padding: 9px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .15) !important;
  background: rgba(4, 19, 15, .86) !important;
  box-shadow: 0 14px 42px rgba(0, 0, 0, .28) !important;
  backdrop-filter: blur(18px) !important;
  z-index: 1000 !important;
}

body > header.topbar .brand {
  width: auto !important;
  min-width: 255px !important;
  max-width: 330px !important;
  height: 56px !important;
  min-height: 56px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
}

body > header.topbar .brand > img {
  display: block !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  flex: 0 0 52px !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 5px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body > header.topbar .brand span {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

body > header.topbar .brand strong {
  display: block !important;
  margin: 0 !important;
  color: #fffaf0 !important;
  font-size: 1.05rem !important;
  font-weight: 850 !important;
  line-height: 1.08 !important;
  letter-spacing: -.03em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body > header.topbar .brand small {
  display: block !important;
  margin-top: 3px !important;
  color: #f2d37e !important;
  font-size: .73rem !important;
  line-height: 1.15 !important;
  max-width: 245px !important;
  white-space: normal !important;
}

body > header.topbar .nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 2px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

body > header.topbar .nav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 7px 9px !important;
  color: rgba(247,239,224,.84) !important;
  font-size: .86rem !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  border-radius: 999px !important;
}

body > header.topbar .nav a:hover {
  color: #f2d37e !important;
  background: rgba(255,255,255,.07) !important;
}

body > header.topbar .topbar__actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

body > header.topbar #themeToggle {
  display: none !important;
}

body > header.topbar .btn--primary {
  min-height: 40px !important;
  padding: 9px 14px !important;
  font-size: .84rem !important;
  white-space: nowrap !important;
}

/* Area slide penuh. Semua teks berada di atas gambar, bukan mendorong layout. */
main > section#beranda.hero-slider,
main > section#beranda.hero {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100svh !important;
  min-height: 690px !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: #04130f !important;
  isolation: isolate !important;
}

#beranda .hero-slider__track,
#beranda .hero-slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

#beranda .hero-slide {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .8s ease, visibility .8s ease !important;
}

#beranda .hero-slide.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#beranda .hero-slide__image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  z-index: 0 !important;
  filter: saturate(1.04) contrast(1.04) !important;
  transform: scale(1.04) !important;
  transition: transform 7s ease !important;
}

#beranda .hero-slide.is-active .hero-slide__image {
  transform: scale(1) !important;
}

#beranda .hero-slide__overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    linear-gradient(90deg, rgba(3,18,14,.91) 0%, rgba(3,18,14,.78) 38%, rgba(3,18,14,.38) 68%, rgba(3,18,14,.18) 100%),
    linear-gradient(0deg, rgba(3,18,14,.82) 0%, rgba(3,18,14,.08) 50%, rgba(3,18,14,.68) 100%) !important;
}

#beranda .hero-slide__content,
#beranda .hero__content {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 128px clamp(28px, 7vw, 92px) 92px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  transform: none !important;
  color: #fffaf0 !important;
}

/* Jika ada logo besar lama di hero, paksa hilang supaya tidak jatuh ke atas slide */
#beranda .hero__logo,
#beranda .hero__badges,
#beranda .hero__visual,
#beranda .hero__shade {
  display: none !important;
}

#beranda .eyebrow {
  width: min(760px, 92vw) !important;
  margin: 0 0 14px !important;
  color: #f2d37e !important;
  font-size: clamp(.72rem, 1.1vw, .86rem) !important;
  font-weight: 850 !important;
  line-height: 1.45 !important;
  letter-spacing: .13em !important;
  text-transform: uppercase !important;
  text-shadow: 0 8px 28px rgba(0,0,0,.50) !important;
}

#beranda h1 {
  width: min(760px, 86vw) !important;
  max-width: 760px !important;
  margin: 0 !important;
  color: #f2d37e !important;
  font-size: clamp(2.45rem, 5vw, 4.85rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.055em !important;
  text-shadow: 0 18px 56px rgba(0,0,0,.62) !important;
}

#beranda .hero__lead {
  width: min(650px, 90vw) !important;
  max-width: 650px !important;
  margin: 18px 0 0 !important;
  color: rgba(255,250,240,.92) !important;
  font-size: clamp(.98rem, 1.35vw, 1.12rem) !important;
  line-height: 1.68 !important;
  text-shadow: 0 10px 32px rgba(0,0,0,.48) !important;
}

#beranda .hero__actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 28px 0 0 !important;
}

#beranda .hero__actions .btn {
  min-height: 46px !important;
  padding: 11px 18px !important;
}

#beranda .hero-slider__arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 6 !important;
  width: 46px !important;
  height: 46px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  background: rgba(4,19,15,.50) !important;
  color: #fffaf0 !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  backdrop-filter: blur(10px) !important;
}

#beranda .hero-slider__arrow--prev {
  left: 24px !important;
}

#beranda .hero-slider__arrow--next {
  right: 24px !important;
}

#beranda .hero-slider__dots {
  position: absolute !important;
  z-index: 6 !important;
  left: 50% !important;
  bottom: 30px !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

#beranda .hero-slider__dot {
  width: 34px !important;
  height: 7px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.36) !important;
}

#beranda .hero-slider__dot.is-active {
  width: 54px !important;
  background: #f2d37e !important;
}

@media (max-width: 1180px) {
  body > header.topbar {
    width: calc(100vw - 24px) !important;
    gap: 8px !important;
  }

  body > header.topbar .brand {
    min-width: 230px !important;
    max-width: 285px !important;
  }

  body > header.topbar .brand small {
    max-width: 210px !important;
  }

  body > header.topbar .nav a {
    padding-inline: 7px !important;
    font-size: .80rem !important;
  }
}

@media (max-width: 980px) {
  body > header.topbar {
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
    border-radius: 24px !important;
  }

  body > header.topbar .nav,
  body > header.topbar .btn--primary {
    display: none !important;
  }

  body > header.topbar .menu-toggle {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 44px !important;
  }

  body > header.topbar .brand {
    min-width: 0 !important;
    max-width: calc(100% - 56px) !important;
  }

  #mobileMenu.mobile-menu {
    top: 94px !important;
    z-index: 999 !important;
  }

  #beranda .hero-slide__content,
  #beranda .hero__content {
    padding: 118px 28px 112px !important;
  }

  #beranda h1 {
    width: min(760px, 92vw) !important;
    font-size: clamp(2.5rem, 8.5vw, 4.25rem) !important;
  }

  #beranda .hero-slide__overlay {
    background:
      linear-gradient(90deg, rgba(3,18,14,.93), rgba(3,18,14,.64)),
      linear-gradient(0deg, rgba(3,18,14,.84), rgba(3,18,14,.20)) !important;
  }
}

@media (max-width: 640px) {
  body > header.topbar {
    top: 10px !important;
    width: calc(100vw - 18px) !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 8px 10px !important;
  }

  body > header.topbar .brand > img {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    flex-basis: 46px !important;
    border-radius: 12px !important;
  }

  body > header.topbar .brand strong {
    font-size: .88rem !important;
  }

  body > header.topbar .brand small {
    display: none !important;
  }

  main > section#beranda.hero-slider,
  main > section#beranda.hero {
    min-height: 700px !important;
  }

  #beranda .hero-slide__content,
  #beranda .hero__content {
    padding: 94px 18px 98px !important;
    justify-content: center !important;
  }

  #beranda .eyebrow {
    font-size: .66rem !important;
    line-height: 1.5 !important;
    letter-spacing: .10em !important;
  }

  #beranda h1 {
    width: 100% !important;
    font-size: clamp(2.1rem, 11vw, 3.25rem) !important;
    line-height: 1.06 !important;
  }

  #beranda .hero__lead {
    font-size: .94rem !important;
    line-height: 1.58 !important;
  }

  #beranda .hero__actions .btn {
    width: 100% !important;
  }

  #beranda .hero-slider__arrow {
    display: none !important;
  }

  #beranda .hero-slider__dots {
    bottom: 22px !important;
  }
}
