@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* =============================================
   KHIQI FARMS – OFFICIAL BRAND CSS
   Logo Green: #1a5d1a | Orange: #ff6d00
   Updated: November 11, 2025 06:16 AM CAT
   Location: Blantyre, Southern Region, Malawi
   ============================================= */

:root {
    --logo-green: #0f3d1d;
    --logo-green-2: #1a5d1a;
    --orange: #f26a1b;
    --light-orange: #ff8a3d;
    --green: #2f8f3a;
    --cream: #f7f3ea;
    --light: #f6f7f4;
    --gray: #6b6f76;
    --dark: #1f2428;
    --shadow: 0 10px 24px rgba(19, 36, 24, 0.16);
    --shadow-sm: 0 4px 12px rgba(19, 36, 24, 0.12);
    --shadow-lg: 0 18px 40px rgba(19, 36, 24, 0.22);
    --transition: all 0.28s ease;
    --border-radius: 14px;
    --border-radius-lg: 20px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Make all Bootstrap containers full-width */
.container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

body {
    font-family: 'Source Sans 3', system-ui, -apple-system, Segoe UI, sans-serif;
    background:
        radial-gradient(900px 460px at 85% -10%, rgba(242, 106, 27, 0.08), transparent 60%),
        radial-gradient(1000px 520px at -10% 10%, rgba(47, 143, 58, 0.08), transparent 55%),
        #ffffff;
    color: var(--dark);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
    padding: 0.75rem 0 2rem;
    background:
        linear-gradient(180deg, rgba(15, 61, 29, 0.04) 0%, transparent 18%, transparent 82%, rgba(15, 61, 29, 0.04) 100%);
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.text-orange { color: var(--orange) !important; }
.text-green { color: var(--green) !important; }
.text-muted { color: var(--gray) !important; }
.fw-bold { font-weight: 700 !important; }
.small { font-size: 0.875rem; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    padding: 0.7rem 1.6rem;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 0.2px;
}

.btn-orange {
    background: linear-gradient(135deg, var(--orange), var(--light-orange));
    color: white;
    border: none;
    box-shadow: 0 6px 14px rgba(242, 106, 27, 0.35);
}

.btn-orange:hover {
    background: linear-gradient(135deg, var(--light-orange), var(--orange));
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(242, 106, 27, 0.4);
    color: white;
}

.btn-outline-orange {
    border: 2px solid var(--orange);
    color: var(--orange);
    background: rgba(242, 106, 27, 0.05);
}

.btn-outline-orange:hover {
    background: var(--orange);
    color: white;
    transform: translateY(-1px);
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
header {
    background: linear-gradient(90deg, var(--logo-green), var(--logo-green-2));
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1050;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white !important;
    text-decoration: none;
    letter-spacing: 0.3px;
}

header .nav-link {
    color: white !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
}

header .nav-link:hover,
header .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--orange) !important;
}

header .nav-link.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--logo-green);
    border-radius: 2px;
}

/* Dropdown */
.dropdown-menu {
    z-index: 1070 !important;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 0.5rem !important;
    min-width: 220px;
    background: #0e351a;
}

.dropdown-item {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 8px;
    margin: 0.2rem 0.5rem;
    color: white;
    transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--orange);
    color: white !important;
}

/* Mobile Offcanvas */
.offcanvas {
    z-index: 1080 !important;
    background: var(--logo-green);
}

.list-group-item {
    border: none;
    transition: var(--transition);
    background: transparent;
}

.list-group-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =============================================
   HERO BANNER
   ============================================= */
.hero-banner {
    height: 58vh;
    min-height: 340px;
    max-height: 560px;
    overflow: hidden;
    position: relative;
}

.hero-slides,
.hero-slide {
    height: 100%;
    width: 100%;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.78) contrast(1.08) saturate(1.05);
    transition: transform 10s ease;
}

