/* ========================================
   El Olivo Restaurant & Cafe
   Custom Styles
======================================== */

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

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

/* --- Custom Button Styles --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 0.9375rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* --- Navigation --- */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

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

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

/* Scroll-based navbar styling */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #0a1f30;
}

.nav-scrolled .nav-link {
    color: #0a1f30;
}

.nav-scrolled .btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* --- Menu Tabs --- */
.menu-tab {
    padding: 0.625rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.9375rem;
    border: 2px solid #d1d5db;
    background: transparent;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    border-color: #86efac;
    color: #166534;
    background: #f0fdf4;
}

.menu-tab.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #22c55e;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

/* --- Menu Items --- */
.menu-item {
    animation: fadeInUp 0.4s ease forwards;
}

.menu-item.hidden {
    display: none;
}

/* --- Mobile Menu --- */
.mobile-menu-link {
    position: relative;
    padding-left: 1rem;
}

.mobile-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-link:hover::before {
    opacity: 1;
}

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

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

/* Initial state for reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Form Styles --- */
input:focus,
textarea:focus {
    outline: none;
}

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

/* --- Utility --- */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
}

/* --- Selection Color --- */
::selection {
    background: rgba(34, 197, 94, 0.2);
    color: #0a1f30;
}
