/*
Theme Name: Darb Meshaa
Theme URI: https://darbmeshaa.com
Author: Darb Meshaa Consulting & Training
Description: Bilingual (English / العربية) theme for Darb Meshaa Consulting & Training — agriculture, irrigation, greenhouses, consulting and training. Built on the Darb Meshaa brand guidelines v1.0 (Basalt, Olive, Wheat; Alexandria + IBM Plex). Works with Polylang for English (primary) and Arabic (RTL).
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
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: darb-meshaa
Tags: rtl-language-support, translation-ready, custom-logo, custom-menu, one-column, two-columns, business
*/

/* =========================================================================
   1. Tokens (from the brand guidelines §06–07)
   ========================================================================= */
:root {
	--basalt: #1E1C1A;
	--basalt-2: #2A2724;
	--olive: #4A6B34;
	--olive-dark: #3B5729;
	--olive-soft: #E3E9D9;
	--wheat: #D4A13A;
	--wheat-dark: #B9872A;
	--clay: #B0532E;
	--stone: #E4DCCD;
	--sand: #F4EFE6;
	--paper: #FBF8F2;
	--ink: #1E1C1A;
	--ink-2: #5A544C;
	--ink-3: #857D72;
	--line: #DDD3C2;

	--f-head: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--f-body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--sec: clamp(64px, 9vw, 120px);
	--r: 14px;
	--r-arch: 999px 999px var(--r) var(--r);
	--shadow: 0 1px 2px rgba(30, 28, 26, .06), 0 12px 32px -12px rgba(30, 28, 26, .18);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 76px;
}

html[lang^="ar"], [dir="rtl"] {
	--f-body: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
	--f-head: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

/* =========================================================================
   2. Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--sand);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
[dir="rtl"] body { line-height: 1.85; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--olive-dark); }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: inherit; letter-spacing: -.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--wheat); color: var(--basalt); }

.screen-reader-text, .dm-hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.dm-skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--wheat); color: var(--basalt); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.dm-skip:focus { top: 12px; }

.dm-container { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.dm-section { padding-block: var(--sec); }
.dm-section--tight { padding-block: clamp(40px, 6vw, 72px); }
.dm-section--stone { background: var(--stone); }
.dm-section--basalt { background: var(--basalt); color: var(--sand); }
.dm-section--olive { background: var(--olive); color: var(--sand); }
.dm-center { text-align: center; }
.dm-muted { color: var(--ink-2); }

.dm-icon { width: 24px; height: 24px; flex: none; }
[dir="rtl"] .dm-flip { transform: scaleX(-1); }

/* The three inscription lines */
.dm-lines { display: inline-flex; flex-direction: column; gap: 3px; width: 22px; flex: none; }
.dm-lines i { display: block; height: 3px; border-radius: 2px; background: var(--olive); }
.dm-lines i:nth-child(2) { width: 75%; }
.dm-lines i:nth-child(3) { width: 50%; }
.dm-lines--wheat i { background: var(--wheat); }

/* Eyebrow & section heads */
.dm-eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--f-head); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--olive); margin-bottom: 18px;
}
[dir="rtl"] .dm-eyebrow { letter-spacing: 0; font-size: 15px; }
.dm-eyebrow--wheat, .dm-section--basalt .dm-eyebrow, .dm-section--olive .dm-eyebrow { color: var(--wheat); }
.dm-section--basalt .dm-lines i, .dm-section--olive .dm-lines i { background: var(--wheat); }

