/* ============================================
   Basulimata Agro Foods LLP – Custom Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --color-primary: #1a7a3a;       /* Professional green */
    --color-primary-dark: #14632f;  /* Darker green for hover */
    --color-accent: #c0392b;        /* Deep red accent */
    --color-bg-light: #f8f9fa;      /* Very light gray */
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-muted: #6c757d;
    --color-border: #dee2e6;
    --font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --logo-size: 52px;
}

/* ---------- Global Resets & Base ---------- */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Section Spacing ---------- */
.section-padding {
    padding: 5rem 0;
}

.section-padding-sm {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Circular logo area */
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: var(--logo-size);
    height: var(--logo-size);
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

/* Navbar tweaks */
.navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text) !important;
    padding: 0.5rem 0.9rem !important;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-primary) !important;
}

/* CTA button inside navbar */
.navbar-nav .btn-nav-cta {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-nav .btn-nav-cta:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
/* Base hero – small breadcrumb bar, used by product detail pages only */
.hero-section {
    background-color: var(--color-bg-light);
    padding: 5rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 680px;
    margin: 0 auto 2rem;
}

.hero-section .btn {
    margin: 0.3rem;
}

/* -----------------------------------------------
   Full-viewport image hero (parent pages)
   Uses CSS background-image with background-size: cover.
   ----------------------------------------------- */
.hero-section.hero-full {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-primary-dark);
    padding: 0;
    position: relative;
}

/* Dark overlay for text readability */
.hero-section.hero-full::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Content wrapper – sits above the overlay */
.hero-section.hero-full .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 2rem 1rem;
}

.hero-section.hero-full h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-section.hero-full .lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 720px;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hero-section.hero-full .btn {
    margin: 0.3rem;
}

/* White button variants on dark hero backgrounds */
.hero-section.hero-full .btn-primary-custom {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--color-primary-dark);
}

.hero-section.hero-full .btn-primary-custom:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    color: var(--color-primary-dark);
}

.hero-section.hero-full .btn-outline-custom {
    border-color: #ffffff;
    color: #ffffff;
    background: transparent;
}

.hero-section.hero-full .btn-outline-custom:hover {
    background-color: #ffffff;
    color: var(--color-primary-dark);
}

/* -----------------------------------------------
   Sub-page banner hero (About, Products, Export,
   Contact) – shorter than the home hero.
   ----------------------------------------------- */
.hero-section.hero-banner {
    min-height: 50vh;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 6px;
    padding: 0.55rem 1.6rem;
}

.btn-primary-custom:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-outline-custom {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
    border-radius: 6px;
    padding: 0.55rem 1.6rem;
    background: transparent;
}

.btn-outline-custom:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-accent {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 6px;
}

.btn-accent:hover {
    background-color: #a93226;
    border-color: #a93226;
    color: var(--color-white);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background: var(--color-white);
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    background-color: var(--color-bg-light);
}

.card-body {
    padding: 1.4rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.card-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* "Why Choose Us" icon cards */
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    color: var(--color-primary);
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-hero {
    background-color: var(--color-bg-light);
    padding: 3rem 0;
}

.product-detail-img {
    width: 100%;
    border-radius: 10px;
    background-color: var(--color-bg-light);
    min-height: 300px;
    object-fit: cover;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    font-size: 0.95rem;
}

.spec-table th {
    font-weight: 600;
    color: var(--color-text);
    width: 40%;
    background-color: var(--color-bg-light);
}

/* ============================================
   EXPORT / PROCESS STEPS
   ============================================ */
.process-step {
    text-align: center;
    padding: 1.5rem 1rem;
}

.process-step .step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.process-step h5 {
    font-size: 1rem;
    font-weight: 600;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    padding: 0.6rem 0;
    font-size: 0.98rem;
    border-bottom: 1px solid var(--color-border);
}

.contact-info-list li:last-child {
    border-bottom: none;
}

.contact-info-list li strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 122, 58, 0.15);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: #1a1a2e;
    color: #cccccc;
    padding-top: 3.5rem;
    padding-bottom: 1.5rem;
    font-size: 0.92rem;
}

.site-footer h5 {
    color: var(--color-white);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.site-footer a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--color-white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

/* ============================================
   MAP EMBED
   ============================================ */
.map-container iframe {
    width: 100%;
    height: 280px;
    border: none;
    border-radius: 8px;
}

/* ============================================
   PAGE-SPECIFIC: ABOUT
   ============================================ */
.about-highlight {
    background-color: #e8f5e9;
    border-left: 4px solid var(--color-primary);
    padding: 1.2rem 1.5rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.5rem;
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
    text-decoration: none;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

.whatsapp-float a svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

@keyframes whatsapp-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float a {
    animation: whatsapp-pulse 2s infinite;
}

/* ============================================
    404 ERROR PAGE
   ============================================ */
.error-404-number {
    font-size: 8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================
    UTILITY / MISC
   ============================================ */
.bg-light-custom {
    background-color: var(--color-bg-light);
}

.text-primary-custom {
    color: var(--color-primary) !important;
}

.border-top-subtle {
    border-top: 1px solid var(--color-border);
}

.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3.5rem 0;
    }
    .hero-section h1 {
        font-size: 1.85rem;
    }
    .hero-section.hero-full {
        min-height: 70vh;
    }
    .hero-section.hero-full h1 {
        font-size: 2.2rem;
    }
    .hero-section.hero-full .lead {
        font-size: 1.05rem;
    }
    .hero-section.hero-banner {
        min-height: 40vh;
    }
    .error-404-number {
        font-size: 6rem;
    }
    .section-padding {
        padding: 3.5rem 0;
    }
    .logo-text {
        font-size: 0.95rem;
    }
    .logo-text span {
        font-size: 0.65rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 2.5rem 0;
    }
    .hero-section h1 {
        font-size: 1.5rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .hero-section.hero-full {
        min-height: 60vh;
    }
    .hero-section.hero-full h1 {
        font-size: 1.7rem;
    }
    .hero-section.hero-full .lead {
        font-size: 0.95rem;
    }
    .hero-section.hero-banner {
        min-height: 35vh;
    }
    .error-404-number {
        font-size: 5rem;
    }
    .section-title {
        font-size: 1.45rem;
    }
    .card-img-top {
        height: 180px;
    }
    .section-padding {
        padding: 2.5rem 0;
    }
    .spec-table th,
    .spec-table td {
        padding: 0.5rem 0.7rem;
        font-size: 0.88rem;
    }
}
