/* Custom styles for Tri County Chemicals */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar glass effect when scrolled */
nav.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.06);
}

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

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

::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Gradient text fallback */
.text-gradient {
    background: linear-gradient(135deg, #059669, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle hover lift for cards */
@media (prefers-reduced-motion: no-preference) {
    .hover-lift {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

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

/* Ensure map iframe is responsive */
iframe {
    max-width: 100%;
}

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

    body {
        background: white !important;
        color: black !important;
    }

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