/* ═══════════════════════════════════════════
   GOD BARBER — Custom Styles
   ═══════════════════════════════════════════ */

/* ── Smooth Scrolling ── */
html {
  scroll-behavior: smooth;
}

/* ── Scrollbar Styling ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FEFCF9;
}
::-webkit-scrollbar-thumb {
  background: #D4B896;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B8860B;
}

/* ── Selection Color ── */
::selection {
  background: rgba(184, 134, 11, 0.2);
  color: #2D2418;
}

/* ── Navbar Styles ── */
#navbar {
  background: rgba(254, 252, 249, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#navbar.scrolled {
  background: rgba(254, 252, 249, 0.95);
  box-shadow: 0 1px 20px rgba(107, 94, 80, 0.08);
}

/* ── Carousel ── */
.carousel-dot.active {
  background: white;
  width: 1.75rem;
  border-radius: 999px;
}

/* ── Scroll Animations ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for grid children */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ── Filled Stars (Testimonials) ── */
.fill-gold {
  fill: #B8860B;
}

/* ── Service Cards ── */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #B8860B, #D4B896);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover::before {
  transform: scaleX(1);
}

/* ── Counter Animation Pulse ── */
@keyframes counter-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.counter.counting {
  animation: counter-pulse 0.3s ease;
}

/* ── Loading Shimmer (for map fallback) ── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, #F5F0EB 25%, #E8DFD5 50%, #F5F0EB 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ── Mobile Menu Animation ── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
  opacity: 0;
}
#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #B8860B;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* ── Image Loading ── */
img {
  background-color: #F5F0EB;
}

/* ── Responsive Fine-Tuning ── */
@media (max-width: 640px) {
  .carousel-slide img {
    object-position: center;
  }
}
