/*
=============================================================================
INDIANSPICETRADER - UPDATED COMMON STYLESHEET
Shared styles for all pages - Clean, Consistent Design
Colors: Forest Green (#1B7A1B) Primary with Orange CTA Buttons
Font: Outfit Family for Modern Professional Look
Updated Navigation & Footer Design
=============================================================================
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/*
=============================================================================
CSS VARIABLES & ROOT STYLES
=============================================================================
*/
:root {
    /* Brand Colors - Green Primary Theme */
    --primary-color: #1B7A1B;        /* Forest Green */
    --secondary-color: #B8941A;      /* Muted Gold */
    --accent-color: #8B4513;         /* Brown */
    --success-color: #28A428;        /* Success Green */
    --cta-color: #F8B93B;           /* Orange for CTA buttons */
    --cta-hover-color: #F8B93B;     /* Yellow for CTA hover */
    --brand-orange: #E67E22;        /* Brand orange for accents */

    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F9FDF9;
    --medium-gray: #6C757D;
    --dark-gray: #2F4F2F;
    --black: #212529;
    --border-color: #C8E6C9;

    /* Status Colors */
    --success: var(--success-color);
    --warning: var(--secondary-color);
    --danger: #DC3545;
    --info: var(--primary-color);

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 15px;

    /* Shadows with Green Tint */
    --shadow-light: 0 2px 10px rgba(27, 122, 27, 0.08);
    --shadow-medium: 0 4px 20px rgba(27, 122, 27, 0.12);
    --shadow-heavy: 0 8px 30px rgba(27, 122, 27, 0.15);

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Border Radius */
    --radius-small: 6px;
    --radius-medium: 8px;
    --radius-large: 12px;
}

/*
=============================================================================
GLOBAL RESET & BASE STYLES
=============================================================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Support for mobile viewport height calculations */
    --vh: 1vh;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

/*
=============================================================================
TYPOGRAPHY
=============================================================================
*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--black);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 500; }
h5 { font-size: 1.25rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--success-color);
    text-decoration: none;
}

/* Ensure all links use theme colors, not browser defaults */
a:link {
    color: var(--primary-color);
}

a:visited {
    color: var(--primary-color);
}

a:active {
    color: var(--success-color);
}

/* Text color utility classes - Override Bootstrap defaults */
.text-primary {
    color: var(--primary-color) !important;
}

.text-info {
    color: var(--primary-color) !important;
}

.text-export-blue {
    color: var(--primary-color) !important;
}

/* Override any blue Bootstrap classes */
.text-blue, .text-blue-500, .text-blue-600, .text-blue-700 {
    color: var(--primary-color) !important;
}

/* Override Bootstrap link colors in small components */
.breadcrumb-item a {
    color: var(--cta-color) !important;
}

.breadcrumb-item a:hover {
    color: var(--brand-orange) !important;
}

.navbar-nav .nav-link,
.dropdown-item,
.list-group-item a {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link:hover,
.dropdown-item:hover,
.list-group-item a:hover {
    color: var(--success-color) !important;
}

/* Fix Export dropdown selected text to be white */
.dropdown-item.active,
.dropdown-item:active,
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    color: var(--white) !important;
}

/* Override link styles for buttons to prevent inheritance */
.btn:link,
.btn:visited,
.btn:active {
    color: inherit;
    text-decoration: none;
}

/*
=============================================================================
BUTTON SYSTEM - GREEN THEME WITH ORANGE CTA
=============================================================================
*/
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    line-height: 1.5;
    background: transparent;
    color: var(--primary-color);
}

/* Ensure CTA buttons always use orange color */
.btn-cta,
.btn-cta:link,
.btn-cta:visited {
    color: var(--cta-color) !important;
    border-color: var(--cta-color) !important;
}

.btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 122, 27, 0.25);
}

/* Button Sizes */
.btn-large {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
}

