/* =========================================================
   Kienyeji Farm Fresh — stylesheet
   Light theme is the default; [data-theme="dark"] overrides tokens.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
    --bg: #faf7f0;
    --surface: #ffffff;
    --surface-2: #f3eee2;
    --text: #1f2a1f;
    --muted: #5b6558;
    --border: #e6dfcf;
    --primary: #2c5530;          /* text/icons in brand green */
    --primary-btn: #2c5530;      /* filled buttons */
    --primary-btn-hover: #1f3f23;
    --primary-soft: #e4eee3;
    --accent: #b8621b;           /* warm terracotta for prices/badges */
    --accent-soft: #fbeee0;
    --whatsapp: #1faa55;
    --whatsapp-hover: #178a44;
    --star: #e0a400;
    --shadow-sm: 0 1px 2px rgba(31, 42, 31, 0.06), 0 2px 8px rgba(31, 42, 31, 0.05);
    --shadow-md: 0 4px 12px rgba(31, 42, 31, 0.08), 0 12px 32px rgba(31, 42, 31, 0.08);
    --radius: 14px;
    --radius-sm: 10px;
    --nav-h: 70px;
    --kitenge: url('chicken%20pics/kitenge-tile.jpg');

    /* Legacy names still referenced by inline styles/markup */
    --primary-color: var(--primary);
    --secondary-color: var(--accent);
    --whatsapp-color: var(--whatsapp);
    --bg-color: var(--bg);
    --text-color: var(--text);
    --card-bg: var(--surface);
    --border-color: var(--border);
    --shadow: rgba(31, 42, 31, 0.1);
}

