/* ── Base & Typography ─────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(212, 84, 43, 0.2);
    color: #2C1810;
}

/* ── Scroll Reveal (progressive enhancement) ───────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        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);
    }
    .reveal-left {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal-right {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal-up,
    .reveal-left,
    .reveal-right {
        will-change: opacity, transform;
    }
}

/* Fallback: content always visible */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

/* ── Navbar ────────────────────────────────────────────────────── */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(44, 24, 16, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #d4542b;
    transition: width 0.3s ease;
}

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

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #f6c4b0;
}

#navbar:not(.scrolled) .nav-link::after {
    background: #f6c4b0;
}

/* ── Stat Cards ────────────────────────────────────────────────── */
.stat-card {
    animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-delay: -2s;
    margin-top: 1.5rem;
}

.stat-card:nth-child(3) {
    animation-delay: -4s;
}

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

/* ── Menu Tabs ─────────────────────────────────────────────────── */
.menu-tab {
    background: transparent;
    color: rgba(44, 24, 16, 0.5);
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: white;
    color: #d4542b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ── Menu Cards ────────────────────────────────────────────────── */
.menu-card {
    border: 1px solid rgba(44, 24, 16, 0.06);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.menu-card:hover {
    border-color: rgba(212, 84, 43, 0.2);
    box-shadow: 0 8px 32px rgba(44, 24, 16, 0.08);
}

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

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

/* ── Divider Lines ─────────────────────────────────────────────── */
.divider-accent {
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4542b, transparent);
}

/* ── Button Focus States ───────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4542b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Smooth image loading ──────────────────────────────────────── */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* ── Subtle pattern overlay for sections ───────────────────────── */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(44, 24, 16, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* ── Custom scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDF8F0;
}

::-webkit-scrollbar-thumb {
    background: #d4542b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b83f1e;
}

/* ── Responsive adjustments ────────────────────────────────────── */
@media (max-width: 768px) {
    .stat-card {
        display: none;
    }

    #hero h1 {
        font-size: 2.75rem;
        line-height: 1.1;
    }

    #hero h1 br {
        display: none;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
}