.dm-shead { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.dm-shead--center { text-align: center; margin-inline: auto; }
.dm-shead--center .dm-eyebrow { justify-content: center; }
.dm-shead__title { font-size: clamp(30px, 4vw, 46px); }
.dm-shead__text { font-size: 19px; color: var(--ink-2); margin: 0; }
.dm-section--basalt .dm-shead__text, .dm-section--olive .dm-shead__text { color: rgba(244, 239, 230, .78); }

.dm-intro { font-size: clamp(19px, 2vw, 22px); line-height: 1.65; color: var(--ink-2); max-width: 820px; margin-bottom: clamp(32px, 5vw, 56px); }

.dm-prose { font-size: 18px; }
.dm-prose--lead p:first-child { font-size: 21px; color: var(--ink); }
.dm-prose h2 { font-size: 26px; margin-top: 1.4em; }
.dm-prose h2:first-child { margin-top: 0; }
.dm-prose img { border-radius: var(--r); }
.dm-prose ul, .dm-prose ol { padding-inline-start: 1.25em; margin-bottom: 1em; }

/* =========================================================================
   3. Buttons & links
   ========================================================================= */
.dm-btn {
	display: inline-flex; white-space: nowrap; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 1.5px solid transparent;
	font-family: var(--f-head); font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.dm-btn:hover { transform: translateY(-1px); }
.dm-btn .dm-icon { width: 20px; height: 20px; }
.dm-btn--sm { min-height: 42px; padding: 8px 18px; font-size: 14.5px; }
.dm-btn--wheat { background: var(--wheat); color: var(--basalt); }
.dm-btn--wheat:hover { background: #E2B252; color: var(--basalt); }
.dm-btn--olive { background: var(--olive); color: var(--sand); }
.dm-btn--olive:hover { background: var(--olive-dark); color: var(--sand); }
.dm-btn--ghost-light { border-color: rgba(244, 239, 230, .45); color: var(--sand); }
.dm-btn--ghost-light:hover { border-color: var(--sand); background: rgba(244, 239, 230, .08); color: var(--sand); }
.dm-btn--wa { width: 100%; background: var(--basalt); color: var(--sand); margin-top: 8px; }
.dm-btn--wa:hover { background: var(--olive); color: var(--sand); }

.dm-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 600; text-decoration: none; color: var(--olive); }
.dm-link .dm-icon { width: 20px; transition: transform .2s var(--ease); }
.dm-link:hover .dm-icon { transform: translateX(4px); }
[dir="rtl"] .dm-link:hover .dm-icon { transform: scaleX(-1) translateX(4px); }

/* =========================================================================
   4. Header & navigation
   ========================================================================= */
.dm-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 239, 230, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.dm-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(30, 28, 26, .5); }
.dm-header--over { background: rgba(30, 28, 26, .96); color: var(--sand); }
.dm-header--over.is-scrolled { border-bottom-color: rgba(244, 239, 230, .08); }
.admin-bar .dm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dm-header { top: 46px; } }

.dm-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.dm-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.dm-logo .dm-symbol { width: 30px; height: 45px; }
.dm-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.dm-logo__name { font-family: var(--f-head); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.lang-en .dm-logo__name { text-transform: uppercase; letter-spacing: .14em; font-size: 17px; }
.dm-logo__sub { font-family: var(--f-head); font-size: 11.5px; color: var(--olive); margin-top: 4px; letter-spacing: .02em; }
.lang-en .dm-logo__sub { text-transform: uppercase; letter-spacing: .2em; font-size: 9.5px; }
.dm-logo--light { color: var(--sand); }
.dm-logo--light .dm-logo__sub { color: var(--wheat); }
.custom-logo { max-height: 52px; width: auto; }

.dm-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 22px; }
.dm-nav__list { list-style: none; display: flex; gap: 4px; }
.dm-nav__list a {
	display: block; white-space: nowrap; padding: 8px 11px; border-radius: 999px; font-family: var(--f-head); font-size: 15px; font-weight: 500;
	color: inherit; text-decoration: none; opacity: .82; transition: opacity .15s, background-color .15s;
}
.dm-nav__list a:hover { opacity: 1; background: rgba(74, 107, 52, .1); }
.dm-header--over .dm-nav__list a:hover { background: rgba(244, 239, 230, .08); }
.dm-nav__list .current-menu-item > a { opacity: 1; color: var(--olive); }
.dm-header--over .dm-nav__list .current-menu-item > a { color: var(--wheat); }
.dm-nav__extra { display: flex; align-items: center; gap: 12px; }
.dm-lang { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-head); font-size: 14.5px; font-weight: 500; color: inherit; text-decoration: none; padding: 8px 10px; border-radius: 999px; }
.dm-lang:hover { color: inherit; background: rgba(74, 107, 52, .1); }
.dm-lang .dm-icon { width: 18px; height: 18px; }
.dm-lang span[lang="ar"], .dm-lang[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }

.dm-burger { display: none; margin-inline-start: auto; width: 46px; height: 46px; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center; }
.dm-burger .dm-icon { width: 28px; height: 28px; }
.dm-burger__close { display: none; }

