/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: hidden; }

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(61, 43, 31, 0.08);
}

/* ── Mobile Menu ── */
#mobileMenu {
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Hero Image Stack ── */
.hero-img-stack {
    position: relative;
}
.hero-img-stack::before {
    content: '';
    position: absolute;
    inset: -12px;
    background: linear-gradient(135deg, #F7CFC1 0%, #FBE8DF 100%);
    border-radius: 2.5rem;
    z-index: -1;
    transform: rotate(-2deg);
}

/* ── Category Cards ── */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ── Fade-in Animation ── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }

/* ── Selection ── */
::selection {
    background: #F7CFC1;
    color: #5A2D23;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF6EE; }
::-webkit-scrollbar-thumb { background: #E2B064; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C1694F; }

/* ── Back to top ── */
#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
}
#backToTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
#backToTop:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(193, 105, 79, 0.4);
}

/* ── Form focus ring animation ── */
input:focus, select:focus, textarea:focus {
    animation: ringPulse 1.5s ease infinite;
}
@keyframes ringPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(236, 125, 94, 0.15); }
    50% { box-shadow: 0 0 0 5px rgba(236, 125, 94, 0.25); }
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
    .font-serif { line-height: 1.2; }
}
