/* ============================================
   Andy's Barbershop — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

/* --- Custom Properties --- */
:root {
    --gold-400: #e2c052;
    --gold-500: #d4a843;
    --navy-950: #050a14;
    --navy-900: #0a1628;
}

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

body {
    overflow-x: hidden;
}

/* --- Selection Color --- */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #f5f5f5;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--navy-950);
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 67, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 67, 0.5);
}

/* --- Navbar Scroll State --- */
.navbar-scrolled {
    background: rgba(5, 10, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Scroll Reveal Base (progressive enhancement) --- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* JS-enhanced hidden state (applied only when JS runs) */
.js .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .js .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .js .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hero Decorative Sparkle --- */
@keyframes sparkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.3); }
}

/* --- Gold Gradient Button Hover Glow --- */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* --- Form Focus States --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* --- Mobile Menu Animation --- */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* --- Service Card Hover --- */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* --- Image Hover Zoom --- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.1;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal,
    .js .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