@media (max-width: 1320px) {
	.dm-nav__list a { padding: 8px 7px; font-size: 14.5px; }
	.dm-nav { gap: 14px; }
}
@media (max-width: 1180px) {
	/* backdrop-filter would trap the fixed menu panel inside the header */
	.dm-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--sand); }
	.dm-header--over, .dm-nav-open .dm-header { background: var(--basalt); color: var(--sand); }
	.dm-nav-open .dm-header .dm-logo { color: var(--sand); }
	.dm-nav-open .dm-header .dm-symbol g path:first-child { fill: var(--sand); }
	.dm-burger { display: inline-flex; }
	.dm-nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; margin: 0;
		flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
		padding: 24px var(--gutter) 40px; background: var(--basalt); color: var(--sand); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
	}
	.admin-bar .dm-nav { top: calc(var(--header-h) + 46px); }
	.dm-nav-open .dm-nav { opacity: 1; visibility: visible; transform: none; }
	.dm-nav-open { overflow: hidden; }
	.dm-nav-open .dm-burger__open { display: none; }
	.dm-nav-open .dm-burger__close { display: block; }
	.dm-nav__list { flex-direction: column; gap: 0; }
	.dm-nav__list a { font-size: 22px; padding: 14px 0; border-bottom: 1px solid rgba(244, 239, 230, .1); border-radius: 0; opacity: 1; }
	.dm-nav__list a:hover { background: none; }
	.dm-nav__list .current-menu-item > a { color: var(--wheat); }
	.dm-nav__extra { flex-direction: column; align-items: stretch; }
	.dm-nav__extra .dm-btn { min-height: 52px; font-size: 16px; }
	.dm-lang { justify-content: center; border: 1px solid rgba(244, 239, 230, .2); padding: 12px; }
}

/* =========================================================================
   5. Home — hero
   ========================================================================= */
.dm-hero { position: relative; background: var(--basalt); color: var(--sand); padding-top: clamp(40px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.dm-hero__pattern {
	position: absolute; inset: 0; z-index: -1; opacity: .5;
	background:
		radial-gradient(60% 70% at 85% 30%, rgba(74, 107, 52, .35), transparent 70%),
		repeating-linear-gradient(180deg, transparent 0 46px, rgba(244, 239, 230, .035) 46px 50px);
}
[dir="rtl"] .dm-hero__pattern { background: radial-gradient(60% 70% at 15% 30%, rgba(74, 107, 52, .35), transparent 70%), repeating-linear-gradient(180deg, transparent 0 46px, rgba(244, 239, 230, .035) 46px 50px); }
.dm-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: end; }
.dm-hero__copy { padding-bottom: clamp(32px, 6vw, 80px); }
.dm-hero__title { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 24px; }
[dir="rtl"] .dm-hero__title { line-height: 1.2; letter-spacing: 0; }
.dm-hero__text { font-size: clamp(17px, 1.6vw, 20px); color: rgba(244, 239, 230, .78); max-width: 560px; margin-bottom: 36px; }
.dm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dm-hero__stele { margin: 0; justify-self: center; width: min(100%, 440px); }

/* The stele frame: photo inside the logo's silhouette */
.dm-stele {
	position: relative; aspect-ratio: 64 / 92; border-radius: 999px 999px 0 0; overflow: hidden;
	background: var(--dm-photo) center / cover no-repeat, var(--olive);
}
.dm-stele::before, .dm-stele::after { content: ""; position: absolute; inset-block: 0; width: 50%; }
.dm-stele::before { left: 0; background: rgba(30, 28, 26, .48); mix-blend-mode: multiply; }
.dm-stele::after { right: 0; background: rgba(74, 107, 52, .55); mix-blend-mode: multiply; }
.dm-stele__sun { position: absolute; z-index: 2; top: 24%; left: 50%; width: 20%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--wheat); box-shadow: 0 0 0 10px rgba(212, 161, 58, .18), 0 0 60px 10px rgba(212, 161, 58, .35); }
.dm-stele__path { position: absolute; z-index: 2; inset: 0; background: var(--basalt); clip-path: polygon(50% 50%, 67.5% 100%, 32.5% 100%); }
.dm-stele__lines { position: absolute; z-index: 2; inset-inline: 0; bottom: 9.5%; display: flex; flex-direction: column; gap: 6.3%; height: 26%; }
.dm-stele__lines i { display: block; flex: 1; max-height: 18px; background: var(--basalt); }

.dm-stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(244, 239, 230, .12); }
.dm-stats li { padding: 28px 20px 34px; border-inline-start: 1px solid rgba(244, 239, 230, .12); }
.dm-stats li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.dm-stats strong { display: block; font-family: var(--f-head); font-size: clamp(28px, 3vw, 40px); font-weight: 600; color: var(--wheat); line-height: 1.1; }
.dm-stats span { font-size: 14.5px; color: rgba(244, 239, 230, .68); }

