/**
 * Foodways — Living Infrastructure presentation system.
 * Fresh editorial warmth, institutional clarity, scarce yellow signals, and a visible green route.
 */

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/manrope-latin-variable.woff2") format("woff2-variations");
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/source-sans-3-latin-variable.woff2") format("woff2-variations");
}

@font-face {
	font-family: "Source Sans 3";
	font-style: italic;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/source-sans-3-latin-variable-italic.woff2") format("woff2-variations");
}

@font-face {
	font-family: "Noto Sans Arabic";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/noto-sans-arabic-variable.woff2") format("woff2-variations");
}

:root {
	--fw-green: #0f7240;
	--fw-forest: #16382b;
	--fw-canvas: #f4f1e8;
	--fw-yellow: #f4cc4d;
	--fw-sage: #c2ceac;
	--fw-blue: #c7d8e8;
	--fw-clay: #e7d8b8;
	--fw-white: #ffffff;
	--fw-ink-soft: #496258;
	--fw-border: #b9c4b9;
	--fw-error: #9b2c2c;
	--fw-shadow: 0 20px 60px rgb(22 56 43 / 0.10);
	--fw-header-height: 5.25rem;
	--fw-content: 82rem;
	--fw-reading: 48rem;
	--fw-radius: 0.18rem;
	--fw-space-1: 0.5rem;
	--fw-space-2: 0.75rem;
	--fw-space-3: 1rem;
	--fw-space-4: 1.5rem;
	--fw-space-5: 2rem;
	--fw-space-6: 3rem;
	--fw-space-7: 4.5rem;
	--fw-space-8: 7rem;
	--fw-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--fw-header-height) + 2rem); }
body {
	margin: 0;
	background-color: var(--fw-canvas);
	background-image:
		radial-gradient(circle at 12% 14%, rgb(15 114 64 / 0.025) 0 1px, transparent 1.5px),
		radial-gradient(circle at 82% 74%, rgb(22 56 43 / 0.022) 0 1px, transparent 1.5px);
	background-size: 18px 18px, 23px 23px;
	color: var(--fw-forest);
	font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}
html:lang(ar) body { font-family: "Noto Sans Arabic", "Source Sans 3", sans-serif; }
html:lang(ar) h1,
html:lang(ar) h2,
html:lang(ar) h3,
html:lang(ar) h4,
html:lang(ar) h5,
html:lang(ar) h6,
html:lang(ar) .site-brand__name { font-family: "Noto Sans Arabic", "Manrope", sans-serif; letter-spacing: 0; }
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--fw-green); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--fw-forest); }
button, input, select, textarea { color: inherit; font: inherit; }
button, [type="button"], [type="submit"] { cursor: pointer; }
::selection { background: var(--fw-yellow); color: var(--fw-forest); }
:focus-visible { outline: 3px solid var(--fw-yellow); outline-offset: 4px; }

h1, h2, h3, h4, h5, h6, .site-brand__name {
	margin-block: 0 0.65em;
	font-family: "Manrope", "Arial Nova", Arial, sans-serif;
	font-weight: 760;
	letter-spacing: -0.035em;
	line-height: 1.02;
}
h1 { max-width: 16ch; font-size: clamp(2.75rem, 7.6vw, 6.6rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 4.6rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 2.35rem); }
p, ul, ol { margin-block: 0 1.3em; }
.content-shell { width: min(calc(100% - 2rem), var(--fw-content)); margin-inline: auto; }
.content-shell--narrow { width: min(calc(100% - 2rem), var(--fw-reading)); }
.site-main { min-height: 58vh; }
.entry__content > :where(p, ul, ol, blockquote, h2, h3, h4, figure, table) { width: min(calc(100% - 2rem), var(--fw-reading)); margin-inline: auto; }
.entry__content > :where(.alignwide) { width: min(calc(100% - 2rem), var(--fw-content)); max-width: none; }
.entry__content > :where(.alignfull) { width: 100%; max-width: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: fixed; inset-block-start: 1rem; inset-inline-start: 1rem; z-index: 1000;
	transform: translateY(-160%); padding: 0.8rem 1rem;
	background: var(--fw-yellow); color: var(--fw-forest); font-weight: 800;
	transition: transform 180ms var(--fw-ease-out);
}
.skip-link:focus { transform: translateY(0); }
.eyebrow, .archive-card__type {
	margin-block-end: 1rem; color: var(--fw-green); font-size: 0.75rem; font-weight: 800;
	letter-spacing: 0.14em; line-height: 1.2; text-transform: uppercase;
}

