/* === CUSTOM STYLES FOR BLOSSOM FARM MOTEL === */

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

/* Custom selection color */
::selection {
    background-color: rgba(240, 82, 48, 0.2);
    color: #1e1e26;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
    background: #d1d1d8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8b4;
}

/* Reveal animation - progressive enhancement, only applies when JS runs */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible even without JS */
@supports not (animation: reveal 1s) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Header transition states */
#site-header {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#site-header.scrolled {
    background-color: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

#site-header.scrolled .font-serif {
    color: #1e1e26 !important;
}

#site-header.scrolled a:not([class*="bg-coral"]) {
    color: #545462 !important;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle image hover parallax */
.group:hover .group-hover\:scale-105,
.group:hover .group-hover\:scale-110 {
    will-change: transform;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #f05230;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button press feedback */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Print styles */
@media print {
    #site-header, .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    * {
        color: #000 !important;
        background: #fff !important;
        box-shadow: none !important;
    }
}

/* Extra large screens */
@media (min-width: 1280px) {
    .font-serif {
        text-rendering: optimizeLegibility;
    }
}
