/*
Theme Name: Vegglobe Export
Theme URI: https://veg-globe.com
Author: Vegglobe
Description: A clean, modern theme for horticultural produce exporters and marketplaces. Produce showcase, buyer–seller marketplace, online ordering, payment terms (LC, CAD, after shipment), social links and WhatsApp. Built to work with the Vegglobe Produce Directory and Marketplace plugin.
Version: 2.1.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vegglobe-export
Tags: one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
	--forest: #0e3b2c;
	--forest-2: #145240;
	--leaf: #6fae3a;
	--leaf-soft: #e7f2dc;
	--harvest: #e9a23b;
	--cream: #f8f5ec;
	--paper: #ffffff;
	--ink: #1d2a24;
	--muted: #5d6b64;
	--line: #e3e0d4;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(14, 59, 44, .08);
	--wrap: 1200px;
	--head: "Fraunces", Georgia, serif;
	--body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--leaf); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--forest); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; background: #fff; padding: 10px 16px; clip: auto; width: auto; height: auto; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .85em 1.6em; border-radius: 999px;
	font-weight: 600; font-size: .95rem; text-decoration: none;
	border: 2px solid transparent; cursor: pointer; transition: .2s ease;
}
.btn-primary { background: var(--harvest); color: var(--forest); }
.btn-primary:hover { background: #f2b452; color: var(--forest); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--forest); }
.btn-green { background: var(--forest); color: #fff; }
.btn-green:hover { background: var(--forest-2); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fb457; color: #fff; }

/* Top bar */
.topbar { background: var(--forest); color: #cfe0d6; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar span + span { margin-left: 18px; }

/* Header */
.vx-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .vx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .vx-header { top: 0; position: relative; } }
.vx-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { max-height: 52px; width: auto; }
.brand-name { font-family: var(--head); font-size: 1.6rem; font-weight: 700; color: var(--forest); line-height: 1; }
.brand-name em { font-style: normal; color: var(--leaf); }
.brand-tag { display: block; font-family: var(--body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; border-radius: 8px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--forest); background: var(--leaf-soft); }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px; box-shadow: var(--shadow); border-radius: 10px; padding: 8px; flex-direction: column; align-items: stretch; z-index: 60; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu .sub-menu { left: 100%; top: 0; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--forest); margin: 5px 0; transition: .2s; }

@media (max-width: 980px) {
	.menu-toggle { display: block; }
	.header-cta .btn { display: none; }
	.main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; }
	.main-nav .sub-menu { position: static; display: flex; box-shadow: none; padding-left: 14px; }
}

/* Hero */
.hero {
	position: relative; color: #fff; overflow: hidden;
	background-color: var(--forest);
	background-image:
		linear-gradient(100deg, rgba(14,59,44,.95) 0%, rgba(14,59,44,.78) 45%, rgba(14,59,44,.25) 100%),
		var(--hero-img, radial-gradient(circle at 80% 30%, #2f7a4f 0, #145240 40%, #0e3b2c 75%));
	background-size: cover; background-position: center;
}
.hero .wrap { padding-top: clamp(70px, 10vw, 130px); padding-bottom: clamp(70px, 10vw, 130px); }
.hero-inner { max-width: 640px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--harvest); margin-bottom: 16px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; color: #dbe8e0; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.stats { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -48px; position: relative; z-index: 2; }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--head); font-size: 2rem; color: var(--forest); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Sections */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section-alt { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0; }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-decoration: none; color: var(--ink); transition: .2s; }
.cat:hover { border-color: var(--leaf); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.cat-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--leaf-soft); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 16px; }
.cat h3 { margin-bottom: 6px; }
.cat p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } }

/* Cards (produce + posts) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { aspect-ratio: 4 / 3; background: var(--leaf-soft); overflow: hidden; display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--head); font-size: 3.4rem; color: var(--forest); background: linear-gradient(135deg, var(--leaf-soft), #f3ead2); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.2rem; }
.card-body h3 a { color: var(--forest); text-decoration: none; }
.card-body p { color: var(--muted); font-size: .93rem; flex: 1; }
.card-meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--leaf); font-weight: 700; margin-bottom: 8px; }
.card-link { font-weight: 600; font-size: .9rem; text-decoration: none; }

/* Why us */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature { padding: 4px 0; }
.feature-num { font-family: var(--head); font-size: 1rem; color: var(--harvest); font-weight: 700; margin-bottom: 10px; }
.feature p { color: var(--muted); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* Process */
.process { background: var(--forest); color: #dbe8e0; }
.process h2, .process h3 { color: #fff; }
.process .section-head p { color: #b9cfc3; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { border-top: 2px solid rgba(255,255,255,.18); padding-top: 22px; counter-increment: step; }
.step::before { content: "0" counter(step); display: block; font-family: var(--head); font-size: 2.2rem; color: var(--harvest); margin-bottom: 8px; line-height: 1; }
.step p { font-size: .93rem; color: #b9cfc3; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--harvest), #f4c06b); border-radius: 20px; padding: clamp(32px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: #4a3a1a; }

/* Page header */
.page-hero { background: var(--forest); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero .crumbs { font-size: .85rem; color: #b9cfc3; }
.page-hero .crumbs a { color: #fff; text-decoration: none; }
.page-hero .meta { color: #b9cfc3; font-size: .9rem; }

/* Content layout */
.content-area { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 60px 0 80px; }
.content-area.full { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin: 0 auto; }
@media (max-width: 960px) { .content-area { grid-template-columns: 1fr; } }
.entry { background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); }
.entry-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.entry-content > * + * { margin-top: 0; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote { border-left: 4px solid var(--leaf); margin: 1.5em 0; padding: .5em 1.2em; background: var(--leaf-soft); border-radius: 0 10px 10px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--leaf-soft); color: var(--forest); }
.entry-content img { border-radius: 10px; }
.alignwide { max-width: none; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); }
.tags a { display: inline-block; background: var(--leaf-soft); padding: 3px 12px; border-radius: 999px; font-size: .85rem; margin: 4px 4px 0 0; text-decoration: none; }

/* Sidebar */
.sidebar .widget { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.sidebar .widget-title, .sidebar h2 { font-size: 1.15rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--leaf-soft); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { text-decoration: none; color: var(--ink); }
.sidebar a:hover { color: var(--leaf); }
.quote-box { background: var(--forest) !important; color: #dbe8e0; border: 0 !important; }
.quote-box h3 { color: #fff; }

/* Forms */
input[type=text], input[type=email], input[type=search], input[type=url], input[type=tel], textarea, select {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--leaf); border-color: transparent; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-submit, input[type=submit], button[type=submit] { background: var(--forest); color: #fff; border: 0; padding: 12px 20px; border-radius: 10px; font-weight: 600; cursor: pointer; font: inherit; }
.search-submit:hover, input[type=submit]:hover { background: var(--leaf); }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--forest); color: #fff; border-color: var(--forest); }

/* Comments */
.comments-area { margin-top: 32px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.comment-meta { font-size: .85rem; color: var(--muted); }
.comment-author img { border-radius: 50%; float: left; margin-right: 10px; }

/* Footer */
.vx-footer { background: #0a2c21; color: #a9c2b5; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 70px 0 50px; }
.vx-footer h3, .vx-footer .widget-title { color: #fff; font-size: 1.05rem; font-family: var(--body); font-weight: 700; letter-spacing: .02em; }
.vx-footer a { color: #dbe8e0; text-decoration: none; }
.vx-footer a:hover { color: var(--harvest); }
.vx-footer ul { list-style: none; padding: 0; margin: 0; }
.vx-footer li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 90; transition: .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

.empty { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }
.notfound { text-align: center; padding: 100px 0; }
.notfound .big { font-family: var(--head); font-size: 6rem; color: var(--leaf); line-height: 1; }

/* Fixes and plugin integration */
.card-media, .card-media:hover { text-decoration: none; }
.entry-content .vg-chips, .entry-content .vg-grown-list { padding-left: 0; }
.entry-content .vg-grown h3, .entry-content .vg-detail h3 { margin-top: 0; }
.vg-detail section { margin-bottom: 1.6rem; }
@media (max-width: 640px) { .topbar .wrap > div:last-child { display: none; } .topbar span + span { margin-left: 12px; } }

.entry-thumb img { width: 100%; max-height: 460px; object-fit: cover; }
.entry-thumb .vg-photo-credit { padding: 6px 2px 0; }

/* Social icons */
.socials { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.socials a { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: .2s; }
.socials a:hover { background: var(--harvest); }
.socials svg { width: 15px; height: 15px; fill: #fff; }
.socials-top a { width: 24px; height: 24px; background: transparent; }
.socials-top svg { width: 14px; height: 14px; }
.socials-foot { margin-top: 16px; }
.socials-foot a { width: 36px; height: 36px; }
.socials-foot svg { width: 17px; height: 17px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
@media (max-width: 900px) { .topbar-note { display: none; } }

/* Homepage additions */
.trust { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.trust p { color: var(--muted); }
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.region { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.region strong { display: block; font-family: var(--head); font-size: 1.15rem; color: var(--forest); }
.region span { color: var(--muted); font-size: .88rem; }
.story-card { background: var(--forest); color: #dbe8e0; border-radius: 20px; padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.story-card h3 { color: #fff; font-size: 1.6rem; }
.story-card .big { font-family: var(--head); font-size: clamp(3rem, 7vw, 4.6rem); color: var(--harvest); line-height: 1; }
.story-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(111,174,58,.18); }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } .regions { grid-template-columns: 1fr; } }
.market-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.market-col h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.market-col h3 a { font-family: var(--body); font-size: .9rem; font-weight: 600; }
.market-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.market-list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.market-list li:last-child { border-bottom: 0; }
.market-list b { color: var(--forest); }
.market-list small { display: block; color: var(--muted); }
.market-list .r { text-align: right; white-space: nowrap; font-weight: 600; color: var(--forest-2); }
@media (max-width: 860px) { .market-split { grid-template-columns: 1fr; } }
.market-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pay-card { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); border-top: 4px solid var(--harvest); padding: 26px; }
.pay-card .pay-icon { font-size: 1.8rem; margin-bottom: 8px; }
.pay-card p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .pay-grid { grid-template-columns: 1fr; } }
.page-hero + .wrap .entry-content .vgm-form { margin-top: 0; }

.story-card p { color: #cfe0d6; }

/* Header: uploaded logo sizing and a one-line menu */
.vx-header .custom-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.vx-header .custom-logo { max-height: 56px; width: auto; height: auto; display: block; }
.brand { flex-shrink: 0; max-width: 300px; }
.brand-tag { font-size: .66rem; letter-spacing: .1em; line-height: 1.4; }
.main-nav a { white-space: nowrap; padding: 10px 11px; }
.header-cta .btn { white-space: nowrap; }
.vx-header .wrap { gap: 14px; }
@media (max-width: 1180px) and (min-width: 981px) { .brand-tag { display: none; } .main-nav a { padding: 10px 8px; font-size: .92rem; } }
@media (max-width: 600px) { .vx-header .custom-logo { max-height: 44px; } }