.site-header {
	position: sticky; inset-block-start: 0; z-index: 100;
	min-height: var(--fw-header-height); border-block-end: 1px solid rgb(22 56 43 / 0.18);
	background: rgb(244 241 232 / 0.94); backdrop-filter: blur(16px);
}
.site-header__inner {
	display: grid; grid-template-columns: minmax(9rem, auto) 1fr auto; align-items: center; gap: 1.25rem;
	width: min(calc(100% - 2rem), var(--fw-content)); min-height: var(--fw-header-height); margin-inline: auto;
}
.site-brand { min-width: 0; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-width: min(14rem, 46vw); max-height: 3.25rem; object-fit: contain; }
.site-brand__fallback { display: inline-flex; flex-direction: column; color: var(--fw-forest); text-decoration: none; }
.site-brand__name { margin: 0; font-size: 1.2rem; letter-spacing: -0.03em; }
.site-brand__tagline { max-width: 18rem; font-size: 0.68rem; line-height: 1.2; }
.header-shop, .button, button[type="submit"], input[type="submit"] {
	display: inline-flex; min-height: 2.85rem; align-items: center; justify-content: center; gap: 0.35rem;
	border: 1px solid var(--fw-forest); border-radius: var(--fw-radius); padding: 0.75rem 1rem;
	background: var(--fw-yellow); color: var(--fw-forest); font-weight: 800; text-decoration: none;
	transition: transform 160ms var(--fw-ease-out), box-shadow 180ms var(--fw-ease-out), background-color 180ms var(--fw-ease-out);
}
.header-shop:hover, .button:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--fw-white); color: var(--fw-forest); box-shadow: 5px 5px 0 var(--fw-forest); transform: translate(-2px, -2px); }
.header-shop:active, .button:active, button[type="submit"]:active, input[type="submit"]:active { transform: scale(0.97); }
.site-header__actions { display: flex; align-items: center; gap: 0.55rem; }
.language-switcher { flex: 0 0 auto; }
.language-switcher__list { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.language-switcher__link { display: inline-flex; min-width: 2.35rem; min-height: 2.35rem; align-items: center; justify-content: center; border: 1px solid rgb(22 56 43 / 0.28); border-radius: 999px; color: var(--fw-forest); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-decoration: none; transition: background-color 160ms var(--fw-ease-out), color 160ms var(--fw-ease-out), transform 160ms var(--fw-ease-out); }
.language-switcher__link:hover, .language-switcher__link:focus-visible, .language-switcher__link[aria-current="page"] { border-color: var(--fw-yellow); background: var(--fw-yellow); color: var(--fw-forest); }
.language-switcher__link:active { transform: scale(0.97); }
[dir="rtl"] .language-switcher__link { letter-spacing: 0; }

.primary-navigation { justify-self: end; }
.primary-navigation__list, .primary-navigation .sub-menu { margin: 0; padding: 0; list-style: none; }
.primary-navigation__list { display: flex; align-items: center; gap: clamp(0.8rem, 1.8vw, 1.8rem); }
.primary-navigation__item { position: relative; display: flex; align-items: center; }
.nav-link, .sub-menu__link { color: var(--fw-forest); font-size: 0.88rem; font-weight: 760; text-decoration: none; }
.nav-link { position: relative; display: inline-flex; min-height: 3rem; align-items: center; }
.nav-link::after {
	content: ""; position: absolute; inset-inline: 0; inset-block-end: 0.32rem; height: 2px;
	background: var(--fw-green); transform: scaleX(0); transform-origin: right;
	transition: transform 200ms var(--fw-ease-out);
}
.nav-link:hover::after, .nav-link:focus-visible::after, .current-menu-item > .nav-link::after, .current-menu-ancestor > .nav-link::after { transform: scaleX(1); transform-origin: left; }
.submenu-toggle { display: inline-grid; width: 2rem; height: 2.5rem; place-items: center; border: 0; background: transparent; color: var(--fw-forest); font-size: 1rem; font-weight: 800; }
.submenu-toggle[aria-expanded="true"] > [aria-hidden="true"] { transform: rotate(45deg); }
.submenu-toggle > [aria-hidden="true"] { display: block; transition: transform 180ms var(--fw-ease-out); }
.primary-navigation .sub-menu {
	position: absolute; inset-block-start: calc(100% - 0.2rem); inset-inline-start: 0; min-width: 15rem;
	border: 1px solid rgb(22 56 43 / 0.22); padding: 0.55rem;
	background: var(--fw-white); box-shadow: var(--fw-shadow);
}
.js .primary-navigation .sub-menu { display: none; }
.js .primary-navigation__item:hover > .sub-menu,
.js .primary-navigation__item:focus-within > .sub-menu,
.js .primary-navigation__item.is-submenu-open > .sub-menu { display: block; }
.sub-menu__link { display: block; padding: 0.72rem 0.85rem; }
.sub-menu__link:hover, .sub-menu__link:focus-visible { background: var(--fw-sage); color: var(--fw-forest); }
.nav-toggle { display: none; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.55rem; padding-block: 1.2rem; color: var(--fw-ink-soft); font-size: 0.82rem; }
.breadcrumbs a { color: var(--fw-green); font-weight: 700; }
.entry__header, .archive-header { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2rem, 5vw, 4rem); }
.entry__header h1, .archive-header h1 { max-width: 18ch; }
.entry__hero { margin-block-end: var(--fw-space-6); }
.entry__hero img { width: 100%; max-height: 44rem; object-fit: cover; }
.entry__content { padding-block-end: var(--fw-space-8); }
.entry__content blockquote { border-inline-start: 4px solid var(--fw-green); padding-inline-start: 1.5rem; font-size: 1.35rem; }
.entry__content a { font-weight: 700; }
.entry__content table { width: 100%; border-collapse: collapse; }
.entry__content th, .entry__content td { border-block-end: 1px solid var(--fw-border); padding: 0.75rem; text-align: start; vertical-align: top; }
.archive-description { max-width: 46rem; color: var(--fw-ink-soft); font-size: 1.15rem; }
.archive-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-block-end: var(--fw-space-6); background: var(--fw-border); border: 1px solid var(--fw-border); }
.archive-card { min-height: 18rem; padding: clamp(1.4rem, 3vw, 2.5rem); background: var(--fw-white); }
.archive-card:nth-child(3n + 2) { background: var(--fw-sage); }
.archive-card:nth-child(3n + 3) { background: var(--fw-clay); }
.archive-card h2 { font-size: clamp(1.45rem, 2.2vw, 2.15rem); }
.archive-card h2 a { color: var(--fw-forest); text-decoration: none; }
.archive-card h2 a:hover { color: var(--fw-green); }
.navigation.pagination { margin-block: var(--fw-space-6); }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.page-numbers { min-width: 2.75rem; min-height: 2.75rem; display: inline-grid; place-items: center; border: 1px solid var(--fw-forest); color: var(--fw-forest); text-decoration: none; }
.page-numbers.current, .page-numbers:hover { background: var(--fw-forest); color: var(--fw-white); }
.error-404 { display: grid; min-height: 68vh; place-items: center; padding-block: var(--fw-space-7); }

