/*
Theme Name: Emad Pistachio
Theme URI: https://example.com/emad-pistachio
Author: Emad Pistachio
Author URI: https://example.com
Description: A plugin-light corporate theme for pistachio producers and exporters. Customizer-driven home sections, product catalogue without commerce, gallery, articles, built-in contact form, JSON-LD schema and full RTL support for Persian, English and Arabic (Polylang-ready).
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emad-pistachio
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, translation-ready, blog, portfolio
*/

/* -------------------------------------------------- tokens */
:root {
	--green-900: #243019;
	--green-800: #2f3f23;
	--green-700: #41552f;
	--green-600: #55693f;
	--green-500: #6c8253;
	--green-100: #e8ecdf;
	--cream: #f7f4ea;
	--cream-dark: #eee9d9;
	--gold: #c3ad72;
	--text: #333c2c;
	--muted: #7b8370;
	--surface: #ffffff;
	--line: #e3e0d2;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 8px 28px rgba(47, 63, 35, 0.1);
	--shadow-sm: 0 3px 10px rgba(47, 63, 35, 0.08);
	--font: "Dana", "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
	--container: 1200px;
}

/* -------------------------------------------------- reset & base */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
	overflow-x: clip;
}

body {
	margin: 0;
	overflow-x: hidden;
	overflow-x: clip;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.9;
	color: var(--text);
	background: var(--surface);
	overflow-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--green-700);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--green-500);
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.4;
	color: var(--green-800);
	margin: 0 0 0.6em;
	font-weight: 700;
}

p {
	margin: 0 0 1em;
}

ul, ol {
	padding-inline-start: 1.4em;
}

table {
	border-collapse: collapse;
	width: 100%;
}

input, textarea, select, button {
	font: inherit;
	color: inherit;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
}

.skip-link {
	position: absolute;
	inset-inline-start: -9999px;
	top: 0;
	background: var(--green-800);
	color: #fff;
	padding: 8px 16px;
	z-index: 999;
}

.skip-link:focus {
	inset-inline-start: 0;
	clip: auto;
	width: auto;
	height: auto;
}

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 20px;
}

.icon {
	vertical-align: middle;
	flex-shrink: 0;
}

/* -------------------------------------------------- buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 26px;
	border-radius: 999px;
	border: 2px solid transparent;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.25s ease;
	line-height: 1.8;
}

.btn--primary {
	background: var(--green-700);
	color: #fff;
}

.btn--primary:hover {
	background: var(--green-800);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

.btn--ghost {
	border-color: #fff;
	color: #fff;
	background: transparent;
}

.btn--ghost:hover {
	background: #fff;
	color: var(--green-800);
}

.btn--light {
	background: #fff;
	color: var(--green-800);
}

.btn--light:hover {
	background: var(--cream);
	color: var(--green-900);
}

.btn--outline {
	border-color: var(--green-600);
	color: var(--green-700);
	background: transparent;
}

.btn--outline:hover {
	background: var(--green-700);
	color: #fff;
}

.btn--sm {
	padding: 6px 18px;
	font-size: 0.85rem;
}

.btn--lg {
	padding: 12px 36px;
	font-size: 1.05rem;
}

/* -------------------------------------------------- topbar */
.topbar {
	background: var(--green-900);
	color: #e8ecdf;
	font-size: 0.82rem;
}

.topbar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	min-height: 38px;
	flex-wrap: wrap;
}

