/* ========================================
   Pasquale's 3 Brothers Italian Restaurant
   Premium Dark Luxury Stylesheet
   ======================================== */

/* --- CSS Variables --- */
:root {
    --plum-900: #1a0f14;
    --plum-800: #2d1822;
    --gold: #D4AF37;
    --gold-light: #F4E4A0;
    --gold-dark: #AA8C2C;
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--plum-900);
    color: #f3f4f6;
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Gold Button --- */
.gold-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--plum-900);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gold-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.gold-btn:hover::before {
    left: 0;
}

.gold-btn span,
.gold-btn svg,
.gold-btn > * {
    position: relative;
    z-index: 1;
}

.gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation-name: fadeIn;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    animation-iteration-count: 1;
}

.animate-float-up {
    animation-name: floatUp;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    animation-iteration-count: 1;
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --- Navbar --- */
#navbar.scrolled {
    background: rgba(26, 15, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--gold) !important;
}

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

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

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

.mobile-link:hover {
    color: var(--gold) !important;
    padding-left: 12px;
}

/* --- Selection --- */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--gold-light);
}

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

::-webkit-scrollbar-track {
    background: var(--plum-900);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* --- Input Date Picker --- */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(60%) sepia(40%) saturate(500%) hue-rotate(10deg);
    cursor: pointer;
}

select option {
    background: var(--plum-800);
    color: #f3f4f6;
}

textarea option {
    background: var(--plum-800);
    color: #f3f4f6;
}
