/* Mirror polish — fonts, dark theme overrides, animations, Astra helpers */

@font-face {
  font-family: eicons;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/mirror/fonts/eicons.woff2") format("woff2");
}

/* Dark Elementor kit — override Astra light inline CSS */
html,
body.elementor-kit-139,
body.elementor-kit-139.ast-page-builder-template {
  background-color: var(--e-global-color-6ba6e9e, #0c0f15);
  color: var(--e-global-color-text, #9da8b6);
}

/* Scroll to top (match live positioning + accent) */
#ast-scroll-top {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 2.1em;
  height: 2.1em;
  align-items: center;
  justify-content: center;
  background-color: var(--e-global-color-accent, #c08d5d);
  color: var(--e-global-color-1b10576, #07090b);
  border-radius: 2px;
  z-index: 99999;
  transition: opacity 0.2s ease;
  font-size: 15px;
}

#ast-scroll-top .ast-icon svg {
  fill: currentColor;
  transform: translate(0, -20%) rotate(180deg);
  width: 1.6em;
}

/* WhatsApp plugin */
.ht-ctc .ht_ctc_style {
  cursor: pointer;
}

.ht-ctc svg {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* Elementor scroll animations — opacity-only (CLS-safe) */
.elementor-invisible {
  visibility: visible;
  opacity: 0;
}

.elementor-invisible.animated {
  visibility: visible;
  opacity: 1;
}

/* LCP hero homepage — jangan tunggu JS fadeIn (hemat ~3s render delay) */
.elementor-element-583c72bd,
.elementor-element-583c72bd.elementor-invisible {
  visibility: visible !important;
  opacity: 1 !important;
}
.elementor-element-583c72bd [data-tp-gsap-heading-text] .heading-title,
.elementor-element-583c72bd [data-tp-gsap-heading-text] .heading-sub-title,
.elementor-element-583c72bd [data-tp-gsap-textblock] .text-content-block,
.elementor-element-583c72bd .tp-mirror-pending .heading-title,
.elementor-element-583c72bd .tp-mirror-pending .text-content-block {
  opacity: 1 !important;
  transform: none !important;
}

.elementor-element-583c72bd .elementor-widget-image img,
.elementor-element-618b1cc img {
  width: 100%;
  height: auto;
  max-width: 693px;
}

/* assets-rectangle — jangan distretch (Lighthouse aspect ratio) */
.elementor-element-7181de55 img.wp-image-400,
img.wp-image-400 {
  width: 520px;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 520 / 410;
  object-fit: contain;
}

/* HFE mobile menu — dark theme */
@media (max-width: 921px) {
  .hfe-nav-menu .hfe-nav-menu__layout-horizontal {
    display: none;
  }

  .hfe-nav-menu.hfe-active-menu .hfe-nav-menu__layout-horizontal {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--e-global-color-3b8e2db, #161b22);
    border: 1px solid var(--e-global-color-b1e58bc, #232a33);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    padding: 1rem;
  }

  .hfe-nav-menu .hfe-nav-menu__toggle {
    display: flex;
  }
}

@media (min-width: 922px) {
  .hfe-nav-menu .hfe-nav-menu__toggle {
    display: none;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

/* Skip link — a11y */
.fm-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100000;
  padding: 0.75rem 1rem;
  background: #f5f7fa;
  color: #07090b;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}

.fm-skip-link:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

/* A11y — kontras teks & tombol (Lighthouse) */
.pt_plus_button.button-style-10 .button-link-wrap {
  background-color: var(--e-global-color-accent, #c08d5d) !important;
  border-color: var(--e-global-color-accent, #c08d5d) !important;
  color: var(--e-global-color-1b10576, #07090b) !important;
}

.pt_plus_button.button-style-10 .button-link-wrap:hover,
.pt_plus_button.button-style-10 .button-link-wrap:focus {
  background-color: var(--e-global-color-primary, #f5f7fa) !important;
  border-color: var(--e-global-color-primary, #f5f7fa) !important;
  color: var(--e-global-color-1b10576, #07090b) !important;
}

/* Tombol "Lihat Kasus" — SVG menggantikan Font Awesome */
.btn-icon.btn-icon--svg.button-after {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.35em;
  width: 0.875em;
  height: 0.875em;
  flex-shrink: 0;
}

.pt_plus_button .button-link-wrap .btn-icon.btn-icon--svg {
  transition: transform 0.2s ease;
}

.pt_plus_button .button-link-wrap:hover .btn-icon.btn-icon--svg,
.pt_plus_button .button-link-wrap:focus .btn-icon.btn-icon--svg {
  transform: translateX(2px);
}

/* Logo carousel — vanilla flex (ganti Swiper JS/CSS) */
.elementor-widget-image-carousel .swiper {
  position: static;
  --fm-carousel-gap: 100px;
  --fm-slides-mobile: 2;
  --fm-slides-tablet: 5;
  --fm-slides-desktop: 5;
  overflow: hidden;
}

.elementor-widget-image-carousel .swiper-slide {
  text-align: center;
}

.elementor-widget-image-carousel .swiper-slide figure {
  line-height: inherit;
}

.elementor-image-carousel-wrapper:not(.swiper-initialized) .swiper-slide {
  max-width: calc(100% / var(--e-image-carousel-slides-to-show, 3));
}

.elementor-image-carousel-wrapper.swiper .elementor-image-carousel,
.elementor-image-carousel-wrapper.swiper .swiper-wrapper,
.elementor-image-carousel-wrapper.fm-carousel-ready .elementor-image-carousel,
.elementor-image-carousel-wrapper.fm-carousel-ready .swiper-wrapper {
  display: flex;
  gap: var(--fm-carousel-gap, 100px);
  align-items: center;
  will-change: transform;
}

.elementor-image-carousel-wrapper.swiper .swiper-slide,
.elementor-image-carousel-wrapper.fm-carousel-ready .swiper-slide {
  flex: 0 0
    calc(
      (100% - var(--fm-carousel-gap, 100px) * (var(--fm-slides-mobile, 2) - 1)) /
        var(--fm-slides-mobile, 2)
    );
  max-width: none;
}

.elementor-image-carousel-wrapper.swiper .swiper-slide-image {
  max-height: 80px;
  width: auto;
  height: auto;
}

@media (min-width: 768px) {
  .elementor-image-carousel-wrapper.swiper .swiper-slide,
  .elementor-image-carousel-wrapper.fm-carousel-ready .swiper-slide {
    flex-basis: calc(
      (100% - var(--fm-carousel-gap, 100px) * (var(--fm-slides-tablet, 5) - 1)) /
        var(--fm-slides-tablet, 5)
    );
  }
}

@media (min-width: 1025px) {
  .elementor-image-carousel-wrapper.swiper .swiper-slide,
  .elementor-image-carousel-wrapper.fm-carousel-ready .swiper-slide {
    flex-basis: calc(
      (100% - var(--fm-carousel-gap, 100px) * (var(--fm-slides-desktop, 5) - 1)) /
        var(--fm-slides-desktop, 5)
    );
  }
}

/* Placeholder icons — reserve space (CLS) */
img[src*="placeholder.png"] {
  width: 56px;
  height: 56px;
  aspect-ratio: 1;
  object-fit: contain;
}

/* WhatsApp — no scale-in animation (CLS) */
.ht-ctc.ht_ctc_entry_animation,
.ht-ctc.ht_ctc_an_entry_corner {
  animation: none !important;
  opacity: 1;
  transform: none;
}

#ht-ctc-chat {
  contain: layout style;
}

/* Plus Addons reveal — reserve vertical space */
[data-tp-gsap-heading-text],
[data-tp-gsap-textblock] {
  min-height: 1em;
}

.elementor-element-583c72bd .text-content-block,
.elementor-element-583c72bd .text-content-block p {
  color: #d1d9e0 !important;
}

.elementor-element-583c72bd .elementor-icon-list-text,
.elementor-element-583c72bd .elementor-icon-list-text a {
  color: var(--e-global-color-primary, #f5f7fa) !important;
}

.elementor-element-583c72bd .elementor-icon-list-text a:hover,
.elementor-element-583c72bd .elementor-icon-list-text a:focus {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Plus Addons-style heading / text reveal */
.tp-mirror-pending .heading-title,
.tp-mirror-pending .heading-sub-title,
.tp-mirror-pending .text-content-block {
  opacity: 0;
  transform: none;
}

.tp-mirror-revealed .heading-title,
.tp-mirror-revealed .heading-sub-title,
.tp-mirror-revealed .text-content-block {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.tp-mirror-fade-up {
  will-change: opacity, transform;
}
