/* ========================================
   Farmers Data Hub Uganda - Landing Page
   Primary Color: Deep Navy (#031a42)
   ======================================== */

:root {
    --primary:       #031a42;
    --primary-dark:  #02112f;
    --primary-light: #07306f;
    --accent:        #f4c430;
    --accent-dark:   #d4a017;
    --text-dark:     #1a1a2e;
    --text-muted:    #6c757d;
    --bg-light:      #f0f4fc;
    --white:         #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background: #fff;
    overflow-x: hidden;
}

/* ── NAVBAR ── */
.land-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    padding: 0.75rem 0;
    transition: background 0.3s, box-shadow 0.3s;
    background: transparent;
}
.land-nav.scrolled {
    background: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.land-nav .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.land-nav .brand-logo-circle {
    width: 42px; height: 42px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem; color: var(--primary-dark);
    flex-shrink: 0;
}
.land-nav .brand-text-main {
    font-weight: 800; font-size: 1.05rem; color: #fff; line-height: 1.2;
}
.land-nav .brand-text-sub {
    font-size: 0.65rem; color: rgba(255,255,255,0.7); font-weight: 500;
}
.land-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.45rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.land-nav .nav-link:hover,
.land-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.12);
}
.land-nav .navbar-toggler {
    border: 1px solid rgba(255,255,255,0.4);
    padding: 4px 8px;
}
.land-nav .navbar-toggler-icon {
    filter: invert(1);
}

/* ── HERO ── */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #03173c 0%, var(--primary) 55%, #07306f 100%);
    display: flex; align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.035'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.hero-blob-1 {
    width: 480px; height: 480px;
    background: rgba(255,255,255,0.06);
    top: -100px; right: -80px;
}
.hero-blob-2 {
    width: 300px; height: 300px;
    background: rgba(244,196,48,0.12);
    bottom: 60px; left: -60px;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.75rem; font-weight: 600; color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}
.hero-title {
    font-size: 3.2rem; font-weight: 900;
    color: #fff; line-height: 1.15;
    margin-bottom: 1rem;
}
.hero-title .highlight { color: var(--accent); }
.hero-subtitle {
    font-size: 1.1rem; color: rgba(255,255,255,0.82);
    line-height: 1.7; margin-bottom: 2rem;
    max-width: 540px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 700; font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 6px 24px rgba(244,196,48,0.4);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-primary:hover {
    background: var(--accent-dark); color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(244,196,48,0.5);
}
.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600; font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,0.12); color: #fff;
    border-color: #fff;
    transform: translateY(-3px);
}
.hero-stats {
    display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap;
}
.hero-stat-item { text-align: left; }
.hero-stat-num {
    font-size: 1.8rem; font-weight: 900; color: var(--accent); line-height: 1;
}
.hero-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.7); font-weight: 500; margin-top: 2px; }

/* Hero visual card */
.hero-visual { position: relative; z-index: 2; }
.hero-card-wrap {
    position: relative;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.hero-card-wrap .system-pill {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 0.75rem;
    transition: background 0.2s;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.08);
}
.hero-card-wrap .system-pill:hover { background: rgba(255,255,255,0.18); }
.hero-card-wrap .system-pill .pill-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.hero-card-wrap .system-pill .pill-name {
    font-weight: 700; font-size: 0.88rem; color: #fff; display: block;
}
.hero-card-wrap .system-pill .pill-desc {
    font-size: 0.72rem; color: rgba(255,255,255,0.65);
}
.hero-card-wrap .pill-arrow { margin-left: auto; color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.hero-card-title {
    font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.55);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

/* ── SECTION COMMONS ── */
section { padding: 80px 0; }
.section-eyebrow {
    display: inline-block;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--primary);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: 2.2rem; font-weight: 900; color: var(--text-dark); line-height: 1.2;
}
.section-title .highlight { color: var(--primary); }
.section-sub {
    font-size: 1rem; color: var(--text-muted); line-height: 1.7; max-width: 580px;
}

/* ── STATS BAR ── */
.stats-bar {
    background: var(--primary);
    padding: 2.5rem 0;
}
.stats-bar .stat-item { text-align: center; padding: 0.5rem; }
.stats-bar .stat-num {
    font-size: 2.4rem; font-weight: 900; color: var(--accent); line-height: 1;
}
.stats-bar .stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.75); font-weight: 500; margin-top: 4px; }

