/* === Custom Styles for Rocky Top Lodge === */

:root {
    --plum-50: #fdf4f8;
    --plum-100: #fce7f3;
    --plum-700: #be185d;
    --plum-900: #831443;
    --plum-950: #500724;
    --amber-400: #fdcb6e;
    --amber-500: #d4a017;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* === Navbar === */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(157, 23, 77, 0.08);
}

#navbar.scrolled .font-serif {
    color: var(--plum-900) !important;
}

#navbar.scrolled .nav-link {
    color: #4b5563 !important;
}

#navbar.scrolled .nav-link:hover {
    color: var(--plum-700) !important;
    background: var(--plum-50) !important;
}

/* === Floating Cards Animation === */
.floating-card {
    animation: float1 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 7s ease-in-out infinite;
}

.floating-card-3 {
    animation: float3 5s ease-in-out infinite;
}

.floating-card-4 {
    animation: float4 8s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-22px) rotate(0.5deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-0.5deg); }
}

/* === Scroll Reveal === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .floating-card,
    .floating-card-2,
    .floating-card-3,
    .floating-card-4 {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Default hidden state for scroll reveals (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* === Button Hover Effects === */
a {
    transition: all 0.3s ease;
}

/* === Card Hover === */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* === Image Loading === */
img {
    loading: lazy;
}

/* === Selection === */
::selection {
    background: rgba(157, 23, 77, 0.2);
    color: var(--plum-950);
}

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

::-webkit-scrollbar-track {
    background: var(--plum-50);
}

::-webkit-scrollbar-thumb {
    background: var(--plum-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--plum-500);
}

/* === Focus styles === */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--plum-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Mobile responsive tweaks === */
@media (max-width: 768px) {
    .floating-card,
    .floating-card-2,
    .floating-card-3,
    .floating-card-4 {
        display: none;
    }
}
