/* Custom Styles for Toni's Hair We Go */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

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

/* Navigation */
#navbar {
    transition: all 0.5s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

/* Hero Section */
.hero-section {
    position: relative;
}

/* Service Cards */
.service-card {
    transition: all 0.5s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: rgba(196, 53, 53, 0.3);
    transform: translateY(-5px);
}

/* Gallery Items */
.gallery-item {
    position: relative;
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(196, 53, 53, 0.15);
}

/* Form Inputs */
input,
textarea,
select {
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(196, 53, 53, 0.1);
}

/* Buttons */
button,
a {
    transition: all 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll Reveal Animations (Progressive Enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #C43535;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8C1F1F;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 3px solid #C43535;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    #navbar,
    button,
    form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-burgundy-800 {
        background: #C43535 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
