/* ═══════════════════════════════════════════
   CraneTime LLC — Custom Styles
   ═══════════════════════════════════════════ */

/* Scroll-behavior for smooth anchor navigation */
html {
    scroll-behavior: smooth;
}

/* ─── Reveal on Scroll (progressive enhancement) ─── */
/* Default state: all elements visible (works without JS) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ─── Navbar transition ─── */
#site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(74, 35, 90, 0.08);
}

/* ─── Mobile menu animation ─── */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

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

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0f7;
}
::-webkit-scrollbar-thumb {
    background: #d6bfdc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b994c2;
}

/* ─── Focus visible for accessibility ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #E8A838;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Selection color ─── */
::selection {
    background: #E8A838;
    color: #2e163a;
}

/* ─── Image lazy-load shimmer ─── */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}
