/* ============================================
   GOODMAN MANOR — Custom Styles
   Classic & Elegant · Terracotta + Sand
   ============================================ */

/* Base & Typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF6F0;
}
::-webkit-scrollbar-thumb {
    background: #d4552e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c2411d;
}

/* ============================================
   HERO ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #f4e9d0;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   REVEAL ANIMATIONS (scroll-triggered)
   Only active when prefers-reduced-motion is off
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal[data-revealed="false"] {
        opacity: 0;
        transform: translateY(40px);
    }
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* ============================================
   ROOM CARDS
   ============================================ */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

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

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #d4552e;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2rem;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