.topbar__contact {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

.topbar__contact a {
	color: #e8ecdf;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.topbar__contact a:hover {
	color: var(--gold);
}

.topbar__meta {
	display: flex;
	align-items: center;
	gap: 14px;
}

.lang-switcher ul {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lang-switcher a {
	color: #e8ecdf;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 0.78rem;
	letter-spacing: 0.4px;
}

.lang-switcher .is-current a,
.lang-switcher a:hover {
	background: var(--green-700);
	color: #fff;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: inherit;
	transition: all 0.2s ease;
}

.topbar .social-links a:hover,
.site-footer .social-links a:hover {
	background: var(--green-700);
	color: #fff;
}

/* -------------------------------------------------- masthead & nav */
.masthead {
	background: #fff;
	box-shadow: 0 2px 12px rgba(47, 63, 35, 0.07);
	position: sticky;
	top: 0;
	z-index: 90;
}

.masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}

.site-branding img.custom-logo {
	max-height: 62px;
	width: auto;
}

.site-branding__logo {
	height: 60px;
	width: auto;
}

.site-branding__fallback {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--green-800);
}

.site-branding__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--green-100);
	color: var(--green-700);
}

.site-branding__name {
	display: block;
	font-weight: 800;
	font-size: 1.25rem;
	line-height: 1.3;
}

.site-branding__tagline {
	display: block;
	font-size: 0.75rem;
	color: var(--muted);
}

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
}

.main-nav li {
	position: relative;
}

.main-nav a {
	display: block;
	padding: 26px 14px;
	color: var(--green-800);
	font-weight: 600;
	font-size: 0.95rem;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current_page_item > a {
	color: var(--green-500);
	box-shadow: inset 0 -3px 0 var(--green-500);
}

/* sub menus */
.main-nav ul ul {
	position: absolute;
	inset-inline-start: 0;
	top: 100%;
	min-width: 210px;
	background: #fff;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	box-shadow: var(--shadow);
	display: none;
	flex-direction: column;
	z-index: 95;
	padding: 6px 0;
}

.main-nav li:hover > ul,
.main-nav li:focus-within > ul {
	display: flex;
}

.main-nav ul ul a {
	padding: 9px 18px;
	font-weight: 500;
}

.main-nav ul ul a:hover {
	background: var(--cream);
	box-shadow: none;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.lang-menu {
	position: relative;
}

.lang-menu summary {
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--green-800);
	cursor: pointer;
	user-select: none;
	transition: all 0.2s ease;
}

.lang-menu summary::-webkit-details-marker {
	display: none;
}

.lang-menu[open] summary,
.lang-menu summary:hover {
	background: var(--cream);
	border-color: var(--green-700);
}

.lang-menu__list {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-end: 0;
	min-width: 140px;
	background: #fff;
	border-radius: 12px;
	box-shadow: var(--shadow);
	list-style: none;
	margin: 0;
	padding: 6px;
	z-index: 120;
}

.lang-menu__list a,
.lang-menu__list button {
	display: block;
	width: 100%;
	padding: 9px 14px;
	border-radius: 8px;
	font-size: 0.88rem;
	font-family: inherit;
	color: var(--text);
	background: none;
	border: 0;
	text-align: start;
	cursor: pointer;
}

.lang-menu__list .is-current a,
.lang-menu__list a:hover,
.lang-menu__list .is-current button,
.lang-menu__list button:hover {
	background: var(--cream);
	color: var(--green-800);
	font-weight: 700;
}

/* Google Translate widget cleanup */
#emad-gt,
#goog-gt-tt,
iframe.skiptranslate,
.goog-te-banner-frame,
.goog-te-spinner-pos {
	display: none !important;
	visibility: hidden !important;
}

body {
	top: 0 !important;
}

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	color: var(--green-800);
	cursor: pointer;
	padding: 8px;
}

.nav-toggle__close {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
	display: inline-flex;
}

.nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(36, 48, 25, 0.5);
	z-index: 80;
}

/* -------------------------------------------------- hero */
.hero {
	position: relative;
	min-height: 560px;
	overflow: hidden;
}

.hero__slide {
	position: relative;
	min-height: 560px;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
}

.hero--slider .hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.8s ease;
	pointer-events: none;
}

.hero--slider .hero__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	position: relative;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(36, 48, 25, 0.72), rgba(36, 48, 25, 0.25));
}

[dir="rtl"] .hero__overlay {
	background: linear-gradient(-90deg, rgba(36, 48, 25, 0.72), rgba(36, 48, 25, 0.25));
}