/* Compact button size for Quick Contact section */
.btn-compact {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

/* Button Variants - Green Theme */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    border-radius: 30px; /* Consistent with CTA buttons */
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Section CTA button overrides - ensure consistency across all pages */
.section-cta .btn-cta,
.cta-section .btn-cta {
    background: var(--cta-color) !important;
    color: var(--white) !important;
    border-color: var(--cta-color) !important;
}

.section-cta .btn-cta:hover,
.cta-section .btn-cta:hover {
    background: var(--cta-hover-color) !important;
    color: var(--white) !important;
    border-color: var(--cta-hover-color) !important;
}

/* Ensure second buttons have orange text on hover for all CTA sections */
.section-cta .btn-outline:hover,
.cta-section .btn-outline:hover {
    background: var(--white) !important;
    color: var(--cta-color) !important;
    border-color: var(--white) !important;
}

/* Button Border-Radius Variants for Consistent Design */
.btn-hero {
    border-radius: 50px; /* Hero sections - very rounded */
}

.btn-secondary {
    border-radius: 25px; /* Secondary buttons - moderately rounded (default) */
}

.btn-small-action {
    border-radius: 20px; /* Small action buttons - slightly rounded */
}

/* Specialized Button Classes for Consistent Design */
.btn-phone {
    background: var(--success-color);
    color: var(--white);
    border-color: var(--success-color);
    border-radius: 25px;
    font-weight: 600;
}

.btn-phone:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
    border-radius: 30px;
    font-weight: 600;
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}


.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border: 2px solid #25D366;
    border-radius: 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* WhatsApp button compact size */
.btn-whatsapp.btn-compact {
    padding: 12px 30px;     /* Match btn-compact padding */
    font-size: 16px;        /* Match btn-compact font-size */
}

/* WhatsApp button large size */
.btn-whatsapp.btn-large {
    padding: 15px 40px;     /* Match btn-large padding */
    font-size: 18px;        /* Match btn-large font-size */
}

.btn-whatsapp:hover {
    background: #1aa952;
    border-color: #1aa952;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-filter-clear {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-filter-clear:hover {
    background: var(--success-color);
    transform: translateY(-2px);
}

