/* Custom styles complementing Tailwind */

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

/* Selection color */
::selection {
    background: #2d6840;
    color: #FAF9F6;
}

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

/* Print styles */
@media print {
    nav, #back-to-top, .service-card:hover {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    .hero-overlay {
        background: #1a1a1a !important;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #000;
    }
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(10, 26, 15, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Subtle pattern for cream sections */
.bg-cream {
    background-color: #F5F3EE;
    background-image: radial-gradient(circle at 1px 1px, rgba(45,104,64,0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Card hover lift */
.service-card {
    will-change: transform;
}

/* Form input transitions */
input, textarea, select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Ensure hero image has no layout shift */
.hero-overlay + div img {
    contain: layout paint;
}