[data-theme="dark"] {
    --bg: #111611;
    --surface: #1a211a;
    --surface-2: #222b22;
    --text: #e7ece5;
    --muted: #a4aea0;
    --border: #2f3a2f;
    --primary: #86c592;
    --primary-btn: #3f7a4a;
    --primary-btn-hover: #4b8c57;
    --primary-soft: #1f3322;
    --accent: #f0a25c;
    --accent-soft: #33261a;
    --whatsapp: #1faa55;
    --whatsapp-hover: #24c162;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow: rgba(0, 0, 0, 0.35);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
section[id] { scroll-margin-top: var(--nav-h); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Navigation ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-container {
    max-width: 1180px; margin: 0 auto; padding: 0 20px;
    height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo .brand { font-size: 1.15rem; font-weight: 700; color: var(--primary); letter-spacing: -0.01em; text-decoration: none; }
.nav-menu { display: flex; list-style: none; align-items: center; gap: 6px; }
.nav-link {
    display: block; padding: 8px 12px; border-radius: 8px;
    color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-link:hover { background: var(--primary-soft); color: var(--primary); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; align-items: center; cursor: pointer; border-radius: 8px; }
.bar { width: 24px; height: 2.5px; border-radius: 2px; background: var(--text); transition: transform 0.25s ease, opacity 0.2s ease; }

.theme-toggle {
    width: 40px; height: 40px; margin-left: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface); color: var(--primary);
    border: 1px solid var(--border); border-radius: 50%;
    cursor: pointer; font-size: 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { background: var(--primary-soft); border-color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px;
    font: inherit; font-weight: 600; font-size: 0.98rem; line-height: 1.2;
    text-decoration: none; text-align: center;
    border: 2px solid transparent; border-radius: 12px; cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary-btn); color: #fff; }
.btn-primary:hover { background: var(--primary-btn-hover); box-shadow: var(--shadow-sm); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-hover); box-shadow: 0 6px 18px rgba(31, 170, 85, 0.3); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-btn); border-color: var(--primary-btn); color: #fff; }
.btn-text {
    background: none; border: none; padding: 12px 6px; min-height: 48px;
    color: var(--primary); font-weight: 600; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-text:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: calc(var(--nav-h) + 56px) 0 72px;
    background:
        radial-gradient(1200px 500px at 85% -10%, var(--primary-soft), transparent 60%),
        radial-gradient(800px 400px at -10% 110%, var(--accent-soft), transparent 60%),
        var(--bg);
    overflow: hidden;
}
.hero-container {
    max-width: 1180px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; margin-bottom: 18px;
    background: var(--primary-soft); color: var(--primary);
    border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}
.hero-title {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
    color: var(--text); margin-bottom: 12px;
}
.hero-title .accent { color: var(--primary); }
.hero-tagline { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.hero-subtitle { font-size: 1.05rem; color: var(--muted); max-width: 56ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-image, .about-image, .page-hero-media { position: relative; }
.hero-image::before, .about-image::before, .page-hero-media::before {
    content: ''; position: absolute; inset: 22px -22px -22px 22px; z-index: 0;
    border-radius: 28px; background: var(--kitenge) 0 0 / 150px repeat;
    box-shadow: var(--shadow-md);
}
.hero-image img, .about-image img, .page-hero-media img { position: relative; z-index: 1; }
.hero-badge { z-index: 2; }
.hero-image img {
    width: 100%; aspect-ratio: 4 / 3.4; height: auto; object-fit: cover;
    border-radius: 24px; box-shadow: var(--shadow-md);
}
.hero-badge {
    position: absolute; left: -18px; bottom: 28px;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-md);
}
.hero-badge i { font-size: 1.4rem; color: var(--primary); }
.hero-badge strong { display: block; font-size: 0.95rem; color: var(--text); }
.hero-badge span { font-size: 0.8rem; color: var(--muted); }

.payment-policy-notice {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 20px; padding: 10px 14px;
    background: var(--accent-soft); color: var(--text);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    border-radius: 10px; font-size: 0.92rem;
}
.payment-policy-notice i { color: var(--accent); }

.hero-trust {
    list-style: none; display: flex; flex-wrap: wrap; gap: 28px;
    margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
}
.hero-trust li { display: flex; flex-direction: column; font-size: 0.88rem; color: var(--muted); }
.hero-trust strong { font-size: 1.35rem; color: var(--text); font-weight: 700; line-height: 1.2; }

/* ---------- Section scaffolding ---------- */
.products, .about, .order, .testimonials, .gallery, .faq, .contact { padding: 88px 0; }
.about, .testimonials, .faq { background: var(--surface-2); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-header h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -0.015em;
    color: var(--text); margin-bottom: 12px;
}
/* Accent bar in the kitenge colours */
.section-header h2::before {
    content: ''; display: block; width: 64px; height: 6px; margin: 0 auto 16px; border-radius: 3px;
    background: linear-gradient(90deg, #d4a72c 0 25%, #a3170b 25% 50%, #646014 50% 75%, #c47a1c 75% 100%);
}
.section-header p { font-size: 1.05rem; color: var(--muted); }

/* ---------- Products ---------- */
.product-category { text-align: left; margin: 8px 0 24px; display: flex; flex-direction: column; gap: 4px; }
.product-category + .products-grid { margin-top: 0; }
.category-title { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.category-description { color: var(--muted); }

.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px; margin-bottom: 56px;
}
.product-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card.featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.product-card.featured::after {
    content: 'Best value'; position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 4px 10px; border-radius: 999px;
    background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
}
.product-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-info h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.product-details {
    background: var(--surface-2); border-radius: var(--radius-sm);
    padding: 6px 14px; margin-bottom: 14px;
}
/* Each "<strong>Label:</strong> value" line: small label above its value */
.product-details p {
    display: flex; flex-direction: column;
    padding: 8px 0; font-size: 0.93rem; font-weight: 600; color: var(--text); line-height: 1.35;
    border-bottom: 1px dashed var(--border);
}
.product-details p:last-child { border-bottom: none; }
.product-details strong {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 2px;
}
.product-description { font-size: 0.93rem; color: var(--muted); margin-bottom: 18px; }
.product-info .btn { margin-top: auto; width: 100%; }

.bulk-options {
    background: var(--accent-soft); border-radius: var(--radius-sm);
    padding: 14px 16px; margin-bottom: 18px;
}
.bulk-options h4 { font-size: 0.95rem; color: var(--accent); margin-bottom: 8px; }
.bulk-options ul { list-style: none; }
.bulk-options li { position: relative; padding-left: 20px; margin-bottom: 6px; font-size: 0.9rem; color: var(--text); }
.bulk-options li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.delivery-info {
    background: linear-gradient(rgba(24, 52, 29, 0.9), rgba(24, 52, 29, 0.9)), var(--kitenge) 0 0 / 200px repeat;
    color: #fff;
    border-radius: 20px; padding: 40px; margin-top: 8px; text-align: center;
}
.delivery-info h3 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.delivery-info > p { color: rgba(255, 255, 255, 0.8); margin-bottom: 28px; }
.delivery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.delivery-item { background: rgba(255, 255, 255, 0.08); border-radius: var(--radius); padding: 22px 16px; }
.delivery-item i { font-size: 1.6rem; color: #ffd08a; margin-bottom: 10px; }
.delivery-item h4 { color: #fff; margin-bottom: 6px; }
.delivery-item p { color: rgba(255, 255, 255, 0.82); font-size: 0.93rem; }
.delivery-item small { color: rgba(255, 255, 255, 0.65); }

/* ---------- About ---------- */
.about-content { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.feature {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px;
}
.feature i {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary); font-size: 1.1rem;
}
.feature h4 { font-size: 1rem; margin-bottom: 4px; }
.feature p { font-size: 0.9rem; color: var(--muted); }
.farm-location { color: var(--muted); font-size: 0.95rem; }
.farm-location strong { color: var(--text); }
.about-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-md); }

/* ---------- How to order ---------- */
.order-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 22px 24px; box-shadow: var(--shadow-sm);
}
.step-number {
    width: 40px; height: 40px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-btn); color: #fff; font-weight: 700; font-size: 1.1rem;
}
.step h3 { font-size: 1.15rem; margin: 14px 0 16px; }
.order-methods, .payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.order-method, .payment-method {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 8px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid transparent;
    color: var(--text); text-decoration: none; font-size: 0.85rem; font-weight: 500; text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
a.order-method:hover { border-color: var(--primary); background: var(--primary-soft); }
.order-method i, .payment-method i { font-size: 1.35rem; color: var(--primary); }
.order-method .fa-whatsapp { color: var(--whatsapp); }
.payment-methods { margin-top: 12px; }
.payment-info-box { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 14px 16px; }
.payment-info-box h4 { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--accent); margin-bottom: 6px; }
.payment-info-box p { font-size: 0.9rem; color: var(--text); margin-bottom: 10px; }
.payment-details { display: grid; gap: 6px; }
.payment-detail { font-size: 0.86rem; color: var(--text); padding-left: 10px; border-left: 3px solid var(--accent); }
.delivery-options { display: grid; gap: 10px; }
.delivery-option { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; }
.delivery-option h4 { font-size: 0.98rem; color: var(--primary); margin-bottom: 4px; }
.delivery-option p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonials-content { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: stretch; }
.testimonials-image { position: relative; }
.testimonials-image img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: 20px; }
.testimonials-overlay, .faq-overlay {
    position: absolute; left: 16px; bottom: 16px;
    background: rgba(20, 38, 22, 0.88); color: #fff;
    padding: 14px 18px; border-radius: 12px; backdrop-filter: blur(6px);
}
.testimonials-overlay h3, .faq-overlay h3 { color: #fff; font-size: 1.05rem; margin-bottom: 2px; }
.testimonials-overlay p, .faq-overlay p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); }
.testimonials-grid { display: grid; gap: 16px; }
.testimonial-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.stars { color: var(--star); font-size: 0.9rem; margin-bottom: 10px; display: flex; gap: 3px; }
.testimonial-card > p { font-size: 1rem; color: var(--text); margin-bottom: 14px; }
.customer-info h4 { font-size: 0.95rem; }
.customer-info span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 14px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; background: var(--surface-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); color: #fff;
}
.gallery-overlay h4 { color: #fff; font-size: 0.95rem; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-content { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.faq-image { position: relative; }
.faq-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.faq-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq-question {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 20px; cursor: pointer; transition: background-color 0.2s ease;
}
.faq-question:hover { background: var(--surface-2); }
.faq-question h3 { font-size: 1rem; font-weight: 600; }
.faq-question i {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary); font-size: 0.8rem;
    transition: transform 0.25s ease;
}
.faq-answer { max-height: 0; overflow: hidden; padding: 0 20px; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { max-height: 600px; padding: 0 20px 18px; }
.faq-item.active .faq-question i { transform: rotate(45deg); }
.faq-answer p { color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--text); }

