/* 
   Fourleaf Ventures Design System
   Kenyan-inspired Modern Aesthetic
*/

:root {
    /* Colors */
    --forest-green: #1B4332;
    --primary-green: #2D6A4F;
    --accent-green: #40916C;
    --earthy-gold: #D4A373;
    --light-cream: #F8F9FA;
    --dark-slate: #212529;
    --white: #FFFFFF;
    --mpesa-green: #4DB848;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--light-cream);
    color: var(--dark-slate);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Base UI Components */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-accent {
    background-color: var(--earthy-gold);
    color: var(--white);
}

.btn-mpesa {
    background-color: var(--mpesa-green);
    color: var(--white);
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--space-sm) 0;
}

nav .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.footer-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-bottom {
    margin-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    opacity: 0.7;
    font-size: 0.85rem;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-links a:hover {
    color: var(--primary-green);
}

/* Sections */
section {
    padding: var(--space-lg) 0;
}

/* Hero Slider */
.hero {
    height: 90vh;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: var(--forest-green);
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.slide .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.slide h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.slide p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto var(--space-md);
    opacity: 0.9;
}

/* Retailer Section */
.retailer-cta {
    background: var(--forest-green);
    color: var(--white);
    padding: var(--space-lg) 0;
}

.retailer-card {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-md);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.retailer-card h3 {
    color: var(--earthy-gold);
}

/* Responsive Grid */
.grid {
    display: grid;
    gap: var(--space-md);
}

.text-center {
    text-align: center;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark-slate);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 150;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--dark-slate);
    }

    .nav-links a:hover {
        color: var(--primary-green);
    }

    .nav-cta {
        display: none;
    }

    .nav-cta.mobile-show {
        display: block;
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 160;
    }

    .hero {
        height: 70vh;
    }

    .slide h1 {
        font-size: 2rem;
    }

    .slide p {
        font-size: 1rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .retailer-cta .grid-2 {
        grid-template-columns: 1fr;
    }

    .product-img {
        height: 400px;
    }

    footer .grid-4 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    footer .logo {
        display: flex;
        justify-content: center;
    }

    .footer-bottom {
        margin-top: var(--space-lg);
    }
}

/* Card Components */
.card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Product Section */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-img {
    height: 300px;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: var(--space-sm);
}

.price {
    color: var(--primary-green);
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: 16px;
    border-left: 4px solid var(--earthy-gold);
}

.testimonial-card p {
    font-style: italic;
    color: #555;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--earthy-gold);
}

/* Footer Improvements */
footer a {
    opacity: 0.8;
}

footer a:hover {
    opacity: 1;
    color: var(--earthy-gold);
}