/* ============================================
   Classy Beauty Bar — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(43, 168, 126, 0.3);
    color: #F0FBF7;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050A18;
}
::-webkit-scrollbar-thumb {
    background: #1A3357;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2BA87E;
}

/* ============================================
   Navbar
   ============================================ */
.nav-scrolled {
    background: rgba(5, 10, 24, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2BA87E, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

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

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    line-height: 1;
    color: rgba(43, 168, 126, 0.06);
    pointer-events: none;
}

/* ============================================
   Form Inputs
   ============================================ */
select option {
    background: #0A1628;
    color: #fff;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive Enhancement — content visible
   by default, JS adds animation class)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Reduced motion: always show content */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .testimonial-card {
        grid-column: auto;
    }
}
