/* ============================================
   Casa Blanca Hair Salon — Custom Styles
   ============================================ */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ee;
}
::-webkit-scrollbar-thumb {
    background: #8fb88e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a7c4a;
}

/* Navigation */
.nav-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #4a7c4a;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #4a7c4a !important;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(48, 80, 48, 0.08);
}

.navbar-scrolled .nav-text {
    color: #305030 !important;
}

.navbar-scrolled .nav-link {
    color: #305030 !important;
}

/* Mobile Menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Mobile menu button animation */
.menu-active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-active #bar2 {
    opacity: 0;
}
.menu-active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Hero */
.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-image {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Service Cards */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(48, 80, 48, 0);
    transition: background 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    background: rgba(48, 80, 48, 0.1);
}

/* Testimonials */
.testimonial-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

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

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left-hidden {
    opacity: 0;
    transform: translateX(-40px);
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right-hidden {
    opacity: 0;
    transform: translateX(40px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal-hidden,
    .reveal-left-hidden,
    .reveal-right-hidden {
        opacity: 1;
        transform: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .gallery-item img {
        transition: none;
    }
    
    .hero-image {
        animation: none;
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .gallery-item {
        aspect-ratio: 3/4;
    }
}

/* Selection color */
::selection {
    background: #b9d0b8;
    color: #203320;
}
