/* Custom styles for First Hawaiian Bank ATM */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(253, 248, 240, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

nav.scrolled .logo-text {
  color: #8b4a2a !important;
}

/* Mobile menu transitions */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobileMenu.open {
  max-height: 400px;
}

/* Subtle hover lift for cards */
.group:hover {
  transform: translateY(-2px);
}

/* Custom selection color */
::selection {
  background: #f4c0b0;
  color: #5f331f;
}

/* Remove focus outline for mouse users, keep for keyboard */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #C4703F;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Image aspect ratio helpers */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent layout shift on images */
img[width][height] {
  object-fit: cover;
}
