/* ============================================
   Myrtle's Distilled Spirits — 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;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #FF6B4A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF8566;
}

/* --- Selection --- */
::selection {
    background: #FF6B4A;
    color: #fff;
}

/* --- Navbar --- */
.nav-link {
    position: relative;
}

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

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

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* --- Hero Animations --- */
.hero-bg {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 1s ease forwards 0.3s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: heroTextIn 1s ease forwards 0.6s;
}

@keyframes heroTextIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroSubIn 1s ease forwards 0.9s;
}

@keyframes heroSubIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-ctas {
    opacity: 0;
    transform: translateY(20px);
    animation: heroCtasIn 1s ease forwards 1.2s;
}

@keyframes heroCtasIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    opacity: 0;
    animation: heroBadgeIn 0.8s ease forwards 0.1s;
}

@keyframes heroBadgeIn {
    to {
        opacity: 1;
    }
}

.hero-scroll {
    opacity: 0;
    animation: heroScrollIn 1s ease forwards 1.8s;
}

@keyframes heroScrollIn {
    to {
        opacity: 1;
    }
}

/* --- CTA Buttons --- */
.cta-primary {
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

/* --- Feature Pills --- */
.feature-pill {
    transition: all 0.3s ease;
}

.feature-pill:hover {
    border-color: #FF6B4A;
    color: #FF6B4A;
    transform: translateY(-2px);
}

/* --- Product Cards --- */
.product-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

/* --- About Image --- */
.about-image-wrapper {
    transition: transform 0.6s ease;
}

.about-image-wrapper:hover {
    transform: scale(1.01);
}

/* --- Section Labels --- */
.section-label {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-label.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Info Items --- */
.info-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Contact Form --- */
.contact-submit {
    position: relative;
    overflow: hidden;
}

.contact-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.contact-submit:active::after {
    width: 300px;
    height: 300px;
}

/* --- Fade In Animation Classes --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Stagger Children --- */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .about-floating-card {
        display: none;
    }
}

@media (min-width: 768px) {
    .hero-headline {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 5rem;
    }
}

@media (min-width: 1280px) {
    .hero-headline {
        font-size: 6rem;
    }
}
