/* Custom styles for Fabulashes by Brooke */

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

/* Prevent flash on scroll-reveal elements */
.service-card,
.gallery-item {
    opacity: 1;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 242, 248, 0.95);
    backdrop-blur-md;
    box-shadow: 0 4px 20px rgba(107, 45, 91, 0.08);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover glow */
.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery hover overlay */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(107, 45, 91, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #f472b6;
}

/* Selection color */
::selection {
    background: #fbcfe8;
    color: #4d1f41;
}

/* Mobile link transitions */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #fce7f3;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #D4943B;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.15;
    }
    
    #hero h1 {
        font-size: 2.75rem;
    }
    
    #hero h1 br {
        display: none;
    }
}

/* Loading state for buttons */
button:active {
    transform: scale(0.98);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    border-color: #D4943B !important;
    box-shadow: 0 0 0 3px rgba(212, 148, 59, 0.15);
}

/* Print styles */
@media print {
    #navbar,
    .animate-bounce,
    #contact-form {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