.hero__frame {
	position: relative;
	max-width: 540px;
	padding: 44px 42px;
	border: 2px solid rgba(255, 255, 255, 0.55);
	border-radius: 30px 6px 30px 6px;
	background: rgba(36, 48, 25, 0.35);
	backdrop-filter: blur(2px);
	color: #fff;
	text-align: center;
}

.hero__title {
	color: #fff;
	font-size: clamp(1.8rem, 4.5vw, 2.8rem);
	font-weight: 800;
	margin-bottom: 12px;
}

.hero__subtitle {
	color: #eef1e6;
	font-size: 1rem;
	margin-bottom: 24px;
}

.hero__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.hero__dots {
	position: absolute;
	bottom: 22px;
	inset-inline: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 5;
}

.hero__dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: transparent;
	cursor: pointer;
	padding: 0;
}

.hero__dot.is-active {
	background: #fff;
}

/* -------------------------------------------------- sections */
.section {
	padding-block: 70px;
}

.section--cream {
	background: var(--cream);
}

.section--dark {
	background: var(--green-800);
	color: #e9ecdf;
}

.section__cta {
	text-align: center;
	margin-top: 40px;
}

.section-heading {
	text-align: center;
	margin-bottom: 44px;
}

.section-heading__title {
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	font-weight: 800;
	margin-bottom: 10px;
}

.section-heading__ornament {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--gold);
}

.section-heading__ornament .line {
	display: inline-block;
	width: 52px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	opacity: 0.7;
}

.section-heading__ornament--light {
	color: var(--gold);
	margin-bottom: 18px;
}

.section-heading__subtitle {
	color: var(--muted);
	max-width: 640px;
	margin-inline: auto;
}

/* -------------------------------------------------- home about */
.home-about {
	position: relative;
}

.home-about__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 48px;
	align-items: center;
}

.home-about__title {
	color: #fff;
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	margin-bottom: 8px;
}

.home-about__text {
	color: #dfe5d2;
	margin-block: 18px 26px;
}

.home-about__media img {
	border-radius: var(--radius);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
	border: 6px solid rgba(255, 255, 255, 0.12);
}

/* -------------------------------------------------- why us */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.feature-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 30px 22px;
	text-align: center;
	transition: all 0.25s ease;
}

.feature-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
	border-color: var(--green-100);
}

.feature-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--green-100);
	color: var(--green-700);
	margin-bottom: 16px;
}

.feature-card__title {
	font-size: 1.05rem;
	margin-bottom: 8px;
}

.feature-card__text {
	font-size: 0.88rem;
	color: var(--muted);
	margin: 0;
}

/* -------------------------------------------------- carousel & product cards */
.carousel {
	position: relative;
}

.carousel__track {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-block: 8px 18px;
	scrollbar-width: thin;
	scrollbar-color: var(--green-500) transparent;
}

.carousel__item {
	flex: 0 0 calc((100% - 66px) / 4);
	scroll-snap-align: start;
}

.carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	color: var(--green-700);
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.carousel__nav:hover {
	background: var(--green-700);
	color: #fff;
}

.carousel__nav--prev {
	inset-inline-start: -12px;
}

.carousel__nav--next {
	inset-inline-end: -12px;
}

.product-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	text-align: center;
	transition: all 0.25s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.product-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.product-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--cream);
	color: var(--muted);
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.product-card:hover .product-card__media img {
	transform: scale(1.06);
}

.product-card__body {
	padding: 18px 16px 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	flex-grow: 1;
	justify-content: space-between;
}

.product-card__title {
	font-size: 1rem;
	margin: 0;
}

.products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

/* -------------------------------------------------- process */
.process-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	position: relative;
}

.process-step {
	text-align: center;
	flex: 1 1 110px;
	position: relative;
	min-width: 105px;
}

.process-step__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 78px;
	border-radius: 50%;
	border: 2px dashed var(--green-500);
	background: #fff;
	color: var(--green-700);
	transition: all 0.25s ease;
	position: relative;
}

