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

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* JS adds .revealed when element enters viewport */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile Menu Animation ── */
.menu-line {
    display: block;
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
#menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.25rem;
}

/* ── Header scroll state ── */
#site-header.scrolled {
    box-shadow: 0 4px 20px rgba(31, 15, 31, 0.3);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1f0f1f; }
::-webkit-scrollbar-thumb { background: #6b3a6e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8b5a8f; }

/* ── Selection color ── */
::selection { background: #eab308; color: #1f0f1f; }

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid #eab308;
    outline-offset: 2px;
}

/* ── Smooth image loading ── */
img {
    display: block;
    max-width: 100%;
}

/* ── Form select arrow ── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b3a6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ── Hero floating card animations ── */
@media (prefers-reduced-motion: no-preference) {
    @keyframes float-slow {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }
    @keyframes float-medium {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-6px); }
    }
    @keyframes float-fast {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-8px); }
    }

    .hero-float-1 { animation: float-slow 6s ease-in-out infinite; }
    .hero-float-2 { animation: float-medium 5s ease-in-out infinite 0.5s; }
    .hero-float-3 { animation: float-fast 4s ease-in-out infinite 1s; }
}

/* ── Print styles ── */
@media print {
    #site-header, #contact, footer { display: none; }
    body { color: #000; background: #fff; }
    a { color: #000; }
}
