/* ========================================
   JEEVAREKHA CENTRALIZED THEME SYSTEM
   ======================================== 
   
   This file contains all color variables and shared styles.
   Update colors here to change the entire site's theme.
*/

/* ========================================
   COLOR VARIABLES
   ======================================== */
:root {
    /* User-Provided Theme Colors */
    --primary-dark: #2a522a;
    /* Dark forest green - main dark color */
    --primary-medium: #3b763b;
    /* Forest green - accent color */
    --primary-light: #B9D3A0;
    /* Pale cream - backgrounds */
    --primary-accent: #b1f149;
    /* Bright lime - highlights/CTAs */

    /* Text Colors */
    --text-dark: #1a1a1a;
    /* Almost black for main text */
    --text-muted: #666666;
    /* Muted text for less important content */

    /* Background Colors */
    --background-cream: #f9faf7;
    /* Very light background */
    --background-light: #f2f6ed;
    /* Light green background for sections */
    --card-background: #ffffff;
    /* White cards */

    /* Border & Accents */
    --border-color: #d5d9c8;
    /* Subtle borders (darker version of pale green) */
    --soft-border: #e2e8dc;
    /* Even softer borders */


    /* Footer */
    --footer-bg: #1a1a1a;
    /* Dark footer background */
    --footer-text: #d1c8bd;
    /* Footer text color */
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    background-color: var(--background-cream);
    color: var(--text-dark);
    line-height: 1.7;
}

h1,
h2,
h3,
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    padding: 15px 0;
    background: transparent;
    transition: all 0.4s ease;
    z-index: 1100;
}

.navbar.scrolled {
    padding: 8px 0;
    background: rgba(249, 250, 247, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--text-dark) !important;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-medium) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--primary-medium);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: calc(100% - 30px);
    /* Account for mx-3 padding */
}

/* Ensure Logo handles scaling on scroll */
.navbar-brand img {
    height: 70px;
    width: auto;
    transition: height 0.3s ease;
    object-fit: contain;
}

.navbar.scrolled .navbar-brand img {
    height: 55px !important;
}

/* Mobile Menu Improvements */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--background-cream);
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        border: 1px solid var(--border-color);
    }

    .nav-link::after {
        display: none;
        /* Hide hover line on mobile */
    }

    .nav-link {
        padding: 10px 0 !important;
        text-align: center;
    }
}

/* Center Navbar perfectly on desktop */
@media (min-width: 992px) {
    #navbarNav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
    }
}


/* ========================================
   BUTTONS
   ======================================== */
.btn-organic {
    background: var(--primary-medium);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    border: 1px solid var(--primary-medium);
}

.btn-organic:hover {
    background: transparent;
    color: var(--primary-medium) !important;
}

/* ========================================
   CARD STYLES
   ======================================== */
.product-card {
    background: var(--card-background);
    border: 1px solid var(--soft-border);
    padding: 40px 30px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    z-index: 1;
}

/* The sliding background using Primary Light Color */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-light);
    transition: all 0.5s ease;
    z-index: -1;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-medium);
}

/* Text stays dark on hover because the light color is pale */
.product-card:hover * {
    color: var(--text-dark) !important;
}

.product-card:hover::before {
    height: 100%;
}

/* ========================================
   SECTIONS
   ======================================== */
.section-padding {
    padding: 100px 0;
}

.accent-line {
    width: 60px;
    height: 3px;
    background: var(--primary-accent);
    margin: 20px auto;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 30px;
}

/* ========================================
   MOBILE HORIZONTAL SCROLL (SHARED)
   ======================================== */
@media (max-width: 768px) {
    .mobile-scroll-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 25px !important;
        /* Space for optional scroll indicator */
        scroll-snap-type: x mandatory;
        gap: 0;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .mobile-scroll-row::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar for cleaner look */
    }

    /* Target columns within the scroll row */
    .mobile-scroll-row>[class*="col-"] {
        flex: 0 0 85% !important;
        /* Each card takes 85% of screen width */
        max-width: 85% !important;
        scroll-snap-align: center;
        padding: 0 10px;
        /* Add spacing between cards */
    }

    .product-card {
        height: 100% !important;
    }
}