/* ============================================
   CW Hair Hub — Custom Styles
   ============================================ */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ed;
}
::-webkit-scrollbar-thumb {
    background: #b9ddb9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #88c488;
}

/* Floating card animations */
.floating-card {
    animation: float 3.5s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -1.1s;
}

.floating-card:nth-child(3) {
    animation-delay: -2.2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Service card hover glow */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.service-card:hover::after {
    border-color: rgba(52, 122, 52, 0.3);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(17, 44, 17, 0.08);
}

.nav-scrolled .nav-link {
    color: #1f4d1f !important;
}

.nav-scrolled .logo-text {
    color: #1f4d1f !important;
}

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

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

/* Gallery hover overlay */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24, 61, 24, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.75rem;
}

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

.gallery-item {
    position: relative;
}

/* Review card subtle lift */
.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
}

/* Selection color */
::selection {
    background: #b9ddb9;
    color: #112c11;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #52a352;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    .gallery-item img,
    .service-card,
    .review-card {
        transition: none;
    }
    .gallery-item:hover img {
        transform: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
}
