/* Custom styles for Sunkissed at SeaCrest */

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

/* Base font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar transitions */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(44, 30, 20, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#navbar.scrolled .nav-link {
    color: rgba(254, 253, 251, 0.85);
}

#navbar.scrolled .nav-link:hover {
    color: #fdf8ee;
}

/* Mobile menu */
#mobile-menu {
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

#mobile-menu.closed {
    max-height: 0;
    opacity: 0;
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .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; }
}

/* Ensure content is visible without JS */
@media screen and (max-width: 360px) {
    .font-serif.text-5xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8ee;
}
::-webkit-scrollbar-thumb {
    background: #C4673A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a85530;
}

/* Selection color */
::selection {
    background: rgba(196, 103, 58, 0.2);
    color: #3c2415;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fefdfb inset !important;
    -webkit-text-fill-color: #3c2415 !important;
}
