/* Custom styles for Meridian Management Group */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.04);
}

#navbar.scrolled .font-serif {
    color: #0f172a;
}

#navbar.scrolled a:not([class*="bg-"]) {
    color: #475569;
}

#navbar.scrolled a:not([class*="bg-"]):hover {
    color: #0f766e;
}

/* Selection color */
::selection {
    background-color: #0f766e;
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

/* Subtle hover lift for cards */
.reveal {
    will-change: transform, opacity;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    #navbar, .reveal {
        display: block !important;
        opacity: 1 !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