.search-form { max-width: 42rem; margin-block: 1.5rem 3rem; }
.search-form label { display: block; margin-block-end: 0.45rem; font-weight: 750; }
.search-form__row { display: grid; grid-template-columns: 1fr auto; gap: 0.55rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="number"], input[type="date"], select, textarea {
	width: 100%; min-height: 3rem; border: 1px solid var(--fw-forest); border-radius: 0; padding: 0.72rem 0.8rem; background: var(--fw-white);
}
textarea { min-height: 9rem; resize: vertical; }
label { font-weight: 700; }

.site-footer { position: relative; overflow: hidden; padding-block: clamp(4rem, 8vw, 7rem) 1.5rem; background: var(--fw-forest); color: var(--fw-white); }
.site-footer::before { display: none; }
.site-footer a { color: var(--fw-white); }
.site-footer .custom-logo { filter: brightness(0) invert(1); }
.site-footer__inner { display: grid; grid-template-columns: 1.25fr 0.8fr 1fr; gap: clamp(2rem, 5vw, 6rem); width: min(calc(100% - 2rem), var(--fw-content)); margin-inline: auto; }
.site-footer__brand p { max-width: 25rem; color: rgb(255 255 255 / 0.76); }
.site-footer__nav ul, .site-footer__legal ul { margin: 0; padding: 0; list-style: none; }
.site-footer__nav li + li { margin-block-start: 0.65rem; }
.site-footer__contact { max-width: 24rem; }
.site-footer__contact .eyebrow { color: var(--fw-yellow); }
.site-footer__legal { display: flex; justify-content: space-between; gap: 1rem; width: min(calc(100% - 2rem), var(--fw-content)); margin: 4rem auto 0; padding-block-start: 1rem; border-block-start: 1px solid rgb(255 255 255 / 0.2); color: rgb(255 255 255 / 0.65); font-size: 0.78rem; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 1rem; }