/* ---------- Contact ---------- */
.contact-content { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 12px; }
.contact-item {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 18px;
}
.contact-item i {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary); font-size: 1.1rem;
}
.contact-item .fa-whatsapp { color: var(--whatsapp); }
.contact-item h4 { font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.contact-item a { color: var(--text); font-weight: 600; text-decoration: none; }
.contact-item a:hover { color: var(--primary); text-decoration: underline; }
.contact-item p { color: var(--text); font-weight: 500; }
.contact-item small { color: var(--muted); font-weight: 400; }
.contact-form {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 20px; padding: 32px; box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 1.35rem; margin-bottom: 20px; }
.contact-form .btn { width: 100%; }

/* ---------- Forms (shared by contact form and order modal) ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 500; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea,
.manual-email input {
    width: 100%; min-height: 48px; padding: 12px 14px;
    font: inherit; font-size: 16px; /* 16px stops iOS zooming in */
    color: var(--text); background: var(--bg);
    border: 1.5px solid var(--border); border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder, .manual-email input::placeholder { color: var(--muted); opacity: 0.8; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.manual-email input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group select optgroup { font-weight: 700; color: var(--primary); background: var(--surface); }
.form-group select option { font-weight: 400; color: var(--text); background: var(--surface); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Footer ---------- */
.footer { position: relative; background: #16261a; color: #fff; padding: 78px 0 24px; }
.footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 14px;
    background: var(--kitenge) 0 0 / 120px repeat-x;
}
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; margin-bottom: 36px; }
.footer-section h3, .footer-section h4 { color: #fff; margin-bottom: 14px; }
.footer-section h3 { font-size: 1.15rem; }
.footer-section h4 { font-size: 0.95rem; }
.footer-section p { color: rgba(255, 255, 255, 0.72); font-size: 0.93rem; margin-bottom: 18px; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 8px; font-size: 0.93rem; color: rgba(255, 255, 255, 0.72); }
.footer-section ul li a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer-section ul li a:hover { color: #fff; text-decoration: underline; }
.footer-section ul li i { width: 18px; margin-right: 8px; color: #ffd08a; }
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.1); color: #fff; text-decoration: none;
    transition: background-color 0.2s ease;
}
.social-links a:hover { background: rgba(255, 255, 255, 0.2); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; text-align: center; }
.footer-bottom p { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }

/* ---------- Floating buttons ---------- */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 1000; }
.whatsapp-float a {
    width: 58px; height: 58px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--whatsapp); color: #fff; text-decoration: none;
    box-shadow: 0 8px 24px rgba(31, 170, 85, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.whatsapp-float a:hover { transform: scale(1.06); background: var(--whatsapp-hover); }
.whatsapp-float i { font-size: 1.7rem; }
.back-to-top {
    position: fixed; left: 22px; bottom: 22px; z-index: 1000;
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); color: var(--primary);
    border: 1px solid var(--border); box-shadow: var(--shadow-md);
    cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary-soft); }

/* ---------- Email order modal ---------- */
.modal {
    display: none; position: fixed; inset: 0; z-index: 10000;
    background: rgba(10, 16, 10, 0.55); backdrop-filter: blur(4px); overflow-y: auto;
}
.modal-content {
    width: 92%; max-width: 620px; margin: 4vh auto; max-height: 92vh; overflow-y: auto;
    background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-md);
    animation: modalSlideIn 0.25s ease;
}
.modal-header {
    position: sticky; top: 0; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; background: var(--primary-btn); color: #fff;
}
.modal-header h2 { color: #fff; font-size: 1.25rem; }
.close {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
    transition: background-color 0.2s ease;
}
.close:hover { background: rgba(255, 255, 255, 0.15); }
.modal-body { padding: 24px; }
.login-section { text-align: center; }
.login-section h3 { margin-bottom: 6px; }
.login-section p { color: var(--muted); margin-bottom: 20px; }
.login-options { display: flex; flex-direction: column; align-items: center; }
.manual-email { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.order-form-section { animation: fadeIn 0.3s ease; }
.order-form-section h3 { font-size: 1.1rem; margin-bottom: 14px; }
.user-info {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; margin-bottom: 18px;
    background: var(--surface-2); border-radius: 12px;
}
.user-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-btn); color: #fff; font-weight: 700;
}
.user-details { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.user-details span:first-child { font-weight: 600; }
.user-details span:last-child { font-size: 0.88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.btn-link { background: none; border: none; color: var(--primary); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.9rem; padding: 6px; }
.payment-notice { background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.payment-notice-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.payment-notice-header i, .payment-notice-header h4 { color: var(--accent); }
.payment-notice-header h4 { font-size: 1rem; }
.payment-notice p { font-size: 0.9rem; margin-bottom: 10px; }
.payment-notice ul { list-style: none; }
.payment-notice li { position: relative; padding-left: 20px; margin-bottom: 4px; font-size: 0.88rem; }
.payment-notice li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-estimate {
    text-align: center; padding: 14px; margin-bottom: 16px;
    background: var(--primary-soft); border-radius: 12px;
}
.price-estimate h4 { color: var(--primary); font-size: 1.15rem; }
.price-estimate small { color: var(--muted); }
.form-actions {
    display: flex; justify-content: flex-end; gap: 12px;
    margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border);
}

/* Mobile bottom-sheet variant (class added by script.js) */
.mobile-modal .modal-content {
    width: 100%; max-width: 100%; margin: 0; position: absolute; bottom: 0;
    max-height: 94vh; border-radius: 20px 20px 0 0; animation: modalSlideUp 0.28s ease;
}
.mobile-modal.keyboard-visible .modal-content { max-height: 70vh; }
.mobile-modal.keyboard-visible .modal-body { padding-bottom: 88px; }

/* ---------- Kitenge accents ---------- */
/* Ribbon along the top edge of the menu bar */
.navbar::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: var(--kitenge) 0 0 / 90px repeat-x;
}

/* Band closing the hero on the home page and guide pages */
.hero, .page-hero { position: relative; }
.hero::after, .page-hero::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
    background: var(--kitenge) 0 0 / 110px repeat-x;
}
.page-hero { border-bottom: none; }