/* Generic details button class for other pages */
.btn-details {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.btn-details:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Special CTA Buttons - Orange Outline with Yellow Hover + Rounded */
.btn-cta {
    background: transparent;
    color: var(--cta-color) !important;
    border-color: var(--cta-color);
    border-radius: 25px; /* Match other contact buttons for consistency */
}

/* CTA button when used with btn-large class - ensure consistent sizing */
.btn-cta.btn-large {
    padding: 15px 40px;     /* Match btn-large padding */
    font-size: 18px;        /* Match btn-large font-size */
}

/* CTA button when used with btn-compact class */
.btn-cta.btn-compact {
    padding: 12px 30px;     /* Match btn-compact padding */
    font-size: 16px;        /* Match btn-compact font-size */
}

.btn-cta:hover {
    background: var(--cta-hover-color) !important;
    color: var(--white) !important;
    border-color: var(--cta-hover-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Navigation button - Orange theme */
.btn-nav {
    background: var(--cta-color);
    color: var(--white) !important;
    border-color: var(--cta-color);
    font-weight: 600;
    border-radius: 25px; /* Uses default secondary button radius */
}

/* Navigation button when used with btn-large class - override for consistency */
.btn-nav.btn-large {
    text-transform: none;        /* Remove uppercase for contact buttons */
    letter-spacing: normal;      /* Remove letter spacing for contact buttons */
    padding: 15px 40px;         /* Match btn-large padding */
    font-size: 18px;            /* Match btn-large font-size */
}

/* Navigation button when used with btn-compact class */
.btn-nav.btn-compact {
    text-transform: none;        /* Remove uppercase for contact buttons */
    letter-spacing: normal;      /* Remove letter spacing for contact buttons */
    padding: 12px 30px;         /* Match btn-compact padding */
    font-size: 16px;            /* Match btn-compact font-size */
}

.btn-nav:hover {
    background: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: var(--white) !important;
    box-shadow: 0 2px 8px rgba(40, 164, 40, 0.4) !important;
    transform: translateY(-2px);
}

/* Ensure navbar button maintains white text in all states */
.btn-nav:link,
.btn-nav:visited,
.btn-nav:active {
    color: var(--white) !important;
    text-decoration: none;
}

/*
=============================================================================
HEADER & NAVIGATION - UPDATED SIMPLIFIED DESIGN
=============================================================================
*/
.header {
    background: var(--white);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar {
    padding: 12px 0;
}

/* Updated Navbar Brand with Orange Icon */
.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: var(--black);
}

.navbar-brand i {
    color: var(--cta-color) !important;
    margin-right: 8px;
    font-size: 1.8rem;
}

/* Updated Navigation Links - Simplified */
.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--dark-gray);
    padding: 12px 20px;
    transition: var(--transition);
    position: relative;
    border-radius: var(--radius-medium);
    margin: 0 2px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(27, 122, 27, 0.05);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

/* Simplified Dropdown Menu */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    color: var(--dark-gray);
    transition: var(--transition);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

.dropdown-divider {
    border-color: var(--border-color);
    margin: 0.5rem 0;
}

/* Mobile Menu - Enhanced */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 6px 10px;
    color: var(--primary-color);
    border-radius: var(--radius-medium);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(27, 122, 27, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2827, 122, 27, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
    transition: all 0.3s ease;
}

/* Active state - show close (X) icon when menu is open */
.navbar-toggler.active .navbar-toggler-icon,
.navbar .navbar-toggler.active .navbar-toggler-icon,
.container .navbar-toggler.active .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2827, 122, 27, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M6 24L24 6'/%3e%3c/svg%3e") !important;
    transform: rotate(180deg) !important;
    transition: all 0.3s ease !important;
}

/* Enhance the active state with background color change */
.navbar-toggler.active {
    background-color: rgba(27, 122, 27, 0.1) !important;
    border-color: var(--primary-color) !important;
}

/* Mobile Navigation Improvements */
@media (max-width: 991px) {
    .navbar-nav {
        background: var(--white);
        border-radius: var(--radius-medium);
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: var(--shadow-medium);
    }

    .navbar-nav .nav-link {
        padding: 12px 15px;
        margin: 2px 0;
        border-radius: var(--radius-medium);
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: var(--light-gray);
        margin: 0.5rem 0 0 0;
        padding: 0.5rem;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
        border-radius: var(--radius-small);
        margin: 2px 0;
    }
}

/*
=============================================================================
SECTIONS
=============================================================================
*/
.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 10;
    background: var(--white);
}

.section-light {
    background: var(--light-gray);
    z-index: 10;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/*
=============================================================================
BREADCRUMBS - RESPONSIVE MOBILE-FRIENDLY DESIGN
=============================================================================
*/
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    font-size: 0.9rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Default breadcrumb separator - Theme colors */
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--medium-gray);
    margin: 0 0.5rem;
    font-weight: normal;
    flex-shrink: 0;
}

/* White separator only on hero sections */
.hero .breadcrumb-item + .breadcrumb-item::before,
.catalog-hero .breadcrumb-item + .breadcrumb-item::before,
.varieties-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

/* Default breadcrumb links - Orange theme */
.breadcrumb-item a {
    color: var(--cta-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.25rem 0;
    display: inline-block;
}

.breadcrumb-item a:hover {
    color: var(--brand-orange);
    text-decoration: underline;
}

/* White breadcrumbs only on hero sections with dark backgrounds */
.hero .breadcrumb-item a,
.catalog-hero .breadcrumb-item a,
.varieties-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.hero .breadcrumb-item a:hover,
.catalog-hero .breadcrumb-item a:hover,
.varieties-hero .breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 1);
}

/* Default active breadcrumb - Dark theme */
.breadcrumb-item.active {
    color: var(--dark-gray);
    font-weight: 500;
}

/* White active breadcrumb only on hero sections */
.hero .breadcrumb-item.active,
.catalog-hero .breadcrumb-item.active,
.varieties-hero .breadcrumb-item.active {
    color: white;
}

