/* Custom styles that complement Tailwind CSS */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f0;
}
::-webkit-scrollbar-thumb {
    background: #a8d4a8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6fb86f;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #2d7a2d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #a8d4a8;
    color: #0a230a;
}

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

/* Reduce motion for users who prefer it */
@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;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav, .scroll-progress, #contactForm, #formSuccess {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* Ensure proper touch targets on mobile */
@media (max-width: 640px) {
    a, button {
        min-height: 44px;
    }
}

/* Subtle gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #1e5c1e 0%, #4a9a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Subtle pattern background */
.pattern-bg {
    background-image: radial-gradient(circle, #d5e8d5 1px, transparent 1px);
    background-size: 20px 20px;
}
