/* ============================================
   TROY SPORTING GOODS PAWN SHOP
   Premium Dark Luxury Theme
   ============================================ */

/* Custom Tailwind Config */
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --navy-950: #060D1A;
    --navy-900: #0A1628;
    --navy-800: #0F1F38;
    --navy-700: #162A4A;
    --navy-600: #1E3A5F;
    --navy-400: #4A6B8A;
    --navy-300: #7BA3C4;
    --navy-200: #A8C5DB;
    --gold: #C8A656;
    --gold-light: #D4B76A;
    --gold-dark: #B8943F;
}

/* ============================================
   BASE & RESET
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--navy-950);
    color: #ffffff;
    line-height: 1.6;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.font-playfair {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-inter {
    font-family: 'Inter', system-ui, sans-serif;
}

/* ============================================
   GOLD GRADIENT UTILITIES
   ============================================ */
.gold-gradient {
    background: linear-gradient(135deg, #C8A656 0%, #E8C976 50%, #C8A656 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gold-gradient {
    background: linear-gradient(135deg, #C8A656 0%, #E8C976 50%, #C8A656 100%);
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background: rgba(6, 13, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(200, 166, 86, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C8A656, transparent);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

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

.mobile-link {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #C8A656;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #E8C976;
}

.menu-line {
    transition: all 0.3s ease;
}

#mobile-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero-badge {
    animation: fadeInDown 1s ease forwards;
    opacity: 0;
}

#hero h1 {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

#hero p {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

#hero a {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Scroll indicator */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 12px; }
    50% { opacity: 1; height: 20px; }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Stagger children */
.grid > .scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.grid > .scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.grid > .scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.grid > .scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.grid > .scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.grid > .scroll-reveal:nth-child(6) { transition-delay: 0.6s; }
.grid > .scroll-reveal:nth-child(7) { transition-delay: 0.7s; }
.grid > .scroll-reveal:nth-child(8) { transition-delay: 0.8s; }

/* ============================================
   GOLD BORDER RADIUS (for logo container)
   ============================================ */
.gold-border-radius {
    border-radius: 4px;
    border: 1px solid rgba(200, 166, 86, 0.4);
    background: rgba(200, 166, 86, 0.08);
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 166, 86, 0.3), transparent);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
    transition: border-color 0.5s ease, transform 0.5s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C8A656, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 166, 86, 0.3);
}

/* ============================================
   INVENTORY GRID ITEMS
   ============================================ */
.inventory-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.inventory-item img {
    transition: transform 0.7s ease;
}

.inventory-item:hover img {
    transform: scale(1.1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-gold {
    background: linear-gradient(135deg, #C8A656 0%, #E8C976 50%, #C8A656 100%);
    color: #0A1628;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #D4B76A 0%, #F0D88A 50%, #D4B76A 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 166, 86, 0.3);
}

.btn-outline-gold {
    border: 1px solid rgba(200, 166, 86, 0.5);
    color: #C8A656;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: rgba(200, 166, 86, 0.1);
    border-color: #C8A656;
    transform: translateY(-2px);
}

/* ============================================
   FORM STYLES
   ============================================ */
input:focus, textarea:focus {
    border-color: rgba(200, 166, 86, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(200, 166, 86, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #2A4A6A;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #060D1A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C8A656, #B8943F);
    border-radius: 4px;
}

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

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: rgba(200, 166, 86, 0.3);
    color: #ffffff;
}

/* ============================================
   RESPONSIVE FINE-TUNING
   ============================================ */
@media (max-width: 768px) {
    .font-playfair {
        line-height: 1.2;
    }

    #hero h1 {
        font-size: 3rem;
    }

    .service-card {
        padding: 2rem !important;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    nav .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@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;
    }
}