.process-step:hover .process-step__icon {
	background: var(--green-700);
	color: #fff;
	border-style: solid;
}

.process-step__num {
	position: absolute;
	top: -4px;
	inset-inline-end: calc(50% - 46px);
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--gold);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.process-step__title {
	font-size: 0.92rem;
	margin-top: 12px;
	font-weight: 600;
}

/* -------------------------------------------------- markets */
.markets-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 44px;
	align-items: center;
}

.markets-map img {
	width: 100%;
}

.markets-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 24px;
}

.markets-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 8px 14px;
	font-weight: 600;
	font-size: 0.92rem;
}

.markets-list__flag {
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* -------------------------------------------------- certificates */
.certs-strip {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	gap: 56px;
	flex-wrap: wrap;
}

.cert-item {
	text-align: center;
	max-width: 170px;
}

.cert-item img {
	max-height: 110px;
	width: auto;
	margin-inline: auto;
	filter: grayscale(35%);
	transition: filter 0.25s ease;
}

.cert-item:hover img {
	filter: grayscale(0);
}

.cert-item__name {
	display: block;
	margin-top: 12px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--muted);
}

/* -------------------------------------------------- gallery */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.gallery-tile {
	position: relative;
	display: block;
	border-radius: var(--radius-sm);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.gallery-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gallery-tile:hover img {
	transform: scale(1.07);
}

.gallery-tile__zoom {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(36, 48, 25, 0.45);
	color: #fff;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.gallery-tile:hover .gallery-tile__zoom {
	opacity: 1;
}

.gallery-tile__caption {
	position: absolute;
	bottom: 0;
	inset-inline: 0;
	padding: 6px 12px;
	background: linear-gradient(transparent, rgba(36, 48, 25, 0.8));
	color: #fff;
	font-size: 0.82rem;
}

.gallery-tile.is-hidden {
	display: none;
}

/* -------------------------------------------------- articles */
.articles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.article-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: all 0.25s ease;
	display: flex;
	flex-direction: column;
}

.article-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.article-card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--cream);
	color: var(--muted);
	display: flex;
	align-items: center;
	justify-content: center;
}

.article-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.article-card:hover .article-card__media img {
	transform: scale(1.06);
}

.article-card__date {
	position: absolute;
	bottom: 10px;
	inset-inline-start: 10px;
	background: var(--green-800);
	color: #fff;
	font-size: 0.75rem;
	padding: 3px 10px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.article-card__body {
	padding: 18px 18px 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-grow: 1;
}

.article-card__title {
	font-size: 1rem;
	margin: 0;
}

.article-card__excerpt {
	font-size: 0.87rem;
	color: var(--muted);
	margin: 0;
	flex-grow: 1;
}

.article-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
}

[dir="rtl"] .article-card__more .icon {
	transform: scaleX(-1);
}

.back-to-top .icon {
	transform: rotate(-90deg);
}

/* -------------------------------------------------- footer */
.site-footer {
	background: var(--green-900);
	color: #ccd3bd;
	margin-top: 0;
}

.site-footer a {
	color: #ccd3bd;
}

.site-footer a:hover {
	color: var(--gold);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.2fr;
	gap: 44px;
	padding-block: 56px 40px;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	color: var(--gold);
}

.footer-brand img.custom-logo,
.footer-brand__logo {
	max-height: 60px;
	width: auto;
	filter: brightness(0) invert(1);
	opacity: 0.9;
}

.footer-brand__name {
	font-size: 1.2rem;
	font-weight: 800;
	color: #fff;
}

.footer-col__title {
	color: #fff;
	font-size: 1.02rem;
	margin-bottom: 18px;
	padding-bottom: 10px;
	position: relative;
}

