/* =========================================================
   MUGULUSI SUPPLIES LIMITED - MAIN STYLESHEET
   ========================================================= */

/* ======== CUSTOM PROPERTIES ======== */
:root {
    --maize: #D4A017;
    --maize-dark: #B8860B;
    --maize-light: #E6C35C;
    --green: #2D5016;
    --green-dark: #1A3A0A;
    --green-light: #4A7A2E;
    --cream: #FFF8E7;
    --cream-dark: #F0E0C0;
    --text: #1A1A2E;
    --text-light: #6B7280;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, .1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, .15);
    --transition: .3s ease;
}

/* ======== BASE ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}
p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
}
a {
    text-decoration: none;
    transition: var(--transition);
}
img {
    max-width: 100%;
    height: auto;
}

/* ======== UTILITIES ======== */
.section-padding {
    padding: 80px 0;
}
.section-sm {
    padding: 50px 0;
}
.bg-cream {
    background: var(--cream);
}
.bg-dark-green {
    background: var(--green);
}
.text-maize {
    color: var(--maize) !important;
}
.text-green {
    color: var(--green) !important;
}
.fw-700 {
    font-weight: 700;
}
.fw-800 {
    font-weight: 800;
}
.rounded-20 {
    border-radius: 20px;
}
.shadow-md {
    box-shadow: var(--shadow-md);
}

/* ======== NAVBAR ======== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, .05);
    padding: 15px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-icon {
    width: 42px;
    height: 42px;
    background-color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-text strong {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--text);
}
.brand-text span {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    padding: 8px 0;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--maize-dark);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--maize);
    transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.navbar-cta {
    background: linear-gradient(135deg, var(--maize), var(--maize-dark));
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px !important;
    box-shadow: 0 4px 15px rgba(212, 160, 23, .3);
    border: none;
    transition: var(--transition) !important;
}
.navbar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, .4);
}
.navbar-cta::after {
    display: none !important;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
}

/* ======== MOBILE NAV ======== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 10000;
    box-shadow: -5px 0 30px rgba(0, 0, 0, .15);
    transition: var(--transition);
    padding: 80px 24px 30px;
    overflow-y: auto;
}
.mobile-nav.open {
    right: 0;
}
.mobile-nav a {
    display: block;
    padding: 14px 0;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}
.mobile-nav a:hover {
    color: var(--maize-dark);
}
.mobile-nav .cta-btn {
    margin-top: 20px;
    text-align: center;
}
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}
.mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text);
    cursor: pointer;
}

/* ======== HERO ======== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .55)), url('../images/home_photo.jpg') center/cover;
    display: flex;
    align-items: center;
    padding-top: 80px;
}
.hero-content {
    max-width: 700px;
    color: #fff;
}
.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #fff;
}
.hero-content h1 span {
    color: var(--maize-light);
}
.hero-content p {
    color: rgba(255, 255, 255, .9);
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.7;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #fff;
}
.hero-badge i {
    color: var(--maize-light);
}

/* ======== BUTTONS ======== */
.btn-maize {
    background: linear-gradient(135deg, var(--maize), var(--maize-dark));
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    box-shadow: 0 5px 20px rgba(212, 160, 23, .3);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-maize:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, .4);
    color: #fff;
}
.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .7);
    color: #fff;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, .1);
    border-color: #fff;
    color: #fff;
}
.btn-white {
    background: #fff;
    color: var(--maize-dark);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
}
.btn-outline-white {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline-white:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

/* ======== TRUST STRIP ======== */
.trust-strip {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-top: -1px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 15px;
    transition: var(--transition);
}
.trust-item:hover {
    background: var(--cream);
}
.trust-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--maize), var(--maize-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
.trust-item h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}
.trust-item p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* ======== ABOUT PREVIEW ======== */
.about-preview {
    padding: 80px 0;
}
.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}
.about-image-wrapper img {
    width: 100%;
    border-radius: 20px;
}
.about-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, .3));
}
.about-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 20px;
    z-index: 2;
    box-shadow: var(--shadow-md);
}
.about-badge h4 {
    font-size: 28px;
    font-weight: 800;
    color: var(--maize-dark);
}
.about-badge span {
    font-size: 13px;
    color: var(--text-light);
}

/* ======== PRODUCT FEATURE ======== */
.product-feature {
    background: linear-gradient(135deg, #faf6ee, #fff);
    padding: 80px 0;
}

/* ======== HORIZONTAL PRODUCT CARDS ======== */
.product-card-h {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 400px;
    transition: var(--transition);
}
.product-card-h:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.product-card-h .product-img-wrapper {
    flex: 0 0 42%;
    height: 100%;
    overflow: hidden;
}
.product-card-h .product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-card-h .product-info {
    flex: 1;
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.product-card-h .product-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.product-card-h .product-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}
.product-card-h .product-info .btn-maize {
    align-self: flex-start;
    padding: 12px 24px;
    font-size: 14px;
}

/* ======== REGIONAL REACH ======== */
.regional-section {
    background: var(--green);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.regional-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
}
.country-card {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}
.country-card:hover {
    background: rgba(255, 255, 255, .2);
    transform: translateY(-3px);
}
.market-flag,
.country-flag {
    margin-bottom: 12px;
    line-height: 1;
}
.market-flag img,
.country-flag img {
    width: 56px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    display: inline-block;
}
.market-flag .globe-icon,
.country-flag .globe-icon {
    font-size: 44px;
    color: var(--maize);
}
.country-card h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}
.country-card p {
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}

