/* Custom CSS for Stonewater Pool */

:root {
    --midnight: #0A1628;
    --midnight-light: #1B3A5C;
    --mint-50: #F0FDFA;
    --mint-100: #CCFBF1;
    --mint-200: #99F6E0;
    --mint-300: #5EEAD4;
    --mint-400: #2DD4BF;
    --mint-500: #14B8A6;
    --mint-600: #0D9488;
}

/* Tailwind config */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    html {
        scroll-behavior: smooth;
    }
    
    body {
        font-family: 'DM Sans', sans-serif;
    }
    
    .font-playfair {
        font-family: 'Playfair Display', serif;
    }
    
    .font-dm {
        font-family: 'DM Sans', sans-serif;
    }
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 5s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-card {
    will-change: transform;
}

/* 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 */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.2);
    color: #0A1628;
}

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

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

/* Focus styles */
*:focus-visible {
    outline: 2px solid #14B8A6;
    outline-offset: 2px;
}

/* Image loading */
img {
    background-color: #f1f5f9;
}
