/* Samoedra Bintang Indonesia - Clean Custom Styles */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   1. Lightweight Performance Engine - Zero Lag / Instant Render
   ========================================================================== */
.elementor-invisible {
  visibility: visible !important;
  opacity: 1 !important;
}

.animated,
.animated-slow,
.animated-fast {
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Header & Footer Logo clickable pointer styling */
.elementor-element-269919f5 a,
.elementor-element-d2f9c6b a,
.elementor-element-62f4f2fd a,
.elementor-element-4ac2dc4 a {
  display: inline-block !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}
.elementor-element-269919f5 a:hover,
.elementor-element-d2f9c6b a:hover,
.elementor-element-62f4f2fd a:hover {
  opacity: 0.88 !important;
}

/* Subtle micro-hover on action buttons */
.elementor-animation-float {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.elementor-animation-float:hover {
  transform: translateY(-3px) !important;
}

/* ==========================================================================
   2. Hero Background & Slideshow
   ========================================================================== */
.elementor-element-17ae715e {
  position: relative !important;
  overflow: hidden !important;
  background-image: url('../../media/hero02.jpg');
  background-size: cover;
  background-position: center center;
}

.elementor-background-slideshow,
.custom-hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.elementor-background-slideshow__slide,
.custom-hero-slideshow .custom-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 8s ease-out;
  transform: scale(1);
}

.elementor-background-slideshow__slide.active,
.custom-hero-slideshow .custom-slide.active {
  opacity: 1;
  transform: scale(1.04);
}

.elementor-background-overlay {
  z-index: 1 !important;
  pointer-events: none;
}

.elementor-container {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   2. Sticky Header (Desktop & Mobile)
   ========================================================================== */
header.elementor-location-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  background-color: #000125 !important;
  transition: box-shadow 0.3s ease, background-color 0.3s ease !important;
}

header.elementor-location-header.is-sticky,
header.elementor-location-header.elementor-sticky--active {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.45) !important;
}

header.elementor-location-header .elementor-element-f657579 {
  background-color: #000125 !important;
}

header.elementor-location-header .elementor-element-498e32a {
  background-color: #000125 !important;
}

/* ==========================================================================
   3. Modal Right Drawer / Sidemenu (Popup ID 143 - Identical to Original Site)
   ========================================================================== */
#elementor-popup-modal-143 {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
  z-index: 2147483640 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}

#elementor-popup-modal-143.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#elementor-popup-modal-143 .dialog-widget-content {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 440px !important;
  max-width: 90vw !important;
  height: 100vh !important;
  background-color: #000125 !important;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.75) !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 2147483647 !important;
  transform: translate3d(100%, 0, 0) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  will-change: transform !important;
}

#elementor-popup-modal-143.show .dialog-widget-content {
  transform: translate3d(0, 0, 0) !important;
}

/* Close button is completely removed / hidden as requested */
#elementor-popup-modal-143 .dialog-close-button,
#elementor-popup-modal-143 .dialog-lightbox-close-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#elementor-popup-modal-143 .dialog-message {
  flex: 1 !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#elementor-popup-modal-143 .dialog-message::-webkit-scrollbar {
  display: none !important;
}

/* Force popup elementor containers to display cleanly */
#elementor-popup-modal-143 [data-elementor-type=popup],
#elementor-popup-modal-143 .elementor-143,
#elementor-popup-modal-143 .elementor-location-popup {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: #000125 !important;
  min-height: 100% !important;
  width: 100% !important;
}

#elementor-popup-modal-143 .elementor-section {
  display: block !important;
  visibility: visible !important;
}

/* Solid Orange Top Banner with Centered White Logo (Image 1) */
#elementor-popup-modal-143 .elementor-element-294a651 {
  background-color: #FF6004 !important;
  padding: 34px 20px 30px 20px !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#elementor-popup-modal-143 .elementor-element-4ac2dc4 {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

#elementor-popup-modal-143 .elementor-element-4ac2dc4 img {
  max-width: 250px !important;
  width: 62% !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Dark Navy Content Section */
#elementor-popup-modal-143 .elementor-element-3618649 {
  background-color: #000125 !important;
  padding: 55px 28px 70px 28px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Heading: "Permintaan Penawaran Harga :" (Pure White, Bold, Centered) */
#elementor-popup-modal-143 .elementor-element-254265d {
  text-align: center !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
}

#elementor-popup-modal-143 .elementor-element-254265d .elementor-heading-title {
  color: #FFFFFF !important;
  font-family: 'Poppins', 'Roboto', sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  text-align: center !important;
  letter-spacing: -0.2px !important;
  margin: 0 !important;
}

/* Emails Below Heading (Pure White, No Underline, Centered, Two Lines) */
#elementor-popup-modal-143 .elementor-element-611b2a4 {
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

#elementor-popup-modal-143 .elementor-element-611b2a4 .elementor-heading-title {
  color: #FFFFFF !important;
  font-family: 'Poppins', 'Roboto', sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  text-align: center !important;
  display: block !important;
  margin: 0 !important;
}

