/* Custom styles — editorial, serif-forward design */

:root {
    --navy-900: #0a1128;
    --navy-800: #1a2b4f;
    --gold-500: #c9953c;
    --gold-400: #d4a84b;
}

html {
    scroll-behavior: smooth;
}

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

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

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

/* Service card stagger animation (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.5s ease;
    }
}

/* Selection color */
::selection {
    background: var(--gold-500);
    color: var(--navy-900);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--navy-900);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-500);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-400);
}

/* Subtle grain overlay on hero */
#hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Form select arrow override */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%231a2b4f'/%3E%3C/svg%3E");
}
