/* ============================================
   AURIA COFFEE — Custom Styles
   ============================================ */

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

/* --- Header transitions --- */
#site-header {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

#site-header.scrolled .font-serif {
  color: #0A1628;
}

#site-header.scrolled .nav-link {
  color: #152d6e;
}

#site-header.scrolled .nav-link:hover {
  color: #0d9488;
}

/* --- Hero entrance animations (above-the-fold, always visible by default) --- */
.hero-eyebrow {
  animation: fadeDown 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.hero-title {
  animation: fadeUp 0.9s ease forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

.hero-sub {
  animation: fadeUp 0.9s ease forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

.hero-ctas {
  animation: fadeUp 0.9s ease forwards;
  opacity: 0;
  animation-delay: 0.8s;
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Scroll-reveal (below the fold only) --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion: disable all scroll animations */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-eyebrow,
  .hero-title,
  .hero-sub,
  .hero-ctas {
    animation: none;
    opacity: 1;
  }
  html { scroll-behavior: auto; }
}

/* --- Feature cards --- */
.feature-card {
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

/* --- Menu items --- */
.menu-item {
  transition: background 0.2s ease;
  border-radius: 8px;
  padding: 4px 8px;
  margin: 0 -8px;
}

.menu-item:hover {
  background: rgba(10, 22, 40, 0.03);
}

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

#menu-icon-open.active {
  opacity: 0;
  transform: scale(0.8);
}

#menu-icon-close.active {
  opacity: 1;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #718fcd;
}

/* --- Selection color --- */
::selection {
  background: #5eead4;
  color: #0A1628;
}

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

img[loading="lazy"].loaded {
  opacity: 1;
}

img[loading="lazy"] {
  opacity: 0;
}
