/* ==========================================================================
   HERO SLIDER - "BEST QUALITY" MINIMALIS-ELEGAN
   Terinspirasi dari desain arsitektural modern Kubikelku
   Dibuat untuk: Bisnis Kaca Tempered, Aluminium, dan Kubikel Toilet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES (PALET WARNA & PENGATURAN DAPAT DIEDIT DI SINI)
   -------------------------------------------------------------------------- */
:root {
  /* Warna Dasar */
  --hero-bg: #F4F3F1;                  /* Latar belakang utama off-white */
  --hero-title-color: #2E1E17;        /* Coklat tua pekat untuk judul besar */
  --hero-subtitle-color: #42352E;     /* Coklat medium untuk subjudul serif */
  --hero-text-muted: #6B5D55;         /* Teks sekunder / keterangan */
  
  /* Aksen & Card Kubikelku */
  --hero-accent-taupe: #A88B7D;       /* Aksen garis vertikal & bullet timeline */
  --hero-bar-bg: #BFADA3;             /* Blok bawah kontak WA (sudut melengkung) */
  --hero-card-bg: #B9A69C;            /* Kartu coklat pembungkus foto 2 */
  --hero-arch-stroke: #C4A898;        /* Garis pelangi arch konsentris SVG */
  --hero-nav-bg: #3A2A22;             /* Tombol panah bulat gelap */
  --hero-nav-hover: #543E33;          /* Hover panah */
  --hero-white: #FFFFFF;
  
  /* Tombol Floating */
  --hero-wa-green: #25D366;           /* Hijau khas WhatsApp */
  --hero-ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);

  /* Tipografi */
  --font-heading: 'Poppins', 'Outfit', sans-serif;
  --font-serif: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Transisi */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET DASAR & CONTAINER HERO
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--hero-bg);
  color: var(--hero-title-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.hero-slider-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-color: var(--hero-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Swiper Container */
.hero-swiper {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-swiper .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--hero-bg);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   3. GRID 2 KOLOM (50% / 50%) DESKTOP
   -------------------------------------------------------------------------- */
.hero-slide-inner {
  width: 100%;
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px 80px 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
}

/* ==========================================================================
   4. KOLOM KIRI (KONTEN TEKS)
   ========================================================================== */
.hero-col-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  height: 100%;
  padding-bottom: 90px; /* Ruang untuk bottom bar */
}

/* Grup Judul Besar & Timeline List */
.hero-title-wrapper {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.5vw, 55px);
  margin-bottom: 24px;
}

/* Judul Besar 2 Baris ("Best" / "Quality") */
.hero-title-box {
  display: flex;
  flex-direction: column;
}

.hero-title-line {
  font-family: var(--font-heading);
  font-size: clamp(56px, 7.5vw, 115px);
  font-weight: 700;
  color: var(--hero-title-color);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: none;
  display: block;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

/* Timeline List Vertikal (3 Item dengan Garis Penghubung) */
.hero-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: 20px;
}

/* Garis vertikal tipis timeline */
.hero-timeline::before {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 10px;
  bottom: 10px;
  width: 1.5px;
  background-color: var(--hero-accent-taupe);
  opacity: 0.6;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

/* Bullet bulat kecil */
.timeline-dot {
  position: absolute;
  left: -20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--hero-accent-taupe);
  box-shadow: 0 0 0 2px var(--hero-bg);
}

.timeline-label {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 600;
  color: var(--hero-title-color);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Subjudul Italic Serif (Cormorant / EB Garamond) */
.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.4vw, 38px);
  font-style: italic;
  font-weight: 500;
  color: var(--hero-subtitle-color);
  line-height: 1.25;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

/* Jika di dalam website ber-navbar (<main>), sesuaikan tinggi agar pas dalam 1 layar */
main .hero-slider-section {
  height: calc(100vh - 104px);
  min-height: 600px;
}

/* --------------------------------------------------------------------------
   5. BAR KONTAK BAWAH (MORE INFO + VISIT US)
   -------------------------------------------------------------------------- */
.hero-bottom-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 30px;
  z-index: 10;
}

