/* ═══════════════════════════════════════════════════════
   Ms Bubbles — Custom Styles
   Confident corporate · Plum + Amber palette
   ═══════════════════════════════════════════════════════ */

/* ── Base & Smooth Scrolling ────────────────────────── */
html {
    scroll-behavior: smooth;
}

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

/* ── Scroll Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .testimonial-card,
    .gallery-item {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .service-card.reveal,
    .testimonial-card.reveal,
    .gallery-item.reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .service-card.reveal.visible,
    .testimonial-card.reveal.visible,
    .gallery-item.reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Navbar Scroll State ─────────────────────────────── */
#navbar.scrolled {
    box-shadow: 0 1px 12px rgba(107, 47, 91, 0.08);
}

/* ── Mobile Menu ─────────────────────────────────────── */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Back to Top ─────────────────────────────────────── */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:not(.visible) {
    transition: opacity 0.3s ease;
}

/* ── Focus Styles ────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Selection ────────────────────────────────────────── */
::selection {
    background-color: rgba(107, 47, 91, 0.2);
    color: #4a1e3e;
}

/* ── Custom Scrollbar ────────────────────────────────── */
@media (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #faf5f8;
    }
    ::-webkit-scrollbar-thumb {
        background: #d6a3b8;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #a85275;
    }
}
