/* Custom styles for Terra Vita Yosemite/Bass Lake */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fff8ef;
}
::-webkit-scrollbar-thumb {
    background: #a11541;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #83153d;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #6e1639;
}

/* Reveal animations - progressive enhancement, only active with JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays for grid items */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(161, 21, 65, 0.08);
}

.nav-scrolled .nav-link {
    color: #6e1639 !important;
}

.nav-scrolled #nav-logo-text {
    color: #6e1639 !important;
}

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

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

/* Hero parallax-like effect */
#hero img {
    will-change: transform;
}

/* Button hover effects */
a[href^="tel:"] {
    text-decoration: none;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #a11541;
    outline-offset: 2px;
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(161, 21, 65, 0.1);
}

/* Gallery hover overlay */
.rounded-2xl.overflow-hidden {
    position: relative;
}

.rounded-2xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(110, 22, 57, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.rounded-2xl.overflow-hidden:hover::after {
    opacity: 1;
}

/* Testimonial card hover */
.bg-white.rounded-2xl.p-8 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white.rounded-2xl.p-8:hover {
    transform: translateY(-4px);
}

/* Amenity card hover */
.bg-white\/5.rounded-2xl.p-6 {
    transition: transform 0.3s ease, background 0.3s ease;
}

.bg-white\/5.rounded-2xl.p-6:hover {
    transform: translateY(-4px);
}

/* Print styles */
@media print {
    nav, #hero, #gallery, .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