.footer-col__title::after {
	content: "";
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	width: 42px;
	height: 2px;
	background: var(--gold);
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.footer-contact .icon {
	color: var(--gold);
	margin-top: 5px;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-block: 16px;
	font-size: 0.82rem;
	text-align: center;
}

.site-footer__bottom p {
	margin: 0;
}

/* -------------------------------------------------- page hero & breadcrumbs */
.page-hero {
	background: linear-gradient(rgba(36, 48, 25, 0.78), rgba(36, 48, 25, 0.78)), var(--green-800);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding-block: 54px;
	text-align: center;
}

.page-hero__title {
	color: #fff;
	font-size: clamp(1.5rem, 3.4vw, 2.1rem);
	margin-bottom: 8px;
}

.breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	font-size: 0.84rem;
	color: #cfd6c0;
}

.breadcrumbs a {
	color: #fff;
}

.breadcrumbs a:hover {
	color: var(--gold);
}

.breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-inline: 7px;
	opacity: 0.6;
}

/* -------------------------------------------------- filters */
.filter-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 36px;
}

.filter-nav__item {
	border: 1px solid var(--line);
	background: #fff;
	color: var(--text);
	border-radius: 999px;
	padding: 6px 20px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.filter-nav__item:hover,
.filter-nav__item.is-active {
	background: var(--green-700);
	border-color: var(--green-700);
	color: #fff;
}

/* -------------------------------------------------- single entry */
.entry__meta {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	color: var(--muted);
	font-size: 0.88rem;
	margin-bottom: 22px;
}

.entry__meta .icon {
	color: var(--green-600);
	margin-inline-end: 4px;
}

.entry__thumbnail img {
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	margin-bottom: 26px;
}

.entry__content {
	font-size: 1rem;
}

.entry__content img {
	border-radius: var(--radius-sm);
}

.entry__content h2,
.entry__content h3 {
	margin-top: 1.6em;
}

.entry__content blockquote {
	border-inline-start: 4px solid var(--gold);
	background: var(--cream);
	margin-inline: 0;
	padding: 18px 24px;
	border-radius: var(--radius-sm);
}

.entry__tags {
	margin-top: 28px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.entry__tags a {
	background: var(--cream);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 3px 14px;
	font-size: 0.8rem;
}

.single-layout {
	max-width: 860px;
}

.related-posts,
.related-products {
	margin-top: 64px;
}

/* -------------------------------------------------- product single */
.product-single {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 44px;
	align-items: start;
}

.product-single__main img {
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	width: 100%;
}

.product-single__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-top: 12px;
}

.product-single__thumbs img {
	border-radius: var(--radius-sm);
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

.product-single__heading {
	font-size: 1.15rem;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--green-100);
	margin-bottom: 16px;
}

.specs-table {
	margin-bottom: 28px;
}

.specs-table th,
.specs-table td {
	padding: 10px 16px;
	border: 1px solid var(--line);
	text-align: start;
	font-size: 0.92rem;
}

.specs-table th {
	background: var(--cream);
	width: 40%;
	font-weight: 600;
}

/* -------------------------------------------------- about layout */
.about-layout {
	display: grid;
	gap: 34px;
}

.about-layout__media img {
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	margin-inline: auto;
}

/* -------------------------------------------------- contact */
.contact-intro {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 40px;
	color: var(--muted);
}

.contact-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 48px;
}

.contact-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-align: center;
	padding: 26px 18px;
	transition: all 0.25s ease;
}

.contact-card:hover {
	box-shadow: var(--shadow);
	transform: translateY(-4px);
}

.contact-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--green-100);
	color: var(--green-700);
	margin-bottom: 12px;
}

.contact-card h3 {
	font-size: 0.98rem;
	margin-bottom: 6px;
}

.contact-card p {
	margin: 0;
	font-size: 0.88rem;
	color: var(--muted);
}

.contact-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
	align-items: stretch;
}

.contact-form-wrap {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 32px;
	box-shadow: var(--shadow-sm);
}

.contact-form__title {
	font-size: 1.2rem;
	margin-bottom: 20px;
}

.contact-form label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 6px;
}

