/* ============================================
   Mix Tape — Portland Retail Website
   Custom Styles
============================================ */

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

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

body {
    overflow-x: hidden;
}

/* ---------- Selection ---------- */
::selection {
    background-color: #f8c4b0;
    color: #78271a;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf6ec;
}
::-webkit-scrollbar-thumb {
    background: #e8e0d4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d5c9b8;
}

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ---------- Hero Animations ---------- */
.hero-eyebrow {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-image-wrapper {
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

/* ---------- Section Animations (Scroll-triggered) ---------- */
.section-eyebrow,
.section-title,
.about-images,
.about-text,
.collection-card,
.philosophy-item,
.visit-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for collection cards */
.collection-card:nth-child(1) { transition-delay: 0.05s; }
.collection-card:nth-child(2) { transition-delay: 0.1s; }
.collection-card:nth-child(3) { transition-delay: 0.15s; }
.collection-card:nth-child(4) { transition-delay: 0.2s; }
.collection-card:nth-child(5) { transition-delay: 0.25s; }
.collection-card:nth-child(6) { transition-delay: 0.3s; }

/* Staggered delays for philosophy items */
.philosophy-item:nth-child(1) { transition-delay: 0.1s; }
.philosophy-item:nth-child(2) { transition-delay: 0.2s; }
.philosophy-item:nth-child(3) { transition-delay: 0.3s; }

/* Staggered delays for visit cards */
.visit-card:nth-child(1) { transition-delay: 0.05s; }
.visit-card:nth-child(2) { transition-delay: 0.1s; }
.visit-card:nth-child(3) { transition-delay: 0.15s; }

/* ---------- Marquee ---------- */
.marquee-track {
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 252, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(180, 168, 148, 0.15);
}

/* ---------- Mobile Menu ---------- */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* ---------- Smooth Image Loading ---------- */
img {
    background-color: #f3efe9;
}

/* ---------- Focus Styles ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #e85d35;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Print ---------- */
@media print {
    #navbar, .marquee-strip, footer {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
