/* Custom styles for Hawkins Water Treatment Group */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf7ee;
}
::-webkit-scrollbar-thumb {
    background: #d6963e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c2331f;
}

/* Selection color */
::selection {
    background: #d4432a;
    color: white;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .menu-line {
    background: #0f1a2e !important;
}

.navbar-scrolled .font-display,
.navbar-scrolled .text-navy-900 {
    color: #0f1a2e !important;
}

/* Mobile menu active state */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Mobile link hover */
.mobile-link {
    transition: color 0.3s ease;
}

/* Hero text gradient */
.hero-gradient-text {
    background: linear-gradient(135deg, #f4dbaa 0%, #d4432a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

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

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d4432a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image hover zoom */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 67, 42, 0.15);
}

/* Step connector lines for mobile */
@media (max-width: 1023px) {
    .step-connector {
        display: none;
    }
}

/* Print styles */
@media print {
    nav, #contact, .cta-section, footer {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
