/* ===== Custom Styles for Trapperjohn's ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2a141c;
}
::-webkit-scrollbar-thumb {
    background: #6f354a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8a455e;
}

/* ===== Navigation ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(42, 20, 28, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Hero Stat Cards ===== */
.stat-card {
    opacity: 0;
    transform: translateY(20px);
    animation: floatIn 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.3s; }
.stat-card:nth-child(2) { animation-delay: 0.5s; }
.stat-card:nth-child(3) { animation-delay: 0.7s; }
.stat-card:nth-child(4) { animation-delay: 0.9s; }

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== Service Cards ===== */
.service-card {
    opacity: 0;
    transform: translateY(30px);
}

.service-card.revealed {
    animation: revealUp 0.6s ease forwards;
}

.service-card:nth-child(1).revealed { animation-delay: 0.05s; }
.service-card:nth-child(2).revealed { animation-delay: 0.1s; }
.service-card:nth-child(3).revealed { animation-delay: 0.15s; }
.service-card:nth-child(4).revealed { animation-delay: 0.2s; }
.service-card:nth-child(5).revealed { animation-delay: 0.25s; }
.service-card:nth-child(6).revealed { animation-delay: 0.3s; }

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

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

/* ===== Mobile Menu ===== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    display: block;
    padding: 8px 0;
    font-size: 1.1rem;
}

/* ===== Gallery Images ===== */
.rounded-2xl.overflow-hidden {
    position: relative;
}

.rounded-2xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42, 20, 28, 0.2) 0%, transparent 40%);
    pointer-events: none;
    border-radius: 0.75rem;
}

/* ===== Amber accent line ===== */
.text-amber-400::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: #fbbf24;
    vertical-align: middle;
    margin-right: 8px;
}

/* ===== Button focus states ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* ===== Print styles ===== */
@media print {
    #navbar, #gallery, .scroll-reveal { display: none; }
    body { background: white; color: black; }
}
