/* Custom styles for Silver Streams */

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

/* Navigation scroll state */
.nav-scrolled {
    background: rgba(8, 47, 73, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

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

/* Mobile menu */
.mobile-nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
}

.mobile-nav-link:last-of-type {
    border-bottom: none;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Fallback: ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Hero parallax effect */
#hero {
    scroll-behavior: smooth;
}

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

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

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

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d5764e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button hover effects */
a[href^="tel:"]:hover {
    transform: translateY(-1px);
}

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

/* Image loading placeholder */
img {
    background-color: #e7e5e4;
}

/* Selection color */
::selection {
    background-color: #d5764e;
    color: #ffffff;
}

/* Subtle gradient on section dividers */
section:not(:last-of-type)::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
    max-width: 600px;
    margin: 0 auto;
}

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

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

/* Form focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(213, 118, 78, 0.15);
}

/* Amenity card hover */
.bg-white\/5:hover {
    transform: translateY(-2px);
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .animate-bounce {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-trust-950 {
        background: #0c4a6e !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
