:root {
    /* Palette sampled directly from the Nutrawell Africa logo (gold ring/wordmark, olive-green leaf). */
    --ink: #241f14;
    --ink-soft: #6b6048;
    --mint-50: #f2f0dd;
    --mint-100: #e6e6c4;
    --mint-500: #6f8d34;
    --mint-700: #3a5225;
    --gold-100: #f7ecd2;
    --gold-200: #ecd9a0;
    --gold-400: #c9982f;
    --gold-700: #8f6a1a;
    /* Deep forest green, sampled from the brand background texture — secondary color
       for bold surfaces (footer, banners, badges) that complements the gold primary. */
    --forest-900: #16241a;
    --forest-700: #2d4630;
    --forest-500: #4a6b4e;
    --forest-100: #e7ede6;
    --paper: #fffdf7;
    --line: #e7ddc2;
    --danger: #b33a30;
    --shadow: 0 10px 30px rgba(58, 42, 10, 0.10);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% -20%, #eef1dc 0%, #eef1dc00 40%),
        radial-gradient(circle at 90% 0%, #fbf0d4 0%, #fbf0d400 35%),
        linear-gradient(180deg, #fbf9f2 0%, #faf8f0 100%);
}

a {
    color: inherit;
}

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid #ffffff55;
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, #ffffffd6, #ffffffa6);
}

/* ---- Admin: left sidebar shell ---- */
.admin-body {
    background: var(--paper);
}

.admin-shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 22px 16px;
    background: linear-gradient(180deg, var(--forest-900), var(--forest-700));
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar .brandmark {
    padding: 0 8px;
    margin-bottom: 20px;
}

.admin-sidebar .brand-copy strong {
    color: #fff;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.admin-sidebar-nav a {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    color: #cdddc9;
}

.admin-sidebar-nav a:hover {
    color: var(--forest-900);
    background: var(--gold-200);
}

.admin-sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--gold-400);
}

.admin-sidebar-nav a.cta {
    margin-top: 18px;
    background: var(--gold-400);
    color: var(--forest-900);
    font-weight: 700;
    text-align: center;
}

.admin-sidebar-nav a.cta:hover {
    background: var(--gold-200);
    color: var(--forest-900);
}

.admin-content {
    flex: 1;
    min-width: 0;
    padding: 32px clamp(16px, 4vw, 40px) 64px;
}

@media (max-width: 880px) {
    .admin-shell {
        flex-direction: column;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .admin-sidebar .brandmark {
        margin-bottom: 0;
    }

    .admin-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        flex: 1 1 100%;
    }

    .admin-sidebar-nav a.cta {
        margin-top: 0;
    }
}

.site-nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brandmark {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.brand-copy {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.08;
}

.brand-copy small {
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 10px;
    color: var(--ink-soft);
}

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(143, 106, 26, 0.28));
    transition: transform 200ms ease;
}

.brandmark:hover .brand-logo {
    transform: scale(1.04) rotate(-2deg);
}

.brand-glyph {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mint-500), var(--gold-400));
    box-shadow: 0 0 0 8px var(--gold-100);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--ink-soft);
}

.nav-links a:hover {
    color: var(--gold-700);
    background: var(--gold-100);
}

.nav-links .cta {
    background: var(--ink);
    color: #fff;
}

.nav-links .cta:hover {
    background: #100d08;
    color: #fff;
}

