/* Custom styles for Donnell Lake Cottages */

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

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

/* Navbar transition states */
#navbar.scrolled {
    background: rgba(11, 29, 58, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reveal animations — progressive enhancement via JS */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

/* Reduced motion — keep everything visible */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
}

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

::-webkit-scrollbar-track {
    background: #0B1D3A;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2EA86C;
}

/* Selection color */
::selection {
    background: rgba(46, 168, 108, 0.3);
    color: #0B1D3A;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
    opacity: 0;
}

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

/* Image hover zoom container */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Subtle pattern overlay for sections */
section::before {
    content: '';
    pointer-events: none;
}

/* Button press effect */
button, a[role="button"] {
    touch-action: manipulation;
}

button:active,
a:active {
    transform: scale(0.98);
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