/* ======== MARKET DETAIL CARDS ======== */
.market-detail-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    height: 100%;
    transition: var(--transition);
}
.market-detail-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.market-detail-card h4 {
    font-size: 20px;
    margin-bottom: 4px;
}
.market-role {
    font-size: 12px;
    font-weight: 700;
    color: var(--maize-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.market-detail-card p {
    font-size: 14px;
    margin-bottom: 0;
}

/* ======== CTA SECTION ======== */
.cta-section {
    background: linear-gradient(135deg, var(--maize), var(--maize-dark));
    padding: 70px 0;
    text-align: center;
    border-radius: 0;
}
.cta-section h2 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 15px;
}
.cta-section p {
    color: rgba(255, 255, 255, .9);
    font-size: 17px;
    margin-bottom: 30px;
}
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ======== FOOTER ======== */
.footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, .8);
    padding: 60px 0 20px;
}
.footer h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer a {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    display: block;
    padding: 4px 0;
}
.footer a:hover {
    color: var(--maize-light);
}
.footer .contact-info {
    font-size: 14px;
    line-height: 2;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
}

/* ======== WHATSAPP BUTTON ======== */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, .4);
    z-index: 9998;
    transition: var(--transition);
}
.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, .5);
    color: #fff;
}

/* ======== SCROLL TO TOP ======== */
.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--text);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 9997;
    border: none;
    font-size: 14px;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background: var(--maize);
}

/* ======== PAGE HERO ======== */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .5)), url('../images/home_photo.jpg') center/cover;
    color: #fff;
    text-align: center;
}
.page-hero h1 {
    color: #fff;
    font-size: 44px;
    font-weight: 800;
}
.page-hero p {
    color: rgba(255, 255, 255, .85);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Per-page hero backgrounds */
.page-hero.hero-about {
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .5)), url('../images/hero-about.jpg') center/cover;
}
.page-hero.hero-products {
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .5)), url('../images/hero-products.jpg') center/cover;
}
.page-hero.hero-markets {
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .5)), url('../images/hero-markets.jpg') center/cover;
}
.page-hero.hero-contact {
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .5)), url('../images/hero-contact.jpg') center/cover;
}

/* ======== CONTACT FORM ======== */
.contact-form-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.form-control {
    border-radius: 10px;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    font-size: 14px;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--maize);
    box-shadow: none;
}
.form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text);
}
.contact-info-card {
    background: var(--cream);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.contact-info-card .icon {
    width: 45px;
    height: 45px;
    background: var(--maize);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}
.contact-info-card h5 {
    font-size: 15px;
    margin-bottom: 3px;
}
.contact-info-card p {
    font-size: 14px;
    margin: 0;
    color: var(--text-light);
}

/* Flash messages */
.form-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}
.form-alert.success {
    background: #d1e7dd;
    color: #0a3622;
    border: 1px solid #a3cfbb;
}
.form-alert.error {
    background: #f8d7da;
    color: #58151c;
    border: 1px solid #f1aeb5;
}

/* ======== MAP ======== */
.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 30px;
}
.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ======== ABOUT PAGE ======== */
.commitment-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    height: 100%;
}
.commitment-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.commitment-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--maize), var(--maize-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 22px;
}
.commitment-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}
.commitment-card p {
    font-size: 14px;
}

/* ======== WHY CHOOSE US ======== */
.why-card {
    background: var(--white);
    border-radius: 15px;
    padding: 10px;
    display: flex;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--maize);
    transition: var(--transition);
    height: 100%;
}
.why-card:hover {
    box-shadow: var(--shadow-md);
}
.why-icon {
    font-size: 24px;
    color: var(--maize);
    flex-shrink: 0;
}
.why-card h5 {
    font-size: 15px;
    margin-bottom: 4px;
}
.why-card p {
    font-size: 13px;
}

/* ======== ANIMATIONS ======== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate {
    animation: fadeInUp .6s ease forwards;
}
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ======== RESPONSIVE ======== */
@media (max-width: 991.98px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .navbar-cta {
        display: none !important;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .section-padding {
        padding: 50px 0;
    }
    .about-preview .row {
        flex-direction: column-reverse;
    }
}

/* Tablet — product cards stacked, image-left / text-right */
@media (max-width: 991.98px) and (min-width: 768px) {
    .product-card-h .product-img-wrapper {
        flex: 0 0 38%;
    }
    .product-card-h .product-info {
        padding: 24px;
    }
}

/* Mobile — product cards stack, image on top */
@media (max-width: 767.98px) {
    .product-card-h {
        flex-direction: column;
        height: auto;
    }
    .product-card-h .product-img-wrapper {
        flex: 0 0 auto;
        width: 100%;
        height: 260px;
    }
    .product-card-h .product-info {
        padding: 24px;
    }
    .product-card-h .product-info h3 {
        font-size: 20px;
    }
    .product-card-h .product-info .btn-maize {
        align-self: stretch;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 26px;
    }
    .hero-content p {
        font-size: 14px;
    }
    .hero-buttons .btn-maize,
    .hero-buttons .btn-outline-light {
        font-size: 13px;
        padding: 10px 20px;
    }
    .trust-item {
        padding: 12px;
    }
    .trust-icon {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .cta-section h2 {
        font-size: 26px;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-hero h1 {
        font-size: 28px;
    }
    .contact-form-wrapper {
        padding: 24px;
    }
    .brand-text strong {
        font-size: 14px;
    }
    .brand-text span {
        font-size: 9px;
    }
}