/* Custom styles that extend beyond Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background-color: #3f6628;
    color: #faf9f6;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3f6628;
    outline-offset: 2px;
}

/* Reduced motion */
@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;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .img-zoom img {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    #menuOverlay,
    .cta-btn {
        display: none !important;
    }

    body {
        color: #1f3314;
        background: white;
    }

    .hero-grid {
        min-height: auto;
    }

    section {
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .service-card {
        border: 1px solid ButtonText;
    }

    .cta-btn {
        border: 2px solid ButtonText;
    }
}

/* Subtle pattern overlay for cream backgrounds */
.bg-cream-50::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(63, 102, 40, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}
