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

body {
    overflow-x: hidden;
}

/* ── Scroll Reveal ── */
.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[data-reveal="delay-1"] { transition-delay: 0.1s; }
.scroll-reveal[data-reveal="delay-2"] { transition-delay: 0.2s; }
.scroll-reveal[data-reveal="delay-3"] { transition-delay: 0.3s; }
.scroll-reveal[data-reveal="delay-4"] { transition-delay: 0.4s; }
.scroll-reveal[data-reveal="delay-5"] { transition-delay: 0.5s; }
.scroll-reveal[data-reveal="delay-6"] { transition-delay: 0.6s; }

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

/* Default state for reduced-motion — content always visible */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

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

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(192, 108, 74, 0.08);
    padding: 0;
}

#navbar.scrolled .font-serif {
    color: #a85a3e;
}

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

#mobile-menu:not(.open) {
    opacity: 0;
    pointer-events: none;
}

/* ── Hamburger Animation ── */
#mobile-toggle.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-toggle.active #bar2 {
    opacity: 0;
}
#mobile-toggle.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ── Selection ── */
::selection {
    background: #e9b8a3;
    color: #5e3226;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
    background: #e9b8a3;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d07052;
}

/* ── Form focus ring animation ── */
input:focus, select:focus, textarea:focus {
    animation: focusRing 0.3s ease forwards;
}

@keyframes focusRing {
    from { box-shadow: 0 0 0 0 rgba(192, 108, 74, 0.2); }
    to   { box-shadow: 0 0 0 4px rgba(192, 108, 74, 0.15); }
}

/* ── Button hover shimmer ── */
button, a[href^="tel"] {
    position: relative;
    overflow: hidden;
}

button::after, a[href^="tel"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

button:hover::after, a[href^="tel"]:hover::after {
    transform: translateX(100%);
}
