/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

/* ── Navbar transition states ── */
#site-header {
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
#site-header.scrolled {
    background: rgba(250, 245, 251, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 110, 0.08);
}

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

/* ── Mobile menu ── */
.mobile-link { border-bottom: 1px solid rgba(123, 45, 110, 0.08); }
.mobile-link:last-child { border-bottom: none; }

/* ── Hero stat cards ── */
.stat-card {
    animation: float-card 6s ease-in-out infinite;
}
.stat-card:nth-child(2) { animation-delay: -2s; }
.stat-card:nth-child(3) { animation-delay: -4s; }

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── Scroll reveal (below-the-fold only) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Fallback: always visible if JS is disabled or reduced-motion */
.js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(24px); }
    .js .reveal.revealed { opacity: 1; transform: translateY(0); }
}

/* ── Card hover ── */
.card-hover { cursor: default; }

/* ── Gallery items ── */
.gallery-item { cursor: default; }
.gallery-item img { display: block; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf5fb; }
::-webkit-scrollbar-thumb { background: #d4a0d8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #bd6fc2; }

/* ── Selection ── */
::selection { background: #e8cced; color: #4a1b41; }
