/* Sewa Motor Sukabumi (SMS) - Design System & Custom Styles */

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

:root {
  --sms-red: #dc2626;
  --sms-red-hover: #b91c1c;
  --sms-red-soft: #fef2f2;
  --sms-black: #0b0f17;
  --sms-slate: #1e293b;
  --sms-gold: #f59e0b;
  --sms-bg: #f8fafc;
  --sms-surface: #ffffff;
  --sms-border: #e2e8f0;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-sans);
  color: var(--sms-slate);
  background-color: var(--sms-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
}

/* Glass Navigation */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.glass-nav.scrolled {
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.12);
}

/* Hero Architectural Grid + Subtle Red/Gold Glow */
.hero-surface {
  background-color: #ffffff;
  background-image:
    radial-gradient(600px circle at 8% 12%, rgba(220, 38, 38, 0.08), transparent 60%),
    radial-gradient(500px circle at 92% 85%, rgba(245, 158, 11, 0.08), transparent 55%),
    linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

/* Dark Atmospheric Section Pattern */
.dark-mesh {
  background-color: #0b0f17;
  background-image:
    radial-gradient(650px circle at 15% 20%, rgba(220, 38, 38, 0.18), transparent 60%),
    radial-gradient(550px circle at 85% 80%, rgba(245, 158, 11, 0.12), transparent 55%);
}

/* Card Interactions */
.fleet-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease;
}

.fleet-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 20px 32px -12px rgba(220, 38, 38, 0.12), 0 8px 16px -8px rgba(15, 23, 42, 0.06);
}

.card-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px -10px rgba(15, 23, 42, 0.1);
}

/* Category & Duration Pills */
.category-btn.active {
  background-color: var(--sms-red);
  color: #ffffff;
  border-color: var(--sms-red);
  box-shadow: 0 6px 16px -4px rgba(220, 38, 38, 0.38);
}

.duration-chip.active {
  background-color: var(--sms-black);
  color: #ffffff;
  border-color: var(--sms-black);
}

/* Smooth Grid-Based FAQ Accordion */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-inner {
  overflow: hidden;
}

.accordion-icon {
  transition: transform 0.25s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-item.active {
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 8px 24px -8px rgba(220, 38, 38, 0.08);
}

/* Modal Backdrop & Entrance */
.modal-backdrop {
  background-color: rgba(11, 15, 23, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-panel {
  animation: modalSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating WhatsApp Pulse */
@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.65);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

.wa-pulse {
  animation: waPulse 2.2s infinite;
}

/* Toast Notification */
.toast-banner {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mobile bottom bar safe spacing */
@media (max-width: 1023px) {
  body {
    padding-bottom: 72px;
  }
}