/* Reviews section: faint kitenge texture behind the cards */
.testimonials {
    background:
        linear-gradient(color-mix(in srgb, var(--surface-2) 93%, transparent), color-mix(in srgb, var(--surface-2) 93%, transparent)),
        var(--kitenge) 0 0 / 240px repeat;
}

/* Kitenge edges on cards */
.product-card.featured::before,
.contact-form::before,
.aside-card:first-child::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px; z-index: 3;
    background: var(--kitenge) 0 0 / 90px repeat-x;
}
.contact-form, .aside-card:first-child { position: relative; overflow: hidden; }
.aside-card:first-child { padding-top: 26px; }
.contact-form { padding-top: 40px; }
.product-card.featured::after { top: 18px; }

.testimonial-card { position: relative; overflow: hidden; padding-left: 32px; }
.testimonial-card::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 8px;
    background: var(--kitenge) 0 0 / 90px repeat-y;
}

/* Email order window header */
.modal-header {
    background: linear-gradient(rgba(24, 52, 29, 0.88), rgba(24, 52, 29, 0.88)), var(--kitenge) 0 0 / 160px repeat;
}

/* ---------- Keyframes ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes modalSlideUp { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-container, .about-content { gap: 40px; }
    .order-steps { grid-template-columns: 1fr 1fr; }
    .order-steps .step:last-child { grid-column: 1 / -1; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 16px 16px; background: var(--surface);
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
        transform: translateY(-110%); visibility: hidden;
        transition: transform 0.25s ease, visibility 0.25s;
    }
    .nav-menu.active { transform: none; visibility: visible; }
    .nav-link { padding: 14px 12px; font-size: 1rem; }
    .nav-item:last-child { padding: 10px 12px 0; }
    .theme-toggle { margin-left: 0; }
    .nav-toggle.active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .nav-toggle.active .bar:nth-child(2) { opacity: 0; }
    .nav-toggle.active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    .hero { padding: calc(var(--nav-h) + 28px) 0 56px; }
    .hero-container { grid-template-columns: 1fr; }
    .hero-image { order: -1; }
    .hero-image img { aspect-ratio: 16 / 10; border-radius: 18px; }
    .hero-badge { left: 12px; bottom: 12px; padding: 8px 12px; }
    .hero-image::before, .about-image::before, .page-hero-media::before { inset: 12px -10px -12px 12px; border-radius: 22px; background-size: 110px; }
    .hero-image, .about-image, .page-hero-media { margin-right: 10px; margin-bottom: 12px; }

    .about-content, .testimonials-content, .faq-content, .contact-content { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .about-image img { aspect-ratio: 16 / 10; }
    .testimonials-image img { min-height: 0; aspect-ratio: 16 / 9; }
    .faq-image { display: none; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
}

@media (max-width: 600px) {
    .products, .about, .order, .testimonials, .gallery, .faq, .contact { padding: 64px 0; }
    .container, .hero-container, .nav-container { padding-left: 16px; padding-right: 16px; }
    .nav-logo .brand { font-size: 1rem; }
    .hero-actions .btn { flex: 1 1 calc(50% - 6px); padding: 12px 14px; }
    .hero-actions .btn-whatsapp { flex-basis: 100%; }
    .hero-actions .btn-text { flex-basis: 100%; justify-content: center; }
    .hero-trust { gap: 18px; justify-content: space-between; }
    .hero-trust strong { font-size: 1.15rem; }
    .about-features { grid-template-columns: 1fr; }
    .order-steps { grid-template-columns: 1fr; }
    .order-steps .step:last-child { grid-column: auto; }
    .delivery-info { padding: 28px 18px; border-radius: 16px; }
    .gallery-grid { grid-auto-rows: 150px; gap: 10px; }
    .contact-form { padding: 22px 18px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-content { grid-template-columns: 1fr; gap: 28px; }
    .whatsapp-float { right: 16px; bottom: 16px; }
    .back-to-top { left: 16px; bottom: 16px; }

    /* Order modal: keep Cancel/Send reachable above the keyboard */
    .modal-body { padding: 18px 16px 96px; }
    .form-actions {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 10001;
        margin: 0; padding: 12px 16px; background: var(--surface);
        box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.12);
    }
    .form-actions .btn { flex: 1; }
}

