/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #f8c4b5;
    color: #6b251b;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .testimonial-card {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .service-card.revealed,
    .testimonial-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS is disabled */
@media not all and (prefers-reduced-motion: no-preference) {
    .service-card,
    .testimonial-card {
        opacity: 1;
        transform: none;
    }
}

/* ── Navbar scroll state ── */
.navbar-scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

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

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8e8;
}
::-webkit-scrollbar-thumb {
    background: #f4a089;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e0522e;
}

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

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

/* ── Form input autofill ── */
input:-webkit-autofill,
textarea:-webkit-autofill {
    box-shadow: 0 0 0 32px #fdf8e8 inset !important;
    -webkit-text-fill-color: #1c1917 !important;
    transition: background-color 5000s ease-in-out 0s;
}
