/* ==========================================================================
   RideX Motors - Premium Motorbike Showroom Stylesheet
   Theme: Racing Red & Sleek Dark Showroom
   Responsive: Mobile, Tablet, Laptop, and Desktop
   ========================================================================== */

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

:root {
  --color-brand-50: #fef2f2;
  --color-brand-100: #fee2e2;
  --color-brand-200: #fecaca;
  --color-brand-300: #fca5a5;
  --color-brand-400: #f87171;
  --color-brand-500: #ef4444;
  --color-brand-600: #dc2626;
  --color-brand-700: #b91c1c;
  --color-brand-800: #991b1b;
  --color-brand-900: #7f1d1d;
  --color-brand-950: #450a0a;

  --color-dark-950: #07090e;
  --color-dark-900: #0b0f17;
  --color-dark-800: #111827;
  --color-dark-700: #1f2937;
  --color-dark-600: #374151;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-bn: 'Hind Siliguri', sans-serif;
}

/* Base Body Styles */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Prevent horizontal overflow from flex/scroll containers */
*, *::before, *::after {
  box-sizing: border-box;
}

#hero-filter-tabs,
#inventory-filter-tabs,
#testimonials-track {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Typography & Language Support */
.font-heading {
  font-family: var(--font-heading);
}

body.lang-bn {
  font-family: var(--font-bn), var(--font-sans);
}

/* Ensure Bengali font applies to text elements */
body.lang-bn input,
body.lang-bn textarea,
body.lang-bn select,
body.lang-bn button,
body.lang-bn p,
body.lang-bn span,
body.lang-bn a,
body.lang-bn h1,
body.lang-bn h2,
body.lang-bn h3,
body.lang-bn h4,
body.lang-bn h5,
body.lang-bn h6,
body.lang-bn li,
body.lang-bn label,
body.lang-bn td,
body.lang-bn th {
  font-family: var(--font-bn), var(--font-sans);
}

/* Strictly protect FontAwesome icon glyphs across entire site */
body.lang-bn i,
body.lang-bn .fa,
body.lang-bn .fas,
body.lang-bn .far,
body.lang-bn .fab,
body.lang-bn .fa-solid,
body.lang-bn .fa-regular,
body.lang-bn .fa-brands,
body.lang-bn [class*="fa-"],
body.lang-bn [class*="fa-"]::before,
body.lang-bn [class*="fa-"]::after {
  font-family: "Font Awesome 6 Free" !important;
}

body.lang-bn .fa-brands,
body.lang-bn .fa-brands::before,
body.lang-bn [class*="fa-brands"],
body.lang-bn [class*="fa-brands"]::before {
  font-family: "Font Awesome 6 Brands" !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #0b0f17;
}
::-webkit-scrollbar-thumb {
  background: #dc2626;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b91c1c;
}

/* Card Hover Elevation */
.bike-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) and (pointer: fine) {
  .bike-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
  .group:hover .bike-img-zoom {
    transform: scale(1.06);
  }
}
.bike-img-zoom {
  transition: transform 0.45s ease;
}

/* Floating Glass effect */
.glass-dark {
  background: rgba(11, 15, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Auto-Slider Transition */
.hero-bike-slide {
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Badge Glow */
.glow-red {
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.4);
}

/* Floating WhatsApp Button Pulse */
@keyframes waWave {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.wa-floating-btn {
  animation: waWave 2.2s infinite;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.5rem + env(safe-area-inset-right, 0px));
}

/* Hide scrollbar for category tabs / slider */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Mobile & Touch Responsive Enhancements */
@media screen and (max-width: 768px) {
  /* Prevent iOS auto-zoom on input focus */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Compact padding on mobile */
  .hero-filter-container {
    margin-top: -2.5rem !important;
  }
}

/* Line clamp support */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tap Highlight Removal on Mobile */
* {
  -webkit-tap-highlight-color: transparent;
}
