/* ==========================================================================
   Royal Painter - Managed Home Painting & Waterproofing Services
   AapkaPainter-Style High-Conversion Architecture
   ========================================================================== */

:root {
  --royal-blue: #002c7d;
  --royal-blue-dark: #001f5c;
  --royal-blue-deep: #001334;
  --royal-blue-light: #0d47a1;
  --royal-blue-surface: #f0f5ff;
  --royal-gold: #f5b335;
  --royal-gold-hover: #e29418;
  --royal-orange: #ff6a00;
  --royal-green: #10b981;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
}

/* Typography Enhancements */
.font-serif-luxury {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.font-brand {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
}

.font-sans-body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #002c7d;
}

/* Navigation Links */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 2.5px;
  background-color: var(--royal-gold);
  transition: all 0.25s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, #f5b335 0%, #e29418 100%);
  color: #0f172a;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(245, 179, 53, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #ffc043 0%, #ea9c1a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 179, 53, 0.45);
}

.btn-navy {
  background-color: var(--royal-blue);
  color: #ffffff;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-navy:hover {
  background-color: var(--royal-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 44, 125, 0.3);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-whatsapp:hover {
  background-color: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}


/* Centered Services Grid for Odd Card Counts */
.services-grid-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.services-grid-centered .service-card {
  width: 100%;
  max-width: 24rem;
}

@media (min-width: 640px) {
  .services-grid-centered .service-card {
    width: calc(50% - 0.75rem);
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .services-grid-centered .service-card {
    width: calc(33.333% - 1rem);
  }
}

@media (min-width: 1280px) {
  .services-grid-centered .service-card {
    width: calc(25% - 1.125rem);
  }
}

/* Service Cards */
.service-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(0, 44, 125, 0.12);
}

.service-card .card-img {
  transition: transform 0.5s ease;
}

.service-card:hover .card-img {
  transform: scale(1.06);
}

/* Step Process Card */
.step-number-badge {
  background: linear-gradient(135deg, #002c7d 0%, #0d47a1 100%);
  box-shadow: 0 4px 10px rgba(0, 44, 125, 0.3);
}

/* Before / After Slider */
.visualizer-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  border-radius: 12px;
  background-color: #f1f5f9;
}

.visualizer-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ffffff;
  cursor: ew-resize;
  z-index: 20;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}

.visualizer-handle-btn {
  width: 36px;
  height: 36px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: ew-resize;
  color: #002c7d;
  font-weight: bold;
  font-size: 13px;
  transition: transform 0.2s ease;
}

.visualizer-handle-btn:hover {
  transform: scale(1.1);
}

/* Sticky Action Bar & Floating Callout */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.floating-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* Mobile Bottom Fixed Bar */
@media (max-width: 768px) {
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 10px 16px;
    z-index: 45;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }
}

/* Modals */
.modal-backdrop {
  backdrop-filter: blur(8px);
  background-color: rgba(0, 19, 52, 0.7);
  transition: opacity 0.3s ease;
}

.modal-content-panel {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Toast */
#toast-notification {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Brand Logo Marquee */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  user-select: none;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

