/* Custom styles for The Royce */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
  background: #3d3d52;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e8645c;
}

/* Menu tab styles */
.menu-tab {
  color: #9b9bab;
  background: transparent;
}
.menu-tab.active {
  color: #ffffff;
  background: #e8645c;
  box-shadow: 0 4px 12px rgba(232, 100, 92, 0.3);
}
.menu-tab:hover:not(.active) {
  color: #ffffff;
  background: #3d3d52;
}

/* Navbar scroll effect */
.navbar-scrolled {
  background: rgba(12, 12, 20, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transitions */
#mobile-menu {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
}
#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* Focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Image hover effects */
.rounded-2xl.overflow-hidden {
  transition: transform 0.4s ease;
}

/* Subtle animations for scroll-reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure content is always visible (progressive enhancement) */
@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
  }
}

/* Print styles */
@media print {
  nav, #contact, footer {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .bg-coral-500 {
    background-color: ButtonText;
  }
  .text-coral-500 {
    color: ButtonText;
  }
}

/* Mobile optimizations */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  .font-display {
    word-spacing: -0.02em;
  }
}

/* Ensure all links have proper cursor and focus */
a {
  cursor: pointer;
}

/* Selection color */
::selection {
  background: rgba(232, 100, 92, 0.2);
  color: #1a1a2e;
}
