/* ========================================================
   MIIBA FARMERS PRODUCER COMPANY LIMITED (MFPCL)
   Premium Agriculture Corporate Stylesheet
   CIN: U01611AS2026PT030927
   ======================================================== */

:root {
    --primary-color: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --accent-gold: #fbc02d;
    --accent-orange: #e65100;
    --bg-light: #f8faf8;
    --bg-cream: #f4f7f4;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}
a:hover {
    color: var(--primary-dark);
}

/* ---------------- Topbar ---------------- */
.topbar {
    background: #143d18;
    color: #e2e8f0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.topbar a {
    color: #f1f5f9;
}
.topbar a:hover {
    color: var(--accent-gold);
}
.cin-badge {
    background: rgba(251, 192, 45, 0.15);
    border: 1px solid rgba(251, 192, 45, 0.4);
    padding: 3px 10px;
    border-radius: 20px;
    color: #fef08a;
}
.topbar-social a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    font-size: 0.8rem;
}
.topbar-social a:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------------- Navbar ---------------- */
.header-nav .navbar {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f4f1;
}
.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
    line-height: 1.1;
    display: block;
}
.brand-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    letter-spacing: 0.3px;
}
.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.94rem;
    color: #374151;
    padding: 10px 14px !important;
    border-radius: 6px;
    transition: all 0.25s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(46, 125, 50, 0.08);
}
.btn-miiba {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
    transition: all 0.3s ease;
}
.btn-miiba:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0e3b12 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.35);
}

/* ---------------- Hero Section ---------------- */
.hero-slider-item {
    position: relative;
    min-height: 560px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #ffffff;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(14, 46, 18, 0.92) 0%, rgba(27, 94, 32, 0.78) 60%, rgba(0, 0, 0, 0.4) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: 1.25rem;
    color: #e2e8f0;
    max-width: 650px;
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.1rem; }
    .hero-slider-item { min-height: 480px; }
}

/* ---------------- Section Elements ---------------- */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary-color);
    background: rgba(46, 125, 50, 0.1);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
}
.section-title {
    font-size: 2.3rem;
    line-height: 1.25;
    margin-bottom: 16px;
}
.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------- Stat Box Counter ---------------- */
.stat-box {
    background: #ffffff;
    border: 1px solid #e5ede7;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.stat-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(46, 125, 50, 0.12);
    border-color: var(--primary-light);
}
.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
}

/* ---------------- Feature / Service Card ---------------- */
.feature-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #edf2ee;
    padding: 30px;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(46, 125, 50, 0.12);
    border-color: rgba(46, 125, 50, 0.3);
}
.feature-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(46,125,50,0.12), rgba(76,175,80,0.22));
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* ---------------- Product Card ---------------- */
.product-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eaf0eb;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(46, 125, 50, 0.14);
}
.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 68%;
    background: #f1f5f2;
    overflow: hidden;
}
.product-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-img {
    transform: scale(1.06);
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: #2e7d32;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.product-category-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1b5e20;
}

/* ---------------- Team Leadership Card ---------------- */
.team-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eef2ef;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(46, 125, 50, 0.14);
}
.team-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 110%;
    background: #e2e8f0;
    overflow: hidden;
}
.team-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.team-card:hover .team-img {
    transform: scale(1.04);
}

/* ---------------- Gallery & Lightbox ---------------- */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    cursor: pointer;
}
.gallery-thumb {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 60, 25, 0.82);
    color: #fff;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-item:hover .gallery-thumb {
    transform: scale(1.08);
}

/* ---------------- News Card ---------------- */
.news-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5ede7;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(46, 125, 50, 0.12);
}
.news-img-box {
    position: relative;
    width: 100%;
    padding-top: 60%;
    background: #e2e8f0;
}
.news-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.news-date-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(14, 46, 18, 0.85);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

/* ---------------- CTA Section ---------------- */
.cta-section {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 70%, #388e3c 100%);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

/* ---------------- Footer ---------------- */
.footer {
    background: #0f2e13;
    font-size: 0.92rem;
}
.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fef08a;
    letter-spacing: 0.4px;
    border-bottom: 2px solid rgba(251, 192, 45, 0.3);
    display: inline-block;
    padding-bottom: 6px;
}
.footer-links li {
    margin-bottom: 9px;
}
.footer-links a {
    color: #cbd5e1;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}
.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(4px);
}
.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background: var(--accent-gold);
    color: #0f2e13;
    transform: translateY(-3px);
}

/* ---------------- Back to Top ---------------- */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ---------------- Breadcrumbs Banner ---------------- */
.page-header {
    background: linear-gradient(135deg, rgba(14, 46, 18, 0.95), rgba(46, 125, 50, 0.88)), url('../images/hero/hero1.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
}
.page-header h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.breadcrumb {
    justify-content: center;
    margin-bottom: 0;
}
.breadcrumb-item a {
    color: var(--accent-gold);
    font-weight: 600;
}
.breadcrumb-item.active {
    color: #e2e8f0;
}
