/* ============================================
   Love Shack — Custom Styles
   Classic & Elegant | Forest Green + Off-White
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #304d30;
    color: #fdfcfa;
}

/* --- Navbar --- */
.navbar-scrolled {
    background-color: rgba(253, 252, 250, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(48, 77, 48, 0.08);
}

.navbar-scrolled .nav-link {
    color: #1d301d;
}

.navbar-scrolled .nav-link:hover {
    color: #304d30;
}

.navbar-scrolled .nav-logo-color {
    fill: #304d30;
}

.navbar-scrolled .nav-menu-btn span {
    background-color: #1d301d;
}

.nav-link {
    color: rgba(15, 24, 15, 0.7);
}

.nav-link:hover {
    color: #1d301d;
}

/* --- Hero Animations --- */
.hero-content {
    opacity: 1;
    transform: none;
    animation: heroFadeIn 1s ease-out forwards;
}

.hero-image-container {
    opacity: 1;
    transform: none;
    animation: heroImageIn 1.2s ease-out 0.3s forwards;
}

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

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

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Scroll Reveal Animations (below fold only) --- */
.about-image-col,
.about-text-col,
.collection-card,
.collection-header-col,
.collection-cta-col,
.philosophy-text-col,
.philosophy-image-col,
.visit-header-col,
.visit-info-col,
.visit-form-col {
    opacity: 1;
    transform: none;
}

/* Progressive enhancement: animate on scroll when JS is available */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .reveal-up.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .reveal-left.revealed {
        opacity: 1;
        transform: translateX(0);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .reveal-right.revealed {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Stagger delays for grid items */
    .reveal-up.delay-100 { transition-delay: 0.1s; }
    .reveal-up.delay-200 { transition-delay: 0.2s; }
    .reveal-up.delay-300 { transition-delay: 0.3s; }
}

/* Fallback: ensure content is visible without JS */
.no-js .reveal-up,
.no-js .reveal-left,
.no-js .reveal-right {
    opacity: 1;
    transform: none;
}

/* --- Collection Cards --- */
.collection-card {
    transition: transform 0.4s ease-out;
}

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

/* --- Form Styles --- */
input:focus,
textarea:focus {
    border-color: #304d30;
    box-shadow: 0 0 0 3px rgba(48, 77, 48, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #9ab89a;
}

/* --- Mobile Menu --- */
.mobile-menu-link {
    opacity: 1;
}

/* --- Decorative Elements --- */
.heart-divider {
    animation: heartBeat 2s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* --- Image Hover Effects --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Smooth transitions for interactive elements --- */
a, button {
    transition: all 0.3s ease;
}

/* --- Print Styles --- */
@media print {
    nav, #mobile-menu, .scroll-line {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-forest-800, .bg-forest-950 {
        background-color: #f5f5f5 !important;
        color: #000 !important;
    }
}
