/* Custom styles for Phil's Pawn Bank */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(8, 15, 33, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-transparent {
    background: transparent !important;
}

/* Mobile menu button animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

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

/* Mobile links */
.mobile-link {
    display: block;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-link:hover {
    background: rgba(245, 197, 66, 0.1);
    padding-left: 24px;
}

/* Service card image hover */
.service-card-img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-img {
    transform: scale(1.05);
}

/* Gold gradient text */
.text-gold-gradient {
    background: linear-gradient(135deg, #f5c542 0%, #e6b000 50%, #cc9900 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom selection color */
::selection {
    background: rgba(245, 197, 66, 0.3);
    color: #f5c542;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #f5c542;
    outline-offset: 2px;
}

/* Loading state for buttons */
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Parallax-like subtle movement */
@media (prefers-reduced-motion: no-preference) {
    .hero-shape-1,
    .hero-shape-2,
    .hero-shape-3,
    .hero-shape-4,
    .hero-shape-5 {
        animation-play-state: running;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .geo-shapes {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .service-card {
        border: 1px solid ButtonText;
    }
    .btn-gold {
        border: 2px solid ButtonText;
    }
}

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