/* ============================================
   D.W. Alchemists — Custom Styles
   Premium dark luxury · Charcoal + Coral
   ============================================ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    line-height: inherit;
}

/* Selection color */
::selection {
    background: rgba(224, 122, 95, 0.3);
    color: #F5F0EB;
}

/* Smooth focus */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #D4A84B;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0D0D0D;
}
::-webkit-scrollbar-thumb {
    background: #2F2F2F;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4A84B;
}

/* ============================================
   Typography refinements
   ============================================ */
.font-display {
    line-height: 1.1;
}

.font-body {
    line-height: 1.7;
}

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

#navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13,13,13,0.97) 0%, rgba(20,20,20,0.85) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

#hero > .relative {
    position: relative;
    z-index: 2;
}

/* ============================================
   Gold line animation
   ============================================ */
@keyframes goldShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.gold-line {
    background: linear-gradient(90deg, transparent, #D4A84B, #E8C878, #D4A84B, transparent);
    background-size: 200% 100%;
    animation: goldShimmer 4s ease infinite;
}

/* ============================================
   Product cards
   ============================================ */
.product-card {
    background: #141414;
    border: 1px solid rgba(47, 47, 47, 0.8);
}

.product-card:hover {
    border-color: rgba(224, 122, 95, 0.2);
}

/* ============================================
   Mobile menu
   ============================================ */
.mobile-menu {
    will-change: transform;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 640px) {
    html {
        font-size: 15px;
    }

    .font-display {
        line-height: 1.15;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .product-card {
        border-color: rgba(47, 47, 47, 0.5);
    }
}

@media (min-width: 1025px) {
    .product-card {
        border-color: rgba(47, 47, 47, 0.5);
    }
}

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

    .hero-img-wrapper img {
        transition: none;
    }

    .hero-img-wrapper:hover img {
        transform: none;
    }

    .product-card {
        transition: none;
    }

    .product-card:hover {
        transform: none;
        box-shadow: none;
    }

    .gold-line {
        animation: none;
        background: linear-gradient(90deg, transparent, #D4A84B, transparent);
    }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    body {
        background: white;
        color: black;
    }

    #navbar,
    .mobile-menu,
    #menu-overlay {
        display: none !important;
    }

    .font-display,
    .font-body {
        color: black;
    }
}