/* =========================================================================
   6. Home — services, why, process, story
   ========================================================================= */
.dm-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dm-service {
	position: relative; display: flex; flex-direction: column; padding: 34px 30px 30px; text-decoration: none; color: var(--ink);
	background: var(--paper); border: 1px solid var(--line); border-radius: 36px 36px var(--r) var(--r);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.dm-service:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.dm-service__icon { display: grid; place-items: center; width: 60px; height: 68px; margin-bottom: 26px; border-radius: 999px 999px 10px 10px; background: var(--olive-soft); color: var(--olive); transition: background-color .25s, color .25s; }
.dm-service__icon .dm-icon { width: 30px; height: 30px; }
.dm-service:hover .dm-service__icon { background: var(--olive); color: var(--sand); }
.dm-service__num { position: absolute; top: 30px; inset-inline-end: 30px; font-family: var(--f-head); font-size: 14px; color: var(--ink-3); }
.dm-service h3 { font-size: 22px; }
.dm-service p { color: var(--ink-2); font-size: 16px; flex: 1; }
.dm-service__more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 600; font-size: 15px; color: var(--olive); }
.dm-service__more .dm-icon { width: 18px; transition: transform .2s var(--ease); }
.dm-service:hover .dm-service__more .dm-icon { transform: translateX(4px); }
[dir="rtl"] .dm-service:hover .dm-service__more .dm-icon { transform: scaleX(-1) translateX(4px); }

.dm-why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.dm-arch-img { aspect-ratio: 4 / 5; border-radius: var(--r-arch); background-size: cover; background-position: center; background-color: var(--olive); }
.dm-why__media { position: relative; }
.dm-why__badge { position: absolute; inset-inline-end: -8%; bottom: 8%; display: flex; align-items: center; gap: 14px; max-width: 280px; padding: 18px 22px; border-radius: var(--r); background: var(--basalt); color: var(--sand); font-family: var(--f-head); font-weight: 600; font-size: 17px; line-height: 1.3; box-shadow: var(--shadow); }
.dm-why__badge .dm-symbol { width: 28px; height: 42px; flex: none; }
.dm-why__list { list-style: none; display: grid; gap: 22px; }
.dm-why__list li { display: flex; gap: 18px; align-items: flex-start; }
.dm-why__check { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--olive); color: var(--sand); flex: none; }
.dm-why__check .dm-icon { width: 20px; height: 20px; }
.dm-why__list h3 { font-size: 19px; margin-bottom: 4px; }
.dm-why__list p { margin: 0; color: var(--ink-2); font-size: 16px; }

.dm-process-wrap { position: relative; overflow: hidden; }
.dm-process { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; counter-reset: s; }
.dm-process::before { content: ""; position: absolute; top: 27px; inset-inline: 10%; border-top: 2px dashed rgba(212, 161, 58, .5); }
.dm-process__step { position: relative; text-align: center; }
.dm-process__dot { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; background: var(--basalt); border: 2px solid var(--wheat); color: var(--wheat); font-family: var(--f-head); font-weight: 700; font-size: 20px; }
.dm-process__step:last-child .dm-process__dot { background: var(--wheat); color: var(--basalt); }
.dm-process__step h3 { font-size: 19px; color: var(--sand); }
.dm-process__step p { font-size: 15.5px; color: rgba(244, 239, 230, .7); margin: 0; }

.dm-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.dm-story__media { position: relative; }
.dm-story__img { aspect-ratio: 5 / 4; border-radius: var(--r); background-size: cover; background-position: center; }
.dm-story__symbol { position: absolute; inset-inline-start: -28px; bottom: -28px; width: 110px; padding: 18px 22px; background: var(--sand); border-radius: 999px 999px var(--r) var(--r); box-shadow: var(--shadow); }
.dm-story__symbol .dm-symbol { width: 100%; height: auto; }

/* =========================================================================
   7. Inner pages
   ========================================================================= */
.dm-phero { position: relative; min-height: clamp(320px, 48vh, 480px); display: flex; align-items: flex-end; color: var(--sand); background: var(--basalt); isolation: isolate; overflow: hidden; }
.dm-phero__media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.02); }
.dm-phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(30, 28, 26, .92) 0%, rgba(30, 28, 26, .55) 55%, rgba(30, 28, 26, .35) 100%); }
.dm-phero__inner { padding-block: 120px 56px; }
.dm-phero__title { font-size: clamp(36px, 5.4vw, 68px); max-width: 900px; margin-bottom: 22px; }
.dm-phero .dm-lines { width: 34px; gap: 4px; }
.dm-phero .dm-lines i { height: 4px; }
.dm-phero--plain { min-height: 0; }
.dm-phero--plain .dm-phero__inner { padding-block: 72px 48px; }
.dm-crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--f-head); font-size: 14px; color: rgba(244, 239, 230, .7); margin-bottom: 14px; }
.dm-crumbs a { color: var(--wheat); text-decoration: none; }
.dm-crumbs a:hover { color: var(--sand); }

