/* ========== BASE & RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ========== NAV SCROLL STATE ========== */
#nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

#nav.scrolled .font-display {
    color: #0f172a;
}

/* ========== MOBILE MENU ========== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.close {
    opacity: 0;
    pointer-events: none;
}

body.menu-open {
    overflow: hidden;
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
    .about-reveal,
    .menu-reveal,
    .visit-reveal,
    .contact-reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .about-reveal.revealed,
    .menu-reveal.revealed,
    .visit-reveal.revealed,
    .contact-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered delays */
    .menu-card:nth-child(2) { transition-delay: 0.1s; }
    .menu-card:nth-child(3) { transition-delay: 0.2s; }
}

/* Fallback: always visible if JS is off or prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .about-reveal,
    .menu-reveal,
    .visit-reveal,
    .contact-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========== NAV LINKS ========== */
.nav-link {
    position: relative;
}

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

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

/* ========== MOBILE LINKS ========== */
.mobile-link {
    position: relative;
}

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

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

/* ========== MENU CARDS ========== */
.menu-card {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .menu-card {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
    }

    .menu-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== HERO ANIMATIONS ========== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

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

.hero-float-1 {
    animation: float-slow 6s ease-in-out infinite;
}

.hero-float-2 {
    animation: float-medium 4.5s ease-in-out infinite;
}

.hero-float-3 {
    animation: float-slow 5s ease-in-out infinite reverse;
}

/* ========== BUTTON HOVER GLOW ========== */
button[type="submit"]:hover,
a[href="#menu"]:hover {
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15) !important;
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== SELECTION ========== */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #0f172a;
}

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

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
