/**
 * ASR Sutter Repair Service - Bespoke Modern Industrial Design System
 * Theme: Cyber Slate & Industrial Amber / High Precision Engineering
 */

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}

:root {
  --color-primary: #0F172A;
  --color-primary-light: #1E293B;
  --color-primary-dark: #0B1320;
  --color-accent: #F59E0B;
  --color-accent-hover: #D97706;
  --color-accent-light: #FEF3C7;
  --color-electric: #0284C7;
  --color-electric-light: #38BDF8;
  --color-emerald: #10B981;
  --color-emerald-dark: #059669;
  --color-danger: #EF4444;
  --color-text-main: #0F172A;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  --color-border-dark: #334155;
}

/* Glassmorphism Classes */
.glass-panel-dark {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel-light {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Glowing Industrial Card */
.glow-card {
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.18), 0 0 25px -5px rgba(245, 158, 11, 0.25);
  border-color: #F59E0B;
}

/* Live Emergency Pulse Ring */
.live-radar-dot {
  position: relative;
  display: inline-flex;
}

.live-radar-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 9999px;
  background-color: inherit;
  opacity: 0.75;
  animation: radarPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPing {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Before and After Image Slider */
.ba-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  user-select: none;
}

.ba-slider-container img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.ba-after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #F59E0B;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 20;
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #F59E0B;
  color: #0F172A;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

/* Floating WhatsApp Radar */
.whatsapp-floating-hub {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.whatsapp-radar-btn {
  position: relative;
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.5), 0 8px 10px -6px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.whatsapp-radar-btn:hover {
  transform: scale(1.08) rotate(5deg);
}

.whatsapp-radar-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.4);
  animation: pulseLoop 2s infinite;
  z-index: -1;
}

@keyframes pulseLoop {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0F172A;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #F59E0B;
}

/* Shutter Grate Pattern Background */
.bg-shutter-slats {
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 2px,
    transparent 2px,
    transparent 8px
  );
}

/* Smooth Accordion Body */
[x-cloak] { display: none !important; }
