/* ==========================================================================
   LEAD LJK - PREMIUM MAROON RED CUSTOM COMPONENT STYLING
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #fdfbf7; /* Warm soft cream background */
}

/* Custom Scrollbar for a premium heritage feel */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f5f0e6;
}
::-webkit-scrollbar-thumb {
    background: #722f37; /* Premium Maroon Red */
    border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5c242b;
}

/* Heritage Brand Palette Extensions (Overrides for dynamic themes) */
.text-brand-green { color: #722f37; } /* Remapped to premium Maroon Red */
.bg-brand-green { background-color: #722f37; }
.text-brand-amber { color: #c59b27; } /* Warm Honey/Saffron Gold */
.bg-brand-amber { background-color: #c59b27; }

/* Interactive Elements */
.product-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: #ffffff;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(114, 47, 55, 0.08); /* Soft maroon tinted shadow */
}

.image-container img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .image-container img {
    transform: scale(1.04);
}

/* Modern Typography Line Clamping */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Micro-loading Animation for Firestore queries */
.loader-spin {
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Tailwind Emerald & Green Safety Utilities Overrides */
.text-emerald-900, .text-emerald-800, .text-emerald-700 { color: #722f37 !important; }
.bg-emerald-900, .bg-emerald-800, .bg-emerald-700 { background-color: #722f37 !important; }
.bg-emerald-50 { background-color: #fbf6ee !important; }
.border-emerald-100, .border-emerald-200 { border-color: #eaddcd !important; }
.hover\:bg-emerald-800:hover { background-color: #5c242b !important; }
.hover\:text-emerald-800:hover { color: #5c242b !important; }
.text-amber-700, .text-amber-600, .text-amber-400 { color: #c59b27 !important; }
.bg-amber-700, .bg-amber-600 { background-color: #c59b27 !important; }
.hover\:bg-amber-700:hover { background-color: #a37f1e !important; }

.btn-explore-story {
    background-color: #6A2E1E;
    border: 1px solid #6A2E1E;
    color: #ffffff;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-explore-story:hover {
    background-color: transparent;
    color: #6A2E1E;
    border-color: #6A2E1E;
    transform: scale(1.04);
    box-shadow: 0 10px 25px -5px rgba(106, 46, 30, 0.2);
}

/* ==========================================================================
   EDGE-TO-EDGE AUTOMATIC PARALLAX SLIDER 
   ========================================================================== */

/* 1. Main Slider Window Frame spanning full browser width */
.parallax-slider-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 540px; 
    overflow: hidden;
    background-color: #1f0b0d;
}

/* 2. The Slider Track Canvas (Holds all 4 panels horizontally) */
.parallax-slider-track {
    display: flex;
    width: 400%; /* 4 slides x 100% width = 400% */
    height: 100%;
    animation: autoBannerSlideLeft 24s infinite ease-in-out;
}

/* 3. Individual slide structures */
.parallax-slide {
    width: 25%; /* 100% / 4 slides = 25% */
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Text readability filter mask layered above backgrounds */
.parallax-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(20, 4, 6, 0.8) 30%, rgba(20, 4, 6, 0.3) 100%);
    z-index: 10;
}

/* 4. Full Width Parallax Images inside each slide */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 140%; /* Expanded canvas width so image stays seamlessly full during depth motion shifts */
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    animation: imageParallaxShift 24s infinite ease-in-out;
}

/* ==========================================================================
   PURE CSS KEYFRAME TIMINGS
   ========================================================================== */

/* Tracks slide movement frames */
@keyframes autoBannerSlideLeft {
    0%, 20% { transform: translateX(0%); }
    23%, 43% { transform: translateX(-25%); }
    46%, 66% { transform: translateX(-50%); }
    69%, 89% { transform: translateX(-75%); }
    92%, 100% { transform: translateX(0%); }
}

/* Sub-animation layer shifting backgrounds slower in counter steps */
@keyframes imageParallaxShift {
    0%, 20% { transform: translateX(0px); }
    23%, 43% { transform: translateX(-70px); }
    46%, 66% { transform: translateX(-140px); }
    69%, 89% { transform: translateX(-210px); }
    92%, 100% { transform: translateX(0px); }
}

/* Responsive adjustments for mobile phone viewports */
@media (max-w: 768px) {
    .parallax-slider-container {
        height: 480px;
    }
    @keyframes imageParallaxShift {
        0%, 20% { transform: translateX(0px); }
        23%, 43% { transform: translateX(-35px); }
        46%, 66% { transform: translateX(-70px); }
        69%, 89% { transform: translateX(-105px); }
        92%, 100% { transform: translateX(0px); }
    }
}