.hero {
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 78% 15%, #f3e3ae 0%, #f3e3ae00 46%),
        radial-gradient(circle at 12% 95%, #dbe3b2 0%, #dbe3b200 40%),
        linear-gradient(120deg, #ffffff, #fbf7ec);
    padding: 38px;
    box-shadow: var(--shadow);
    animation: reveal-up 700ms ease both;
}

.hero h1 {
    margin: 0 0 12px;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
}

.hero p {
    margin: 0;
    max-width: 760px;
    line-height: 1.65;
    color: var(--ink-soft);
}

main {
    padding: 28px 0 64px;
}

.section {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    background: var(--paper);
    box-shadow: var(--shadow);
    animation: reveal-up 700ms ease both;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-family: "Fraunces", Georgia, serif;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    background: #fff;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(58, 42, 10, 0.14);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 6px;
}

.price {
    margin: 8px 0;
    font-weight: 800;
    color: var(--mint-700);
}

.meta {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--ink-soft);
}

.btn {
    border: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-700));
    color: #fff;
    font-weight: 700;
    padding: 10px 14px;
    transition: transform 140ms ease, filter 140ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: saturate(1.12);
}

.btn.alt {
    background: var(--gold-100);
    color: var(--ink);
}

.btn.danger {
    background: var(--danger);
}

.form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--ink-soft);
}

input, textarea, select {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    font: inherit;
    color: var(--ink);
}

textarea {
    min-height: 130px;
}

.notice {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.notice.ok {
    background: #eef4df;
    color: var(--mint-700);
}

.notice.err {
    background: #fdecec;
    color: #8e2e27;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th, td {
    border-bottom: 1px solid var(--line);
    text-align: left;
    padding: 10px;
    font-size: 14px;
}

th {
    background: #f6f1e2;
}

footer {
    margin-top: 40px;
    padding: 46px 0 30px;
    color: #d9e2d7;
    background:
        linear-gradient(180deg, rgba(12, 20, 13, 0.72), rgba(10, 17, 11, 0.85)),
        url("/assets/brand/footer-bg.jpg") center / cover no-repeat;
}

/* ---- About hero (full logo lockup) ---- */
.about-hero {
    text-align: center;
    background: radial-gradient(circle at 50% 0%, var(--gold-100) 0%, #fff0 60%);
}

.about-hero-logo {
    width: min(280px, 60vw);
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(143, 106, 26, 0.22));
}

.about-hero .eyebrow {
    margin-top: 10px;
}

/* ---- Admin-manageable page images ---- */
.page-image {
    margin: 18px 0 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: reveal-up 700ms ease both;
}

.page-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.page-image.banner {
    aspect-ratio: 21 / 9;
}

.page-image.strip {
    aspect-ratio: 16 / 6;
}

.page-image.side {
    aspect-ratio: 4 / 5;
    border-radius: 20px;
}

.page-image.is-placeholder img {
    object-fit: contain;
    padding: 8%;
    background: linear-gradient(135deg, var(--gold-100), var(--forest-100));
}

/* ---- Hero extras ---- */
.eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gold-700);
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.cta-banner {
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(201, 152, 47, 0.16) 0%, transparent 45%),
        linear-gradient(120deg, var(--forest-700), var(--forest-900));
    border-color: var(--forest-900);
}

.cta-banner h2 {
    margin-bottom: 6px;
    color: #fff;
    font-family: "Fraunces", Georgia, serif;
}

.cta-banner p {
    color: #cdddc9;
    margin: 0 0 16px;
}

/* ---- Category badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 11px;
    border-radius: 999px;
    background: var(--forest-700);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.feature-card {
    text-align: left;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--forest-500), var(--forest-900));
    color: #fff;
    font-weight: 800;
    margin-bottom: 10px;
}

/* ---- Product cards ---- */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-card-image {
    position: relative;
    display: block;
    margin: -16px -16px 12px;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--mint-50);
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    box-shadow: 0 4px 12px rgba(22, 36, 26, 0.35);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.tagline {
    font-style: italic;
    color: var(--mint-700);
    margin: 2px 0 8px;
}

/* ---- Product detail ---- */
.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 420px) 1fr;
    gap: 32px;
    align-items: start;
}

.product-detail-image img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--mint-50);
}

.fact-list, .benefit-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: grid;
    gap: 6px;
}

.benefit-list li {
    padding-left: 22px;
    position: relative;
}

