/* ========================================
   Osborne Performance — Custom Styles
   ======================================== */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(184, 92, 60, 0.3);
    color: #e8d5be;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0e0b08;
}
::-webkit-scrollbar-thumb {
    background: rgba(200, 149, 108, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 149, 108, 0.5);
}

/* Skip Link */
.skip-link {
    background: #b85c3c;
    color: white;
    padding: 0.75rem 1rem;
    z-index: 9999;
    font-weight: 600;
}

/* Nav Links */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #b85c3c, #c8956c);
    transition: width 0.3s ease;
    border-radius: 1px;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile Link */
.mobile-link {
    position: relative;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-up {
    animation-name: fadeUp;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-iteration-count: 1;
}

/* Reveal on Scroll */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-state="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-state="hidden"] {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Input Focus Styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Mobile Menu Active State */
body.menu-open {
    overflow: hidden;
}

/* Header Scrolled State */
header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Back to Top Button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* Product Card Image Hover */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Gold Gradient Text */
.text-transparent {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Smooth Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* 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;
    }
    .reveal[data-state="hidden"] {
        opacity: 1;
        transform: none;
    }
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid #c8956c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Aspect Ratio Utilities */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}
.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}
.aspect-\[16\/9\] {
    aspect-ratio: 16 / 9;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
