/* Custom styles beyond Tailwind */

/* Base reset & smooth rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: #3d8a3d;
    color: #fdfcf8;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f2;
}
::-webkit-scrollbar-thumb {
    background: #b8dfb8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8ec88e;
}

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

/* Ensure hero content is visible without JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure all content is visible even without JS */
.no-js .reveal,
.js .reveal {
    /* JS will add .visible class */
}

/* Print styles */
@media print {
    nav, #mobile-menu, .geo-circle, .geo-square, .float-1, .float-2, .float-3 {
        display: none !important;
    }
    body {
        color: #1a1a1a;
        background: white;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .stat-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        margin-bottom: 1rem;
    }
}
