/**
 * Task 36A — Why Choose ABP / Mengapa Memilih ABP (homepage only).
 * Task 53 — Graha ABP cinematic 4-photo slideshow in the existing photo frame.
 * Scoped under .page-home .why-showcase.
 * Composition: photo | intro with stats pinned to photo height; tight benefits.
 */

.page-home .why-showcase {
  --why-ivory: #f7f3eb;
  --why-ivory-deep: #efe8dc;
  --why-white: #fffcf7;
  --why-navy: #0f1c2c;
  --why-navy-soft: #243447;
  --why-gold: #c6a56d;
  --why-gold-soft: rgba(198, 165, 109, 0.28);
  --why-turquoise: #2a8f9a;
  --why-turquoise-soft: rgba(42, 143, 154, 0.14);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(720px 340px at 12% 18%, var(--why-turquoise-soft), transparent 62%),
    radial-gradient(820px 380px at 92% 8%, rgba(198, 165, 109, 0.14), transparent 58%),
    linear-gradient(180deg, var(--why-ivory) 0%, var(--why-white) 52%, var(--why-ivory-deep) 100%);
  padding-block: clamp(2.75rem, 5.2vw, 4.5rem);
  color: var(--why-navy);
}

.page-home .why-showcase__wrap {
  position: relative;
  z-index: 1;
  max-width: 74rem;
}

/* Equal-height editorial columns — kills the empty void under stats */
.page-home .why-showcase__editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.35rem, 2.8vw, 2.4rem);
  align-items: stretch;
}

.page-home .why-showcase__photo {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-home .why-showcase__frame {
  position: relative;
  display: block;
  width: 100%;
  flex: 0 0 auto;
  padding: clamp(0.45rem, 1vw, 0.7rem);
  border-radius: 1.25rem;
  background:
    linear-gradient(160deg, #0b1a2e 0%, #06101c 55%, #102038 100%) !important;
  border: 1px solid rgba(198, 165, 109, 0.4) !important;
  box-shadow:
    0 16px 36px rgba(15, 28, 44, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.08) inset,
    inset 0 0 0 1px rgba(0, 0, 0, 0.25) !important;
}

.page-home .why-showcase__frame::after {
  content: "";
  position: absolute;
  inset: 0.3rem;
  border-radius: 1rem;
  pointer-events: none;
  border: 1px solid rgba(212, 176, 106, 0.18);
  z-index: 4;
}

/* Task 53 — slideshow stage */
.page-home .why-slides__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 0.9rem;
  background: #06101c;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.35);
}

.page-home .why-slides__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s ease, visibility 0.85s ease;
  z-index: 1;
}

.page-home .why-slides__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.page-home .why-showcase__img,
.page-home .why-slides__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0.9rem;
  background: #06101c;
  transform: scale(1);
}

.page-home .why-slides__slide.is-active .why-slides__img {
  animation: why-kb 9s ease-in-out infinite alternate;
}

.page-home .why-slides__veil {
  position: absolute;
  inset: 0;
  border-radius: 0.9rem;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 16, 28, 0.08) 0%, rgba(6, 16, 28, 0.15) 42%, rgba(6, 16, 28, 0.78) 100%);
  z-index: 2;
}

.page-home .why-slides__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 1.15rem 1.15rem 1.25rem;
  pointer-events: none;
}

.page-home .why-slides__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 550;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.page-home .why-slides__sub {
  margin: 0.35rem 0 0;
  max-width: 34rem;
  font-size: clamp(0.82rem, 1.3vw, 0.95rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.page-home .why-slides__ui {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.65rem;
  pointer-events: none;
}

.page-home .why-slides__nav,
.page-home .why-slides__dot {
  pointer-events: auto;
}

.page-home .why-slides__nav {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 176, 106, 0.45);
  background: rgba(6, 16, 28, 0.55);
  color: #f4efe6;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}

.page-home .why-slides__nav:hover,
.page-home .why-slides__nav:focus-visible {
  border-color: rgba(212, 176, 106, 0.85);
  background: rgba(6, 16, 28, 0.78);
  outline: none;
}

.page-home .why-slides__nav:focus-visible {
  outline: 2px solid #d4b06a;
  outline-offset: 2px;
}

.page-home .why-slides__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1;
}

.page-home .why-slides__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 230, 0.45);
  background: rgba(244, 239, 230, 0.25);
  cursor: pointer;
}

.page-home .why-slides__dot.is-active {
  width: 1.15rem;
  background: #d4b06a;
  border-color: #d4b06a;
}

