/* ═══════════════════════════════════════════════════════════
   Kay's Place — Custom Styles
   Palette: Midnight Blue (#0f2b4c) + Mint (#1cc06a)
   Fonts: DM Serif Display + Inter
   ═══════════════════════════════════════════════════════════ */

/* ── Base ── */
*, *::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; }

/* ── Navigation ── */
#site-header.scrolled {
    background: rgba(5, 14, 26, 0.92);
    backdrop-blur: 16px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7fedb0;
    border-radius: 1px;
    transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Hero ── */
.hero-bg img {
    will-change: transform;
    transition: transform 8s ease;
}
#hero.loaded .hero-bg img {
    transform: scale(1);
}

/* ── Scroll-reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Fallback: always visible if reduced motion or no JS */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}

/* ── Gallery marquee ── */
@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-scroll-left {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    animation: scroll-left linear infinite;
}
.animate-scroll-left img {
    flex-shrink: 0;
}

/* ── Mobile menu ── */
#mobile-menu {
    animation: slideDown 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Form focus states ── */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(28, 192, 106, 0.15);
}

/* ── Utility ── */
::selection {
    background: rgba(28, 192, 106, 0.25);
    color: #0f2b4c;
}
