/* ============================================
   Bamz ChopShop — Custom Styles
   ============================================ */

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

body {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Gold Line Above Headings */
.gold-line-above::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a843, transparent);
    margin: 0 auto 16px;
}

/* Navbar Transition */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link-text {
    color: rgba(255, 255, 255, 0.85);
}

/* Mobile Menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.open .mobile-menu-link {
    animation: fadeDown 0.4s ease forwards;
}

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

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

/* Menu Button Active State */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 24px;
}

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4a843, #e6c066);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    left: 20px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 80px;
    color: #d4a843;
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
}

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

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.5s; }

.reveal[data-reveal-delay="1"].hidden { opacity: 0; transform: translateY(30px); }
.reveal[data-reveal-delay="2"].hidden { opacity: 0; transform: translateY(30px); }
.reveal[data-reveal-delay="3"].hidden { opacity: 0; transform: translateY(30px); }
.reveal[data-reveal-delay="4"].hidden { opacity: 0; transform: translateY(30px); }
.reveal[data-reveal-delay="5"].hidden { opacity: 0; transform: translateY(30px); }

/* Gallery Hover Overlay */
.aspect-square {
    position: relative;
}

.aspect-square::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.aspect-square:hover::after {
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #d4a843;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6c066;
}

/* Selection Color */
::selection {
    background: #d4a843;
    color: #0a1628;
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .reveal.hidden {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .aspect-square img {
        transition: none !important;
    }
    
    .service-card::after {
        transition: none !important;
    }
    
    .service-card:hover::after {
        transform: scaleX(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gold-line-above::before {
        width: 24px;
    }
    
    .testimonial-card::before {
        font-size: 56px;
        top: 12px;
        left: 14px;
    }
}