.dm-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }

/* About */
.dm-vm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dm-vm__card { padding: clamp(32px, 4vw, 52px); border-radius: 40px 40px var(--r) var(--r); background: var(--paper); }
.dm-vm__card h2 { font-size: 28px; }
.dm-vm__card p { font-size: 19px; margin: 0; color: var(--ink-2); }
.dm-vm__card--olive { background: var(--olive); color: var(--sand); }
.dm-vm__card--olive p { color: rgba(244, 239, 230, .85); }
.dm-vm__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--olive-soft); color: var(--olive); margin-bottom: 24px; }
.dm-vm__card--olive .dm-vm__icon { background: rgba(244, 239, 230, .14); color: var(--wheat); }

.dm-values { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.dm-values li { padding: 28px 22px; border-top: 3px solid var(--olive); background: var(--paper); border-radius: 0 0 var(--r) var(--r); }
.dm-values li:nth-child(odd) { border-top-color: var(--basalt); }
.dm-values li:last-child { border-top-color: var(--wheat); }
.dm-values__n { font-family: var(--f-head); font-size: 14px; color: var(--ink-3); }
.dm-values h3 { font-size: 20px; margin: 10px 0 8px; }
.dm-values p { font-size: 15.5px; color: var(--ink-2); margin: 0; }

.dm-name { display: grid; grid-template-columns: .5fr 1.5fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.dm-name__symbol { display: grid; place-items: center; }
.dm-symbol--xl { width: min(220px, 100%); height: auto; }
.dm-name .dm-prose { color: rgba(244, 239, 230, .82); }

.dm-team { text-align: center; }
.dm-team__icon { display: inline-grid; place-items: center; width: 72px; height: 80px; margin-bottom: 24px; border-radius: 999px 999px 12px 12px; background: var(--olive); color: var(--sand); }
.dm-team__icon .dm-icon { width: 34px; height: 34px; }
.dm-team .dm-shead { margin-bottom: 0; }

/* Agriculture */
.dm-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.dm-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--f-head); font-weight: 500; font-size: 15px; }
.dm-chips a:hover { border-color: var(--olive); color: var(--olive); }
.dm-chips .dm-icon { width: 20px; height: 20px; color: var(--olive); }
.dm-feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.dm-feature--rev .dm-feature__media { order: 2; }
.dm-feature__media { position: relative; max-width: 480px; width: 100%; justify-self: center; }
.dm-feature__badge { position: absolute; bottom: 24px; inset-inline-end: -16px; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--wheat); color: var(--basalt); box-shadow: var(--shadow); }
.dm-feature__badge .dm-icon { width: 36px; height: 36px; }
.dm-feature__copy h2 { font-size: clamp(30px, 3.6vw, 42px); }
.dm-feature__lead { font-size: 19px; color: var(--ink-2); margin-bottom: 26px; }
.dm-checklist { list-style: none; display: grid; gap: 12px; }
.dm-checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.dm-checklist .dm-icon { width: 22px; height: 22px; padding: 3px; margin-top: 3px; border-radius: 50%; background: var(--olive); color: var(--sand); stroke-width: 2.5; }
.dm-checklist--compact li { font-size: 16px; }

/* Consulting */
.dm-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dm-card { padding: 34px 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 36px 36px var(--r) var(--r); }
.dm-card h2 { font-size: 23px; margin-bottom: 20px; }
.dm-card__icon { display: grid; place-items: center; width: 60px; height: 68px; margin-bottom: 24px; border-radius: 999px 999px 10px 10px; background: var(--basalt); color: var(--wheat); }
.dm-card__icon .dm-icon { width: 30px; height: 30px; }
.dm-rnd { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; max-width: 980px; }
.dm-rnd h2 { font-size: clamp(28px, 3.4vw, 40px); }
.dm-rnd p { font-size: 19px; color: rgba(244, 239, 230, .85); }
.dm-rnd__icon { display: grid; place-items: center; width: 88px; height: 100px; border-radius: 999px 999px 14px 14px; background: rgba(244, 239, 230, .12); color: var(--wheat); }
.dm-rnd__icon .dm-icon { width: 42px; height: 42px; }
.dm-rnd--light p { color: var(--ink-2); margin-bottom: 26px; }
.dm-rnd--light .dm-rnd__icon { background: var(--olive); color: var(--sand); }

