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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(232, 99, 91, 0.3);
    color: #E8E9EB;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .reveal.revealed {
        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; }
}

/* ── Navbar ── */
#navbar {
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.5s ease, background-color 0.5s ease;
}

#navbar.scrolled {
    backdrop-filter: blur(12px);
    background-color: rgba(15, 17, 20, 0.85);
}

/* ── Mobile Menu ── */
.mobile-link {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ── Service Cards ── */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(232, 99, 91, 0.4), transparent);
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ── Form Styles ── */
select option {
    background: #1A1D23;
    color: #E8E9EB;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0F1114;
}

::-webkit-scrollbar-thumb {
    background: #3D4047;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555860;
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 1px solid rgba(232, 99, 91, 0.5);
    outline-offset: 2px;
}

/* ── Mobile Menu Active State ── */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ── Hamburger Animation ── */
.menu-open .nav-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-open .nav-line:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
}