/* Blok Coklat dengan Sudut Kanan Atas Melengkung 80px */
.bottom-bar-block {
  background-color: var(--hero-bar-bg);
  border-top-right-radius: 80px;
  padding: 16px 45px 16px max(40px, calc((100vw - 1600px) / 2 + 80px));
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--hero-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.bottom-bar-block .bar-icon-wrap {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bottom-bar-block .bar-icon-wrap svg {
  fill: currentColor;
}

.bar-text-group {
  display: flex;
  flex-direction: column;
}

.bar-text-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  line-height: 1.2;
}

.bar-text-link {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.bar-text-link:hover {
  opacity: 0.8;
}

/* Bagian Visit Us */
.bottom-bar-visit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  color: var(--hero-title-color);
}

.bottom-bar-visit .bar-icon-globe {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(168, 139, 125, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-title-color);
  flex-shrink: 0;
}

.bottom-bar-visit .bar-text-label {
  color: var(--hero-text-muted);
}

.bottom-bar-visit .bar-text-link {
  color: var(--hero-title-color);
  font-size: 13px;
}

/* ==========================================================================
   6. KOLOM KANAN (KOMPOSISI VISUAL: ORNAMEN ARCH, FOTO 1, KARTU FOTO 2)
   ========================================================================== */
.hero-col-right {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: end;
  gap: 24px;
  position: relative;
  height: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Sub-kolom Kiri: Ornamen Arch di atas + Foto 1 Kapsul di bawah */
.visual-left-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  height: 100%;
  justify-content: flex-end;
}

/* Ornamen Pelangi / Arch SVG */
.hero-arch-ornament {
  width: 100%;
  max-width: 210px;
  height: auto;
  display: block;
}

.hero-arch-ornament .arch-path {
  fill: none;
  stroke: var(--hero-arch-stroke);
  stroke-width: 8px;
  stroke-linecap: round;
  stroke-dasharray: 450;
  stroke-dashoffset: 450;
}

/* Foto 1 (Bentuk Arch / Kapsul: border-radius atas 50%) */
.hero-photo-arch {
  width: 100%;
  height: 320px;
  border-radius: 120px 120px 0 0;
  overflow: hidden;
  background-color: #dfd7cf;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hero-photo-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  opacity: 0;
  transition: transform 1s var(--ease-out-expo), opacity 0.8s var(--ease-out-expo);
}

/* Kartu Besar Kanan (Background #B9A69C) */
.hero-card-large {
  background-color: var(--hero-card-bg);
  border-radius: 50px 0 0 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 85%;
  max-height: 600px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Tab Putih Melengkung di Pojok Kanan Atas (Sosial Media) */
.hero-social-notch {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--hero-bg);
  border-bottom-left-radius: 36px;
  padding: 12px 24px 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

.social-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #4a3e39;
  color: var(--hero-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.social-icon-btn:hover {
  transform: translateY(-2px) scale(1.1);
  background-color: var(--hero-nav-bg);
}

.social-icon-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Foto 2 di Dalam Kartu Besar (Sudut Kanan Bawah Melengkung Besar) */
.hero-photo-card {
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-bottom-right-radius: 65px;
  background-color: #dfd7cf;
}

.hero-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  opacity: 0;
  transition: transform 1s var(--ease-out-expo), opacity 0.8s var(--ease-out-expo);
}

/* Caption Putih di Bawah Foto 2 */
.hero-card-caption {
  padding: 22px 28px;
  color: var(--hero-white);
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

/* ==========================================================================
   7. TOMBOL NAVIGASI BULAT GELAP (#3A2A22) & PAGINATION
   ========================================================================== */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--hero-nav-bg);
  color: var(--hero-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  border: none;
  outline: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast), background-color var(--transition-fast), opacity var(--transition-fast);
}

.hero-nav-btn:hover {
  background-color: var(--hero-nav-hover);
  transform: translateY(-50%) scale(1.12);
}

.hero-btn-prev {
  left: 20px;
}

.hero-btn-next {
  right: 20px;
}

.hero-nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Pagination Dots (Muncul di Mobile/Tablet) */
.hero-pagination {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: none; /* Desktop hidden */
  gap: 8px;
  z-index: 25;
}

.hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--hero-accent-taupe);
  opacity: 0.4;
  border-radius: 50%;
  transition: width 0.3s ease, opacity 0.3s ease, border-radius 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 6px;
  background-color: var(--hero-nav-bg);
  opacity: 1;
}

/* ==========================================================================
   8. FLOATING BUTTONS (INSTAGRAM & WHATSAPP)
   ========================================================================== */
.hero-floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease;
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.floating-btn-ig {
  background: var(--hero-ig-gradient);
}

.floating-btn-wa {
  background-color: var(--hero-wa-green);
  animation: waPulse 2.8s infinite;
}

.floating-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   9. KEYFRAMES & ANIMASI AKTIF (.swiper-slide-active)
   ========================================================================== */
.swiper-slide-active .hero-title-line:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.swiper-slide-active .hero-title-line:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.swiper-slide-active .timeline-item:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.4s;
}

