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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(251, 191, 36, 0.25);
    color: #064e3b;
}

/* ─── Navigation ─── */
#site-header {
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#nav-inner {
    transition: height 0.5s ease;
}

#site-header.scrolled #nav-inner {
    background-color: rgba(254, 252, 243, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #16a34a, #f59e0b);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

#site-header:not(.scrolled) .nav-link {
    color: rgba(254, 252, 243, 0.8) !important;
}

#site-header:not(.scrolled) .nav-link:hover {
    color: #fefcf3 !important;
}

#site-header:not(.scrolled) .nav-link::after {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ─── Hero Animations ─── */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.55s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Prefers-reduced-motion: keep content visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .hero-anim {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ─── Divider ─── */
.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 101, 52, 0.15), transparent);
    margin-bottom: 0;
}

/* ─── Gallery ─── */
.gallery-img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* ─── Menu List Items ─── */
#menu li:hover {
    background: linear-gradient(90deg, rgba(220, 252, 231, 0.4), transparent);
    border-radius: 8px;
    padding-left: 8px;
    margin-left: -8px;
    transition: all 0.25s ease;
}

/* ─── Buttons ─── */
button, a[role="button"] {
    cursor: pointer;
}

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

/* ─── Form Inputs ─── */
input:focus, textarea:focus {
    outline: none;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-scroll {
        bottom: 24px;
    }
}