#elementor-popup-modal-143 .elementor-element-611b2a4 a,
#elementor-popup-modal-143 .elementor-element-611b2a4 .elementor-heading-title a {
  color: #FFFFFF !important;
  font-family: 'Poppins', 'Roboto', sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  display: block !important;
  line-height: 1.7 !important;
  transition: color 0.2s ease !important;
}

#elementor-popup-modal-143 .elementor-element-611b2a4 a:hover,
#elementor-popup-modal-143 .elementor-element-611b2a4 .elementor-heading-title a:hover {
  color: #FF6004 !important;
  text-decoration: none !important;
}

/* ==========================================================================
   4. Mobile Header & Dropdown Navigation (Identical to Image 2)
   ========================================================================== */
@media (max-width: 1024px) {
  header.elementor-location-header {
    background-color: #000125 !important;
  }

  header.elementor-location-header .elementor-element-f657579 {
    display: none !important;
  }

  header.elementor-location-header .elementor-element-498e32a {
    display: block !important;
    position: relative !important;
    background-color: #000125 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }
  
  .elementor-element-498e32a .elementor-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 64px !important;
  }

  /* Left column: Dark Navy box with Logo */
  .elementor-element-498e32a .elementor-element-b72de2f {
    flex: 1 !important;
    width: auto !important;
    background-color: #000125 !important;
    padding: 10px 18px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
  }

  .elementor-element-498e32a .elementor-element-b72de2f .elementor-widget-wrap {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .elementor-element-498e32a .elementor-element-d2f9c6b {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
  }

  .elementor-element-498e32a .elementor-element-d2f9c6b img {
    height: 38px !important;
    max-height: 40px !important;
    width: auto !important;
    max-width: 220px !important;
    display: block !important;
    object-fit: contain !important;
  }

  /* Right column: Solid Orange box with Toggle (Image 2) */
  .elementor-element-498e32a .elementor-element-3470db9 {
    width: 76px !important;
    min-width: 76px !important;
    background-color: #FF6004 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    align-self: stretch !important;
    height: 100% !important;
  }

  .elementor-element-498e32a .elementor-element-3470db9 .elementor-widget-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .elementor-element-31f8ed9 {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
  }

  /* Menu Toggle Button: Square Box with White Border (Image 2) */
  .elementor-element-31f8ed9 .elementor-menu-toggle {
    width: 44px !important;
    height: 44px !important;
    background-color: #FF6004 !important;
    border: 2px solid #FFFFFF !important;
    border-radius: 6px !important;
    color: #FFFFFF !important;
    padding: 0 !important;
    margin: 0 auto !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    outline: none !important;
  }

  .elementor-element-31f8ed9 .elementor-menu-toggle:hover {
    background-color: #e55603 !important;
    border-color: #FFFFFF !important;
  }

  /* Active state toggle (Image 2: white rounded outline & white X) */
  .elementor-element-31f8ed9 .elementor-menu-toggle.elementor-active {
    background-color: #FF6004 !important;
    border: 2px solid #FFFFFF !important;
    border-radius: 6px !important;
    color: #FFFFFF !important;
  }

  /* Icon font fallbacks for Elementor */
  .elementor-menu-toggle .eicon-menu-bar:before {
    content: "\f0c9" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
  }

  .elementor-menu-toggle .eicon-close:before {
    content: "\f00d" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
  }

  /* Toggle Icon Display Switch */
  .elementor-element-31f8ed9 .elementor-menu-toggle:not(.elementor-active) .elementor-menu-toggle__icon--close {
    display: none !important;
  }

  .elementor-element-31f8ed9 .elementor-menu-toggle:not(.elementor-active) .elementor-menu-toggle__icon--open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFFFFF !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }

  .elementor-element-31f8ed9 .elementor-menu-toggle.elementor-active .elementor-menu-toggle__icon--open {
    display: none !important;
  }

  .elementor-element-31f8ed9 .elementor-menu-toggle.elementor-active .elementor-menu-toggle__icon--close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFFFFF !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  /* Full-width mobile dropdown beneath sticky header (Image 2) */
  .elementor-element-498e32a {
    position: relative !important;
  }

  .elementor-element-31f8ed9 .elementor-nav-menu--dropdown.elementor-nav-menu__container {
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    background-color: #FF6004 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45) !important;
    z-index: 999999 !important;
    overflow: hidden !important;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .elementor-element-31f8ed9 .elementor-nav-menu--dropdown.elementor-nav-menu__container:not(.is-open) {
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  .elementor-element-31f8ed9 .elementor-nav-menu--dropdown.elementor-nav-menu__container.is-open {
    max-height: 480px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .elementor-element-31f8ed9 .elementor-nav-menu--dropdown ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  .elementor-element-31f8ed9 .elementor-nav-menu--dropdown li {
    display: block !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .elementor-element-31f8ed9 .elementor-nav-menu--dropdown li:last-child {
    border-bottom: none !important;
  }

  .elementor-element-31f8ed9 .elementor-nav-menu--dropdown a {
    display: block !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.4px !important;
    color: #000125 !important;
    background-color: transparent !important;
    padding: 18px 30px !important;
    text-decoration: none !important;
    text-align: left !important;
    transition: background-color 0.2s ease, padding-left 0.2s ease !important;
  }

  /* Solid orange background retained for active item (Image 2) */
  .elementor-element-31f8ed9 .elementor-nav-menu--dropdown a.elementor-item-active,
  .elementor-element-31f8ed9 .elementor-nav-menu--dropdown a.current {
    background-color: transparent !important;
    color: #000125 !important;
  }

  .elementor-element-31f8ed9 .elementor-nav-menu--dropdown a:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #000125 !important;
    padding-left: 36px !important;
  }
}

/* ==========================================================================
   5. Home Client Logos Carousel (Slider)
   ========================================================================== */
.elementor-widget-image-carousel .elementor-image-carousel-wrapper {
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
  padding: 15px 0 35px 0 !important;
  user-select: none !important;
}

.elementor-widget-image-carousel .elementor-image-carousel.swiper-wrapper {
  display: flex !important;
  align-items: center !important;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  will-change: transform !important;
  margin: 0 !important;
}

.elementor-widget-image-carousel .swiper-slide {
  flex: 0 0 calc(100% / 7) !important;
  max-width: calc(100% / 7) !important;
  box-sizing: border-box !important;
  padding: 0 14px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

@media (max-width: 1200px) {
  .elementor-widget-image-carousel .swiper-slide {
    flex: 0 0 calc(100% / 5) !important;
    max-width: calc(100% / 5) !important;
  }
}

@media (max-width: 768px) {
  .elementor-widget-image-carousel .swiper-slide {
    flex: 0 0 calc(100% / 3) !important;
    max-width: calc(100% / 3) !important;
    padding: 0 10px !important;
  }
}

@media (max-width: 480px) {
  .elementor-widget-image-carousel .swiper-slide {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 0 8px !important;
  }
}

.elementor-widget-image-carousel .swiper-slide-inner {
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

.elementor-widget-image-carousel .swiper-slide-image {
  max-width: 100% !important;
  height: auto !important;
  max-height: 80px !important;
  object-fit: contain !important;
  filter: grayscale(75%) opacity(0.85);
  transition: filter 0.3s ease, transform 0.3s ease !important;
}

.elementor-widget-image-carousel .swiper-slide:hover .swiper-slide-image {
  filter: grayscale(0%) opacity(1) !important;
  transform: scale(1.08) !important;
}

.elementor-widget-image-carousel .swiper-pagination {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
}

.elementor-widget-image-carousel .swiper-pagination-bullet {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background-color: #cbd5e1 !important;
  cursor: pointer !important;
  transition: background-color 0.3s, transform 0.3s !important;
  display: inline-block !important;
}

.elementor-widget-image-carousel .swiper-pagination-bullet-active {
  background-color: #FF6004 !important;
  transform: scale(1.3) !important;
}

/* ==========================================================================
   6. Image Lightbox Popup (Project Pages & Galleries)
   ========================================================================== */
.custom-image-lightbox {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 1, 37, 0.92) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 10000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.custom-image-lightbox.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.custom-image-lightbox__dialog {
  position: relative !important;
  max-width: 92vw !important;
  max-height: 92vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  transform: scale(0.92) !important;
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) !important;
}

.custom-image-lightbox.active .custom-image-lightbox__dialog {
  transform: scale(1) !important;
}

.custom-image-lightbox__img {
  max-width: 88vw !important;
  max-height: 80vh !important;
  width: auto !important;
  height: auto !important;
  border-radius: 6px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
  object-fit: contain !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.custom-image-lightbox__caption {
  margin-top: 14px !important;
  color: #FFFFFF !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-align: center !important;
  letter-spacing: 0.5px !important;
  max-width: 80vw !important;
}

.custom-image-lightbox__close {
  position: absolute !important;
  top: -48px !important;
  right: 0 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-size: 26px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.25s, transform 0.25s !important;
  z-index: 10 !important;
}

.custom-image-lightbox__close:hover {
  background: #FF6004 !important;
  transform: rotate(90deg) !important;
}

/* ==========================================================================
   7. Google Maps Embed
   ========================================================================== */
.elementor-widget-google_maps .elementor-custom-embed {
  line-height: 0 !important;
  width: 100% !important;
}

.elementor-widget-google_maps iframe {
  width: 100% !important;
  height: 480px !important;
  min-height: 450px !important;
  border: 0 !important;
  display: block !important;
}

/* ==========================================================================
   8. Button & Form Styles
   ========================================================================== */
.elementor-button {
  transition: all 0.25s ease-in-out;
}

.elementor-button:hover {
  opacity: 0.92;
}

/* Form Alert Boxes */
#form-feedback-message {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   5. 404 Page Styling
   ========================================================================== */
.error-404-container {
  padding: 100px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.error-404-code {
  font-size: 110px;
  font-weight: 800;
  color: #12284c;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.error-404-title {
  font-size: 32px;
  font-weight: 700;
  color: #2b2b2b;
  margin-bottom: 15px;
}

.error-404-text {
  font-size: 17px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 35px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.btn-back-home {
  display: inline-block;
  background-color: #f39c12;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 34px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.btn-back-home:hover {
  background-color: #d68910;
  transform: translateY(-2px);
}
