/* Custom Styles for Accurate Pool Maintenance */

:root {
    --charcoal: #2C3E50;
    --coral: #FF6B6B;
    --coral-dark: #E55A5A;
    --stone-50: #FAFAF9;
    --stone-100: #F5F5F4;
    --stone-500: #78716C;
    --stone-800: #292524;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--charcoal);
    background-color: var(--stone-50);
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

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

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

::-webkit-scrollbar-track {
    background: var(--stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--charcoal);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coral);
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Service Card Hover Effect */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--coral) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Smooth Image Loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
