/* Wild Onion — Custom Styles */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(6, 78, 59, 0.2);
    color: #064e3b;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f0;
}
::-webkit-scrollbar-thumb {
    background: rgba(6, 78, 59, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 78, 59, 0.4);
}

/* Navigation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu button */
#menu-btn.open .menu-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.open .menu-line:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav-link {
    position: relative;
}

/* Hero animations */
.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}
.hero-headline {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}
.hero-subtext {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}
.hero-ctas {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes float-delayed {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}
@keyframes scroll-line {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}
.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* Section eyebrow */
.section-eyebrow {
    position: relative;
    display: inline-block;
}
.section-eyebrow::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 12px;
    height: 1.5px;
    background: currentColor;
    transform: translateY(-50%);
}

/* Pill badges */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(6, 78, 59, 0.06);
    border: 1px solid rgba(6, 78, 59, 0.12);
    border-radius: 100px;
    font-size: 0.85rem;
    color: rgba(6, 78, 59, 0.75);
    transition: all 0.3s ease;
}
.pill-badge:hover {
    background: rgba(6, 78, 59, 0.1);
    border-color: rgba(6, 78, 59, 0.25);
    color: #064e3b;
}

/* Collection cards */
.collection-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.collection-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal animations */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.revealed {
    opacity: 1;
    transform: translate(0) translateY(0);
}

/* Header scroll state */
.header-scrolled {
    background: rgba(250, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}
.header-scrolled .nav-link {
    color: rgba(6, 78, 59, 0.7);
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(6, 78, 59, 0.5);
    outline-offset: 2px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-eyebrow::before {
        display: none;
    }
}
