/* Custom styles for Tower Park Marina Resort */

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

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

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

::-webkit-scrollbar-thumb {
    background: #C06C44;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #C06C44;
    color: white;
}

/* Scroll reveal base styles - content visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Mobile menu open state */
#mobileMenu.menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Mobile menu links */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* Menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* Hero image parallax */
#hero .relative > div:last-child {
    will-change: transform;
}

/* Floating card animation */
.absolute.-bottom-6.-left-6 {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #C06C44, #D49A4A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image hover zoom */
img {
    transition: transform 0.7s ease;
}

/* Button focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #C06C44;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Reduced motion */
@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;
    }
}

/* Print styles */
@media print {
    nav, #hero .absolute, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
