/* Custom styles for Libreria Cristiana CER MUSIC */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f5;
}
::-webkit-scrollbar-thumb {
    background: #f3a8b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d44565;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08) !important;
}

/* Float animation for hero card */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Scroll reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: reduce) {
    .reveal.hidden-reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
    .animate-float {
        animation: none;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
#mobileMenu.open {
    max-height: 400px;
    padding-top: 0;
}

/* Mobile link transitions */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #f3a8b8;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

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

/* Form styles */
input, textarea {
    background: #fefcfb;
    border: 1px solid #fce7eb;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #3d141b;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #7B2D3B;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}
input::placeholder, textarea::placeholder {
    color: #d44565;
    opacity: 0.5;
}

/* Success message */
.form-success {
    display: none;
    background: linear-gradient(135deg, #fdf2f4, #fce7eb);
    border: 1px solid #f9d0d9;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}
.form-success.show {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contact form container */
.contact-form-container {
    background: linear-gradient(135deg, #fef8f7, #fdf0ec);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid #fce1d8;
}
