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

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.animate-fade-up { animation: fadeUp 0.8s ease-out both; }
.animate-fade-in { animation: fadeIn 1s ease-out both; }

/* ── Reveal on scroll ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ── Navigation ── */
#nav {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123, 63, 91, 0.06);
}
#nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 30px rgba(123, 63, 91, 0.06);
}

/* ── Mobile menu ── */
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu.closed { opacity: 0; pointer-events: none; }
.mobile-link { transition: opacity 0.3s ease; }
.menu-line { transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
#menu-toggle.active .menu-line:nth-child(1) { transform: translateY(5px) rotate(45deg); }
#menu-toggle.active .menu-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menu-toggle.active .menu-line:nth-child(3) { transform: translateY(-5px) rotate(-45deg); width: 1.25rem; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fefdf8; }
::-webkit-scrollbar-thumb { background: #ebd4dd; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #dda8be; }

/* ── Selection ── */
::selection { background: rgba(123, 63, 91, 0.15); color: #5c2f44; }

/* ── Form focus styles ── */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* ── Smooth hover for service cards ── */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* ── Map styling ── */
iframe[src*="google.com/maps"] {
    filter: saturate(0.6) brightness(1.02);
    transition: filter 0.4s ease;
}
iframe[src*="google.com/maps"]:hover {
    filter: saturate(0.8) brightness(1);
}