/* ── SYSTEMS SECTION ── */
.systems-section { background: var(--bg-light); }
.system-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex; flex-direction: column;
    border: none;
}
.system-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}
.system-card-header {
    padding: 2rem 1.75rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.system-card-header .sys-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    position: relative; z-index: 2;
}
.system-card-header .sys-title {
    font-size: 1.15rem; font-weight: 800; color: #fff;
    margin-bottom: 0.35rem; position: relative; z-index: 2;
}
.system-card-header .sys-org {
    font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.75);
    text-transform: uppercase; letter-spacing: 1px; position: relative; z-index: 2;
}
.system-card-header::after {
    content: '';
    position: absolute; top: -30px; right: -30px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.system-card-body {
    padding: 1.25rem 1.75rem; flex: 1;
}
.system-card-body p { font-size: 0.88rem; color: #555; line-height: 1.7; }
.system-card-features {
    list-style: none; padding: 0; margin: 1rem 0 0;
}
.system-card-features li {
    font-size: 0.82rem; color: #444; padding: 0.3rem 0;
    display: flex; align-items: center; gap: 8px;
}
.system-card-features li i { font-size: 0.7rem; }
.system-card-footer {
    padding: 1rem 1.75rem 1.5rem;
    display: flex; gap: 0.65rem;
}
.btn-sys-primary {
    flex: 1; border: none;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-weight: 700; font-size: 0.82rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    color: #fff;
}
.btn-sys-primary:hover { opacity: 0.88; transform: translateY(-2px); color: #fff; }
.btn-sys-outline {
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-weight: 600; font-size: 0.82rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: #f8f9fa; color: #333; border: 1px solid #dee2e6;
}
.btn-sys-outline:hover { background: #e9ecef; color: #333; }

/* FSS MIS */
.sys-fss .system-card-header { background: linear-gradient(135deg, #031a42 0%, #07306f 100%); }
.sys-fss .sys-icon { background: rgba(255,255,255,0.18); color: #fff; }
.sys-fss .btn-sys-primary { background: linear-gradient(135deg, #031a42, #07306f); }
.sys-fss .system-card-features li i { color: #031a42; }

/* Green Farm Labs */
.sys-gfl .system-card-header { background: linear-gradient(135deg, #1a6b2e 0%, #2d9e4f 100%); }
.sys-gfl .sys-icon { background: rgba(255,255,255,0.18); color: #fff; }
.sys-gfl .btn-sys-primary { background: linear-gradient(135deg, #1a6b2e, #2d9e4f); }
.sys-gfl .system-card-features li i { color: #1a6b2e; }

/* TFM */
.sys-tfm .system-card-header { background: linear-gradient(135deg, #6d1f8a 0%, #9b3ec4 100%); }
.sys-tfm .sys-icon { background: rgba(255,255,255,0.18); color: #fff; }
.sys-tfm .btn-sys-primary { background: linear-gradient(135deg, #6d1f8a, #9b3ec4); }
.sys-tfm .system-card-features li i { color: #6d1f8a; }

/* ── ABOUT / WHY SECTION ── */
.why-section { background: #fff; }
.feature-item {
    display: flex; gap: 1.2rem; margin-bottom: 1.8rem;
}
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--bg-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--primary);
    flex-shrink: 0;
    transition: all 0.2s;
}
.feature-item:hover .feature-icon {
    background: var(--primary);
    color: #fff;
}
.feature-text h6 { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; }
.feature-text p { font-size: 0.83rem; color: #666; line-height: 1.6; margin: 0; }

/* FAO Banner */
.fao-banner {
    background: linear-gradient(135deg, #03173c 0%, var(--primary) 60%, #07306f 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.fao-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.fao-banner-content { position: relative; z-index: 2; }
.fao-logo-wrap {
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--accent);
    margin: 0 auto 1rem;
}

/* ── CONTACT ── */
.contact-section { background: var(--bg-light); }
.contact-info-item {
    display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem;
}
.contact-info-icon {
    width: 46px; height: 46px;
    background: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem; flex-shrink: 0;
}
.contact-info-text h6 { font-weight: 700; font-size: 0.88rem; margin-bottom: 2px; }
.contact-info-text p, .contact-info-text a {
    font-size: 0.83rem; color: #555; margin: 0; text-decoration: none;
}
.contact-info-text a:hover { color: var(--primary); }

.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.contact-card .form-control,
.contact-card .form-select {
    border-radius: 10px;
    border: 1px solid #dee2e6;
    font-size: 0.88rem;
    padding: 0.7rem 1rem;
}
.contact-card .form-control:focus,
.contact-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(10,79,168,0.15);
}
.contact-card .form-label { font-weight: 600; font-size: 0.8rem; color: #444; }
.btn-contact-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff; border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 700; font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(10,79,168,0.3);
}
.btn-contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10,79,168,0.4);
    color: #fff;
}

/* ── FOOTER ── */
.land-footer {
    background: #03173c;
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
}
.land-footer .footer-brand .brand-name {
    font-size: 1.1rem; font-weight: 800; color: #fff;
}
.land-footer .footer-brand p { font-size: 0.82rem; line-height: 1.7; margin-top: 0.5rem; }
.land-footer h6 {
    font-size: 0.75rem; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px; display: inline-block;
}
.land-footer .footer-links { list-style: none; padding: 0; }
.land-footer .footer-links li { margin-bottom: 0.5rem; }
.land-footer .footer-links a {
    color: rgba(255,255,255,0.65); font-size: 0.85rem; text-decoration: none;
    transition: color 0.2s;
    display: flex; align-items: center; gap: 6px;
}
.land-footer .footer-links a:hover { color: var(--accent); }
.land-footer .footer-links a i { font-size: 0.65rem; }
.land-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0; margin-top: 3rem;
    font-size: 0.8rem; color: rgba(255,255,255,0.45);
    text-align: center;
}
.land-footer .social-links { display: flex; gap: 0.65rem; margin-top: 1rem; }
.land-footer .social-links a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.65);
    transition: all 0.2s; font-size: 0.9rem;
    text-decoration: none;
}
.land-footer .social-links a:hover { background: var(--accent); color: var(--primary-dark); }

/* ── ABOUT PAGE ── */
.about-hero {
    background: linear-gradient(135deg, #03173c 0%, var(--primary) 55%, #07306f 100%);
    padding: 130px 0 80px;
    color: #fff;
}
.about-hero h1 { font-size: 2.8rem; font-weight: 900; }
.team-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.25s;
}
.team-card:hover { transform: translateY(-6px); }
.team-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 800; color: #fff;
    margin: 0 auto 1rem;
}
.value-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: 100%;
    border-top: 4px solid var(--primary);
}
.value-card .value-icon {
    font-size: 2rem; margin-bottom: 0.75rem;
}
.value-card h5 { font-weight: 800; font-size: 1rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.83rem; color: #666; line-height: 1.6; }

/* ── SYSTEMS PAGE ── */
.systems-hero {
    background: linear-gradient(135deg, #03173c 0%, var(--primary) 55%, #07306f 100%);
    padding: 130px 0 80px;
    color: #fff;
}
.sys-detail-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}
.sys-detail-header {
    padding: 3rem;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.sys-detail-header h2 { font-size: 1.8rem; font-weight: 900; }
.sys-detail-header p { font-size: 0.95rem; opacity: 0.85; }
.sys-detail-header::after {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    pointer-events: none;
}
.sys-detail-body { padding: 2.5rem; }
.sys-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.module-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg-light); color: var(--primary);
    border: 1px solid rgba(10,79,168,0.15);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.78rem; font-weight: 600;
    margin: 3px;
}
.module-chip i { font-size: 0.7rem; }

/* ── CONTACT PAGE ── */
.contact-hero {
    background: linear-gradient(135deg, #03173c 0%, var(--primary) 55%, #07306f 100%);
    padding: 130px 0 80px;
    color: #fff;
}
.map-embed {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ── PAGE HERO SUB ── */
.page-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.72rem; font-weight: 600; color: #fff;
    letter-spacing: 0.5px; margin-bottom: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.6rem; }
    .hero-stats { gap: 1.2rem; }
    .hero-card-wrap { margin-top: 3rem; }
    .fao-banner { text-align: center; }
    .sys-detail-header { padding: 2rem; }
    .sys-detail-body { padding: 1.5rem; }
    .contact-card { padding: 1.5rem; }
}

/* Scroll animation utility */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
