/* ============================================
   Vibe Vintage Experience — Custom Styles
   ============================================ */

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

/* Selection color */
::selection {
    background-color: rgba(123, 45, 59, 0.15);
    color: #7B2D3B;
}

/* Input fields */
.input-field {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(123, 45, 59, 0.2);
    padding: 12px 0;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #5e1f2a;
    transition: border-color 0.3s ease;
    outline: none;
    width: 100%;
}

.input-field::placeholder {
    color: rgba(123, 45, 59, 0.35);
    font-weight: 300;
}

.input-field:focus {
    border-bottom-color: #7B2D3B;
}

.input-field:hover:not(:focus) {
    border-bottom-color: rgba(123, 45, 59, 0.4);
}

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

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

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

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

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

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

#mobile-menu.closed .mobile-link {
    opacity: 0;
    transform: translateY(10px);
}

/* Menu toggle animation */
.menu-line {
    display: block;
    height: 1px;
    background-color: #7B2D3B;
    transition: all 0.3s ease;
}

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

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

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

/* Scroll indicator */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 12px; }
    50% { opacity: 0.8; height: 20px; }
}

/* Offering cards */
.offering-card {
    transition: transform 0.4s ease;
}

.offering-card:hover {
    transform: translateY(-4px);
}

/* Scroll reveal (below-fold only, progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    display: block;
    max-width: 100%;
}

/* Utility: aspect ratio fallbacks */
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }
.aspect-\[5\/6\] { aspect-ratio: 5 / 6; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
