/* ========================================
   Countryside Diner — Custom Styles
   Classic & Elegant · Plum + Amber
======================================== */

/* ---- Base & Typography ---- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #D4A84B;
    color: #1F1218;
}

/* ---- Navbar ---- */
.nav-logo-text {
    transition: color 0.5s ease;
}

.nav-subtext {
    transition: color 0.5s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #D4A84B;
    transition: width 0.3s ease;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(74, 44, 61, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #4A2C3D !important;
}

.navbar-scrolled .nav-link {
    color: #4A2C3D !important;
}

.navbar-scrolled .nav-subtext {
    color: #B8860B !important;
}

/* ---- Floating Cards Animation ---- */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: -1.5s;
}

.floating-card:nth-child(3) {
    animation-delay: -3s;
}

.floating-card:nth-child(4) {
    animation-delay: -4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

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

/* Progressive enhancement: only animate on devices that support it */
@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-hidden.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ---- Buttons & Interactive Elements ---- */
button, a {
    cursor: pointer;
}

/* ---- Image Hover Effects ---- */
img {
    max-width: 100%;
    height: auto;
}

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

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

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

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

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero h1 br {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .floating-card {
        display: none;
    }
}

/* ---- Focus Styles for Accessibility ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #D4A84B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Print Styles ---- */
@media print {
    nav, #contact-form, button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
    }
}
