/* Custom styles for Uppercuts Barbershop */

:root {
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Navbar transition */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
  color: #1e293b !important;
}

.nav-scrolled .nav-link:hover {
  color: #0d9488 !important;
}

.nav-scrolled #nav-brand {
  color: #1e293b !important;
}

/* Reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Selection color */
::selection {
  background: rgba(13, 148, 136, 0.2);
  color: #0f172a;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Image lazy load fade */
img[loading="lazy"] {
  transition: opacity 0.5s ease;
}

img[loading="lazy"]:not([src]) {
  opacity: 0;
}

/* Form focus ring animation */
input:focus,
textarea:focus,
select:focus {
  animation: focusRing 0.3s ease forwards;
}

@keyframes focusRing {
  from {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
  }
  to {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
  }
}

/* Smooth transitions for all interactive elements */
button,
a,
input,
textarea,
select {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Print styles */
@media print {
  nav,
  #contact,
  .reveal,
  footer {
    display: none;
  }
}
