/* ===== Custom Styles for Silverhorn Coffee ===== */

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation-name: fade-in;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: forwards;
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(254, 253, 248, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

.navbar-scrolled .nav-logo-text {
  color: #064e3b !important;
}

.navbar-scrolled .nav-link {
  color: #3d2b1f !important;
}

/* Mobile menu */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #6ee7b7;
}

/* Selection color */
::selection {
  background: #a7f3d0;
  color: #064e3b;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

/* Smooth image transitions */
img {
  transition: filter 0.3s ease;
}

img[loading="lazy"] {
  transition: opacity 0.3s ease;
}

/* Print styles */
@media print {
  #navbar,
  .reveal-up {
    display: none;
  }
}
