/* ========================================
   Rache's Beauty Salón y Barber Shop
   Custom Styles
   ======================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Lato', sans-serif;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

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

/* Custom Color Palette */
:root {
    --midnight-900: #030B1A;
    --midnight-950: #01050D;
    --mint-400: #7DD3C0;
    --mint-500: #5BB8A8;
    --mint-600: #3A9E8E;
    --mint-700: #2D7A6E;
    --stone-50: #FAFAF9;
    --stone-100: #F5F5F4;
    --stone-200: #E7E5E4;
    --stone-600: #575553;
}

/* Scroll Reveal Animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

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

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

/* Navbar Transition */
#navbar {
    transition: background-color 0.4s ease, 
                padding-top 0.4s ease, 
                padding-bottom 0.4s ease,
                box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(1, 5, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Hero Parallax */
#hero-bg {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

/* Selection color */
::selection {
    background-color: rgba(125, 211, 192, 0.3);
    color: #030B1A;
}

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

::-webkit-scrollbar-track {
    background: #030B1A;
}

::-webkit-scrollbar-thumb {
    background: #3A9E8E;
    border-radius: 4px;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    #hero-bg {
        transition: none;
    }
    
    img {
        transition: none;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .font-serif {
        font-family: 'Georgia', serif;
    }
}
