/* The Hampton House — Custom Styles */

/* Smooth focus outlines for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #e05a32;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: #f8c4b0;
  color: #1a1614;
}

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

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Hero text animation */
.hero-title {
  animation: heroTitle 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-sub {
  animation: heroSub 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
  opacity: 0;
}
.hero-desc {
  animation: heroDesc 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
  opacity: 0;
}

@keyframes heroTitle {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes heroSub {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes heroDesc {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Thin decorative line */
.line-thin {
  width: 1px;
  background: linear-gradient(to bottom, transparent, #d9b874, transparent);
}

/* Mobile menu transition */
#mobile-menu {
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#mobile-menu.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#mobile-menu:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(253, 251, 247, 0.95) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(217, 184, 116, 0.2) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #faf5e9; }
::-webkit-scrollbar-thumb { background: #d9b874; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #c9a35c; }
</style>
