/* ─── Custom utilities ─── */
html { scroll-behavior: smooth; }

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

.backdrop-border {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ─── Navbar scroll state ─── */
.nav-scrolled {
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav-scrolled.scrolled {
    background: rgba(254, 253, 249, 0.97) !important;
    box-shadow: 0 1px 12px rgba(42, 26, 16, 0.08);
}

/* ─── Mobile menu transitions ─── */
#mobileMenu.open .absolute {
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ─── Hamburger animation ─── */
#menuBtn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#menuBtn.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menuBtn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ─── Button ripple on focus ─── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #e05530;
    outline-offset: 2px;
}

/* ─── Selection color ─── */
::selection {
    background: #f8c4b2;
    color: #3d2b1f;
}