/* =========================================================
   Guide & landing pages (kienyeji-eggs, bulk orders, guides)
   ========================================================= */

/* Home: guides teaser */
.guides { padding: 88px 0; }
.guides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guide-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.guide-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
.guide-card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.guide-card .tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.guide-card h3 { font-size: 1.05rem; }
.guide-card p { font-size: 0.9rem; color: var(--muted); }
.guide-card .more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 0.9rem; color: var(--primary); }

/* Page header */
.page-hero {
    padding: calc(var(--nav-h) + 40px) 0 48px;
    background:
        radial-gradient(900px 380px at 90% -20%, var(--primary-soft), transparent 60%),
        var(--bg);
    border-bottom: 1px solid var(--border);
}
.page-hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 14px 0 14px; }
.page-hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin-bottom: 24px; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-md); }
.page-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; font-size: 0.86rem; color: var(--muted); }
.page-meta i { color: var(--primary); margin-right: 4px; }

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.breadcrumb li + li::before { content: '\203A'; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }

/* Article layout */
.page-body { padding: 56px 0 88px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.prose { font-size: 1.04rem; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); letter-spacing: -0.01em; margin-top: 2.2em; padding-top: 0.2em; scroll-margin-top: calc(var(--nav-h) + 16px); }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose p, .prose li { color: var(--text); }
.prose a { color: var(--primary); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--primary); font-weight: 700; }
.prose strong { font-weight: 600; }
.prose .note {
    padding: 16px 18px; border-radius: 12px;
    background: var(--accent-soft); border-left: 4px solid var(--accent); font-size: 0.97rem;
}
.prose .note strong { color: var(--accent); }
.prose figure img { width: 100%; border-radius: 16px; }
.prose figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; text-align: center; }

