/* Royal Safe Drive - Ultra Luxury Dubai Chauffeur & Safe Driver Stylesheet */

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

:root {
  --bg-primary: #060709;
  --bg-secondary: #0b0d13;
  --bg-card: rgba(13, 16, 24, 0.72);
  --bg-card-hover: rgba(22, 27, 40, 0.85);
  --brand-red: #ff1e27;
  --brand-red-glow: rgba(255, 30, 39, 0.4);
  --brand-red-dark: #b80c14;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 30, 39, 0.35);
  --whatsapp-green: #25d366;
  --gold-accent: #f59e0b;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  max-width: 100vw;
}

/* Ensure all section anchors scroll with clean clearance below sticky header */
section[id], div[id] {
  scroll-margin-top: 85px;
}

body {
  position: relative;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 30, 39, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 10% 30%, rgba(255, 30, 39, 0.05) 0%, transparent 30%),
    radial-gradient(circle at 90% 70%, rgba(255, 30, 39, 0.04) 0%, transparent 35%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Subtle Grid Background Pattern */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #060709;
}
::-webkit-scrollbar-thumb {
  background: #1e2230;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-red);
}

/* Typography Enhancements */
.font-display {
  font-family: 'Outfit', sans-serif;
}

.font-luxury {
  font-family: 'Cinzel', serif;
}

.font-mono-num {
  font-family: 'Space Grotesk', monospace;
}

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

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 25px -5px rgba(255, 30, 39, 0.08);
}

.glass-panel-glow {
  background: linear-gradient(135deg, rgba(255, 30, 39, 0.08) 0%, rgba(13, 16, 24, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  box-shadow: 0 10px 35px 0 rgba(255, 30, 39, 0.12);
}

/* Luxury Card Shimmer Effect */
.card-shimmer {
  position: relative;
  overflow: hidden;
}

.card-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  transform: skewX(-20deg);
  transition: 0.75s;
}

.card-shimmer:hover::before {
  left: 150%;
}

/* Red Ambient Glows */
.red-glow {
  box-shadow: 0 0 30px var(--brand-red-glow);
}

.text-gradient-red {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #ff3b43 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Red Pulsing Accent Badge */
.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 30, 39, 0.1);
  border: 1px solid rgba(255, 30, 39, 0.35);
  color: #ff9fa3;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.pulse-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseGreen 2s infinite ease-in-out;
}

.pulse-dot-red {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 10px var(--brand-red);
  animation: pulseRed 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 16px #22c55e;
  }
}

@keyframes pulseRed {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 18px var(--brand-red);
  }
}

/* Buttons */
.btn-royal-red {
  background: linear-gradient(135deg, #ff232c 0%, #c40a13 100%);
  color: #ffffff;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(255, 30, 39, 0.35);
}

.btn-royal-red:hover {
  background: linear-gradient(135deg, #ff3b43 0%, #e50914 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 30, 39, 0.5);
}

.btn-royal-red:active {
  transform: translateY(0);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #28e06d 0%, #1ba34f 100%);
  color: #ffffff;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #30ea75 0%, #22b85a 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

/* Desktop Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.floating-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-4px);
}

.floating-btn.whatsapp {
  background: #25d366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.floating-btn.call {
  background: linear-gradient(135deg, #ff1e27 0%, #b80c14 100%);
  box-shadow: 0 8px 24px rgba(255, 30, 39, 0.45);
}

.floating-tooltip {
  position: absolute;
  right: 70px;
  background: #0f121a;
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.floating-btn:hover .floating-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Vehicle Pill Chips */
.vehicle-chip {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vehicle-chip:hover,
.vehicle-chip.active {
  background: rgba(255, 30, 39, 0.15);
  border-color: var(--brand-red);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Tab Service Pill Buttons */
.service-pill-btn {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.service-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.service-pill-btn.active {
  background: linear-gradient(135deg, rgba(255, 30, 39, 0.25) 0%, rgba(255, 30, 39, 0.08) 100%);
  border-color: var(--brand-red);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 30, 39, 0.2);
}

/* Route Connector Line */
.route-connector {
  position: relative;
  padding-left: 20px;
}

.route-connector::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, #ff1e27 0, #ff1e27 4px, transparent 4px, transparent 8px);
}

/* Step Number Badge */
.step-number {
  background: linear-gradient(135deg, #ff1e27 0%, #8b080f 100%);
  box-shadow: 0 0 20px rgba(255, 30, 39, 0.4);
}

/* Hide scrollbars for modern luxury horizontal pill bars without native track artifacts */
.scrollbar-none {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.scrollbar-none::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Touch-tap feedback for mobile */
.btn-royal-red, .btn-whatsapp, .service-pill-btn, .vehicle-chip, .venue-quick-book {
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
.btn-royal-red:active, .btn-whatsapp:active {
  transform: scale(0.98);
}

/* Custom Styled Select Dropdown (eliminates ugly native browser arrows) */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1em;
  padding-right: 2.5rem !important;
}

/* Mobile Bottom Dock (iOS/Android Native Feel) */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 900;
  display: flex;
  gap: 8px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Auto-hide mobile bottom dock and toast when full-screen mobile menu drawer is open */
body.menu-open .mobile-bottom-bar,
body.menu-open #liveBookingToast,
body.menu-open .floating-actions {
  display: none !important;
}

/* Mobile Drawer Above Bottom Bar */
#mobileNav {
  z-index: 1050 !important;
}

/* Mobile Viewport Optimizations (< 768px) */
@media (max-width: 768px) {
  /* Prevent iOS automatic zoom by enforcing 16px font-size on inputs */
  input, select, textarea {
    font-size: 16px !important;
  }
  
  /* Strictly hide desktop floating buttons on mobile to prevent overlap */
  .floating-actions {
    display: none !important;
  }

  /* Increase bottom padding on page so bottom bar never obscures content */
  footer {
    padding-bottom: 120px !important;
  }

  /* Optimize card padding on smaller mobile screens */
  .glass-panel {
    border-radius: 16px;
  }

  /* Ensure ticker is ultra compact and single line */
  .ticker-item {
    font-size: 11px;
  }
}