.hero-slide.active .hero-img {
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.35) 60%,
        rgba(0, 0, 0, 0.45) 100%
    );
    backdrop-filter: none;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    max-width: 90%;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    padding: 1rem;
}

.hero-content h1 {
    font-size: 3.4rem;
    line-height: 1.15;
    letter-spacing: 0.6px;
    margin-bottom: 1rem;
    color: white;
}

.hero-content .lead {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 1.6rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    color: #f3f3f3;
}

/* =============================================
   INDEX SECTIONS
   ============================================= */
.trust-strip {
    background: #ffffff;
    border: 1px solid rgba(15, 61, 29, 0.08);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 61, 29, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--logo-green);
    font-size: 1.2rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0 1rem;
}

.section-head h2 {
    margin: 0;
}

.section-subtitle {
    color: var(--gray);
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(242, 106, 27, 0.12);
    color: var(--orange);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.section-divider {
    height: 1px;
    background: rgba(15, 61, 29, 0.08);
    margin: 2.5rem 0 1.5rem;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-hero {
    background: linear-gradient(135deg, rgba(15, 61, 29, 0.08), rgba(242, 106, 27, 0.08));
    border: 1px solid rgba(15, 61, 29, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

.contact-card {
    border: 1px solid rgba(15, 61, 29, 0.08);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.contact-list h4 {
    margin-top: 1.25rem;
}

.contact-list h4:first-child {
    margin-top: 0;
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 61, 29, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    color: var(--logo-green);
}

/* =============================================
   TEAM SECTION
   ============================================= */
.team-card {
    border: 1px solid rgba(15, 61, 29, 0.08);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: #fff;
    max-width: 260px;
    margin: 0 auto;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.team-photo {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.team-grid {
    display: grid;
    gap: 1rem;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (min-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.team-role {
    color: var(--gray);
    font-weight: 600;
}

/* Responsive Hero */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content .lead { font-size: 1.2rem; }
}
@media (max-width: 768px) {
    .hero-banner { height: 50vh; }
    .hero-content h1 { font-size: 2.3rem; }
    .hero-content .lead { font-size: 1.1rem; }
    .hero-content .btn { padding: 0.7rem 1.8rem; font-size: 0.95rem; }
}
@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content .lead { font-size: 1rem; }
}

/* =============================================
   INDICATORS
   ============================================= */
.hero-indicators {
    z-index: 3;
}

.hero-indicators .indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    transition: var(--transition);
    margin: 0 6px;
    cursor: pointer;
}

.hero-indicators .indicator:hover {
    background: var(--orange);
    transform: scale(1.2);
}

.hero-indicators .indicator.active {
    background: var(--orange);
    border-color: white;
    transform: scale(1.4);
    box-shadow: 0 0 0 3px rgba(255, 109, 0, 0.3);
}

/* =============================================
   PRODUCT CARDS & SCROLL
   ============================================= */
.card {
    border: 1px solid rgba(15, 61, 29, 0.08);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    background: white;
    height: 100%;
}

.card .badge {
    background: rgba(15, 61, 29, 0.12);
    color: var(--logo-green);
    border: 1px solid rgba(15, 61, 29, 0.2);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    height: 160px;
    object-fit: cover;
    background: #f0f0f0;
    transition: transform 0.4s ease;
}

.card:hover .product-img {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1rem;
    text-align: center;
}

.product-card .card-title {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.4rem;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s;
}

.product-card .card-title:hover {
    color: var(--orange);
}

.price {
    font-weight: 700;
    color: var(--green);
    font-size: 1.2rem;
    margin: 0.5rem 0 0;
}

.price small {
    font-weight: 500;
    color: var(--gray);
    font-size: 0.85rem;
    display: block;
}

/* Horizontal Scroll Carousel */
.scroll-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    margin: 0;
    user-select: none;
    border: 1px solid rgba(15, 61, 29, 0.08);
    box-shadow: var(--shadow-sm);
}

.product-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-scroll::-webkit-scrollbar {
    display: none;
}

.product-scroll:active {
    cursor: grabbing;
}

.product-item {
    flex: 0 0 auto;
    width: 210px;
}

@media (min-width: 992px) {
    .product-item { width: 220px; }
}
@media (max-width: 991px) {
    .product-item { width: 200px; }
}
@media (max-width: 767px) {
    .product-item { width: 170px; }
}
@media (max-width: 480px) {
    .product-item { width: 45vw; }
}

.product-card {
    border-radius: 16px;
    overflow: hidden;
}

.product-img {
    height: 170px;
}

@media (max-width: 480px) {
    .product-img { height: 140px; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
.animate-welcome,
.animate-subtitle {
    opacity: 0;
    transform: translateY(-40px);
    animation: fadeDown 1.2s ease-out forwards;
}

.animate-subtitle {
    animation-delay: 0.5s;
}

@keyframes fadeDown {
    0% {
        opacity: 0;
        transform: translateY(-60px);
    }
    60% {
        opacity: 1;
        transform: translateY(10px);
    }
    80% {
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clickable Text */
.clickable-text {
    cursor: pointer;
    transition: color 0.3s;
}

.clickable-text:hover {
    color: var(--orange) !important;
}

/* =============================================
   MODAL
   ============================================= */
.modal-content {
    border: 1px solid rgba(15, 61, 29, 0.08);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0;
}

.modal-body {
    padding: 1.5rem;
}

#modalImage {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: linear-gradient(180deg, #0f3d1d 0%, #0a2c15 100%);
    color: white;
    padding: 3.5rem 0 1.5rem;
    margin-top: auto;
    font-size: 0.95rem;
    width: 100%;
}

.footer-accent {
    background: transparent;
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.25rem;
}

footer a {
    color: #e5e5e5;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--orange);
}

/* Footer Links */
.footer-link {
    color: #e5e5e5 !important;
    transition: all 0.3s ease;
    display: block;
    padding: 0.35rem 0;
}

.footer-link:hover {
    color: var(--orange) !important;
    transform: translateX(5px);
}

.footer-link i {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Social Icons */
.social-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--orange);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 109, 0, 0.3);
}

.social-icon.bg-success {
    background: #25d366;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.whatsapp-float i {
    animation: pulse 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* =============================================
   UTILITIES
   ============================================= */
.transition { transition: var(--transition); }
.bg-orange { background-color: var(--orange) !important; color: white !important; }
.hover-bg-orange:hover { background: rgba(242, 106, 27, 0.18) !important; }
.hover-text-orange:hover { color: var(--orange) !important; }
.space-y-2 > li { margin-bottom: 0.5rem; }
.hover-underline:hover { text-decoration: underline !important; }

/* Dropdown Fix */
.dropdown-menu.show {
    display: block !important;
}

/* Background Classes */
.bg-logo-green { background-color: var(--logo-green) !important; }

/* =============================================
   FORM CONTROLS
   ============================================= */
.form-control,
.form-select {
    border-radius: 999px;
    border: 1px solid rgba(15, 61, 29, 0.12);
    box-shadow: none;
    transition: var(--transition);
}

.form-control[type="file"] {
    border-radius: 14px;
}

textarea.form-control {
    border-radius: 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.2rem rgba(242, 106, 27, 0.15);
}

.table {
    border-color: rgba(15, 61, 29, 0.08);
}

/* =============================================
   LIVE SEARCH POPUP
   ============================================= */
.search-popup {
    position: absolute;
    top: 115%;
    left: 0;
    right: 0;
    z-index: 2000;
    background: #ffffff;
    border: 1px solid rgba(15, 61, 29, 0.12);
    border-radius: 14px;
    box-shadow: var(--shadow);
    max-height: 380px;
    overflow: auto;
    padding: 0.75rem;
}
.search-popup .search-header {
    padding: 0.25rem 0.25rem 0.5rem;
}
.search-popup .card {
    border: 1px solid rgba(15, 61, 29, 0.08);
    box-shadow: none;
}
