/* Cantu Hydraulics — Custom Styles */

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

/* Base adjustments */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(194, 68, 30, 0.15);
    color: #6b2615;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F5F0E8;
}
::-webkit-scrollbar-thumb {
    background: #d4c4b0;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b89958;
}

/* Service cards - staggered reveal animation */
.service-card {
    border-top: 1px solid #e5e0d8;
    border-left: 1px solid #e5e0d8;
}
.service-card:last-child {
    border-left: none;
}

/* Scroll reveal base state (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Only animate on systems that support it and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

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

/* Subtle hover lift on images */
img {
    transition: transform 0.5s ease;
}

/* Hero parallax-like subtle effect */
@media (prefers-reduced-motion: no-preference) {
    .hero-bg-element {
        will-change: transform;
        transition: transform 0.1s linear;
    }
}

/* Print styles */
@media print {
    header, footer, #contact-form, .scroll-indicator {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}
