/* ========================================
   Ascot Country Inn — Custom Styles
   ======================================== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8e8;
}
::-webkit-scrollbar-thumb {
    background: #e55a2e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d1401e;
}

/* Selection color */
::selection {
    background: #f7c4b3;
    color: #411108;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 252, 246, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(61, 44, 36, 0.08);
    padding-top: 0;
    padding-bottom: 0;
}

#navbar.scrolled a:not([class*="bg-"]) {
    color: #3d2c24 !important;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Mobile links */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e55a2e;
    transition: width 0.2s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Hero text animation (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .hero-content > * {
        opacity: 1;
        transform: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e55a2e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background-color: #faf0cc;
}

/* Print styles */
@media print {
    #navbar,
    #contact-form,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
