/* ========================================
   KIM AGRI NEXUS - COMPLETE STYLESHEET
   Smart Farming Platform for Africa
   Colors: Deep Forest (#0B3D2E) | Harvest Gold (#D4A017) | Earth Cream (#F5E6D3) | Farm Green (#2C5F2D) | Soil Brown (#8B4513)
   Version: 2.0 – Investor Ready
   ======================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #212121;
    background-color: #FFFFFF;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: #0B3D2E;
}

h2 {
    font-size: 2.2rem;
    color: #0B3D2E;
    border-bottom: 3px solid #D4A017;
    display: inline-block;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    color: #2C5F2D;
}

p {
    margin-bottom: 1rem;
    color: #4A4A4A;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    display: inline-block;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: #0B3D2E;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.logo span {
    color: #D4A017;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #D4A017;
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #0B3D2E;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 8px;
    list-style: none;
    padding: 0;
    top: 100%;
    left: 0;
}

.dropdown-content li {
    display: block;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    display: block;
    text-align: left;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background: #2C5F2D;
    color: #D4A017;
    border-radius: 8px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ===== MOBILE MENU BUTTON ===== */
.menu-btn {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.menu-btn:active {
    opacity: 0.7;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-gold {
    background: #D4A017;
    color: #0B3D2E;
}

.btn-gold:hover {
    background: #B8860B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212,160,23,0.3);
    color: white;
}

.btn-gold-large {
    background: #D4A017;
    color: #0B3D2E;
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-gold-large:hover {
    background: #B8860B;
    transform: translateY(-2px);
}

.btn-primary {
    background: #2C5F2D;
    color: white;
}

.btn-primary:hover {
    background: #1B4D1C;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #2C5F2D;
    color: #2C5F2D;
}

.btn-outline:hover {
    background: #2C5F2D;
    color: white;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: #0B3D2E;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #0B3D2E 0%, #1B5E20 100%);
    color: white;
    text-align: center;
    padding: 120px 0;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
}

.hero .highlight {
    color: #D4A017;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #F5E6D3;
}

.hero-badge {
    display: inline-block;
    background: #D4A017;
    color: #0B3D2E;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.stat-number-large {
    font-size: 2rem;
    font-weight: bold;
    color: #D4A017;
    display: block;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Small hero for inner pages */
.hero-small {
    background: linear-gradient(135deg, #0B3D2E 0%, #2C5F2D 100%);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.hero-small h1 {
    color: white;
}

.hero-small p {
    color: #F5E6D3;
    font-size: 1.2rem;
}

/* ===== FOUNDER SECTION ===== */
.founder-section {
    background: #F5F5F0;
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.founder-image .image-placeholder-large {
    background: #E0E0E0;
    border-radius: 16px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #999;
}

.founder-badge {
    background: #D4A017;
    color: #0B3D2E;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.founder-quote {
    background: #F5E6D3;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    font-style: italic;
    border-left: 4px solid #D4A017;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background: #FFFFFF;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #F5E6D3;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 a {
    color: #2C5F2D;
    text-decoration: none;
}

.feature-card h3 a:hover {
    color: #D4A017;
}

.feature-link {
    display: inline-block;
    margin-top: 1rem;
    color: #D4A017;
    text-decoration: none;
    font-weight: 500;
}

/* ===== INVESTOR HIGHLIGHT ===== */
.investor-highlight {
    background: linear-gradient(135deg, #0B3D2E 0%, #1B5E20 100%);
    color: white;
}

.investor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.investor-content h2 {
    color: white;
    border-bottom-color: #D4A017;
}

.investor-badge {
    display: inline-block;
    background: #D4A017;
    color: #0B3D2E;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.investor-stats {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.investor-contact {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 12px;
}

.investor-contact a {
    color: #D4A017;
    text-decoration: none;
}

/* ===== VIDEO SECTION ===== */
.video-section {
    background: #F5F5F0;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-placeholder {
    background: #E0E0E0;
    border-radius: 16px;
    padding: 100px 20px;
    text-align: center;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    background: #FFFFFF;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #F5F5F0;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    color: #2C5F2D;
}

.testimonial-stars {
    color: #D4A017;
    margin-top: 0.5rem;
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
    background: #FFFFFF;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.partner-logo {
    background: #F5F5F0;
    padding: 1rem;
    border-radius: 12px;
    font-weight: bold;
    color: #0B3D2E;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #2C5F2D 0%, #0B3D2E 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    border-bottom: none;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.cta-note {
    font-size: 0.9rem;
}

.cta-note a {
    color: #D4A017;
}

/* ===== FOOTER ===== */
footer {
    background: #0B3D2E;
    color: white;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: #D4A017;
    margin-bottom: 1rem;
}

.footer-col a {
    color: #ccc;
    display: block;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.footer-col a:hover {
    color: #D4A017;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

/* ===== GALLERY STYLES ===== */
.gallery-grid-all {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    cursor: pointer;
}

.gallery-image-placeholder {
    background: linear-gradient(135deg, #0B3D2E 0%, #2C5F2D 100%);
    color: white;
    border-radius: 12px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.gallery-image-placeholder:hover {
    transform: scale(1.02);
}

.gallery-caption {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.category-btn {
    background: #F5F5F0;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active, .category-btn:hover {
    background: #D4A017;
    color: #0B3D2E;
}

/* ===== FORM STYLES ===== */
form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2C5F2D;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #D4A017;
}

/* ===== ALERTS ===== */
.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

th {
    background: #2C5F2D;
    color: white;
    padding: 12px;
    text-align: left;
}

td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background: #F5F5F0;
}

.highlight-row {
    background: #F5E6D3;
    font-weight: bold;
}

/* ===== TIMELINE ===== */
.timeline-vertical {
    position: relative;
    padding-left: 30px;
}

.timeline-node {
    margin-bottom: 2rem;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: #D4A017;
    margin-bottom: 0.5rem;
}

.timeline-box {
    background: #F5F5F0;
    padding: 1.5rem;
    border-radius: 12px;
}

.status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
}

.status-complete { background: #2C5F2D; color: white; }
.status-progress { background: #D4A017; color: #0B3D2E; }
.status-planned { background: #999; color: white; }

/* ===== SITEMAP ===== */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.sitemap-col h2 {
    font-size: 1.3rem;
    margin-top: 1rem;
    border-bottom: 2px solid #D4A017;
    padding-bottom: 0.3rem;
}

.sitemap-col ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.sitemap-col li {
    margin-bottom: 0.5rem;
}

.sitemap-col a {
    color: #2C5F2D;
    text-decoration: none;
}

.sitemap-col a:hover {
    color: #D4A017;
}

.sitemap-stats {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    background: #F5F5F0;
    border-radius: 12px;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
    padding: 40px 0;
}

.legal-box {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.legal-box h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: none;
    color: #0B3D2E;
}

.legal-box h2:first-of-type {
    margin-top: 0;
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .founder-grid, .investor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    section { padding: 50px 0; }
    
    /* Mobile Menu Button - visible on mobile */
    .menu-btn {
        display: block !important;
    }
    
    /* Navigation Links - hidden by default on mobile */
    .nav-links {
        display: none !important;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
        background: #0B3D2E;
        position: absolute;
        top: 70px;
        left: 0;
        z-index: 1000;
    }
    
    /* Show navigation when active class is added */
    .nav-links.active {
        display: flex !important;
    }
    
    /* Dropdown menus on mobile */
    .dropdown-content {
        position: static;
        background: #1B5E20;
        width: 100%;
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .hero-stats { flex-direction: column; gap: 1rem; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-buttons .btn { display: block; width: 100%; margin-bottom: 0.5rem; }
    .container { width: 95%; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .section-header h2 { font-size: 1.3rem; }
    .gallery-grid-all { grid-template-columns: 1fr; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-gold { color: #D4A017; }
.text-green { color: #2C5F2D; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 20px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 20px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ===== PRINT STYLES ===== */
@media print {
    header, footer, .btn, .hero-buttons { display: none; }
    body { background: white; color: black; }
    .container { width: 100%; margin: 0; padding: 0; }
}