.page-home .why-slides__dot:focus-visible {
  outline: 2px solid #d4b06a;
  outline-offset: 2px;
}

@keyframes why-kb {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}

.page-home .why-showcase__caption {
  margin: 0.55rem 0 0;
  padding-inline: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--why-navy-soft);
}

/* Intro fills photo column height; stats settle at the bottom */
.page-home .why-showcase__intro {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

.page-home .why-showcase__head {
  margin: 0;
  max-width: 36rem;
  flex: 0 0 auto;
}

.page-home .why-showcase__head .kicker {
  color: var(--why-turquoise);
  letter-spacing: 0.18em;
  margin-bottom: 0.65rem;
}

.page-home .why-showcase__head .section-title {
  max-width: 14ch;
  font-family: var(--serif);
  font-weight: 550;
  line-height: 1.08;
  color: var(--why-navy);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
}

.page-home .why-showcase__lede {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  color: rgba(15, 28, 44, 0.78);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.65;
}

.page-home .why-showcase__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.page-home .why-stat {
  min-width: 0;
  padding: 0.8rem 0.9rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(198, 165, 109, 0.3);
  box-shadow: 0 6px 18px rgba(15, 28, 44, 0.045);
}

.page-home .why-stat__value {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--why-gold);
}

.page-home .why-stat__label {
  margin: 0.4rem 0 0.25rem;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--why-navy);
}

.page-home .why-stat__note {
  margin: 0;
  color: rgba(15, 28, 44, 0.66);
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Benefits: tighter, same rhythm as stats — less empty gutter */
.page-home .why-showcase__benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.9rem;
  margin-top: clamp(1.15rem, 2.2vw, 1.65rem);
  padding-top: clamp(1.05rem, 2vw, 1.4rem);
  border-top: 1px solid var(--why-gold-soft);
}

.page-home .why-benefit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  background: rgba(255, 252, 247, 0.78);
  border: 1px solid rgba(15, 28, 44, 0.07);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-home .why-benefit__icon {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  margin-top: 0.05rem;
  border-radius: 999px;
  color: var(--why-turquoise);
  background: var(--why-turquoise-soft);
}

.page-home .why-benefit__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.page-home .why-benefit__copy h3 {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  font-weight: 550;
  line-height: 1.18;
  color: var(--why-navy);
}

.page-home .why-benefit__copy p {
  margin: 0;
  max-width: 44ch;
  color: rgba(15, 28, 44, 0.72);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (hover: hover) and (pointer: fine) {
  .page-home .why-benefit:hover {
    border-color: rgba(198, 165, 109, 0.45);
    box-shadow: 0 8px 20px rgba(15, 28, 44, 0.055);
  }
}

/* Entrance reveals — never scale/zoom the photograph */
.page-home .why-showcase .why-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.page-home .why-showcase .why-reveal.is-in {
  opacity: 1;
  transform: none;
}

.page-home .why-showcase .why-showcase__photo.why-reveal {
  transform: none;
  transition: opacity 0.85s ease;
  transition-delay: 0.05s;
}

.page-home .why-showcase .why-showcase__photo.why-reveal.is-in {
  transform: none;
}

.page-home .why-showcase .why-showcase__intro.why-reveal {
  transition-delay: 0.12s;
}

.page-home .why-showcase .why-showcase__benefits.why-reveal {
  transition-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .why-showcase .why-reveal,
  .page-home .why-benefit {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .page-home .why-slides__slide {
    transition: none !important;
  }

  .page-home .why-slides__slide.is-active .why-slides__img {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 980px) {
  .page-home .why-showcase__editorial {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .page-home .why-showcase__intro {
    min-height: 0;
    height: auto;
  }

  .page-home .why-showcase__stats {
    margin-top: 1.15rem;
    padding-top: 0;
  }

  .page-home .why-showcase__head .section-title {
    max-width: 18ch;
  }

  .page-home .why-stat__note {
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 640px) {
  .page-home .why-showcase {
    padding-block: clamp(2.2rem, 7vw, 3rem);
  }

  .page-home .why-showcase__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1rem;
  }

  .page-home .why-showcase__benefits {
    grid-template-columns: 1fr;
    margin-top: 1rem;
    padding-top: 1rem;
    gap: 0.55rem;
  }

  .page-home .why-stat {
    padding: 0.75rem 0.7rem 0.8rem;
  }

  .page-home .why-stat__note {
    font-size: 0.76rem;
  }

  .page-home .why-slides__copy {
    padding: 0.85rem;
  }

  .page-home .why-slides__nav {
    width: 1.9rem;
    height: 1.9rem;
  }
}
