/* ============================================
   ROYALTY KUTZ — Custom Styles
   Deep Navy + Warm Gold | Hinesville, GA
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .scroll-reveal:nth-child(2) { transition-delay: 0.08s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.24s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.32s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.40s; }
}

/* ---------- Navbar transition ---------- */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(15, 29, 50, 0.08);
}

.nav-scrolled #navbar .font-display,
.nav-scrolled #navbar .font-body {
    color: #0F1D32 !important;
}

.nav-scrolled a:not([class*="bg-"]):not(.bg-gold) {
    color: #1E3A5F !important;
}

/* ---------- Mobile menu animation ---------- */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ---------- Gold accent line ---------- */
.gold-line {
    display: inline-block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #D4A843, #E8C26D);
    border-radius: 2px;
}

/* ---------- Button hover glow ---------- */
.btn-glow:hover {
    box-shadow: 0 8px 32px rgba(212, 168, 67, 0.35);
}

/* ---------- Service card shimmer ---------- */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.05), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* ---------- Gallery hover ---------- */
.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

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

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

::-webkit-scrollbar-track {
    background: #F5F5F0;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #0F1D32;
}

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

/* ---------- 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;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
