/* Custom styles for Swirl Cellars */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Header scroll state */
#header {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

#header.scrolled {
    background: rgba(250, 245, 240, 0.97);
    box-shadow: 0 1px 20px rgba(107, 47, 91, 0.08);
    backdrop-filter: blur(10px);
}

#header.scrolled .nav-link {
    color: #6b2f5b;
}

#header.scrolled .font-serif {
    color: #6b2f5b;
}

/* Mobile menu */
.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hero animations */
.hero-title {
    animation: heroSlideUp 0.9s ease forwards 0.2s;
}

.hero-subtitle {
    animation: heroSlideUp 0.7s ease forwards 0.1s;
}

.hero-desc {
    animation: heroSlideUp 0.7s ease forwards 0.35s;
}

.hero-cta {
    animation: heroSlideUp 0.7s ease forwards 0.5s;
}

.hero-image-container {
    animation: heroFadeIn 1.2s ease forwards 0.4s;
    opacity: 0;
}

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

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Product cards */
.product-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Craft items */
.craft-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.craft-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Section reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Nav link underline effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #f59e0b;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf5f0;
}

::-webkit-scrollbar-thumb {
    background: #6b2f5b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #552548;
}

/* Selection color */
::selection {
    background: #d97706;
    color: #2a1223;
}

/* Image loading placeholder */
img {
    background-color: #e8ddd4;
}

/* Mobile menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Decorative divider */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #d4a84b, transparent);
}
