/* ==========================================================================
   G8Empower Premium Theme - Agriculture MLM
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700&display=swap');

/* Viewport Safety */
/* Viewport Safety - Anti-Horizontal Scroll */
html,
body {
    max-width: 100% !important;
    overflow-x: clip !important;
    position: relative;
    width: 100% !important;
}

.row {
    margin-right: 0px !important;
    margin-left: 0px !important;
}

.container,
.container-fluid {
    width: 100% !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    overflow-x: hidden;
}

:root {
    --primary: #1b5e20;
    /* Deep Forest Green */
    --primary-light: #2e7d32;
    --secondary: #E6B325;
    /* Logo Gold */
    --accent: #8bc34a;
    /* Leaf Green */
    --magenta: #1b5e20;
    --dark: #0a1b0d;
    --light: #f1f8f1;
    --white: #ffffff;
    --text-main: #1D2D44;
    --text-muted: #64748b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 15px;
    --radius-lg: 35px;
    --shadow-sm: 0 4px 10px -2px rgba(27, 94, 32, 0.1);
    --shadow-md: 0 10px 25px -3px rgba(27, 94, 32, 0.15);
    --shadow-lg: 0 25px 50px -12px rgba(27, 94, 32, 0.2);
    --shadow-primary: 0 10px 30px rgba(27, 94, 32, 0.3);
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--light);
    overflow-x: hidden;
    line-height: 1.8;
}

/* Scroll Design */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-padding {
    padding: 100px 0;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Fix */
@media (max-width: 991px) {
    .navbar {
        background: var(--white);
        padding: 3px 0 !important;
        /* Reduced from 15px */
        box-shadow: var(--shadow-sm);
    }

    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: 15px;
        margin-top: 10px;
        box-shadow: var(--shadow-lg);
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Animated Hamburger - Premium Visibility */
    .navbar-toggler {
        padding: 2px 4px;
        background: var(--light);
        border-radius: 6px;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    .hamburger-icon {
        width: 24px;
        height: 14px;
        position: relative;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hamburger-icon span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #0D1B3E;
        /* Dark Navy for high contrast */
        border-radius: 5px;
        transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    }

    .navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Global Mobile Typography Overrides */
    .display-3,
    h1 {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }

    .display-4 {
        font-size: 1.6rem !important;
    }

    .display-5,
    h2 {
        font-size: 1.4rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    h4 {
        font-size: 1.1rem !important;
    }

    p,
    .lead,
    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.5;
    }

    .hero-slide {
        height: 65vh !important;
    }

    .section-padding {
        padding: 40px 0;
    }

    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem !important;
    }

    /* Hero Buttons Mobile UX */
    .hero-slide .btn {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
        min-width: 110px;
        white-space: nowrap;
    }

    .hero-slide .d-flex {
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }
}

.navbar-brand span {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark) !important;
    padding: 10px 15px !important;
    position: relative;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 5px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 30px);
}

/* Buttons */
.btn-pill {
    border-radius: 100px;
    padding: 12px 35px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    box-shadow: var(--shadow-primary);
}

.btn-secondary-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--primary-light));
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(139, 195, 74, 0.3);
}

.btn-primary-gradient:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 181, 173, 0.4);
    color: white;
}

.btn-magenta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
}

.btn-magenta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(214, 51, 132, 0.4);
    filter: brightness(1.1);
}

/* ==========================================================================
   Hero / Banner
   ========================================================================== */
.hero-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.1)), url('../hero-wellness.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-top: 100px;
}

.hero-badge {
    background: #ffffff;
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 100px;
    display: inline-block;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-title span {
    color: var(--secondary);
    font-family: 'Playfair Display', serif;
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */
.premium-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(46, 125, 50, 0.03), rgba(46, 125, 50, 0.08));
    transition: var(--transition);
    z-index: -1;
}

.premium-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.premium-card:hover::before {
    height: 100%;
}

.icon-box {
    width: 90px;
    height: 90px;
    background: rgba(46, 125, 50, 0.08);
    color: var(--primary);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 40px;
    transition: var(--transition);
    transform: rotate(5deg);
}

.premium-card:hover .icon-box {
    background: var(--primary);
    color: white;
    transform: rotate(0deg) scale(1.1);
}

/* ==========================================================================
   Stats / Counters
   ========================================================================== */
.stats-section {
    background: var(--primary);
    color: white;
    padding: 70px 0;
}

.stat-box h2 {
    font-size: 3.5rem;
    color: white !important;
    margin-bottom: 5px;
}

.stat-box p {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Testimonial Slider
   ========================================================================== */
.swiper-slide {
    height: auto !important;
    display: flex;
    justify-content: center;
}

.testimonial-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    margin: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    width: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.client-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--secondary);
}

/* ==========================================================================
   Success Stories / Blog
   ========================================================================== */
.story-card {
    border-radius: 25px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.story-card img {
    transition: var(--transition);
}

.story-card:hover img {
    transform: scale(1.1);
}

.story-card:hover {
    transform: translateY(-10px);
}

/* Footer */
footer {
    background: var(--dark);
    color: #cbd5e1;
    padding-top: 100px;
    padding-bottom: 30px;
}

.footer-title {
    color: white;
    margin-bottom: 30px;
    font-size: 1.25rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 12px;
}

.footer-link:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-padding {
        padding: 60px 0;
    }
}

/* ==========================================================================
   Page Headers (Internal)
   ========================================================================== */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 150px 0 80px;
    text-align: center;
    color: white;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white !important;
}

.breadcrumb-custom {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-custom a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-custom a:hover {
    color: var(--secondary);
}

.breadcrumb-custom span {
    color: var(--secondary);
}

/* ==========================================================================
   Utility / Helper Classes
   ========================================================================== */

/* Social Icon Buttons (Footer) */
.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Letter Spacing Utility */
.ls-2 {
    letter-spacing: 2px;
}

/* Scale Hover Animation */
.scale-hover {
    display: inline-block;
    transition: var(--transition);
}

.scale-hover:hover {
    transform: scale(1.25) rotate(-5deg);
}

/* Health nav highlight */
.nav-link .fa-heartbeat {
    animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}