/* Custom overrides and additional styles */

/* Ensure smooth rendering on all browsers */
img {
    -webkit-font-smoothing: antialiased;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #0a1628;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* Subtle scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf9f7;
}
::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4b962;
}

/* Mobile menu overlay backdrop */
.mobile-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 24, 0.5);
    backdrop-filter: blur(4px);
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Image loading placeholder */
img {
    background-color: #e8e6e1;
}

/* Subtle parallax for hero on scroll */
@media (prefers-reduced-motion: no-preference) {
    .hero-bg {
        will-change: transform;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu, .reveal { display: none; }
    body { color: #000; background: #fff; }
    .hero-bg { background: #0a1628 !important; }
}
