/* ===================================
   A-U Farms Nigeria Limited
   Premium Agribusiness Design System v3.0
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - AU FARMS Branding */
    --primary: #004d00;
    /* Deep Forest Green */
    --primary-light: #006400;
    --primary-soft: #f0fdf4;
    --accent: #84cc16;
    /* Vibrant Lime/Harvest Green */
    --accent-dark: #65a30d;
    --earth-dark: #4A3728;
    /* Deep Umber */
    --earth-clay: #A67C52;
    /* Clay Brown */
    --earth-stone: #f0fdf4;
    /* Neutral Stone */
    --secondary: #4d7c0f;
    /* Sage/Earth */
    --bg-main: #fcfdfc;
    /* Clean white-green */
    --bg-white: #FFFFFF;
    --text-main: #052e16;
    --text-muted: #166534;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(0, 77, 0, 0.85);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 6rem;

    /* Shadows & Effects */
    --shadow-soft: 0 4px 20px rgba(0, 77, 0, 0.06);
    --shadow-premium: 0 20px 50px rgba(0, 77, 0, 0.12);
    --shadow-glow: 0 10px 40px rgba(132, 204, 22, 0.25);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
}

/* Base Reset & Smoothness */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Typography Overhaul */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout System */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--spacing-xl) 0;
}

.grid {
    display: grid;
    gap: 2.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .order-2 {
        order: 2;
    }
}


/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.text-accent {
    color: var(--accent);
}

/* Premium Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.8rem 0;
    background: var(--bg-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header.scrolled .logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--bg-white);
    position: relative;
    opacity: 0.9;
}

.header.scrolled .nav-link {
    color: var(--primary);
    opacity: 1;
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--primary-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    opacity: 1;
}

.cart-trigger {
    position: relative;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--bg-white);
}

.header.scrolled .cart-trigger {
    color: var(--primary);
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header.solid-header {
    background: var(--primary);
    box-shadow: var(--shadow-soft);
    padding: 1rem 0;
}

/* Cinematic Hero */
.hero {
    height: 100vh;
    min-height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Premium Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* Impact Bento Grid */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.impact-item {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.impact-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.impact-item h3 {
    color: var(--primary-light);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Product Catalog Overhaul - FIXED DISPLAY */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.tab {
    padding: 0.75rem 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.tab.active {
    background: var(--primary);
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 77, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-premium);
}

.product-img {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    display: block;
}

.product-title {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.product-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

/* Premium Cart Drawer */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: var(--transition);
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: var(--bg-white);
    z-index: 2001;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
}

.cart-modal.active {
    right: 0;
}

.cart-header {
    padding: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.cart-items {
    padding: 2.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.cart-footer {
    padding: 2.5rem;
    background: var(--bg-main);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    color: white;
}

.header.scrolled .mobile-toggle {
    color: var(--primary);
}

.mobile-close {
    display: none;
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary);
        padding-top: 8rem;
        align-items: center;
        gap: 2rem;
        z-index: 3000;
    }

    .nav-menu.active .mobile-close {
        display: block;
    }

    .nav-menu.active .nav-link {
        color: var(--bg-white) !important;
        font-size: 1.5rem;
        opacity: 1;
    }

    .nav-menu.active .nav-link:hover {
        color: var(--accent) !important;
    }
}

/* Vision & Impact Utilities */
.impact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.impact-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.impact-list-item i {
    color: var(--accent);
}

/* Knowledge Hub Styles */
.hub-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hub-nav li a {
    display: block;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.hub-nav li.active a,
.hub-nav li a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.hub-nav li a i {
    width: 25px;
    margin-right: 0.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.hub-section h2 {
    color: var(--primary);
}

.sticky-top {
    position: sticky;
    top: 2rem;
}

/* Animations */
@keyframes slowZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Fix for gallery layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    border: 4px solid white;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-premium);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Trust & Certifications */
.trust-bar {
    padding: 2.5rem 0;
    background: var(--bg-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 1.25rem;
    background: var(--earth-stone);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.badge-item:hover {
    transform: translateY(-2px);
    background: var(--primary-soft);
    color: var(--primary);
}

/* Service Mosaic */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    border-bottom: 4px solid var(--accent);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary);
    transition: var(--transition);
    z-index: 0;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover * {
    position: relative;
    z-index: 1;
    color: white !important;
}

.service-icon {
    font-size: 3rem;
    color: var(--earth-clay);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Team Section */
.team-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ceo-card {
    max-width: 850px;
    margin: 0 auto 5rem;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    display: flex;
    border: 1px solid var(--earth-stone);
}

.ceo-img {
    flex: 0 0 45%;
    min-height: 450px;
    background: var(--earth-stone);
}

.ceo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ceo-info {
    flex: 1;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.member-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    padding-bottom: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--earth-stone);
    transition: var(--transition);
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.member-img {
    height: 320px;
    background: var(--earth-stone);
    margin-bottom: 1.5rem;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Coverage Stats */
.coverage-map {
    background: linear-gradient(rgba(27, 67, 50, 0.9), rgba(27, 67, 50, 0.9)), url('https://images.unsplash.com/photo-1516733968668-dbdce39c46ef?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--spacing-xl) 0;
    color: white;
    text-align: center;
}

.coverage-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat-item h2 {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-item p {

    color: var(--bg-main);
    margin-bottom: 0.5rem;
}

/* Video Gallery */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
}

.video-item {
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.video-play-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4.5rem;
    color: white;
    opacity: 0.9;
    transition: var(--transition);
}

.video-item:hover .video-play-hint {
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--accent);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent);
}

@media (max-width: 900px) {
    .ceo-card {
        flex-direction: column;
    }

    .ceo-img {
        min-height: 350px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--primary);
    border: 1px solid var(--earth-stone);
}

.badge-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

.hub-nav li.active a {
    background: var(--primary-soft);
    color: var(--primary);
}

/* Empowerment Slider Section */
.empowerment-section {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--primary-soft) 100%);
    position: relative;
    overflow: hidden;
}

.empowerment-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(132, 204, 22, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    border: 8px solid white;
    z-index: 1;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 2;
}

.slider-btn.prev {
    left: 2rem;
}

.slider-btn.next {
    right: 2rem;
}

.slider-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .slide img {
        height: 300px;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .slider-btn.prev {
        left: 1rem;
    }

    .slider-btn.next {
        right: 1rem;
    }
}