/* Custom styles for Grace Woods Hotel & Lodging */

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll behavior */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

#navbar.scrolled .nav-logo-text {
  color: #102a43;
}

/* Nav link underline animation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d49a2e, #edc96d);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 100%;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .scroll-reveal.revealed {
    opacity: 1;
    transform: none;
  }
  
  .group:hover .group-hover\:scale-105,
  .group:hover .group-hover\:translate-y-[-4px] {
    transform: none;
  }
}

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d49a2e, #edc96d);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c47f1f;
}

/* Selection color */
::selection {
  background-color: #f5e0a0;
  color: #102a43;
}

/* Back to top button */
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

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

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

/* Hero text animation on load */
#hero h1,
#hero p,
#hero .inline-flex {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

#hero .inline-flex {
  animation-delay: 0.2s;
}

#hero h1 {
  animation-delay: 0.4s;
}

#hero p {
  animation-delay: 0.6s;
}

#hero .flex-col {
  animation-delay: 0.8s;
}

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

/* Room card image hover */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Gold gradient text utility */
.text-gold-gradient {
  background: linear-gradient(135deg, #d49a2e, #edc96d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass morphism card */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Subtle pattern overlay for sections */
.pattern-overlay {
  background-image: radial-gradient(circle at 1px 1px, rgba(16, 42, 67, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Button ripple effect */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #d49a2e;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  #navbar,
  #back-to-top,
  .scroll-reveal {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
