/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Scroll-reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ── Navbar scroll state ── */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(89, 46, 57, 0.08), 0 4px 24px rgba(89, 46, 57, 0.06);
}

/* ── Service card hover accent line ── */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fcd34d);
    border-radius: 3px 3px 0 0;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover::after {
    width: 60%;
}

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

/* ── Selection color ── */
::selection {
    background: #d7a8b8;
    color: #34181f;
}

/* ── Smooth focus outlines ── */
a:focus-visible, button:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Map container ── */
iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.4s ease;
}
iframe:hover {
    filter: saturate(1) contrast(1);
}
