/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ─── Custom Properties ─── */
:root {
    --navy-800: #1a2744;
    --navy-900: #0f1a2e;
    --gold-400: #e6c35c;
    --gold-500: #d4a843;
    --gold-600: #b8922e;
    --cream-50: #faf8f5;
    --cream-100: #f5f0ea;
    --cream-200: #ede5d8;
}

/* ─── Navbar ─── */
.nav-logo-text { transition: color 0.3s ease; }
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-500);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Scrolled state */
nav.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(26, 39, 68, 0.08);
}
nav.scrolled .nav-logo-text { color: var(--navy-800); }
nav.scrolled .nav-link { color: var(--navy-800); }

/* ─── Hero ─── */
.hero-bg { position: relative; }
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,26,46,0.75) 0%, rgba(26,39,68,0.5) 50%, rgba(15,26,46,0.3) 100%);
}
.hero-content { max-width: 900px; margin: 0 auto; }

/* Hero badge pulse */
.hero-badge { animation: badge-glow 3s ease-in-out infinite; }
@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230,195,92,0.2); }
    50% { box-shadow: 0 0 20px 4px rgba(230,195,92,0.15); }
}

/* Floating particles */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-400);
    opacity: 0.3;
}
.float-slow { animation: float 8s ease-in-out infinite; }
.float-medium { animation: float 6s ease-in-out infinite; animation-delay: 1s; }
.float-fast { animation: float 4s ease-in-out infinite; animation-delay: 0.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 0.6; }
}

/* Scroll indicator */
.scroll-indicator { animation: scroll-bounce 2s ease-in-out infinite; }
@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Hero content animation */
.hero-content > * {
    opacity: 0;
    transform: translateY(30px);
    animation: hero-reveal 0.8s ease forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content > *:nth-child(3) { animation-delay: 0.6s; }
.hero-content > *:nth-child(4) { animation-delay: 0.8s; }

@keyframes hero-reveal {
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Reveal on Scroll ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Collection Cards ─── */
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

/* ─── Button Hover Effects ─── */
button, a { transition: all 0.3s ease; }

/* ─── Form Styles ─── */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

/* ─── Mobile Menu ─── */
#mobile-menu {
    animation: mobile-menu-slide 0.3s ease;
}
@keyframes mobile-menu-slide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
    padding: 8px 0;
    border-bottom: 1px solid var(--cream-200);
}
.mobile-link:last-child { border-bottom: none; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-content { text-align: center; }
    .hero-content h1 { font-size: 2.75rem; }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .hero-content h1 { font-size: 4rem; }
}

/* ─── Utility ─── */
.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;
}

/* Focus visible for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
    border-radius: 4px;
}
