/* ===== Base & Utilities ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #C0523A;
    color: #FAF8F5;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
    background: #C0523A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4694F;
}

/* ===== Navigation ===== */
.nav-logo-text {
    color: #2C2C2C;
    transition: color 0.4s ease;
}
.nav-logo-sub {
    color: #5F5F5F;
    transition: color 0.4s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #1A1A1A;
}
#navbar.scrolled .nav-logo-sub {
    color: #5F5F5F;
}

#navbar.scrolled {
    background: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C0523A;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

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

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

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 26, 0.4) 0%,
        rgba(26, 26, 26, 0.2) 40%,
        rgba(26, 26, 26, 0.3) 70%,
        rgba(26, 26, 26, 0.6) 100%
    );
    z-index: 1;
    pointer-events: none;
}

#hero > *:not(.absolute) {
    position: relative;
    z-index: 2;
}

/* ===== Collection Cards ===== */
.collection-card {
    position: relative;
}
.collection-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C0523A, #D4694F);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.collection-card:hover::after {
    transform: scaleX(1);
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #C0523A;
    outline-offset: 2px;
}

/* ===== Form Select Arrow ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235F5F5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}