.key-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
    padding: 0; list-style: none;
}
.prose .key-facts { padding-left: 0; }
.key-facts li {
    margin: 0; padding: 16px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 0.88rem; color: var(--muted);
}
.key-facts li::marker { content: none; }
.key-facts strong { display: block; font-size: 1.25rem; color: var(--text); line-height: 1.25; margin-bottom: 2px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.data-table thead th { background: var(--surface-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: none; }
.data-table tbody th { font-weight: 600; color: var(--text); }
.data-table .price { font-weight: 700; color: var(--primary); white-space: nowrap; }
.compare-table td:first-child { font-weight: 600; color: var(--muted); width: 26%; }

/* Recipe */
.recipe-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
    padding: 24px; box-shadow: var(--shadow-sm);
}
.recipe-card h2 { margin-top: 0 !important; }
.recipe-times { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; padding: 0 !important; list-style: none; }
.recipe-times li { margin: 0 !important; padding: 8px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 0.86rem; font-weight: 600; }
.recipe-times li::marker { content: none; }
.ingredients { columns: 2; column-gap: 32px; }
.ingredients li { break-inside: avoid; }
.steps { list-style: none; counter-reset: step; padding-left: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 48px; min-height: 34px; }
.steps > li + li { margin-top: 1em !important; }
.steps > li::before {
    content: counter(step); position: absolute; left: 0; top: 0;
    width: 32px; height: 32px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-btn); color: #fff; font-weight: 700; font-size: 0.95rem;
}