.foodways-elementor-page .entry__header { display: none; }
.site-main--front > .elementor, .site-main--elementor > .elementor { overflow: clip; }
.elementor-widget-text-editor > :last-child, .elementor-widget-text-editor p:last-child { margin-block-end: 0; }

/* Portable Foodways Core renderers — usable in WordPress, Elementor, and translated templates. */
.fw-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid rgb(255 255 255 / 0.28); color: var(--fw-white); }
.fw-proof__item { display: grid; align-content: center; min-height: 13rem; padding: clamp(1.4rem, 3vw, 2.7rem); border-inline-end: 1px solid rgb(255 255 255 / 0.28); }
.fw-proof__item:last-child { border-inline-end: 0; }
.fw-proof__item strong { display: block; color: var(--fw-yellow); font-family: "Manrope", Arial, sans-serif; font-size: clamp(2.7rem, 5.5vw, 5.6rem); font-weight: 780; letter-spacing: -0.055em; line-height: 0.95; }
.fw-proof__item span { display: block; max-width: 18rem; margin-block-start: 1rem; color: rgb(255 255 255 / 0.82); font-weight: 650; line-height: 1.35; }
.fw-content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--fw-border); background: var(--fw-border); }
.fw-card { min-width: 0; background: var(--fw-white); }
.fw-card:nth-child(3n + 2) { background: var(--fw-sage); }
.fw-card:nth-child(3n + 3) { background: var(--fw-clay); }
.fw-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.fw-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 360ms var(--fw-ease-out); }
.fw-card:hover .fw-card__image img { transform: scale(1.025); }
.fw-card__body { padding: clamp(1.3rem, 2.6vw, 2.2rem); }
.fw-card__kicker { margin-block-end: 0.85rem; color: var(--fw-green); font-size: 0.73rem; font-weight: 800; letter-spacing: 0.11em; line-height: 1.25; text-transform: uppercase; }
.fw-card h3 { font-size: clamp(1.35rem, 2.1vw, 2.05rem); }
.fw-card h3 a { color: var(--fw-forest); text-decoration: none; }
.fw-card h3 a:hover { color: var(--fw-green); }
.fw-card__body > :last-child { margin-block-end: 0; }
.fw-admin-note { border-inline-start: 4px solid var(--fw-yellow); padding: 0.8rem 1rem; background: var(--fw-white); color: var(--fw-forest); }

