/*
Theme Name: Agroimpex Marketplace
Theme URI: https://agroimpex.eu/
Author: Agroimpex
Author URI: https://agroimpex.eu/
Description: Full-width multilingual WordPress theme for the Agroimpex international agricultural marketplace.
Version: 1.4.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: agroimpex
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--ag-theme-ink: #173229;
	--ag-theme-muted: #62736d;
	--ag-theme-green: #123c2c;
	--ag-theme-green-dark: #071f17;
	--ag-theme-lime: #ddeb65;
	--ag-theme-cream: #f6f4ea;
	--ag-theme-white: #fff;
	--ag-theme-line: rgba(23, 50, 41, .13);
	--ag-theme-shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--ag-theme-ink);
	background: var(--ag-theme-cream);
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body.ag-menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.ag-shell { width: var(--ag-theme-shell); margin-inline: auto; }
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	position: fixed;
	z-index: 100000;
	top: 10px;
	left: 10px;
	width: auto;
	height: auto;
	padding: 12px 17px;
	clip: auto;
	background: var(--ag-theme-lime);
	color: var(--ag-theme-green-dark);
	font-weight: 800;
}

.ag-launch-bar {
	min-height: 34px;
	display: flex;
	align-items: center;
	background: var(--ag-theme-green-dark);
	color: rgba(255,255,255,.78);
	font-size: 12px;
}
.ag-launch-inner { display: flex; align-items: center; justify-content: center; gap: 9px; }
.ag-launch-inner a { color: var(--ag-theme-lime); font-weight: 800; text-underline-offset: 3px; }
.ag-launch-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ag-theme-lime);
	box-shadow: 0 0 0 5px rgba(221,235,101,.1);
}
.ag-site-header {
	position: sticky;
	z-index: 100;
	top: var(--wp-admin--admin-bar--height, 0);
	border-bottom: 1px solid var(--ag-theme-line);
	background: rgba(246,244,234,.94);
	backdrop-filter: blur(16px);
}
.ag-header-inner {
	min-height: 78px;
	display: flex;
	align-items: center;
	gap: 30px;
}
.ag-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	flex: 0 0 auto;
	color: var(--ag-theme-ink);
	text-decoration: none;
}
.ag-brand-mark {
	width: 47px;
	height: 47px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 7px 22px rgba(10,43,32,.11);
}
.ag-brand-mark img, .ag-brand .custom-logo {
	width: 50px;
	height: 40px;
	object-fit: contain;
}
.ag-brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.ag-brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 23px; letter-spacing: -.5px; }
.ag-brand-copy small { margin-top: 5px; color: var(--ag-theme-muted); font-size: 8px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.ag-primary-nav { margin-left: auto; }
.ag-primary-nav ul { margin: 0; padding: 0; display: flex; align-items: center; gap: 25px; list-style: none; }
.ag-primary-nav a {
	position: relative;
	color: var(--ag-theme-ink);
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
}
.ag-primary-nav a::after {
	content: "";
	position: absolute;
	right: 100%;
	bottom: -8px;
	left: 0;
	height: 2px;
	background: #1e6a49;
	transition: right .2s ease;
}
.ag-primary-nav a:hover::after, .ag-primary-nav .current-menu-item > a::after { right: 0; }
.ag-header-cta {
	min-height: 42px;
	padding: 0 17px;
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	background: var(--ag-theme-green);
	color: #fff;
	font-size: 12px;
	font-weight: 850;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(18,60,44,.18);
}
.ag-header-cta:hover { background: var(--ag-theme-green-dark); }
.ag-language-switcher {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--ag-theme-line);
	border-radius: 999px;
	background: rgba(255,255,255,.55);
}
.ag-language-switcher a,
.ag-language-switcher span {
	min-width: 32px;
	height: 30px;
	padding: 0 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .5px;
	text-decoration: none;
}
.ag-language-switcher .is-active {
	background: var(--ag-theme-green);
	color: #fff;
}
.ag-language-suggestion {
	position: relative;
	z-index: 95;
	background: var(--ag-theme-lime);
	color: var(--ag-theme-green-dark);
	font-size: 12px;
	font-weight: 750;
}
.ag-language-suggestion[hidden] { display: none; }
.ag-language-suggestion .ag-shell {
	min-height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
}
.ag-language-suggestion a { font-weight: 900; text-underline-offset: 3px; }
.ag-language-suggestion button {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(7,31,23,.1);
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.ag-menu-toggle {
	width: 42px;
	height: 42px;
	margin-left: auto;
	display: none;
	place-content: center;
	gap: 5px;
	border: 0;
	border-radius: 50%;
	background: rgba(18,60,44,.08);
	cursor: pointer;
}
.ag-menu-toggle span:not(.screen-reader-text) { width: 18px; height: 2px; display: block; background: var(--ag-theme-ink); transition: transform .2s ease, opacity .2s ease; }
.ag-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ag-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ag-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ag-site-main { min-height: 60vh; }
.ag-front-main { overflow: hidden; background: var(--ag-theme-cream); }
.ag-front-main > article, .ag-front-main .entry-content { margin: 0; }
.ag-front-main .entry-content > * { max-width: none; }
.ag-content-shell { width: var(--ag-theme-shell); margin: 0 auto; padding: 70px 0 100px; }
.ag-page-header { max-width: 850px; margin-bottom: 35px; }
.ag-page-header h1 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(42px, 5vw, 64px);
	line-height: 1.06;
	letter-spacing: -1.7px;
}
.ag-page-header p { margin: 13px 0 0; color: var(--ag-theme-muted); }
.entry-content { font-size: 16px; }
.entry-content > * { max-width: 850px; }
.entry-content > .agx-marketplace, .entry-content > .agx-single-details, .entry-content > .agx-company-public { max-width: none; }
.entry-content a { text-underline-offset: 3px; }
.ag-article-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ag-article-card { padding: 25px; border: 1px solid var(--ag-theme-line); border-radius: 18px; background: #fff; }
.ag-article-card h2 { margin: 0 0 9px; font-family: Georgia, serif; }
.ag-article-card h2 a { color: var(--ag-theme-ink); text-decoration: none; }
.ag-article-card p { color: var(--ag-theme-muted); }
.ag-post-thumbnail { margin-bottom: 35px; overflow: hidden; border-radius: 22px; }
.ag-post-thumbnail img { width: 100%; max-height: 650px; object-fit: cover; }

.ag-site-footer { background: var(--ag-theme-green-dark); color: rgba(255,255,255,.7); }
.ag-footer-main {
	padding: 68px 0 52px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 70px;
}
.ag-footer-brand .ag-brand { color: #fff; }
.ag-footer-brand p { max-width: 390px; margin: 20px 0 10px; font-size: 13px; }
.ag-footer-brand > a { color: var(--ag-theme-lime); font-size: 13px; font-weight: 800; }
.ag-footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 12px; }
.ag-footer-column strong { margin-bottom: 8px; color: #fff; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.ag-footer-column a { color: rgba(255,255,255,.72); text-decoration: none; }
.ag-footer-column a:hover { color: var(--ag-theme-lime); }
.ag-footer-bottom { padding: 19px 0; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.09); font-size: 9px; letter-spacing: .8px; text-transform: uppercase; }

@media (max-width: 960px) {
	.ag-menu-toggle { display: grid; }
	.ag-header-cta { display: none; }
	.ag-language-switcher { margin-left: auto; }
	.ag-menu-toggle { margin-left: 0; }
	.ag-primary-nav {
		position: fixed;
		inset: calc(112px + var(--wp-admin--admin-bar--height, 0px)) 0 auto;
		min-height: calc(100vh - 112px - var(--wp-admin--admin-bar--height, 0px));
		margin: 0;
		padding: 30px max(20px, calc((100vw - 720px) / 2));
		display: none;
		background: var(--ag-theme-cream);
	}
	.ag-primary-nav.is-open { display: block; }
	.ag-primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
	.ag-primary-nav li { width: 100%; }
	.ag-primary-nav a { padding: 15px 4px; display: block; border-bottom: 1px solid var(--ag-theme-line); font-family: Georgia, serif; font-size: 22px; }
	.ag-primary-nav a::after { display: none; }
	.ag-article-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
	:root { --ag-theme-shell: calc(100% - 28px); }
	.ag-launch-inner { justify-content: flex-start; overflow: hidden; white-space: nowrap; }
	.ag-header-inner { min-height: 69px; }
	.ag-brand-copy small { display: none; }
	.ag-brand-copy strong { font-size: 20px; }
	.ag-brand-mark { width: 42px; height: 42px; }
	.ag-language-switcher a, .ag-language-switcher span { min-width: 29px; height: 28px; padding: 0 6px; }
	.ag-language-suggestion .ag-shell { justify-content: flex-start; gap: 8px; }
	.ag-language-suggestion span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.ag-primary-nav { inset: calc(103px + var(--wp-admin--admin-bar--height, 0px)) 0 auto; min-height: calc(100vh - 103px - var(--wp-admin--admin-bar--height, 0px)); }
	.ag-content-shell { padding: 50px 0 75px; }
	.ag-article-list { grid-template-columns: 1fr; }
	.ag-footer-main { grid-template-columns: 1fr 1fr; gap: 38px 24px; }
	.ag-footer-brand { grid-column: 1 / -1; }
	.ag-footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
