/* Custom Styles for Trickle Creek Ranch RV Park */

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

/* Custom selection color */
::selection {
    background-color: #D4A843;
    color: #1B4332;
}

/* Nav link hover effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #D4A843;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #D4A843 !important;
}

/* Mobile nav link */
.mobile-nav-link {
    position: relative;
    padding: 0.5rem 0;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal.delay-1 {
    transition-delay: 0.1s;
}

.reveal.delay-2 {
    transition-delay: 0.2s;
}

.reveal.delay-3 {
    transition-delay: 0.3s;
}

/* Hero text animation */
.hero-title {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 1s ease forwards;
    animation-delay: 0.3s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 1s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 1s ease forwards;
    animation-delay: 0.9s;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #D4A843;
    outline-offset: 2px;
}

/* Form input focus */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 1px #D4A843;
}

/* Image hover zoom */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Gold accent line animation */
.gold-line {
    position: relative;
    display: inline-block;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #D4A843, transparent);
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle, rgba(27, 67, 50, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #27684f;
}

/* Mobile menu animation */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Back to top button */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:not(.visible) {
    transform: translateY(10px);
}

/* Amenity card hover */
.group:hover {
    transform: translateY(-2px);
}

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

/* 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .nav-link::after {
        background-color: #fff;
    }
    
    button,
    a {
        border: 2px solid currentColor;
    }
}

/* Landscape mode on mobile */
@media (max-width: 640px) and (orientation: landscape) {
    header.min-h-screen {
        min-height: 100vh;
    }
    
    .hero-content {
        padding-top: 4rem;
    }
}

/* Tall mobile devices */
@media (max-height: 700px) and (orientation: portrait) {
    header.min-h-screen {
        min-height: auto;
        padding: 8rem 0 4rem;
    }
}
