/* Custom styles for Sandra's Salon */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f9f1f4;
}
::-webkit-scrollbar-thumb {
    background: #a85577;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8b3a5c;
}

/* Selection color */
::selection {
    background: #a85577;
    color: #fff;
}

/* Navbar transition states */
.navbar-scrolled {
    background: rgba(249, 241, 244, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(42, 15, 27, 0.08);
}

.navbar-scrolled .nav-link {
    color: #5c263d;
}

.navbar-scrolled .font-serif.text-xl {
    color: #4d2134;
}

/* Hero animations */
.hero-tag {
    animation: fadeInDown 0.8s ease forwards;
}

.hero h1 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero p {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero .flex-wrap {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

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

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

/* Scroll reveal base styles — progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(42, 15, 27, 0.15);
}

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

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f5b800;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-tag,
    .hero h1,
    .hero p,
    .hero .flex-wrap {
        animation: none;
        opacity: 1;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile menu animation */
#mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Custom select dropdown */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23712d4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #e8c4d4 0%, #d8a0b8 100%);
}
