/* === Custom Styles for Kuttin' Up Barbershop #2 === */

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

/* Selection color */
::selection {
  background-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

/* === Navbar scroll state === */
#navbar.scrolled {
  background-color: rgba(45, 3, 20, 0.95);
}

/* === Mobile menu transitions === */
#mobileMenu.open {
  max-height: 400px;
}

#mobileMenu.closed {
  max-height: 0;
}

/* Mobile menu link hover */
.mobile-link {
  display: block;
}

/* === Hamburger animation === */
#menuBtn.active #bar1 {
  transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active #bar2 {
  opacity: 0;
}

#menuBtn.active #bar3 {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* === 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, transparent, #fbbf24, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* === Gallery hover === */
.gallery-item {
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 3, 20, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* === Review cards === */
.review-card {
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 6rem;
  color: rgba(251, 191, 36, 0.08);
  line-height: 1;
  pointer-events: none;
}

/* === Scroll reveal (progressive enhancement) === */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* === Custom scrollbar === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #2d0314;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #9d174d;
}

/* === Focus visible for keyboard navigation === */
*:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

/* === Responsive adjustments === */
@media (max-width: 640px) {
  .font-serif {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}

/* === Print styles === */
@media print {
  #navbar,
  #contactForm,
  .gallery-item,
  iframe {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