/* Sidebar */
.page-aside { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 16px; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); }
.aside-card h2, .aside-card h3 { font-size: 1rem; margin-bottom: 10px; }
.aside-card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.aside-card .btn { width: 100%; margin-top: 8px; }
.aside-card .price-big { font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.aside-card .price-big small { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.toc { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.toc a:hover { background: var(--surface-2); color: var(--primary); }

/* Quote builder (bulk page) */
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.quote-form .full { grid-column: 1 / -1; }
.quote-form .btn { width: 100%; }
.quote-form .hint { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }

/* Page FAQ */
.page-faq .faq-item { margin-bottom: 10px; }
.prose .faq-question h3 { margin: 0; font-size: 1rem; }
.prose .faq-answer p { margin: 0; }

/* Call-to-action band */
.cta-band {
    margin-top: 2.4em; padding: 28px; border-radius: 20px;
    background: linear-gradient(rgba(24, 52, 29, 0.9), rgba(24, 52, 29, 0.9)), var(--kitenge) 0 0 / 180px repeat;
    color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.prose .cta-band p, .cta-band p { color: rgba(255, 255, 255, 0.85); margin: 4px 0 0; }
.cta-band h2, .prose .cta-band h2 { color: #fff; margin: 0; padding: 0; font-size: 1.35rem; }
.cta-band .btn-group { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta-band .btn-secondary:hover { border-color: #fff; color: #fff; }

/* Related guides */
.related { padding: 64px 0 88px; background: var(--surface-2); }
.related h2 { font-size: 1.5rem; margin-bottom: 20px; }
.related .guides-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
    .guides-grid { grid-template-columns: repeat(2, 1fr); }
    .page-layout { grid-template-columns: 1fr; }
    .page-aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .page-hero-inner { grid-template-columns: 1fr; gap: 28px; }
    .page-hero-media { order: -1; }
    .page-hero-media img { aspect-ratio: 16 / 9; }
    .related .guides-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .guides, .page-body { padding: 56px 0; }
    .guides-grid, .related .guides-grid { grid-template-columns: 1fr; }
    .page-aside { grid-template-columns: 1fr; }
    .ingredients { columns: 1; }
    .quote-form { grid-template-columns: 1fr; }
    .cta-band { padding: 22px 18px; }
    .cta-band .btn-group, .cta-band .btn { width: 100%; }
    .data-table th, .data-table td { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
