/* ============================================
   Big Brotha Ballistics — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: #D4A24E;
    color: #2a122a;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(74, 44, 62, 0.97);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0;
}

/* Nav text colors transition */
.nav-text {
    color: #1E1E1E;
}

#navbar.scrolled .nav-text {
    color: #f5f0f6;
}

.nav-text-sub {
    color: #D4A24E;
}

/* Nav links */
.nav-link {
    color: #1E1E1E;
}

#navbar.scrolled .nav-link {
    color: #e8dfe8;
}

.nav-link:hover {
    color: #D4A24E;
}

#navbar.scrolled .nav-link:hover {
    color: #ecbf52;
}

.nav-btn {
    background-color: #D4A24E;
    color: #fff;
}

.nav-btn:hover {
    background-color: #c48a20;
}

.nav-btn-mobile {
    background: transparent;
    border: none;
    cursor: pointer;
}

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

.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Hamburger animation */
.nav-line-1.open {
    transform: translateY(6px) rotate(45deg);
}

.nav-line-2.open {
    opacity: 0;
}

.nav-line-3.open {
    transform: translateY(-6px) rotate(-45deg);
}

#mobileMenu.open .nav-line-1 {
    transform: translateY(6px) rotate(45deg);
}

#mobileMenu.open .nav-line-2 {
    opacity: 0;
}

#mobileMenu.open .nav-line-3 {
    transform: translateY(-6px) rotate(-45deg);
}

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

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

/* Default state for reduced motion - always visible */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.12s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.19s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.26s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.33s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.40s; }

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #FAF7F2, transparent);
    z-index: 2;
    pointer-events: none;
}

/* ============================================
   Buttons & Interactive Elements
   ============================================ */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #ba9fb9;
    opacity: 0.8;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    .font-display {
        word-spacing: -0.02em;
    }
}

@media (min-width: 768px) {
    #hero h1 {
        letter-spacing: -0.01em;
    }
}

/* ============================================
   Utility: Focus visible for accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid #D4A24E;
    outline-offset: 2px;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar,
    .animate-bounce,
    .scroll-reveal {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    #hero::after {
        display: none;
    }
}
