/* Custom styles for Jewel Brook Hotels & Lodging */

:root {
    --terracotta-500: #C65D3E;
    --terracotta-600: #b54d2e;
    --sand-500: #C9A86C;
    --sand-100: #fdf8ef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

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

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

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

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

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

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

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

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

img.loaded {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .font-display {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Print styles */
@media print {
    nav, .scroll-indicator, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