/* Training */
.dm-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.dm-tablecard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dm-tablecard h2 { display: flex; align-items: center; gap: 14px; margin: 0; padding: 24px 26px; font-size: 21px; background: var(--basalt); color: var(--sand); }
.dm-tablecard:nth-child(2) h2 { background: var(--olive); }
.dm-tablecard__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(244, 239, 230, .12); color: var(--wheat); flex: none; }
.dm-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.dm-table th { text-align: start; padding: 14px 26px; font-family: var(--f-head); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--stone); }
[dir="rtl"] .dm-table th { letter-spacing: 0; font-size: 14px; }
.dm-table td { padding: 16px 26px; border-top: 1px solid var(--line); vertical-align: top; }
.dm-table td:first-child { font-weight: 600; }
.dm-table td:last-child { color: var(--ink-2); }

/* Projects */
.dm-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dm-project { background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.dm-project__media { position: relative; display: block; aspect-ratio: 10 / 7; background: var(--olive); overflow: hidden; }
.dm-project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.dm-project:hover .dm-project__media img { transform: scale(1.04); }
.dm-project__ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--basalt); }
.dm-project__ph .dm-symbol { width: 56px; height: 84px; }
.dm-tag { position: absolute; top: 14px; inset-inline-start: 14px; padding: 6px 12px; border-radius: 999px; background: var(--wheat); color: var(--basalt); font-family: var(--f-head); font-size: 13px; font-weight: 600; }
.dm-project__body { padding: 24px; }
.dm-project__body h3 { font-size: 20px; }
.dm-project__body h3 a { color: var(--ink); text-decoration: none; }
.dm-project__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--ink-3); }
.dm-project__meta span { display: inline-flex; align-items: center; gap: 6px; }
.dm-project__meta .dm-icon { width: 16px; height: 16px; }
.dm-project__body p { font-size: 15.5px; color: var(--ink-2); }
.dm-project__result { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--olive) !important; margin: 0; }
.dm-project__result .dm-icon { width: 20px; color: var(--wheat); }
.dm-pfacts dl { margin: 0 0 24px; padding: 28px; background: var(--paper); border-radius: var(--r); border: 1px solid var(--line); display: grid; gap: 18px; }
.dm-pfacts dt { font-family: var(--f-head); font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.dm-pfacts dd { margin: 2px 0 0; font-weight: 600; }

.dm-empty { max-width: 620px; margin-inline: auto; text-align: center; padding: clamp(40px, 6vw, 72px) var(--gutter); background: var(--paper); border-radius: 48px 48px var(--r) var(--r); border: 1px dashed var(--line); }
.dm-empty__symbol { width: 52px; height: 78px; margin: 0 auto 24px; }
.dm-empty h1, .dm-empty h2 { font-size: clamp(26px, 3vw, 34px); }
.dm-empty p { color: var(--ink-2); margin-bottom: 28px; }
.dm-404__code { font-family: var(--f-head); font-weight: 700; font-size: 15px; letter-spacing: .3em; color: var(--clay); margin-bottom: 8px; }

/* Contact */
.dm-contact { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.dm-contact h2 { font-size: clamp(26px, 3vw, 34px); }
.dm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 28px; }
.dm-field { display: flex; flex-direction: column; gap: 8px; }
.dm-field--full { grid-column: 1 / -1; }
.dm-field label { font-family: var(--f-head); font-size: 14.5px; font-weight: 500; }
.dm-field abbr { color: var(--clay); text-decoration: none; }
.dm-field input, .dm-field select, .dm-field textarea {
	width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
	font: inherit; font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.dm-field textarea { min-height: 140px; resize: vertical; }
.dm-field input:focus, .dm-field select:focus, .dm-field textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 4px rgba(74, 107, 52, .15); }
[dir="rtl"] .dm-field input[dir="ltr"] { text-align: right; }
.dm-alert { display: flex; gap: 10px; align-items: center; padding: 16px 18px; border-radius: 12px; margin-top: 20px; font-weight: 500; }
.dm-alert--ok { background: var(--olive-soft); color: var(--olive-dark); }
.dm-alert--err { background: #F6E1D8; color: #7E3A1F; }
.dm-contact__info { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; border-radius: 40px 40px var(--r) var(--r); background: var(--stone); }
.dm-info { list-style: none; display: grid; gap: 20px; margin: 20px 0 24px; }
.dm-info li { display: flex; gap: 14px; align-items: flex-start; }
.dm-info .dm-icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--paper); color: var(--olive); }
.dm-info span { display: block; font-size: 13.5px; color: var(--ink-3); }
.dm-info strong, .dm-info a { font-weight: 600; color: var(--ink); text-decoration: none; }
.dm-info a:hover { color: var(--olive); }
.dm-map { margin-top: 20px; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.dm-map iframe { width: 100%; height: 100%; border: 0; }

.dm-faq__list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.dm-faq details { background: var(--paper); border-radius: var(--r); padding: 0 24px; border: 1px solid transparent; transition: border-color .2s; }
.dm-faq details[open] { border-color: var(--line); }
.dm-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-family: var(--f-head); font-weight: 600; font-size: 17.5px; }
.dm-faq summary::-webkit-details-marker { display: none; }
.dm-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--olive-soft); color: var(--olive); font-size: 22px; font-weight: 400; transition: transform .2s; }
.dm-faq details[open] summary::after { transform: rotate(45deg); background: var(--olive); color: var(--sand); }
.dm-faq details p { padding-bottom: 22px; margin: 0; color: var(--ink-2); }

