/* ───────────────────────────────────────────
   Wildflour Bistro — Custom Styles
   Plum + Amber palette, warm & friendly
   ─────────────────────────────────────────── */

/* ── Base ── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #F5C77E;
    color: #3E2035;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #D4903A 0%, #E8A84C 100%);
    color: #3E2035;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 800;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(212, 144, 58, 0.35), 0 2px 4px rgba(212, 144, 58, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 144, 58, 0.4), 0 4px 8px rgba(212, 144, 58, 0.25);
    background: linear-gradient(135deg, #B8782E 0%, #D4903A 100%);
    color: #2F1828;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    color: #6B3A5D;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    border: 2px solid rgba(107, 58, 93, 0.2);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #fff;
    border-color: #6B3A5D;
    transform: translateY(-2px);
}

/* ── Nav links ── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #D4903A;
    border-radius: 1px;
    transition: width 0.2s ease, left 0.2s ease;
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

.mobile-nav-link {
    display: block;
}

/* ── Floating cards ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

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

.floating-card {
    animation: float 3.5s ease-in-out infinite;
}

.floating-card.animate-float-delayed {
    animation-name: float-delayed;
    animation-delay: 1.2s;
}

/* ── Menu cards ── */
.menu-card {
    opacity: 0;
    transform: translateY(24px);
}

.menu-card.visible {
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* stagger delays */
.menu-card:nth-child(1) { animation-delay: 0.1s; }
.menu-card:nth-child(2) { animation-delay: 0.25s; }
.menu-card:nth-child(3) { animation-delay: 0.4s; }

/* ── Navbar scroll state ── */
#navbar.scrolled {
    background: rgba(249, 243, 247, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(107, 58, 93, 0.08);
}

/* ── Section reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Focus styles ── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ── Mobile menu animation ── */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

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

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
    .floating-card {
        display: none;
    }
}
