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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(212, 168, 67, 0.25);
    color: #1a2744;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ee;
}
::-webkit-scrollbar-thumb {
    background: #d4a843;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8922e;
}

/* Button Styles */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #e8c45a 0%, #d4a843 100%);
    color: #1a2744;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
    border: none;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.4);
    background: linear-gradient(135deg, #f0d68a 0%, #e8c45a 100%);
}

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

.btn-navy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #1a2744;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(26, 39, 68, 0.2);
    cursor: pointer;
    font-family: 'Lato', sans-serif;
}

.btn-navy:hover {
    background: rgba(26, 39, 68, 0.05);
    border-color: rgba(26, 39, 68, 0.4);
    transform: translateY(-2px);
}

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

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

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

/* Navbar scrolled state */
nav.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(26, 39, 68, 0.06);
}

nav.scrolled .nav-link {
    color: #1a2744;
}

nav.scrolled .btn-gold {
    color: #1a2744;
}

/* Mobile Menu */
.mobile-link {
    transition: all 0.3s ease;
}

.mobile-link:hover {
    color: #d4a843;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Menu Cards */
.menu-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-card:hover {
    transform: translateY(-4px);
}

.menu-card ul li {
    position: relative;
    padding-left: 0;
}

.menu-card ul li:not(:last-child) {
    border-bottom: 1px solid rgba(26, 39, 68, 0.06);
    padding-bottom: 3px;
}

/* Gallery */
.gallery-item {
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26, 39, 68, 0.08);
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 8px 40px rgba(26, 39, 68, 0.15);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-gold, .btn-navy {
        width: 100%;
        justify-content: center;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .fade-in, .fade-in-left, .fade-in-right {
        opacity: 1;
        transform: none;
    }
}