@media (max-width: 68rem) {
	.archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fw-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 59.99rem) {
	:root { --fw-header-height: 4.75rem; }
	body.nav-open { overflow: hidden; }
	.site-header__inner { position: relative; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.65rem; }
	.nav-toggle { display: inline-flex; min-height: 2.75rem; align-items: center; gap: 0.55rem; border: 0; padding: 0.5rem; background: transparent; color: var(--fw-forest); font-weight: 800; }
	.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after { display: block; width: 1.35rem; height: 2px; background: currentColor; content: ""; transition: transform 180ms var(--fw-ease-out), opacity 180ms var(--fw-ease-out); }
	.nav-toggle__icon { position: relative; }
	.nav-toggle__icon::before { position: absolute; transform: translateY(-6px); }
	.nav-toggle__icon::after { position: absolute; transform: translateY(6px); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: rotate(-45deg); }
	.primary-navigation {
		position: fixed !important;
		z-index: 99;
		inset-block-start: var(--fw-header-height) !important;
		inset-block-end: auto !important;
		inset-inline: 0 !important;
		width: auto !important;
		max-width: none !important;
		height: calc(100dvh - var(--fw-header-height)) !important;
		min-height: calc(100vh - var(--fw-header-height));
		box-sizing: border-box;
		overflow-x: hidden;
		overflow-y: auto;
		justify-self: stretch;
		padding: 1.25rem max(1.25rem, calc((100vw - 90rem) / 2)) max(3rem, env(safe-area-inset-bottom));
		background: var(--fw-canvas);
		transform: none !important;
	}
	.js .primary-navigation { display: none; }
	.js .primary-navigation.is-open { display: block !important; }
	.primary-navigation__list { display: block !important; width: 100% !important; max-width: none !important; }
	.primary-navigation__item { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto; border-block-end: 1px solid var(--fw-border); }
	.nav-link { width: 100%; min-height: 3.7rem; justify-content: flex-start; color: var(--fw-forest) !important; font-size: 1.05rem; text-align: start; }
	.submenu-toggle { width: 3.25rem; height: 3.7rem; }
	.primary-navigation .sub-menu { position: static; grid-column: 1 / -1; min-width: 0; border: 0; border-block-start: 1px solid var(--fw-border); padding: 0.45rem 0 0.8rem 1rem; background: transparent; box-shadow: none; }
	.js .primary-navigation__item:hover > .sub-menu, .js .primary-navigation__item:focus-within > .sub-menu { display: none; }
	.js .primary-navigation__item.is-submenu-open > .sub-menu { display: block; }
	.header-shop { min-height: 2.55rem; padding: 0.55rem 0.7rem; font-size: 0.82rem; }
	.language-switcher__link { min-width: 2.55rem; min-height: 2.55rem; }
}

@media (max-width: 44rem) {
	h1 { font-size: clamp(2.55rem, 14vw, 4.2rem); }
	.content-shell, .content-shell--narrow { width: min(calc(100% - 1.25rem), var(--fw-content)); }
	.archive-list { grid-template-columns: 1fr; }
	.fw-content-grid, .fw-proof { grid-template-columns: 1fr; }
	.fw-proof__item { min-height: 0; border-inline-end: 0; border-block-end: 1px solid rgb(255 255 255 / 0.28); }
	.fw-proof__item:last-child { border-block-end: 0; }
	.archive-card { min-height: 0; }
	.site-footer__inner { grid-template-columns: 1fr; }
	.site-footer__brand { grid-column: auto; }
	.site-footer__legal { display: block; }
	.search-form__row { grid-template-columns: 1fr; }
	.nav-toggle__label { display: none; }
	.site-header__actions { gap: 0.25rem; }
	.language-switcher__link { min-width: 2.35rem; min-height: 2.35rem; font-size: 0.68rem; }
}

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

@media print {
	.site-header, .site-footer, .breadcrumbs, .search-form { display: none !important; }
	body { background: #fff; color: #000; }
	a { color: #000; text-decoration: underline; }
}
