/* ===== Custom Styles for Maria Bonita Cocina ===== */

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

body {
    font-family: 'Nunito', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 245, 252, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(123, 45, 142, 0.1);
}

.nav-link {
    position: relative;
}

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

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

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

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

.mobile-link {
    position: relative;
    padding-left: 0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: #F59E0B;
    padding-left: 8px;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #F59E0B;
    transition: width 0.2s ease;
}

.mobile-link:hover::before {
    width: 8px;
}

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

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1s;
}

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

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .animate-float,
    .animate-float-delayed {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===== Form Styles ===== */
input:focus,
select:focus,
textarea:focus {
    border-color: #a84d96 !important;
    box-shadow: 0 0 0 4px rgba(168, 77, 150, 0.15) !important;
}

/* ===== Button Hover Effects ===== */
a[href="#menu"],
a[href="#about"],
a[href="#specials"],
a[href="#visit"],
a[href="#contact"] {
    text-decoration: none;
}

/* ===== Card Hover ===== */
.bg-plum-50 .group:hover img {
    transform: scale(1.1);
}

/* ===== Section Dividers ===== */
section + section::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #7B2D8E, #F59E0B, #7B2D8E);
    opacity: 0.2;
}

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

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

::-webkit-scrollbar-thumb {
    background: #dbaed7;
    border-radius: 5px;
}

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

/* ===== Selection ===== */
::selection {
    background: #dbaed7;
    color: #4a1a54;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    #hero h1 {
        font-size: clamp(2.2rem, 10vw, 4rem);
    }
}

/* ===== Print ===== */
@media print {
    #navbar,
    .animate-float,
    .animate-float-delayed {
        display: none;
    }
}