.contact-form .req {
	color: #c0392b;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 10px 14px;
	background: var(--cream);
	transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--green-500);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(108, 130, 83, 0.15);
}

.form-hp {
	position: absolute;
	inset-inline-start: -9999px;
}

.form-notice {
	border-radius: var(--radius-sm);
	padding: 12px 18px;
	margin-bottom: 20px;
	font-size: 0.92rem;
}

.form-notice--success {
	background: #e8f3e2;
	color: #2e5d1e;
	border: 1px solid #bcd9ac;
}

.form-notice--error {
	background: #fbe9e7;
	color: #8e2c1e;
	border: 1px solid #efc4bc;
}

.contact-map {
	border-radius: var(--radius);
	overflow: hidden;
	min-height: 420px;
	box-shadow: var(--shadow-sm);
}

.contact-map iframe {
	width: 100%;
	height: 100%;
	min-height: 420px;
	border: 0;
	display: block;
}

/* -------------------------------------------------- search & 404 */
.search-form {
	display: flex;
	max-width: 420px;
	border: 1px solid var(--line);
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}

.search-form__field {
	flex-grow: 1;
	border: 0;
	padding: 10px 20px;
	background: transparent;
}

.search-form__field:focus {
	outline: none;
}

.search-form__submit {
	border: 0;
	background: var(--green-700);
	color: #fff;
	padding-inline: 18px;
	cursor: pointer;
}

.error-404 {
	text-align: center;
}

.error-404__icon {
	color: var(--green-500);
	display: inline-block;
	margin-bottom: 8px;
}

.error-404__code {
	font-size: 4.6rem;
	margin: 0 0 8px;
	color: var(--green-700);
}

.error-404__actions {
	margin-block: 22px;
}

.error-404__search .search-form {
	margin-inline: auto;
}

.no-results {
	text-align: center;
	color: var(--muted);
	padding-block: 40px;
}

/* -------------------------------------------------- pagination */
.pagination {
	margin-top: 44px;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding-inline: 8px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: #fff;
	font-weight: 600;
	font-size: 0.9rem;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--green-700);
	border-color: var(--green-700);
	color: #fff;
}

/* -------------------------------------------------- comments */
.comments-area {
	margin-top: 60px;
	border-top: 1px solid var(--line);
	padding-top: 36px;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list .comment-body {
	background: var(--cream);
	border-radius: var(--radius-sm);
	padding: 18px 22px;
	margin-bottom: 18px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 10px 14px;
}

.comment-form .submit {
	background: var(--green-700);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 10px 30px;
	font-weight: 600;
	cursor: pointer;
}

/* -------------------------------------------------- back to top */
.back-to-top {
	position: fixed;
	bottom: 26px;
	inset-inline-end: 26px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0;
	background: var(--green-700);
	color: #fff;
	cursor: pointer;
	box-shadow: var(--shadow);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 70;
	transition: all 0.25s ease;
}

.back-to-top:hover {
	background: var(--green-900);
}

/* -------------------------------------------------- lightbox */
.emad-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(20, 26, 14, 0.92);
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 24px;
}

.emad-lightbox img {
	max-width: min(92vw, 1100px);
	max-height: 82vh;
	border-radius: var(--radius-sm);
	object-fit: contain;
}

.emad-lightbox__caption {
	color: #dfe5d2;
	margin-top: 14px;
	font-size: 0.92rem;
}

.emad-lightbox__close,
.emad-lightbox__nav {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	border: 0;
	color: #fff;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.emad-lightbox__close:hover,
.emad-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.28);
}

.emad-lightbox__close {
	top: 20px;
	inset-inline-end: 20px;
}

.emad-lightbox__nav--prev {
	inset-inline-start: 18px;
	top: 50%;
	transform: translateY(-50%);
}

.emad-lightbox__nav--next {
	inset-inline-end: 18px;
	top: 50%;
	transform: translateY(-50%);
}