.benefit-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--mint-500);
    font-weight: 800;
}

.product-cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.disclaimer {
    font-size: 12px;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.section-inset {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

/* ---- Shop filters & comparison table ---- */
.shop-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 20px;
}

.shop-filters input[type="search"] {
    flex: 1 1 220px;
}

.compare-table th, .compare-table td {
    min-width: unset;
}

/* ---- Contact page ---- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.map-embed {
    margin-top: 16px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.enquiry-form form {
    display: grid;
    gap: 12px;
}

/* ---- Tabs (blog categories, admin enquiry filters) ---- */
.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 20px;
}

.tabs a {
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f3ede0;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
}

.tabs a.active {
    background: var(--gold-700);
    color: #fff;
}

/* ---- Testimonials ---- */
.testimonial-card .quote {
    font-style: italic;
    color: var(--ink);
}

.testimonial-card .rating {
    color: var(--gold-400);
    letter-spacing: 2px;
    margin: 0 0 6px;
}

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.gallery-item {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 8px 10px;
    font-size: 13px;
    color: var(--ink-soft);
}

.admin-gallery-grid {
    margin-top: 18px;
}

.admin-gallery-grid .gallery-item {
    padding: 10px;
}

.admin-gallery-grid img {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
}

/* ---- Blog ---- */
.blog-card-image {
    position: relative;
    display: block;
    margin: -16px -16px 12px;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--forest-100);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-image img.is-placeholder {
    object-fit: contain;
    padding: 18%;
    background: linear-gradient(135deg, var(--gold-100), var(--forest-100));
}

.blog-card-image .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    box-shadow: 0 4px 12px rgba(22, 36, 26, 0.35);
}

.blog-article img.blog-cover {
    width: 100%;
    border-radius: 16px;
    margin: 16px 0;
}

.blog-article {
    max-width: 780px;
}

/* ---- CMS rich content ---- */
.cms-content section + section {
    margin-top: 28px;
}

.cms-content h2 {
    font-family: "Fraunces", Georgia, serif;
    margin-bottom: 10px;
}

.cms-content h3 {
    margin-bottom: 8px;
}

.cms-content p {
    line-height: 1.7;
    color: var(--ink-soft);
}

.cms-content ul, .cms-content ol {
    line-height: 1.8;
    color: var(--ink-soft);
}

.cms-content blockquote {
    margin: 0;
    padding: 16px 20px;
    border-left: 3px solid var(--mint-500);
    background: var(--mint-50);
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

/* ---- Footer ---- */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding-top: 8px;
}

.footer-grid h4 {
    margin: 0 0 10px;
    color: var(--gold-200);
    font-family: "Fraunces", Georgia, serif;
}

.footer-grid p {
    margin: 4px 0;
    font-size: 14px;
    color: #c4d0c2;
}

.footer-grid a {
    text-decoration: none;
    color: #d9e2d7;
}

.footer-grid a:hover {
    color: var(--gold-200);
}

.footer .brandmark strong {
    color: #fff;
}

.footer .disclaimer {
    color: #a9b8a7;
    border-top-color: rgba(255, 255, 255, 0.14);
}

.newsletter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.92);
}

.footer-bottom {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12px;
    color: #a9b8a7;
}

.footer-bottom a {
    color: #c4d0c2;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px !important;
}

.social-links a {
    font-weight: 700;
    font-size: 13px;
    color: var(--gold-200) !important;
}

/* ---- Admin section header ---- */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.section-head h1 {
    margin: 0;
}

/* ---- WhatsApp floating button ---- */
.whatsapp-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(20, 40, 20, 0.28);
    z-index: 40;
    text-decoration: none;
    transition: transform 160ms ease;
}

.whatsapp-fab:hover {
    transform: translateY(-2px) scale(1.04);
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 780px) {
    .site-nav {
        padding: 10px 0;
    }

    .hero {
        padding: 24px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
