/* Custom styles — overrides and enhancements beyond Tailwind */

:root {
    --emerald-950: #0a1c10;
    --emerald-900: #173421;
    --emerald-800: #1f432a;
    --emerald-700: #285636;
    --emerald-600: #346b43;
    --emerald-500: #4a8758;
    --cream-50: #fdfcf8;
    --cream-100: #faf8f0;
    --cream-200: #f5f0e0;
    --cream-300: #efe8cc;
    --cream-400: #e6d9ad;
    --cream-500: #d4c288;
}

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

/* Selection color */
::selection {
    background-color: rgba(31, 67, 42, 0.2);
    color: var(--emerald-950);
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid var(--emerald-500);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream-100);
}
::-webkit-scrollbar-thumb {
    background: var(--emerald-300);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-400);
}

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

/* Ensure mobile menu has proper z-index layering */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-bottom: 1px solid rgba(157, 191, 158, 0.2);
}

/* Reduced motion - ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    header, footer, #contact-form, .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    section {
        page-break-inside: avoid;
    }
}
