/* Custom styles for Carolyn's Beauty Shop */

:root {
    --midnight-800: #081a32;
    --midnight-700: #0f2b50;
    --midnight-600: #163c6e;
    --midnight-500: #1e4d8c;
    --mint-300: #aedea8;
    --mint-400: #86c76d;
    --mint-500: #3a901a;
}

html {
    scroll-behavior: smooth;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(8, 26, 50, 0.08);
}

.navbar-scrolled .font-serif,
.navbar-scrolled .font-sans,
.navbar-scrolled a:not(.bg-midnight) {
    color: var(--midnight-800) !important;
}

.navbar-scrolled .bg-midnight-700 {
    background: var(--midnight-700) !important;
}

/* Service cards */
.service-card {
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: rgba(174, 222, 168, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(8, 26, 50, 0.15);
}

/* Gallery hover */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 26, 50, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

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

/* Testimonial cards */
.testimonial-card {
    border: 1px solid rgba(174, 222, 168, 0.2);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    border-color: rgba(174, 222, 168, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(8, 26, 50, 0.1);
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(134, 199, 109, 0.2);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .service-card:hover,
    .testimonial-card:hover,
    .gallery-item::after {
        transition: none;
    }

    .gallery-item img {
        transition: none;
    }
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Selection color */
::selection {
    background: rgba(174, 222, 168, 0.3);
    color: var(--midnight-800);
}
