/* ==========================================================================
   PRIME DETAILING CENTRE — Premium Luxury Automotive Styles
   ========================================================================== */

:root {
  --bg-dark: #07080a;
  --bg-surface: #0f1115;
  --bg-card: rgba(18, 20, 26, 0.75);
  --bg-card-hover: rgba(26, 29, 38, 0.9);
  
  --gold-300: #f6e6b4;
  --gold-400: #e2c068;
  --gold-500: #c5a059;
  --gold-600: #a47e33;
  --gold-gradient: linear-gradient(135deg, #fcedc2 0%, #d4af37 45%, #9e782f 100%);
  --gold-gradient-hover: linear-gradient(135deg, #ffffff 0%, #dfb846 50%, #b88d3b 100%);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.25);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-gold-subtle: rgba(212, 175, 55, 0.2);
  --border-gold-active: rgba(212, 175, 55, 0.6);
  
  --font-heading: 'Outfit', sans-serif;
  --font-accent: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Background Glow */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 50% -10%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(26, 32, 44, 0.5) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(197, 160, 89, 0.04) 0%, transparent 50%);
}

/* Typography Helpers */
.font-heading {
  font-family: var(--font-heading);
}

.font-accent {
  font-family: var(--font-accent);
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-glow-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.gold-glow-hover:hover {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.35);
  border-color: var(--gold-400);
}

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold-subtle);
  transform: translateY(-3px);
}

/* Custom Gold Button */
.btn-gold {
  background: var(--gold-gradient);
  color: #0b0c0e;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.btn-gold:hover::after {
  left: 100%;
}

.btn-gold:hover {
  background: var(--gold-gradient-hover);
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
  color: #000;
}

.btn-outline-gold {
  background: rgba(18, 20, 26, 0.8);
  color: var(--text-main);
  border: 1px solid var(--border-gold-subtle);
  font-weight: 600;
  border-radius: 12px;
  padding: 13px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.btn-outline-gold:hover {
  border-color: var(--gold-400);
  background: rgba(30, 34, 44, 0.9);
  color: var(--gold-300);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

/* Luxury Badge */
.luxury-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-300);
}

/* Service Card Tag */
.service-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

/* Interactive Before-After Slider Container */
.ba-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold-subtle);
  aspect-ratio: 16 / 9;
  user-select: none;
}

@media (max-width: 640px) {
  .ba-container {
    aspect-ratio: 4 / 3;
  }
}

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

.ba-before {
  z-index: 1;
}

.ba-after {
  z-index: 2;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid var(--gold-400);
  box-shadow: 2px 0 15px rgba(212, 175, 55, 0.4);
}

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

.ba-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: 3px solid #0b0c0e;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  pointer-events: none;
}

.ba-slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 20;
  cursor: ew-resize;
  margin: 0;
}

.ba-label {
  position: absolute;
  bottom: 16px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  z-index: 5;
}

.ba-label-before {
  right: 16px;
  background: rgba(15, 17, 21, 0.85);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ba-label-after {
  left: 16px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-300);
  border: 1px solid var(--gold-400);
}

/* Mobile Sticky Bottom Bar (Optimized for iPhone) */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(11, 13, 17, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-gold-subtle);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 10px;
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* Clean Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.5);
}

/* Animations */
@keyframes pulseSubtle {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.pulse-glow {
  animation: pulseSubtle 3s infinite ease-in-out;
}
