/* Custom styles for Fairway Family Cabin */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #F9F7F2;
    color: #0f241e;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Scroll reveal animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Navbar styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(15, 36, 30, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile menu styles */
#mobile-menu {
    background: #0f241e;
}

.mobile-link {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #E8E4D9;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1a3c34;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f241e;
}

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

/* Image loading optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth image transitions */
img {
    transition: transform 0.3s ease;
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .animate-fade-in-up,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