/* Mobile responsive breadcrumbs */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0;
        padding-right: 1rem; /* Space for overflow scroll */
    }

    .breadcrumb-item {
        flex-shrink: 0;
        overflow: visible;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.4;
        max-width: none;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 0.3rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .breadcrumb-item a {
        padding: 0.2rem 0;
        line-height: 1.3;
        white-space: nowrap;
    }

    /* Keep active item on same line but allow truncation if very long */
    .breadcrumb-item.active {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50vw; /* Prevent extremely long names from taking full width */
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        flex-direction: row;
        align-items: center;
        line-height: 1.3;
        flex-wrap: nowrap;
        padding-right: 1.5rem; /* More space for overflow scroll */
    }

    .breadcrumb-item {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 0.25rem;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    /* Keep single line but allow truncation for very long names */
    .breadcrumb-item.active {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 45vw; /* Slightly smaller for mobile */
        flex-shrink: 1;
    }
}

/* Very small screens - adjust further */
@media (max-width: 375px) {
    .breadcrumb {
        font-size: 0.75rem;
        gap: 0;
        padding-right: 2rem; /* Extra space for very small screens */
    }

    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 0.2rem;
        font-size: 0.7rem;
        flex-shrink: 0;
    }

    .breadcrumb-item.active {
        max-width: 40vw; /* Even smaller for very small screens */
    }
}

/* Additional support for section breadcrumbs - already covered above */

/*
=============================================================================
CARDS
=============================================================================
*/
.card {
    background: var(--white);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-color);
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--black);
}

.card-text {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

/*
=============================================================================
FORMS
=============================================================================
*/
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: var(--black);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-medium);
    font-family: var(--font-primary);
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(27, 122, 27, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control.is-valid {
    border-color: var(--success);
}

/*
=============================================================================
FOOTER - TIGHTENED SPACING & LAYOUT DESIGN
=============================================================================
*/
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0 1.2rem;
}

/* Footer Row with Optimized Column Spacing */
.footer .row {
    gap: 1.5rem;
    justify-content: space-between;
}

.footer .row > div {
    flex: 1;
    min-width: 260px;
}

/* Tightened Footer Column Headers */
.footer h5 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-weight: 600;
    font-size: 1.0rem;
    display: flex;
    align-items: center;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer h5 i {
    color: var(--cta-color) !important;
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Tightened List Spacing */
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.6rem;
}

.footer ul li:last-child {
    margin-bottom: 0;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
    display: block;
    line-height: 1.3;
}

.footer ul li a:hover {
    color: var(--success-color);
    padding-left: 10px;
    transform: translateX(3px);
}

/* Company Info Section - Tightened Spacing */
.footer .col-lg-3:first-child {
    padding-right: 1.5rem;
}

.footer .col-lg-3:first-child p {
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Contact Info with Tightened Spacing */
.contact-info {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--success-color);
    width: 20px;
    margin-right: 6px;
    flex-shrink: 0;
}

/* Compact Social Links */
.social-links {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 1.2rem;
}

.social-link {
    width: 38px;
    height: 38px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--success-color);
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(40, 164, 40, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Ensure Font Awesome icons are properly displayed in social links */
.social-link i {
    font-size: inherit;
    color: var(--white) !important;
    display: inline-block;
    line-height: 1;
    text-align: center;
}

/* Specific Font Awesome brand icons styling */
.social-link .fab {
    font-family: "Font Awesome 7 Brands", "Font Awesome 6 Brands", "Font Awesome 5 Brands Free", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--white) !important;
}

/* Force all social media icons to be white */
.social-link .fa-facebook,
.social-link .fa-x-twitter,
.social-link .fa-linkedin,
.social-link .fa-instagram,
.social-link .fa-pinterest {
    color: #FFFFFF !important;
}

