/* Custom styles for Pipers Plumbing */

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

/* Base font settings */
body {
    font-family: 'Outfit', sans-serif;
}

.font-jakarta {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Reveal animations - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }

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

/* Fallback: ensure content is visible even without JS */
@supports not (animation: reveal 0.7s ease-out) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #99f6e4;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5eead4;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    background-color: #ffffff !important;
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Selection color */
::selection {
    background-color: #99f6e4;
    color: #0f766e;
}

/* Navbar scroll state */
.navbar-scrolled #nav-bg {
    opacity: 1;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