/* =========================================================================
   8. CTA, footer, WhatsApp
   ========================================================================= */
.dm-cta { position: relative; isolation: isolate; color: var(--sand); background: var(--basalt); overflow: hidden; }
.dm-cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--dm-bg) center / cover no-repeat; }
.dm-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30, 28, 26, .95) 30%, rgba(59, 87, 41, .78)); }
[dir="rtl"] .dm-cta::after { background: linear-gradient(270deg, rgba(30, 28, 26, .95) 30%, rgba(59, 87, 41, .78)); }
.dm-cta__inner { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.dm-cta__mark .dm-symbol { width: 56px; height: 84px; }
.dm-cta h2 { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 10px; }
.dm-cta p { margin: 0; color: rgba(244, 239, 230, .8); font-size: 18px; max-width: 560px; }
.dm-cta__actions { display: flex; flex-direction: column; gap: 12px; }

.dm-footer { background: var(--basalt); color: rgba(244, 239, 230, .75); font-size: 15.5px; }
.dm-tribar { display: flex; height: 5px; }
.dm-tribar i { display: block; }
.dm-tribar i:nth-child(1) { flex: 1; background: var(--wheat); }
.dm-tribar i:nth-child(2) { flex: 3; background: var(--olive); }
.dm-tribar i:nth-child(3) { flex: 6; background: var(--stone); }
.dm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-block: 72px 48px; }
.dm-footer__brand p { margin: 22px 0 0; max-width: 340px; }
.dm-footer__title { font-size: 15px; color: var(--wheat); margin-bottom: 18px; text-transform: uppercase; letter-spacing: .14em; }
[dir="rtl"] .dm-footer__title { letter-spacing: 0; font-size: 16px; }
.dm-footer .dm-nav__list { flex-direction: column; gap: 2px; }
.dm-footer .dm-nav__list a { padding: 5px 0; font-size: 15.5px; opacity: 1; color: rgba(244, 239, 230, .75); border-radius: 0; }
.dm-footer .dm-nav__list a:hover { background: none; color: var(--sand); }
.dm-contact-list { list-style: none; display: grid; gap: 12px; }
.dm-contact-list li { display: flex; gap: 12px; align-items: center; }
.dm-contact-list .dm-icon { width: 20px; height: 20px; color: var(--wheat); }
.dm-contact-list a { color: inherit; text-decoration: none; }
.dm-contact-list a:hover { color: var(--sand); }
.dm-social { list-style: none; display: flex; gap: 16px; margin-top: 20px; }
.dm-social a { color: var(--wheat); text-decoration: none; font-weight: 500; }
.dm-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 28px; border-top: 1px solid rgba(244, 239, 230, .1); font-size: 14px; color: rgba(244, 239, 230, .55); }
.dm-footer__bottom p { margin: 0; }
.dm-footer__tag { font-family: var(--f-head); color: var(--wheat); }