/* Compact Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2.2rem;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

/*
=============================================================================
UTILITIES
=============================================================================
*/
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-success { color: var(--success-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-light { background-color: var(--light-gray) !important; }
.bg-success { background-color: var(--success-color) !important; }

.border-primary { border-color: var(--primary-color) !important; }
.border-secondary { border-color: var(--secondary-color) !important; }
.border-success { border-color: var(--success-color) !important; }

.rounded { border-radius: var(--radius-medium) !important; }
.rounded-lg { border-radius: var(--radius-large) !important; }

.shadow-sm { box-shadow: var(--shadow-light) !important; }
.shadow { box-shadow: var(--shadow-medium) !important; }
.shadow-lg { box-shadow: var(--shadow-heavy) !important; }

/*
=============================================================================
SCROLL TO TOP BUTTON
=============================================================================
*/
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    z-index: 1025;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    background: var(--success-color);
}

.scroll-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 122, 27, 0.3);
}

/*
=============================================================================
ANIMATIONS
=============================================================================
*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.slide-in-up {
    animation: slideInUp 0.8s ease forwards;
}

/*
=============================================================================
RESPONSIVE DESIGN
=============================================================================
*/
@media (max-width: 1200px) {
    .section-title h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 992px) {
    .section-title h2 {
        font-size: 2rem;
    }

    /* Improved Footer Mobile Layout */
    .footer .row {
        gap: 2.5rem;
    }

    .footer .row > div {
        margin-bottom: 2.5rem;
        min-width: auto;
    }

    .footer .col-lg-3:first-child {
        padding-right: 0;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .navbar {
        padding: 8px 0;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .btn-nav {
        width: auto;
        margin-bottom: 0;
    }

    /* Make CTA buttons filled orange with white text on mobile */
    .btn-cta,
    .btn-cta:link,
    .btn-cta:visited,
    .btn-cta:active {
        background: var(--cta-color) !important;
        color: var(--white) !important;
        border-color: var(--cta-color) !important;
        text-decoration: none !important;
    }

    .btn-cta:hover,
    .btn-cta:focus {
        background: var(--cta-hover-color) !important;
        color: var(--white) !important;
        border-color: var(--cta-hover-color) !important;
        text-decoration: none !important;
    }

    /* Better mobile button spacing */
    .btn + .btn {
        margin-top: 10px;
    }

    /* Improve touch targets for mobile */
    .nav-link {
        padding: 15px 20px !important;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Better mobile form controls */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 15px;
    }

    .card-body {
        padding: 1.5rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    /* Enhanced Footer Mobile Spacing */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer .row {
        gap: 2rem;
    }

    .footer .row > div {
        margin-bottom: 2rem;
        text-align: left;
    }

    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        justify-content: flex-start;
    }

    .footer ul li {
        margin-bottom: 0.8rem;
    }

    .footer ul li a {
        font-size: 0.9rem;
        padding: 5px 0;
    }

    .contact-info {
        margin: 1.2rem 0;
    }

    .contact-info p {
        margin-bottom: 0.7rem;
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: flex-start;
        gap: 10px;
        margin-top: 1.2rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* Tablet-specific social media icon fixes */
    .social-link .fa-facebook,
    .social-link .fa-x-twitter,
    .social-link .fa-linkedin,
    .social-link .fa-instagram,
    .social-link .fa-pinterest {
        color: #FFFFFF !important;
        display: inline-block !important;
        font-size: 1.1rem !important;
        font-weight: 400 !important;
        font-family: "Font Awesome 7 Brands" !important;
    }

    /* Ensure icons are visible on tablet */
    .social-link i[class*="fa-"] {
        color: #FFFFFF !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .footer-bottom {
        text-align: center;
        margin-top: 2.5rem;
        padding-top: 1.8rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.6rem;
    }

    .btn-large {
        padding: 12px 25px;
        font-size: 16px;
    }

    .section {
        padding: 50px 0;
    }

    /* Make CTA buttons filled orange with white text on very small screens */
    .btn-cta,
    .btn-cta:link,
    .btn-cta:visited,
    .btn-cta:active {
        background: var(--cta-color) !important;
        color: var(--white) !important;
        border-color: var(--cta-color) !important;
        text-decoration: none !important;
    }

    .btn-cta:hover,
    .btn-cta:focus {
        background: var(--cta-hover-color) !important;
        color: var(--white) !important;
        border-color: var(--cta-hover-color) !important;
        text-decoration: none !important;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-brand i {
        font-size: 1.2rem;
    }

    /* Better small screen typography */
    body {
        font-size: 15px;
        line-height: 1.7;
    }

    /* Ensure text is readable on small screens */
    p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* Better mobile card spacing */
    .card {
        margin-bottom: 1.5rem;
    }

    /* Improve button sizing for small screens */
    .btn {
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 25px;
    }

    /* Better mobile navigation */
    .dropdown-menu {
        font-size: 15px;
    }

    .dropdown-item {
        padding: 12px 20px;
    }

    /* Enhanced Small Screen Footer */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer .row {
        gap: 1.5rem;
    }

    .footer .row > div {
        margin-bottom: 1.8rem;
        text-align: center;
    }

    .footer h5 {
        font-size: 1rem;
        margin-bottom: 1.3rem;
        justify-content: center;
        text-align: center;
    }

    .footer ul li a {
        font-size: 0.85rem;
        padding: 4px 0;
        text-align: center;
    }

    .footer ul li a:hover {
        padding-left: 0;
        transform: translateX(0);
        color: var(--success-color);
    }

    .contact-info {
        text-align: center;
        margin: 1rem 0;
    }

    .contact-info p {
        justify-content: center;
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    .social-links {
        justify-content: center;
        gap: 8px;
        margin-top: 1rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.7;
        padding: 0 1rem;
    }
}

/*
=============================================================================
MOBILE TOUCH IMPROVEMENTS
=============================================================================
*/
/* Better touch targets for mobile */
@media (max-width: 768px) {
    /* Ensure all clickable elements have adequate touch targets */
    a, button, .btn, .nav-link, .dropdown-item {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Exception for text links that should remain inline */
    .footer a, .card-text a, p a, .breadcrumb-item a {
        display: inline;
        min-height: auto;
        min-width: auto;
    }

    /* Ensure social links maintain their flex display on mobile */
    .social-link {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: auto;
        min-width: auto;
    }

    /* Ensure Font Awesome icons display properly inside social links on mobile */
    .social-link i {
        display: inline-block !important;
        font-size: inherit;
        line-height: 1;
        text-align: center;
        color: var(--white) !important;
        width: auto;
        height: auto;
    }

    /* Ensure Font Awesome brand icons work specifically */
    .social-link .fab {
        font-family: "Font Awesome 7 Brands" !important;
        font-weight: 400 !important;
        font-style: normal !important;
        color: var(--white) !important;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Force Font Awesome icons to be visible on mobile */
    .social-link .fab:before {
        content: attr(data-icon) !important;
        font-family: "Font Awesome 7 Brands" !important;
        display: inline-block !important;
        font-style: normal !important;
        font-variant: normal !important;
        text-rendering: auto !important;
        line-height: 1 !important;
        color: #FFFFFF !important;
    }

    /* Mobile-specific social media icon fixes */
    .social-link .fa-facebook,
    .social-link .fa-x-twitter,
    .social-link .fa-linkedin,
    .social-link .fa-instagram,
    .social-link .fa-pinterest {
        color: #FFFFFF !important;
        display: inline-block !important;
        font-size: 1.1rem !important;
        line-height: 1 !important;
        font-weight: 400 !important;
        font-family: "Font Awesome 7 Brands" !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }

    /* Ensure icons have proper rendering on mobile */
    .social-link i[class*="fa-"] {
        color: #FFFFFF !important;
        opacity: 1 !important;
        visibility: visible !important;
        font-size: 1.1rem !important;
    }

    /* Fallback content for mobile Font Awesome icons if CSS doesn't load */
    .social-link .fa-facebook:before {
        content: "\f09a" !important;
        font-family: "Font Awesome 7 Brands" !important;
        color: #FFFFFF !important;
    }
    
    .social-link .fa-x-twitter:before {
        content: "\e61b" !important;
        font-family: "Font Awesome 7 Brands" !important;
        color: #FFFFFF !important;
    }
    
    .social-link .fa-linkedin:before {
        content: "\f08c" !important;
        font-family: "Font Awesome 7 Brands" !important;
        color: #FFFFFF !important;
    }
    
    .social-link .fa-instagram:before {
        content: "\f16d" !important;
        font-family: "Font Awesome 7 Brands" !important;
        color: #FFFFFF !important;
    }
    
    .social-link .fa-pinterest:before {
        content: "\f0d2" !important;
        font-family: "Font Awesome 7 Brands" !important;
        color: #FFFFFF !important;
    }

    /* Better touch targets for breadcrumb links */
    .breadcrumb-item a {
        padding: 0.5rem 0.25rem;
        margin: -0.25rem -0.1rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Mobile: Force green colors to override any blue defaults */
    a, a:link, a:visited, a:active,
    .text-primary, .text-info, .text-blue, [class*="text-blue"] {
        color: var(--primary-color) !important;
    }

    a:hover, a:focus {
        color: var(--success-color) !important;
    }

    /* Ensure breadcrumb links use bright orange on mobile too */
    .breadcrumb-item a {
        color: var(--cta-color) !important;
    }

    .breadcrumb-item a:hover {
        color: var(--brand-orange) !important;
    }

    /* Mobile-specific optimizations */
    body.mobile-device {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: rgba(27, 122, 27, 0.3);
    }

    /* Prevent text selection on buttons */
    .btn, button {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /* Better mobile scrolling */
    .section {
        -webkit-overflow-scrolling: touch;
    }

    /* Improve navbar mobile experience */
    .navbar-nav {
        padding: 1rem 0.5rem;
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    /* Better mobile scrolling */
    html {
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    /* Better mobile table responsiveness */
    .table-responsive {
        border: none;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px 6px;
    }
}

/* Very small screens (phones in portrait) */
@media (max-width: 375px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    /* Ensure cards don't overflow on very small screens */
    .card {
        margin-left: 5px;
        margin-right: 5px;
    }
}

/*
=============================================================================
ACCESSIBILITY
=============================================================================
*/
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn:focus,
.form-control:focus,
.nav-link:focus,
.dropdown-item:focus,
.footer a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    :root {
        --primary-color: #0F5A0F;
        --success-color: #0A6B0A;
        --border-color: #000;
    }

    .dropdown-menu {
        border: 2px solid var(--black);
    }

    .footer {
        border-top: 2px solid var(--white);
    }
}

/*
=============================================================================
HERO SECTION BUTTON STYLING
=============================================================================
*/

/* Hero section buttons should be more rounded like contact page */
.hero .btn,
.hero-section .btn,
.contact-hero .btn,
.about-hero .btn,
.main-hero .btn,
.section-hero .btn,
.quality-hero .btn,
.privacy-hero .btn,
.private-label-hero .btn,
.catalog-hero .btn,
.terms-hero .btn,
.shipping-hero .btn,
.sitemap-hero .btn,
.varieties-hero .btn,
.cookies-hero .btn,
.export-hero .btn,
.bulk-hero .btn,
.bulk-export-hero .btn,
.careers-hero .btn,
.certifications-hero .btn,
.disclaimer-hero .btn,
.faq-hero .btn {
    border-radius: 50px !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero .btn:hover,
.hero-section .btn:hover,
.contact-hero .btn:hover,
.about-hero .btn:hover,
.main-hero .btn:hover,
.section-hero .btn:hover,
.quality-hero .btn:hover,
.privacy-hero .btn:hover,
.private-label-hero .btn:hover,
.catalog-hero .btn:hover,
.terms-hero .btn:hover,
.shipping-hero .btn:hover,
.sitemap-hero .btn:hover,
.varieties-hero .btn:hover,
.cookies-hero .btn:hover,
.export-hero .btn:hover,
.bulk-hero .btn:hover,
.bulk-export-hero .btn:hover,
.careers-hero .btn:hover,
.certifications-hero .btn:hover,
.disclaimer-hero .btn:hover,
.faq-hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/*
=============================================================================
PRINT STYLES
=============================================================================
*/
@media print {
    .no-print,
    .navbar,
    .footer,
    .btn,
    .scroll-to-top {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}