/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Navbar ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 254, 249, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ── Hero ── */
#hero {
    position: relative;
}

/* ── Custom Selection ── */
::selection {
    background: #FFD0BC;
    color: #1F1F1F;
}

/* ── Form Styles ── */
select option {
    background: #2D2D2D;
    color: #F6F6F6;
}

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

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

/* ── Mobile Menu Animation ── */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ── Subtle Card Hover ── */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    img,
    .group:hover img,
    .group:hover .group-hover\:scale-105 {
        transition: none;
        transform: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
