/* Custom styles for Amor y Paz Hair Studio */

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

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

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

/* Service card hover effect */
.service-card {
    transition: all 0.3s ease;
}

/* Navbar scroll effect */
.nav-scrolled {
    background-color: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(27, 67, 50, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2d6e2d;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1B4332 !important;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

/* Button hover effects */
button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* Image hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

/* Print styles */
@media print {
    nav,
    #contact-form,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Mobile menu animations */
#mobile-menu {
    animation: fadeIn 0.3s ease;
}

/* Testimonial card hover */
.bg-cream-50:hover {
    border-color: #8ec48e;
}

/* Gallery image hover overlay */
.aspect-square:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 67, 50, 0.3), transparent);
}

/* Smooth transitions for all interactive elements */
a,
button,
input,
textarea,
select {
    transition: all 0.2s ease;
}

/* Ensure proper spacing on mobile */
@media (max-width: 640px) {
    .font-display {
        font-size: 2.5rem;
    }
}

/* Custom selection color */
::selection {
    background-color: #1B4332;
    color: #fefdf8;
}
