/* ==========================================================================
   PO. Surya Trans Ungaran - Main Stylesheet (Modern Dynamic Fleet Redesign)
   Anti-Slop Craft: Human-Engineered, Calibrated Contrast & Zero Generic Slop
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800;900&display=swap');

:root {
  --primary: #1D4ED8;
  --primary-hover: #1E40AF;
  --primary-light: #EFF6FF;
  --accent-gold: #F59E0B;
  --accent-gold-hover: #D97706;
  --accent-gold-light: #FEF3C7;
  --slate-dark: #0F172A;
  --slate-body: #475569;
  --slate-subtle: #64748B;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-light: #E2E8F0;
  --border-hover: #BFDBFE;
  --accent-wa: #25D366;
  --accent-wa-hover: #1EBE5D;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-card: 20px;
  --radius-pill: 9999px;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 20px 35px -8px rgba(29, 78, 216, 0.12), 0 8px 16px -6px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--slate-body);
  background-color: var(--bg-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--slate-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Sticky Header with Frosted Glass & Smart Scroll Transition */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 15px -3px rgba(15, 23, 42, 0.04);
  transform: translateY(0);
  opacity: 1;
  will-change: transform, opacity;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}

/* Scroll Down: Navbar menghilang pelan-pelan ke atas */
.site-header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
}

/* Scroll Up: Navbar muncul kembali pelan-pelan dengan bayangan halus */
.site-header.header-scrolled {
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
}

/* Section Title Badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  background-color: var(--primary-light);
  border: 1px solid #DBEAFE;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

/* Base Buttons with Touch Target ≥ 44px */
.btn-primary-pill {
  background-color: var(--primary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-pill);
  min-height: 44px;
  padding: 10px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s var(--ease-spring);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
  font-size: 14px;
  cursor: pointer;
}

.btn-primary-pill:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.38);
  color: #FFFFFF;
}

.btn-secondary-pill {
  background-color: #FFFFFF;
  color: var(--slate-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-pill);
  min-height: 44px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-light);
  transition: all 0.25s var(--ease-spring);
  font-size: 14px;
  cursor: pointer;
}

.btn-secondary-pill:hover {
  border-color: #94A3B8;
  background-color: #F8FAFC;
  transform: translateY(-2px);
}

.btn-gold-pill {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-pill);
  min-height: 44px;
  padding: 10px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s var(--ease-spring);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.32);
  font-size: 14px;
  cursor: pointer;
}

.btn-gold-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
  color: #FFFFFF;
}

.btn-wa-pill {
  background-color: var(--accent-wa);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-pill);
  min-height: 44px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s var(--ease-spring);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32);
  font-size: 13.5px;
  cursor: pointer;
}

.btn-wa-pill:hover {
  background-color: var(--accent-wa-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.42);
  color: #FFFFFF;
}

/* Card Hover Elevation */
.fleet-card {
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), border-color 0.35s var(--ease-spring);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background-color: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.fleet-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

/* Feature Bento Card */
.feature-box {
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring), border-color 0.3s var(--ease-spring);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.03);
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: #BFDBFE;
  box-shadow: 0 16px 30px -8px rgba(29, 78, 216, 0.08);
}

/* Hero Banner Slideshow (Universal 21:9 Aspect Ratio - Desktop, Tablet & Mobile) */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background-color: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.995);
  pointer-events: none;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Pool & Garasi Photo Slideshow */
.pool-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.pool-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Mobile Drawer */
#mobile-drawer {
  display: none !important;
}

#mobile-drawer.open {
  display: block !important;
  animation: fadeInDownDrawer 0.25s ease-out;
}

#mobile-drawer.closed {
  display: none !important;
}

@keyframes fadeInDownDrawer {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dual WhatsApp Floating Widget */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  transition: all 0.3s var(--ease-spring);
  cursor: pointer;
  min-height: 46px;
}

.floating-wa-btn:hover {
  transform: scale(1.05) translateY(-2px);
  background: #1EBE5D;
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.55);
}

/* Modal Popup */
.floating-wa-modal {
  display: none !important;
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 100;
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  width: 330px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  transition: all 0.3s var(--ease-spring);
}

.floating-wa-modal.is-open {
  display: block !important;
  animation: fadeInUpModal 0.25s ease-out;
}

@keyframes fadeInUpModal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Fleet Lightbox Modal */
#fleet-lightbox-modal {
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
}

#fleet-lightbox-modal.is-open {
  display: flex !important;
  animation: fadeInLightbox 0.25s ease-out;
}

@keyframes fadeInLightbox {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Luxury Repeatable Scroll Reveal & Pop-up Animations */
.reveal-on-scroll,
.reveal-card,
.section-reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.975);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.animate-in,
.reveal-card.animate-in,
.section-reveal.animate-in {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Image Pop & Zoom Effect saat Section Dilihat */
.reveal-on-scroll img,
.fleet-card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll:not(.animate-in) img,
.fleet-card:not(.animate-in) img {
  transform: scale(0.97);
}

.reveal-on-scroll.animate-in img,
.fleet-card.animate-in img {
  transform: scale(1);
}

/* Animasi Elemen Merah / Red Accents (Elf Merah Sang Primadona & Red Badges) */
.animate-in .bg-red-600 {
  animation: pulseRedBadge 2.8s infinite ease-in-out;
}

@keyframes pulseRedBadge {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.55);
    transform: scale(1.02);
  }
}

/* Luxury Card Elevation */
.fleet-card.animate-in {
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.08);
}

/* Quick Filter Pills */
.filter-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--slate-subtle);
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 40px;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll, .hero-slide, .fleet-card, .floating-wa-btn {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Sembunyikan Netlify Drawer / Watermark Badge Otomatis */
#netlify-drawer,
.netlify-drawer,
[data-netlify-drawer],
[id*="netlify-drawer"],
iframe[title*="Netlify"],
iframe[id*="netlify"],
div[class*="netlify-drawer"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