/* -------------------------------------------------- wp core alignment */
.alignwide {
	margin-inline: -40px;
}

.alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 0.82rem;
	color: var(--muted);
	text-align: center;
}

/* -------------------------------------------------- responsive */
@media (max-width: 1100px) {
	.carousel__item {
		flex-basis: calc((100% - 44px) / 3);
	}

	.products-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.gallery-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 920px) {
	/*
	 * The drawer slides inside a fixed full-viewport layer with
	 * overflow hidden, so the off-canvas panel can never create
	 * horizontal overflow on mobile.
	 */
	.main-nav {
		position: fixed;
		inset: 0;
		z-index: 100;
		visibility: hidden;
		pointer-events: none;
		overflow: hidden;
		background: transparent;
	}

	.main-nav > ul {
		position: absolute;
		top: 0;
		bottom: 0;
		inset-inline-start: 0;
		width: min(320px, 84vw);
		background: #fff;
		box-shadow: var(--shadow);
		overflow-y: auto;
		padding: 68px 0 24px;
		margin: 0;
		transform: translateX(calc(var(--drawer-dir, -1) * 105%));
		transition: transform 0.3s ease;
	}

	[dir="rtl"] .main-nav {
		--drawer-dir: 1;
	}

	.main-nav.is-open {
		visibility: visible;
	}

	.main-nav.is-open > ul {
		transform: translateX(0);
		pointer-events: auto;
	}

	.main-nav ul {
		flex-direction: column;
		gap: 0;
	}

	.main-nav a {
		padding: 13px 24px;
		border-bottom: 1px solid var(--line);
	}

	.main-nav > ul > li > a:hover,
	.main-nav > ul > li.current-menu-item > a {
		box-shadow: none;
		background: var(--cream);
	}

	.main-nav ul ul {
		position: static;
		display: flex;
		box-shadow: none;
		padding: 0;
		background: var(--cream);
	}

	.nav-toggle {
		display: inline-flex;
		z-index: 110;
		position: relative;
	}

	.nav-overlay[hidden] {
		display: none;
	}

	.masthead__inner {
		min-height: 64px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 36px;
		padding-block: 44px 36px;
	}

	.footer-col--about {
		grid-column: 1 / -1;
	}

	.home-about__grid,
	.markets-grid,
	.product-single,
	.contact-layout {
		grid-template-columns: 1fr;
	}

	.home-about__media {
		order: -1;
	}

	.articles-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.contact-cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.carousel__item {
		flex-basis: calc((100% - 22px) / 2);
	}

	.products-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.section {
		padding-block: 52px;
	}

	.hero,
	.hero__slide {
		min-height: 470px;
	}
}

@media (max-width: 580px) {
	body {
		font-size: 15px;
	}

	.topbar {
		font-size: 0.78rem;
	}

	.topbar__inner {
		flex-direction: column;
		align-items: center;
		gap: 6px;
		padding-block: 8px;
	}

	.topbar__contact {
		justify-content: center;
		gap: 8px 16px;
	}

	.topbar__meta {
		justify-content: center;
		flex-wrap: wrap;
		gap: 8px 12px;
	}

	.topbar .social-links {
		display: none;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 30px;
		padding-block: 40px 32px;
	}

	.hero__frame {
		padding: 30px 22px;
		margin-inline: auto;
	}

	.hero,
	.hero__slide {
		min-height: 430px;
	}

	.feature-grid,
	.articles-grid,
	.products-grid,
	.contact-cards {
		grid-template-columns: 1fr;
	}

	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.markets-list {
		grid-template-columns: 1fr;
	}

	.carousel__item {
		flex-basis: 86%;
	}

	.carousel__nav {
		display: none;
	}

	.certs-strip {
		gap: 30px;
	}

	.section {
		padding-block: 42px;
	}

	.contact-form-wrap {
		padding: 22px;
	}

	.process-steps {
		justify-content: center;
	}

	.process-step {
		flex-basis: calc(50% - 18px);
	}
}
