/* ===== Custom Styles for US Donuts and Croissants ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a170a;
}
::-webkit-scrollbar-thumb {
  background: #2d5f2d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3d7a3d;
}

/* Selection color */
::selection {
  background: #2d5f2d;
  color: #fdfcf8;
}

/* ===== Reveal Animations (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  .reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  
  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  .reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
  }
  
  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  .reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Default visible state for accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}

/* ===== Navbar Transition ===== */
#navbar.scrolled {
  background: rgba(10, 23, 10, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Hero Image Ken Burns Effect ===== */
#hero .absolute img {
  animation: kenBurns 25s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

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

/* ===== Button Focus States ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #8fb88f;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ===== Image Loading ===== */
img {
  background-color: #dce8dc;
}

/* ===== Print Styles ===== */
@media print {
  #navbar,
  #hero,
  #gallery,
  #visit iframe {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
