/* Custom styles for Rose City Dispensary */

:root {
    --navy-900: #0a1628;
    --navy-800: #0f2140;
    --navy-700: #152d56;
    --gold-500: #c8960c;
    --gold-400: #d4a832;
}

html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Service card hover glow */
.service-card:hover {
    box-shadow: 0 0 40px rgba(200, 150, 12, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Product card image zoom */
.product-card img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Gold accent line animation */
.gold-line {
    position: relative;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-500), transparent);
    border-radius: 2px;
}

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

::-webkit-scrollbar-track {
    background: var(--navy-900);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-500);
}

/* Selection color */
::selection {
    background: rgba(200, 150, 12, 0.3);
    color: #fff;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(ellipse at 20% 50%, rgba(200, 150, 12, 0.03) 0%, transparent 50%);
}

/* Button focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Map dark mode override */
iframe[title*="Google Maps"] {
    border-radius: 0 0 1rem 1rem;
}
