/* Hero background */
.hero-bg {
    background:
        linear-gradient(180deg, rgba(11,28,20,0.62) 0%, rgba(11,28,20,0.78) 55%, rgba(11,28,20,0.95) 100%),
        url('../img/hero.jpg') center/cover no-repeat;
    background-attachment: scroll;
}
@media (min-width: 1024px) {
    .hero-bg { background-attachment: fixed; }
}

/* Slider */
.slider {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.slider > * { scroll-snap-align: start; }

/* Gallery */
.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-item:hover img {
    transform: scale(1.04);
}

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar — transparent on top, solid after scroll */
#navbar {
    background-color: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
#navbar.nav-scrolled {
    background-color: rgba(11, 28, 20, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Active nav link */
.nav-active {
    color: #ffffff !important;
    position: relative;
}
.nav-active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -8px;
    height: 1px;
    background: #ffffff;
}

/* Selection */
::selection {
    background: #0B1C14;
    color: #F7F6F2;
}

/* Serif italic — tighten the display italic */
.font-serif em {
    font-style: italic;
    font-family: 'Instrument Serif', Georgia, serif;
}
