/* Custom Styles & Visual Upgrade for Auto Repair Landing Page */

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

:root {
  --primary-accent: #ff5e14;
  --primary-hover: #e04e0b;
  --brand-dark: #080c14;
  --card-dark: #121824;
  --card-border: rgba(255, 255, 255, 0.08);
}

*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #080c14;
  color: #e2e8f0;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  margin: 0;
  padding: 0;
  /* Extra bottom padding to ensure fixed SOS bar never covers content on mobile */
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

.font-heading {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
}

/* Accessible Touch Targets & Container Constraints */
.touch-target {
  min-height: 44px;
  min-width: 44px;
}

input,
select,
textarea,
button {
  max-width: 100%;
  box-sizing: border-box;
}

select {
  background-color: #0f172a;
  color: #ffffff;
}

select option {
  background-color: #0f172a;
  color: #ffffff;
}

/* Glassmorphism & Card Gradients */
.glass-panel {
  background: rgba(18, 24, 36, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: visible;
}

.glass-panel-glow {
  background: linear-gradient(135deg, rgba(255, 94, 20, 0.08) 0%, rgba(18, 24, 36, 0.94) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 94, 20, 0.25);
  position: relative;
  overflow: visible;
}

.card-hover-effect {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

@media (hover: hover) {
  .card-hover-effect:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 94, 20, 0.45);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.7), 0 0 25px 0 rgba(255, 94, 20, 0.2);
  }
}

/* Pulse Badge Animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.live-pulse-dot {
  animation: pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
  will-change: transform, box-shadow;
}

/* Radial decorative mesh backgrounds */
.hero-gradient-mesh {
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(255, 94, 20, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.8) 0%, transparent 75%);
}

.packages-mesh-glow {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 94, 20, 0.09) 0%, transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
}

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

::-webkit-scrollbar-track {
  background: #080c14;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff5e14;
}

/* Glow highlights */
.text-glow {
  text-shadow: 0 0 28px rgba(255, 94, 20, 0.55);
}

/* Image Card Placeholder & Transitions */
.card-img-wrapper {
  background-color: #121824;
  position: relative;
  overflow: hidden;
}

.card-img-wrapper img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.card-hover-effect:hover .card-img-wrapper img {
  transform: scale(1.05);
}

/* Input validation styles */
.input-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444 !important;
}

/* Form controls styling */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
  cursor: pointer;
}

/* Mobile Safe-Area Bottom Bar */
.safe-bottom-bar {
  padding-bottom: calc(0.625rem + env(safe-area-inset-bottom, 0px));
}

/* Modal Smoothness & GPU Layer */
#bookingModal {
  will-change: opacity;
}

#modalContent {
  will-change: transform, opacity;
}

/* Hidden Honeypot Trap */
.honey-trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
