/* ===== Base & Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #1B4332;
    color: #FDF8F0;
}

/* ===== Navigation ===== */
.nav-text-color {
    transition: color 0.5s ease;
}

.nav-link {
    transition: color 0.3s ease;
}

/* ===== Hero ===== */
.hero-overlay {
    background: linear-gradient(to right, rgba(10, 26, 19, 0.9) 0%, rgba(20, 46, 35, 0.75) 50%, rgba(27, 67, 50, 0.5) 100%);
}

/* ===== Service Cards ===== */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ===== Feature Cards ===== */
.feature-card {
    transition: transform 0.4s ease, background-color 0.5s ease;
}

.feature-card:hover {
    transform: translateX(4px);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu.inactive {
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-link:hover {
    transform: scale(1.05);
}

/* ===== Scroll Animations ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #1B4332;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2e7d32;
}

/* ===== Form Select Arrow ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B4332' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ===== Utility ===== */
.text-shadow-sm {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
