/* ── Base ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #44403C;
    background-color: #FDF8F0;
}

/* ── Scroll reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(32px);
        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);
    }
}

/* Fallback: always visible if JS is disabled or prefers-reduced-motion */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

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

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(196, 112, 75, 0.08);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C4704B;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

#navbar.scrolled .nav-link {
    color: #44403C;
}

#navbar.scrolled .nav-link:hover {
    color: #C4704B;
}

/* ── Hero animations ── */
@media (prefers-reduced-motion: no-preference) {
    .hero-orb {
        animation: float 8s ease-in-out infinite;
    }

    .hero-orb:nth-child(2) {
        animation-delay: -2s;
        animation-duration: 10s;
    }

    .hero-orb:nth-child(3) {
        animation-delay: -4s;
        animation-duration: 12s;
    }

    .hero-float {
        animation: drift 6s ease-in-out infinite;
    }

    .hero-float:nth-child(2) {
        animation-delay: -3s;
        animation-duration: 7s;
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

@keyframes drift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ── Mobile menu ── */
#mobile-menu.open {
    translate: 0;
    opacity: 1;
    pointer-events: all;
}

/* ── Selection color ── */
::selection {
    background: #C4704B;
    color: #FDF8F0;
}

/* ── Focus styles ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C4704B;
    outline-offset: 3px;
    border-radius: 4px;
}

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