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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #a3f4d3;
    color: #0a1628;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── Navigation ───────────────────────────────────────── */
#nav {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#nav.scrolled {
    background: rgba(248, 246, 242, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

.nav-link {
    position: relative;
}

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

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

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

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

/* ── Menu Toggle ──────────────────────────────────────── */
#menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-line {
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg);
    width: 24px;
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(8px);
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg);
    width: 24px;
}

/* ── Reveal Animations ────────────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered delays */
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.2s; }
.reveal-up:nth-child(4) { transition-delay: 0.3s; }

/* ── Scroll-triggered reveals ─────────────────────────── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Menu Items Hover ─────────────────────────────────── */
#menu .border-b {
    transition: border-color 0.3s ease;
}

#menu > div > div > div > .space-y-5 > div:hover .border-b {
    border-color: rgba(163, 244, 211, 0.4);
}

#menu .space-y-5 > div {
    transition: transform 0.3s ease;
}

#menu .space-y-5 > div:hover {
    transform: translateX(4px);
}

/* ── Image Hover ──────────────────────────────────────── */
#about img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#about img:hover {
    transform: scale(1.02);
}

/* ── Card Hover ───────────────────────────────────────── */
#hours .rounded-xl {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease;
}

#hours .rounded-xl:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
}

/* ── Button Hover ─────────────────────────────────────── */
#visit a {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Footer ───────────────────────────────────────────── */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #a3f4d3;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .font-serif.text-5xl {
        font-size: 2.75rem;
    }

    #about img {
        height: 200px;
    }

    #about img:nth-child(even) {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .font-serif.text-4xl {
        font-size: 2.25rem;
    }
}
