/* Custom styles that complement Tailwind */

/* Subtle fade-in for elements that are already visible */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero text animation - runs on load */
.hero-title {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

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

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

::-webkit-scrollbar-thumb {
    background: #9dbe82;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #74a355;
}

/* Selection color */
::selection {
    background: #c6d9b5;
    color: #213417;
}

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

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Print styles */
@media print {
    nav, #contact-form, .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-gradient {
        background: #213417 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
}

/* Large screen adjustments */
@media (min-width: 1920px) {
    .max-w-6xl {
        max-width: 72rem;
    }
}
