/* AUTOZ Multi-Cabang - Custom Theme & Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,700&display=swap');

:root {
  --autoz-bg: #0a0a0a;
  --autoz-card: #141416;
  --autoz-card-hover: #1c1c20;
  --autoz-border: #27272a;
  --autoz-red: #b70d0d;
  --autoz-red-light: #dc2626;
  --autoz-red-glow: rgba(183, 13, 13, 0.4);
  --autoz-text: #ffffff;
  --autoz-muted: #a1a1aa;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--autoz-bg);
  color: var(--autoz-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--autoz-red);
}

/* Brand Gradient & Glow Utilities */
.bg-autoz-gradient {
  background: linear-gradient(135deg, #b70d0d 0%, #dc2626 100%);
}

.text-autoz-red {
  color: #dc2626;
}

.border-autoz-red {
  border-color: #b70d0d;
}

.glow-red {
  box-shadow: 0 0 30px var(--autoz-red-glow);
}

.glow-red-sm {
  box-shadow: 0 0 15px rgba(183, 13, 13, 0.3);
}

.autoz-card {
  background-color: var(--autoz-card);
  border: 1px solid var(--autoz-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.autoz-card:hover {
  background-color: var(--autoz-card-hover);
  border-color: rgba(220, 38, 38, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(220, 38, 38, 0.25);
}

/* Carbon & Mesh Patterns */
.bg-carbon-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Card Specular Reflection Sheen */
.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 60%
  );
  transform: translateX(-100%) rotate(25deg);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.card-shine:hover::after {
  transform: translateX(100%) rotate(25deg);
}

/* Visual Vehicle Size Card Selector */
.vehicle-size-card {
  background: #141416;
  border: 1.5px solid #27272a;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.vehicle-size-card:hover {
  border-color: rgba(220, 38, 38, 0.5);
  background: #1a1a1e;
  transform: translateY(-2px);
}

.vehicle-size-card.active {
  background: linear-gradient(145deg, #1c1c20 0%, #2a0e0e 100%);
  border-color: #dc2626;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.35);
}

/* SOP Detailing Step Timeline */
.sop-step-node {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: #141416;
  border: 2px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  color: #a1a1aa;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.sop-step-card:hover .sop-step-node {
  border-color: #dc2626;
  color: #ffffff;
  background: #7f1d1d;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

/* Homepage sales mosaic gallery */
.home-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.home-mosaic-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  min-height: 210px;
}
.home-mosaic-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-mosaic-featured {
  grid-column: span 2;
  min-height: 280px;
}
@media (min-width: 768px) {
  .home-mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 240px;
  }
  .home-mosaic-item {
    min-height: 0;
    height: 100%;
  }
  .home-mosaic-featured {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 0;
  }
}

.home-mosaic-item.autoz-card:hover {
  transform: none;
}

/* Floating Status Pill */
.floating-status-pill {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(20, 20, 22, 0.92);
  border: 1px solid rgba(220, 38, 38, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(220, 38, 38, 0.2);
  border-radius: 9999px;
}

/* Header Glassmorphism */
.nav-glass {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Before & After Interactive Slider */
.ba-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  border-radius: 1rem;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid #dc2626;
}

.ba-overlay .ba-image {
  width: 100%;
  max-width: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: #dc2626;
  color: white;
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  cursor: ew-resize;
  z-index: 10;
}

/* Badge Styles */
.badge-red {
  background-color: rgba(183, 13, 13, 0.15);
  color: #ef4444;
  border: 1px solid rgba(183, 13, 13, 0.3);
}

/* Typography Enhancements */
.heading-display {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* Smooth Form Inputs */
.autoz-input {
  background-color: #141416;
  border: 1px solid #27272a;
  color: #ffffff;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: all 0.2s ease;
}

.autoz-input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Hero cinematic slider */
.hero-section {
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-slider-container {
  position: relative;
  overflow: hidden;
  z-index: 0;
  width: 100%;
  height: min(72vh, 620px);
  min-height: 360px;
}

.hero-slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.1s ease-in-out;
  pointer-events: none;
}

.hero-slider-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.hero-slide-img--coating { object-position: 52% 42%; }
.hero-slide-img--detailing { object-position: 50% 40%; }
.hero-slide-img--interior { object-position: 48% 38%; }
.hero-slide-img--exterior { object-position: 50% 42%; }

.hero-slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.12) 38%, transparent 62%);
}

.hero-slider-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  pointer-events: none;
}

.hero-slider-controls .hero-dots,
.hero-slider-controls .hero-dot {
  pointer-events: auto;
}

.hero-nav {
  display: none;
  position: absolute;
  top: 48%;
  z-index: 20;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 10, 0.42);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-nav:hover {
  background: rgba(183, 13, 13, 0.7);
  border-color: rgba(220, 38, 38, 0.8);
}

.hero-nav--prev { left: 1.25rem; }
.hero-nav--next { right: 1.25rem; }

.hero-slide-label {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f4f4f5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-dot.active {
  width: 28px;
  background-color: #dc2626;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
}

@media (max-width: 1023px) {
  .hero-section {
    padding: 0 0 5.5rem;
  }

  .hero-copy {
    padding-top: 1.35rem;
    background: #0a0a0a;
  }

  .hero-slide-img--coating,
  .hero-slide-img--detailing,
  .hero-slide-img--interior,
  .hero-slide-img--exterior {
    object-position: 50% 30%;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0 5rem;
  }

  .hero-slider-container {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
  }

  .hero-slider-slide.active {
    opacity: 0.82;
    transform: scale(1.06);
    transition: opacity 1.1s ease-in-out, transform 8s ease-out;
  }

  .hero-slider-overlay {
    background:
      linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.28) 46%, rgba(10, 10, 10, 0.4) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, transparent 24%, transparent 76%, rgba(0, 0, 0, 0.35) 100%);
  }

  .hero-slider-controls {
    bottom: 1.5rem;
  }

  .hero-nav {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider-slide,
  .hero-slider-slide.active {
    transform: none;
    transition: opacity 0.35s ease;
  }
}