.swiper-slide-active .timeline-item:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.5s;
}

.swiper-slide-active .timeline-item:nth-child(3) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.6s;
}

.swiper-slide-active .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.55s;
}

.swiper-slide-active .hero-photo-arch img {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.25s;
}

.swiper-slide-active .hero-photo-card img {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.35s;
}

.swiper-slide-active .hero-card-caption {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* Trigger SVG Arch Stroke Drawing saat slide aktif */
.swiper-slide-active .hero-arch-ornament .arch-path {
  animation: drawArch 1.2s var(--ease-out-expo) forwards;
}

.swiper-slide-active .hero-arch-ornament .arch-path:nth-child(1) { animation-delay: 0.1s; }
.swiper-slide-active .hero-arch-ornament .arch-path:nth-child(2) { animation-delay: 0.2s; }
.swiper-slide-active .hero-arch-ornament .arch-path:nth-child(3) { animation-delay: 0.3s; }
.swiper-slide-active .hero-arch-ornament .arch-path:nth-child(4) { animation-delay: 0.4s; }
.swiper-slide-active .hero-arch-ornament .arch-path:nth-child(5) { animation-delay: 0.5s; }

@keyframes drawArch {
  0% {
    stroke-dashoffset: 450;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* ==========================================================================
   10. RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   ========================================================================== */

/* --- TABLET (< 1024px) --- */
@media (max-width: 1023px) {
  .hero-slide-inner {
    padding: 20px 40px 0 40px;
    gap: 25px;
  }

  .hero-title-line {
    font-size: clamp(48px, 6vw, 76px);
  }

  .hero-timeline {
    gap: 16px;
  }

  .hero-col-right {
    gap: 16px;
  }

  .hero-arch-ornament {
    max-width: 160px;
  }

  .hero-photo-arch {
    height: 250px;
    border-radius: 90px 90px 0 0;
  }

  .hero-photo-card {
    height: 300px;
  }

  .hero-bottom-bar {
    left: 40px;
  }

  .bottom-bar-block {
    padding: 12px 28px 12px 20px;
    border-top-right-radius: 60px;
  }
}

/* --- MOBILE (< 768px) --- */
@media (max-width: 767px) {
  .hero-slider-section {
    height: auto;
    min-height: 100vh;
    padding-bottom: 20px;
  }

  .hero-slide-inner {
    grid-template-columns: 1fr;
    padding: 30px 20px 80px 20px;
    gap: 30px;
  }

  .hero-col-left {
    padding-bottom: 0;
  }

  .hero-title-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-title-line {
    font-size: clamp(42px, 12vw, 56px);
  }

  /* List timeline horizontal / wrap di mobile */
  .hero-timeline {
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 0;
    gap: 10px;
  }

  .hero-timeline::before {
    display: none; /* Matikan garis vertikal di mobile */
  }

  .timeline-item {
    background: rgba(168, 139, 125, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    gap: 6px;
    transform: none;
    opacity: 1;
  }

  .timeline-dot {
    position: static;
    width: 6px;
    height: 6px;
  }

  .timeline-label {
    font-size: 13px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  /* Kolom Visual di Bawah */
  .hero-col-right {
    grid-template-columns: 1fr 1.3fr;
    gap: 14px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-arch-ornament {
    max-width: 120px;
  }

  .hero-photo-arch {
    height: 180px;
    border-radius: 70px 70px 0 0;
  }

  .hero-card-large {
    border-radius: 30px 0 0 24px;
  }

  .hero-photo-card {
    height: 220px;
    border-bottom-right-radius: 40px;
  }

  .hero-card-caption {
    padding: 14px 16px;
    font-size: 14px;
  }

  /* Bar Kontak Full-Width di Bawah */
  .hero-bottom-bar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
  }

  .bottom-bar-block {
    width: 100%;
    border-top-right-radius: 24px;
    border-radius: 16px;
    justify-content: flex-start;
  }

  .bottom-bar-visit {
    padding-bottom: 0;
    padding-left: 10px;
  }

  /* Navigasi: Sembunyikan tombol panah desktop, tampilkan swipe & pagination dots */
  .hero-nav-btn {
    display: none;
  }

  .hero-pagination {
    display: flex;
    bottom: 8px;
  }
}

/* ==========================================================================
   11. PREFERS-REDUCED-MOTION (AKSESIBILITAS)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .hero-arch-ornament .arch-path {
    stroke-dashoffset: 0 !important;
  }

  .floating-btn-wa {
    animation: none !important;
  }
}
