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

/* ── Navbar scroll state ── */
#nav.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
#nav.scrolled .font-display { color: #2a231e; }

/* ── Mobile menu ── */
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu .mobile-link { transform: translateY(20px); opacity: 0; transition: all 0.3s ease; }
#mobile-menu.open .mobile-link { transform: translateY(0); opacity: 1; }
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Menu button animation ── */
.menu-btn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-btn.active .menu-line:nth-child(2) { opacity: 0; }
.menu-btn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); width: 1.25rem; }

/* ── Floating animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float { animation: float 3s ease-in-out infinite; }

/* ── Service cards ── */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

/* ── Scroll reveal (below-fold only) ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Gallery hover ── */
.gallery-item img {
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* ── Testimonial cards ── */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ── Selection color ── */
::selection {
    background: #f8c4b0;
    color: #6e2214;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf8f0; }
::-webkit-scrollbar-thumb { background: #e8a080; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d43f1c; }