.dm-wa {
	position: fixed; z-index: 40; bottom: 20px; inset-inline-end: 20px; display: inline-flex; align-items: center; gap: 10px;
	min-height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--olive); color: var(--sand); text-decoration: none;
	font-family: var(--f-head); font-weight: 600; font-size: 14.5px; box-shadow: 0 10px 28px -8px rgba(30, 28, 26, .55);
	transition: background-color .2s, transform .2s;
}
[dir="rtl"] .dm-wa { padding: 0 16px 0 20px; }
.dm-wa:hover { background: var(--olive-dark); color: var(--sand); transform: translateY(-2px); }
.dm-wa .dm-icon { width: 26px; height: 26px; }

/* Reveal */
.dm-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.dm-reveal.is-in { opacity: 1; transform: none; }

/* WordPress core bits */
.alignwide { max-width: 1200px; }
.alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.wp-block-image figcaption, .wp-caption-text { font-size: 14px; color: var(--ink-3); }
.has-basalt-color { color: var(--basalt); } .has-basalt-background-color { background-color: var(--basalt); }
.has-olive-color { color: var(--olive); } .has-olive-background-color { background-color: var(--olive); }
.has-wheat-color { color: var(--wheat); } .has-wheat-background-color { background-color: var(--wheat); }
.has-clay-color { color: var(--clay); } .has-clay-background-color { background-color: var(--clay); }
.has-limestone-color { color: var(--stone); } .has-limestone-background-color { background-color: var(--stone); }
.has-sand-color { color: var(--sand); } .has-sand-background-color { background-color: var(--sand); }
.dm-pagination .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.dm-pagination .page-numbers { padding: 8px 14px; border-radius: 999px; background: var(--paper); text-decoration: none; }
.dm-pagination .current { background: var(--olive); color: var(--sand); }

/* =========================================================================
   9. Responsive
   ========================================================================= */
@media (max-width: 1080px) {
	.dm-values { grid-template-columns: repeat(3, 1fr); }
	.dm-process { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
	.dm-process::before { display: none; }
}
@media (max-width: 900px) {
	.dm-hero__grid, .dm-why, .dm-story, .dm-feature__grid, .dm-split, .dm-name, .dm-contact, .dm-tables { grid-template-columns: 1fr; }
	.dm-hero__stele { width: min(70%, 320px); order: -1; }
	.dm-hero__copy { padding-bottom: 40px; }
	.dm-services, .dm-cards3, .dm-projects { grid-template-columns: 1fr 1fr; }
	.dm-stats { grid-template-columns: 1fr 1fr; }
	.dm-stats li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
	.dm-stats li:nth-child(n+3) { border-top: 1px solid rgba(244, 239, 230, .12); }
	.dm-feature--rev .dm-feature__media { order: 0; }
	.dm-feature__media { max-width: 380px; }
	.dm-why__media { max-width: 420px; }
	.dm-why__badge { inset-inline-end: -4%; }
	.dm-vm { grid-template-columns: 1fr; }
	.dm-name__symbol .dm-symbol--xl { width: 120px; }
	.dm-cta__inner { grid-template-columns: 1fr; }
	.dm-cta__actions { flex-direction: row; flex-wrap: wrap; }
	.dm-footer__grid { grid-template-columns: 1fr 1fr; }
	.dm-footer__brand { grid-column: 1 / -1; }
	.dm-contact__info { position: static; }
	.dm-story__symbol { inset-inline-start: 16px; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.dm-services, .dm-cards3, .dm-projects, .dm-values, .dm-process { grid-template-columns: 1fr; }
	.dm-process { text-align: start; gap: 28px; }
	.dm-process__step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: start; }
	.dm-process__dot { margin: 0; grid-row: span 2; }
	.dm-hero__actions .dm-btn, .dm-cta__actions .dm-btn { width: 100%; }
	.dm-form { grid-template-columns: 1fr; }
	.dm-footer__grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
	.dm-wa span { display: none; }
	.dm-wa { padding: 0; width: 56px; justify-content: center; }
	.dm-table thead { display: none; }
	.dm-table tr { display: block; padding: 14px 20px; border-top: 1px solid var(--line); }
	.dm-table td { display: block; padding: 2px 0; border: 0; }
	.dm-table td:last-child::before { content: attr(data-label) ": "; color: var(--ink-3); font-size: 14px; }
	.dm-why__badge { position: relative; inset: auto; margin: -36px 16px 0; }
	.dm-phero__inner { padding-block: 80px 40px; }
	.dm-feature__badge { inset-inline-end: 8px; }
	.dm-rnd { grid-template-columns: 1fr; }
	.dm-rnd__icon { width: 64px; height: 72px; }
}
