/* Custom styles for Hyatt Newport Beach */

html {
  scroll-behavior: smooth;
}

/* Smooth focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(167, 243, 208, 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Navbar transition for scroll state */
#navbar.scrolled {
  background: rgba(27, 67, 50, 0.95) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

#navbar.scrolled .nav-text {
  color: #ffffff !important;
}

#navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

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

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

/* Prevent layout shift on images */
img {
  max-width: 100%;
  height: auto;
}

/* Selection color */
::selection {
  background: rgba(27, 67, 50, 0.2);
  color: #1B4332;
}

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

.group {
  transition: transform 0.3s ease;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  #navbar,
  #mobile-menu,
  .reveal {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
