/* Custom styles for High Crest Lake Lodge */

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

/* Selection color */
::selection {
    background-color: rgba(74, 155, 120, 0.2);
    color: #0F4C75;
}

/* Header styles */
#site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(15, 76, 117, 0.08);
}

/* Mobile menu */
#mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-nav.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    transition: opacity 0.2s ease;
}

.mobile-link:active {
    opacity: 0.6;
}

/* Image hover effects */
.group img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Button focus states */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4a9b78;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #76abd3;
}

/* Subtle pattern overlay for sections */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 76, 117, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

section.bg-white::before {
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 76, 117, 0.02) 1px, transparent 0);
}

/* Prevent content jump from scrollbar */
html {
    scrollbar-gutter: stable;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
    .group img {
        transition: none;
    }
    #site-header {
        transition: none;
    }
}

/* Aspect ratio utilities */
.aspect-\[4\/5\] {
    aspect-ratio: 4/5;
}

.aspect-\[3\/4\] {
    aspect-ratio: 3/4;
}

/* Nav height */
.h-18 {
    height: 4.5rem;
}

/* Logo animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Decorative wave */
.wave-divider {
    position: relative;
}

.wave-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40'%3E%3Cpath fill='%23f4fbf8' d='M0,20 C360,40 720,0 1080,20 C1260,30 1380,20 1440,20 L1440,40 L0,40 Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
}
