/* ============================================
   Lil' Wienie Wagon — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Hero Floating Animations --- */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-22px); }
}

.floating-card {
    will-change: transform;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        /* Already visible by default */
    }

    /* When JS is enabled, start hidden and reveal */
    .js-enabled .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }

    .js-enabled .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }

    .js-enabled .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }

    .js-enabled .reveal-up.revealed,
    .js-enabled .reveal-left.revealed,
    .js-enabled .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* If JS is disabled, all content is visible by default (already set above) */

/* --- Button Styles --- */
.btn-primary {
    background: #fff8f6;
    color: #431111;
    border: 2px solid #fff8f6;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #ffede9;
    border-color: #ffede9;
    color: #431111;
}

.btn-secondary {
    border: 2px solid rgba(255, 248, 246, 0.5);
    color: #fff8f6;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 248, 246, 0.12);
    border-color: #fff8f6;
    color: #fff8f6;
}

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

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

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

/* --- Mobile Menu --- */
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff8f6;
    transition: all 0.3s ease;
}

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

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

.mobile-menu-btn.active span:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.mobile-menu-link {
    color: rgba(255, 248, 246, 0.9);
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #ffbaab;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -8px); }
    60% { transform: translate(-50%, -4px); }
}

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

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

/* --- Smooth Section Transitions --- */
section {
    position: relative;
}

/* --- Selection Color --- */
::selection {
    background: #a83c3c;
    color: #fff8f6;
}

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

/* --- Print Styles --- */
@media print {
    .fixed,
    .floating-card,
    .scroll-indicator,
    #mobile-menu {
        display: none !important;
    }

    body {
        color: #1e1815;
        background: white;
    }

    .hero-section {
        background: #752828 !important;
        color: #fff8f6 !important;
    }
}

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

    .floating-card {
        animation: none !important;
    }

    .scroll-indicator {
        animation: none !important;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section h1 span {
        font-size: 2.2rem;
    }
}
