/* Custom styles for Doreen's Sewing & Vacuum Center */

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Manrope:wght@300;400;500&display=swap');

/* Custom font families */
.font-cormorant {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-manrope {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* Custom selection color */
::selection {
    background-color: #9f263b;
    color: #fef7f8;
}

/* Navbar transition */
#navbar {
    background-color: rgba(254, 247, 248, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    border-bottom-color: #f9d0d9;
    box-shadow: 0 1px 0 rgba(159, 38, 59, 0.05);
}

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

/* Service card hover */
.service-card {
    position: relative;
    transition: background-color 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(to right, transparent, #ec708e, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::after {
    opacity: 1;
}

/* Subtle parallax on hero image */
#hero .overflow-hidden img {
    transition: transform 0.7s ease;
}

#hero:hover .overflow-hidden img {
    transform: scale(1.02);
}

/* Gallery image hover */
.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #9f263b !important;
    box-shadow: 0 0 0 1px #9f263b;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .overflow-hidden img,
    #hero .overflow-hidden img {
        transition: none;
    }
    
    .service-card::after {
        transition: none;
    }
}

/* Loading animation for form success */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#form-success {
    animation: fadeInUp 0.4s ease forwards;
}
