/*
 * JC Carpets & Carpet Cleaning - Custom Styles
 * Modern, crisp, high-trust aesthetic tailored for Kiwi homes and businesses.
 */

:root {
  --primary: #0284c7;        /* Sky Blue */
  --primary-dark: #0369a1;
  --secondary: #0f766e;      /* Deep Emerald / Teal clean feel */
  --accent: #f59e0b;         /* Gold/Amber for 5-star ratings & highlights */
  --text-dark: #0f172a;
  --text-muted: #475569;
  --bg-light: #f8fafc;
}

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Before / After Slider Styles */
.ba-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after-clip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #ffffff;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 20;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #0284c7;
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.ba-container:hover .ba-handle-button {
  transform: translate(-50%, -50%) scale(1.1);
  background: #0369a1;
}

/* Badge styling */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Animated pulse for call buttons */
@keyframes soft-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(2, 132, 199, 0);
  }
}

.pulse-call {
  animation: soft-pulse 2.5s infinite;
}

/* Card hover lift */
.card-hover {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* Stepper buttons */
.stepper-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background-color: #f1f5f9;
  color: #334155;
  font-weight: bold;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.stepper-btn:hover {
  background-color: #0284c7;
  color: #ffffff;
}

/* Hero Background Pattern */
.hero-gradient-overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(2, 132, 199, 0.75) 100%);
}

/* Floating Action Bar on Mobile */
.floating-bottom-bar {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
