/* Custom overrides and utility enhancements */
html {
    scroll-behavior: smooth;
}

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

/* Selection color */
::selection {
    background-color: #047857;
    color: #fefdf8;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefdf8;
}
::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Navbar transition */
header {
    transition: box-shadow 0.3s ease;
}

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

/* Ensure mobile menu is hidden by default */
#mobile-menu {
    display: none;
}

#mobile-menu.open {
    display: block;
    animation: slideDown 0.25s ease;
}

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

/* Subtle card lift on hover */
.reveal:hover {
    transform: translateY(-2px);
}

/* Print styles */
@media print {
    header, footer, #contact-form, #menu-toggle {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
