/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background: #a8e6cf;
    color: #0f2b3c;
}

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(28px);
    }

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

/* ── Navbar ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 230, 207, 0.3);
    box-shadow: 0 1px 20px rgba(15, 43, 60, 0.06);
}

#navbar.scrolled .font-serif {
    color: #0f2b3c !important;
}

#navbar.scrolled a:not(.inline-flex) {
    color: #1e3858 !important;
}

#navbar.scrolled a:not(.inline-flex):hover {
    color: #2fa87e !important;
}

/* ── Mobile Menu ── */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    position: relative;
}

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

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

/* ── Menu Cards Hover ── */
.bg-white.rounded-3xl {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.bg-white.rounded-3xl:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(15, 43, 60, 0.08);
}

/* ── Button Hover ── */
a[href="#menu"].group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a[href="#menu"].group:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(168, 230, 207, 0.35) !important;
}

/* ── Gallery Images ── */
.rounded-2xl.overflow-hidden {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.rounded-2xl.overflow-hidden:hover {
    transform: scale(1.02);
}

/* ── Smooth Focus ── */
:focus-visible {
    outline: 2px solid #a8e6cf;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #a8e6cf;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #72d4b5;
}
