/* ============================================
   Happy Eats — Custom Styles
   Classic & Elegant · Forest Green + Off-White
   ============================================ */

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #3A5A40;
    color: #F5F2EB;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F2EB;
}
::-webkit-scrollbar-thumb {
    background: #3A5A40;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d4733;
}

/* ---------- Navigation ---------- */
.nav-link {
    position: relative;
}

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

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

.nav-scrolled .nav-link {
    color: #F5F2EB;
}

#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

.nav-scrolled {
    background-color: rgba(14, 22, 16, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #F5F2EB;
    transition: width 0.3s ease;
}

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

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: #3A5A40;
    color: #F5F2EB;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 4px 15px rgba(58, 90, 64, 0.3);
}

.btn-primary:hover {
    background-color: #2d4733;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 90, 64, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: #F5F2EB;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1.5px solid rgba(245, 242, 235, 0.4);
    transition: all 0.35s ease;
}

.btn-secondary:hover {
    background-color: rgba(245, 242, 235, 0.1);
    border-color: #F5F2EB;
    transform: translateY(-2px);
}

.btn-reserved {
    display: inline-flex;
    align-items: center;
    background-color: #3A5A40;
    color: #F5F2EB;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all 0.35s ease;
}

.btn-reserved:hover {
    background-color: #2d4733;
    transform: translateY(-1px);
}

/* ---------- Section Labels & Headings ---------- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #3A5A40;
    position: relative;
    padding-left: 32px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 1.5px;
    background-color: #3A5A40;
}

.section-heading {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #18261c;
}

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

.floating-card-2 {
    animation: float2 7s ease-in-out infinite;
}

.floating-card-3 {
    animation: float3 5.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

/* ---------- Menu Tabs ---------- */
.menu-tab {
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #aad0ae;
    background: transparent;
    border: 1.5px solid rgba(170, 208, 174, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    border-color: rgba(170, 208, 174, 0.6);
    color: #F5F2EB;
}

.menu-tab.active {
    background-color: #3A5A40;
    border-color: #3A5A40;
    color: #F5F2EB;
}

.menu-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(170, 208, 174, 0.15);
}

.menu-item:last-child {
    border-bottom: none;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        transition: none;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .section-label {
        padding-left: 0;
    }
    .section-label::before {
        display: none;
    }
    .section-heading {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}
