/* =========================================================
   Hadaeq Makkah — Design system
   RTL أصلي، Mobile-first. كل الألوان والمقاسات tokens هنا.
   ========================================================= */

/* ---------- الخطوط (self-hosted، subset عربي + لاتيني للأرقام) ---------- */
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap;
	src: url("../fonts/plex-arabic-400.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 600; font-display: swap;
	src: url("../fonts/plex-arabic-600.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap;
	src: url("../fonts/plex-arabic-700.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap;
	src: url("../fonts/plex-latin-400.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 600; font-display: swap;
	src: url("../fonts/plex-latin-600.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap;
	src: url("../fonts/plex-latin-700.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
	/* أخضر زيتوني غامق: الأساس */
	--olive-900: #1f2614;
	--olive-800: #2b3520;
	--olive-700: #3d4a2a;
	--olive-600: #56663b;
	--olive-200: #cfd6b9;
	--olive-100: #e6eadb;
	/* رملي فاتح: الخلفيات */
	--sand-50:  #fbf8f1;
	--sand-100: #f4eee1;
	--sand-200: #e9e0cc;
	--sand-300: #d8cbb0;
	/* ترابي دافي: الـ CTA بس */
	--clay-600: #a0522d;
	--clay-700: #86431f;
	--clay-100: #f5e3d6;

	--ink:   #1d2116;
	--ink-2: #4a4f40;
	--line:  #ddd3bd;
	--white: #ffffff;
	--wa:    #1f7a48;

	--font: "Plex Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
	--fs-sm: 0.875rem;
	--fs-base: 1.0625rem;
	--fs-lg: 1.1875rem;
	--fs-h3: 1.25rem;
	--fs-h2: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem);
	--fs-h1: clamp(1.75rem, 1.25rem + 2.4vw, 2.75rem);
	--lh: 1.8;
	--lh-tight: 1.35;

	--sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
	--sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem;

	--radius: 10px;
	--radius-lg: 16px;
	--shadow: 0 1px 2px rgba(31,38,20,.06), 0 4px 16px rgba(31,38,20,.06);
	--wrap: 1180px;
	--wrap-content: 760px;
	--bar-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: var(--lh);
	color: var(--ink);
	background: var(--sand-50);
	padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--olive-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--clay-700); }
:focus-visible { outline: 3px solid var(--clay-600); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: 700; color: var(--olive-900); margin: 0 0 var(--sp-4); text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); margin-top: var(--sp-7); }
h3 { font-size: var(--fs-h3); margin-top: var(--sp-5); }
p, ul, ol, dl, table, figure { margin: 0 0 var(--sp-4); }
ul, ol { padding-inline-start: 1.4em; }
li + li { margin-top: var(--sp-1); }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
.hd-icon { flex: none; }

.skip { position: absolute; inset-inline-start: var(--sp-4); top: -60px; background: var(--olive-900); color: var(--white); padding: var(--sp-2) var(--sp-4); border-radius: var(--radius); z-index: 100; }
.skip:focus { top: var(--sp-2); color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-4); }
.wrap--content { max-width: calc(var(--wrap-content) + 2 * var(--sp-4)); }
.section { padding-block: var(--sp-7); }
.section--sand { background: var(--sand-100); }
.section--olive { background: var(--olive-800); color: var(--sand-100); }
.section--olive h2, .section--olive h3 { color: var(--white); }
.section__head { max-width: 680px; margin-bottom: var(--sp-6); }
.section__head h2 { margin-top: 0; }
.eyebrow { display: inline-block; font-size: var(--fs-sm); font-weight: 600; color: var(--olive-600); margin-bottom: var(--sp-2); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
	min-height: 48px; padding: var(--sp-2) var(--sp-5);
	border-radius: var(--radius); border: 2px solid transparent;
	font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn--cta { background: var(--clay-600); color: var(--white); }
.btn--cta:hover { background: var(--clay-700); color: var(--white); }
.btn--primary { background: var(--olive-700); color: var(--white); }
.btn--primary:hover { background: var(--olive-800); color: var(--white); }
.btn--ghost { border-color: var(--olive-700); color: var(--olive-700); background: transparent; }
.btn--ghost:hover { background: var(--olive-700); color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--olive-900); }
.btn--block { width: 100%; }

/* ---------- Header + nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,248,241,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none; color: var(--olive-900); font-weight: 700; font-size: 1.125rem; }
.brand__mark { width: 32px; height: 32px; }

.nav__toggle { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; padding: 0 var(--sp-3); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; list-style: none; font-weight: 600; color: var(--olive-900); }
.nav__toggle::-webkit-details-marker, .nav__sub > summary::-webkit-details-marker { display: none; }
.nav__panel {
	position: absolute; inset-inline: 0; top: 100%;
	background: var(--sand-50); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
	padding: var(--sp-3) var(--sp-4) var(--sp-5); max-height: calc(100vh - 64px); overflow-y: auto;
}
.nav__list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
.nav__item + .nav__item, .nav__list li + li { margin-top: 0; }
.nav__link { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-1); min-height: 48px; padding: 0 var(--sp-2); color: var(--olive-900); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--sand-200); cursor: pointer; list-style: none; }
.nav__link:hover { color: var(--clay-700); }
.nav__sub[open] > summary .hd-icon { transform: rotate(180deg); }
.nav__dropdown { list-style: none; margin: 0; padding: var(--sp-2) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-3); }
.nav__dropdown a { display: block; padding: var(--sp-2); color: var(--ink); text-decoration: none; font-size: .975rem; border-radius: 6px; }
.nav__dropdown a:hover { background: var(--sand-100); color: var(--olive-700); }
.nav__cta { width: 100%; }

@media (min-width: 960px) {
	.nav__toggle { display: none; }
	.nav__panel { position: static; display: flex; align-items: center; gap: var(--sp-5); padding: 0; background: none; border: 0; box-shadow: none; overflow: visible; max-height: none; }
	.nav__list { display: flex; align-items: center; gap: var(--sp-1); margin: 0; }
	.nav__link { border: 0; padding: 0 var(--sp-3); min-height: 44px; }
	.nav__item--has-sub { position: relative; }
	.nav__dropdown { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; width: 460px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--sp-3); }
	.nav__cta { width: auto; min-height: 44px; }
}

/* ---------- Page head + breadcrumbs ---------- */
.page-head { background: var(--sand-100); border-bottom: 1px solid var(--line); padding: var(--sp-5) 0 var(--sp-6); }
.page-title { margin: var(--sp-3) 0 var(--sp-3); }
.page-lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 62ch; margin: 0; }
.byline { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); font-size: var(--fs-sm); color: var(--ink-2); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "‹"; margin-inline-end: var(--sp-2); color: var(--sand-300); }
.crumbs a { color: var(--ink-2); }

/* ---------- Content ---------- */
.entry { padding-block: var(--sp-6) var(--sp-7); }
.entry > :first-child { margin-top: 0; }
.entry h2 { padding-top: var(--sp-2); }
.entry img { border-radius: var(--radius); }
.entry__hero { margin-bottom: var(--sp-5); }
.entry table:not(.price-table) { width: 100%; border-collapse: collapse; font-size: .975rem; }
.entry table:not(.price-table) th, .entry table:not(.price-table) td { border: 1px solid var(--line); padding: var(--sp-2) var(--sp-3); text-align: start; vertical-align: top; }
.entry table:not(.price-table) thead th { background: var(--olive-100); }
.entry figure.wp-block-table { overflow-x: auto; }
.entry blockquote { margin: var(--sp-5) 0; padding: var(--sp-3) var(--sp-5); border-inline-start: 4px solid var(--olive-600); background: var(--sand-100); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- الخلاصة ---------- */
.summary { background: var(--olive-100); border: 1px solid var(--olive-200); border-inline-start: 5px solid var(--olive-700); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); margin: 0 0 var(--sp-6); }
.summary__label { font-weight: 700; color: var(--olive-800); font-size: var(--fs-sm); margin: 0 0 var(--sp-1); }
.summary__body > :last-child { margin-bottom: 0; }
.summary__body { font-size: var(--fs-lg); line-height: 1.75; }

/* ---------- جدول الأسعار ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: var(--sp-2); }
.price-table { width: 100%; border-collapse: collapse; min-width: 520px; margin: 0; font-size: .975rem; }
.price-table caption { text-align: start; font-weight: 700; padding: var(--sp-3) var(--sp-4); color: var(--olive-900); background: var(--sand-100); border-bottom: 1px solid var(--line); }
.price-table th, .price-table td { padding: var(--sp-3) var(--sp-4); text-align: start; border-bottom: 1px solid var(--sand-200); }
.price-table thead th { background: var(--olive-700); color: var(--white); font-weight: 600; font-size: var(--fs-sm); }
.price-table tbody th { font-weight: 600; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table__price { font-weight: 700; color: var(--clay-700); white-space: nowrap; }
.price-note { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- كارت مشروع ---------- */
.card-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.project-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.project-card__media { display: block; aspect-ratio: 16 / 10.5; background: var(--sand-200); }
.project-card__img { width: 100%; height: 100%; object-fit: cover; }
.project-card__noimg { display: grid; place-items: center; height: 100%; color: var(--ink-2); font-size: var(--fs-sm); }
.project-card__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.project-card__title { font-size: 1.125rem; margin: 0 0 var(--sp-3); }
.project-card__title a { color: var(--olive-900); text-decoration: none; }
.project-card__title a:hover { color: var(--clay-700); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin: 0; }
.facts div { min-width: 0; }
.facts dt { display: flex; align-items: center; gap: var(--sp-1); font-size: .8125rem; color: var(--ink-2); }
.facts dt .hd-icon { width: 16px; height: 16px; color: var(--olive-600); }
.facts dd { margin: 0; font-weight: 600; font-size: .975rem; }
.facts--inline { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-top: var(--sp-4); }

/* ---------- قبل/بعد ---------- */
.ba { margin: 0 0 var(--sp-5); }
.ba__frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; background: var(--sand-200); touch-action: pan-y; }
.ba__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
/* الـ range اتجاهه RTL: القيمة بتتقاس من اليمين. "قبل" على اليمين و"بعد" على الشمال. */
.ba__before { position: absolute; inset: 0; clip-path: inset(0 0 0 calc(100% - var(--pos))); }
.ba__handle { position: absolute; top: 0; bottom: 0; right: var(--pos); width: 3px; margin-right: -1.5px; background: var(--white); box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; }
.ba__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 6-6 6 6 6M15 6l6 6-6 6' fill='none' stroke='%233d4a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: var(--shadow); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; direction: rtl; }
.ba__tag { position: absolute; top: var(--sp-3); padding: 2px var(--sp-3); border-radius: 99px; background: rgba(31,38,20,.75); color: var(--white); font-size: var(--fs-sm); font-weight: 600; pointer-events: none; }
.ba__tag--before { right: var(--sp-3); }
.ba__tag--after { left: var(--sp-3); }
.ba figcaption { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--sp-2); }

/* ---------- FAQ ---------- */
.faq { margin: var(--sp-6) 0; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq__item + .faq__item { margin-top: var(--sp-2); }
.faq__item > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); min-height: 56px; cursor: pointer; font-weight: 600; list-style: none; }
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary .hd-icon { color: var(--olive-600); transition: transform .2s; }
.faq__item[open] > summary .hd-icon { transform: rotate(180deg); }
.faq__a { padding: 0 var(--sp-4) var(--sp-2); color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta { background: var(--olive-800); color: var(--sand-100); padding: var(--sp-7) 0; }
.entry .cta { border-radius: var(--radius-lg); padding: var(--sp-6) var(--sp-5); margin: var(--sp-6) 0; }
.cta__inner { max-width: 720px; margin-inline: auto; padding-inline: var(--sp-4); text-align: center; }
.cta__title { color: var(--white); margin: 0 0 var(--sp-3); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-5); }

/* ---------- نموذج المعاينة ---------- */
.quote-form { display: grid; gap: var(--sp-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); margin-bottom: var(--sp-5); }
@media (min-width: 640px) { .quote-form { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; margin-bottom: var(--sp-1); font-size: .975rem; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--sand-300); border-radius: var(--radius); font: inherit; font-size: 1rem; color: var(--ink); background: var(--sand-50); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive-600); box-shadow: 0 0 0 3px var(--olive-200); background: var(--white); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.form-hint { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.form-error { color: #b3261e; font-weight: 600; margin: 0; }

/* ---------- خطوات العمل ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); counter-reset: s; }
.steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.steps__item { margin: 0; padding: var(--sp-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.steps__num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--olive-700); color: var(--white); font-weight: 700; margin-bottom: var(--sp-2); }
.steps__item h3 { margin: 0 0 var(--sp-1); font-size: 1.0625rem; }
.steps__item p { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* ---------- مقالات ذات صلة + chips ---------- */
.related { margin: var(--sp-6) 0 0; padding: var(--sp-5); background: var(--sand-100); border-radius: var(--radius-lg); }
.related__title { margin: 0 0 var(--sp-3); font-size: var(--fs-h3); }
.related ul { margin: 0; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chips li { margin: 0; }
.chips a, .chips li:not(:has(a)) { display: inline-block; padding: var(--sp-1) var(--sp-3); border: 1px solid var(--line); border-radius: 99px; background: var(--white); text-decoration: none; font-size: .95rem; }
.empty-note { padding: var(--sp-4); border: 1px dashed var(--sand-300); border-radius: var(--radius); color: var(--ink-2); background: var(--sand-100); }

/* ---------- Blog list ---------- */
.post-list { display: grid; gap: var(--sp-4); padding-block: var(--sp-6); }
.post-item { padding: var(--sp-4) var(--sp-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.post-item__title { font-size: var(--fs-h3); margin: 0 0 var(--sp-2); }
.post-item__title a { text-decoration: none; color: var(--olive-900); }
.post-item p { margin: 0; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive-900); color: var(--sand-200); padding-top: var(--sp-7); font-size: .975rem; }
.site-footer a { color: var(--sand-100); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer__brand { font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: var(--sp-2); }
.site-footer__h { font-weight: 700; color: var(--white); margin-bottom: var(--sp-3); }
.site-footer__links { list-style: none; padding: 0; columns: 2; column-gap: var(--sp-4); }
.site-footer__links li { margin: 0 0 var(--sp-2); break-inside: avoid; }
.nap { list-style: none; padding: 0; }
.nap li { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-2); }
.nap .hd-icon { width: 18px; height: 18px; color: var(--olive-200); }
.site-footer__legal { font-size: var(--fs-sm); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--sp-5); padding-block: var(--sp-4); font-size: var(--fs-sm); }
.site-footer__bottom p { margin: 0; }

/* ---------- شريط الموبايل الثابت ---------- */
.mobile-bar {
	position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
	display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: var(--sp-2);
	padding: var(--sp-2) var(--sp-2) calc(var(--sp-2) + env(safe-area-inset-bottom));
	background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(31,38,20,.08);
}
.mobile-bar__btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--olive-900); border: 1px solid var(--line); background: var(--sand-50); }
.mobile-bar__btn--wa { color: var(--wa); }
.mobile-bar__btn--cta { background: var(--clay-600); border-color: var(--clay-600); color: var(--white); }
.mobile-bar__btn--cta:hover { background: var(--clay-700); color: var(--white); }
@media (min-width: 960px) {
	.mobile-bar { display: none; }
	body { padding-bottom: 0; }
}

/* ---------- WordPress bits ---------- */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.alignwide { max-width: var(--wrap); }
.nav-links { display: flex; gap: var(--sp-2); padding-bottom: var(--sp-6); }
.nav-links .page-numbers { padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--white); }
.nav-links .current { background: var(--olive-700); color: var(--white); border-color: var(--olive-700); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* جدول الأسعار على الموبايل: كل صف كارت، من غير scroll أفقي. */
@media (max-width: 560px) {
	.price-table { min-width: 0; }
	.price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.price-table tbody tr { display: block; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--sand-200); }
	.price-table tbody tr:last-child { border-bottom: 0; }
	.price-table tbody th, .price-table tbody td { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 2px 0; border: 0; }
	.price-table tbody th { font-size: 1.0625rem; padding-bottom: var(--sp-1); }
	.price-table tbody td::before { content: attr(data-label); color: var(--ink-2); font-weight: 400; font-size: var(--fs-sm); }
	.price-table td:not(.price-table__price) { text-align: end; }
}

/* ---------- النموذج: honeypot، أخطاء الحقول، حالة الإرسال ---------- */
.hp { position: absolute !important; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.quote-form { position: relative; }
.field__err { color: #b3261e; font-size: var(--fs-sm); margin: var(--sp-1) 0 0; }
.field input[type="file"] { padding: 10px var(--sp-3); font-size: .95rem; }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-inline-end: var(--sp-3); padding: 6px 12px; border: 1px solid var(--sand-300); border-radius: 8px; background: var(--white); color: var(--olive-800); cursor: pointer; }
.btn:disabled { opacity: .7; cursor: progress; }
[data-turnstile]:empty { display: none; }

/* بلوك النموذج في آخر صفحات الخدمة والمقالات */
.quote-block { background: var(--sand-100); border-top: 1px solid var(--line); padding: var(--sp-7) 0; scroll-margin-top: 64px; }
.quote-block__title { margin: 0 0 var(--sp-2); }
.quote-block__lead { color: var(--ink-2); margin-bottom: var(--sp-5); }

/* Dialog النموذج: bottom sheet على الموبايل، modal في النص على الديسكتوب */
.quote-dialog { width: min(100%, 640px); max-height: 92dvh; margin: auto auto 0; padding: var(--sp-4) var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-bottom)); border: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--sand-50); color: var(--ink); overflow-y: auto; }
.quote-dialog::backdrop { background: rgba(31,38,20,.55); }
@media (min-width: 700px) { .quote-dialog { margin: auto; border-radius: var(--radius-lg); padding: var(--sp-5); } }
.quote-dialog__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-1); }
.quote-dialog__title { font-size: 1.25rem; font-weight: 700; color: var(--olive-900); margin: 0; }
.quote-dialog__close { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.75rem; line-height: 1; color: var(--ink-2); cursor: pointer; border-radius: var(--radius); }
.quote-dialog__close:hover { background: var(--sand-200); }
.quote-dialog__lead { color: var(--ink-2); font-size: .975rem; margin-bottom: var(--sp-3); }
.quote-dialog .quote-form { padding: var(--sp-4); margin: 0; }

/* شريط الموبايل لما مفيش رقم: زرار واحد بعرض الشاشة */
.mobile-bar--single { grid-template-columns: 1fr; }
.mobile-bar:has(.mobile-bar__btn:nth-child(2)):not(:has(.mobile-bar__btn:nth-child(3))) { grid-template-columns: 1fr 1.6fr; }

.site-footer__disclosure { color: var(--sand-300); margin-bottom: var(--sp-2) !important; max-width: 80ch; }
.no-mobile-bar { padding-bottom: 0; }

/* ---------- حاسبة التكلفة ---------- */
.calc { display: grid; gap: var(--sp-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); margin: var(--sp-5) 0; }
@media (min-width: 640px) { .calc { grid-template-columns: 1fr 1fr; } .calc__out, .calc > .btn { grid-column: 1 / -1; } }
.calc__group { border: 0; padding: 0; margin: 0; display: grid; gap: var(--sp-3); min-width: 0; }
.calc__group legend { font-weight: 700; color: var(--olive-800); margin-bottom: var(--sp-2); padding: 0; }
.check { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--olive-700); }
.calc__out { display: block; text-align: center; background: var(--olive-100); border: 1px solid var(--olive-200); border-radius: var(--radius); padding: var(--sp-4); }
.calc__label { display: block; font-size: var(--fs-sm); color: var(--ink-2); }
.calc__range { display: block; font-size: clamp(1.4rem, 1.1rem + 1.5vw, 1.9rem); color: var(--olive-900); margin: var(--sp-1) 0; }
.calc__hint { display: block; font-size: .8125rem; color: var(--ink-2); }
.price-table__src a { font-size: .8125rem; white-space: nowrap; margin-inline-end: 6px; }
.price-table th a { color: var(--olive-800); }

/* ---------- الرئيسية ---------- */
.hero { background: linear-gradient(180deg, var(--sand-100), var(--sand-50)); border-bottom: 1px solid var(--line); padding: var(--sp-6) 0 var(--sp-7); }
.hero__grid { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.4fr 1fr; gap: var(--sp-7); } .hero { padding: var(--sp-8) 0; } }
.hero__title { font-size: clamp(1.85rem, 1.2rem + 3vw, 3rem); margin-bottom: var(--sp-4); }
.hero__answer { font-size: var(--fs-lg); line-height: 1.85; color: var(--ink); max-width: 60ch; }
.hero__answer strong { color: var(--clay-700); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-5) 0 var(--sp-3); }
.hero__note { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.hero__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); box-shadow: var(--shadow); }
.hero__card-title { font-weight: 700; color: var(--olive-900); margin-bottom: var(--sp-3); }
.quick-prices { list-style: none; padding: 0; margin: 0 0 var(--sp-3); }
.quick-prices li { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--sand-200); margin: 0; flex-wrap: wrap; }
.quick-prices a { font-weight: 600; text-decoration: none; color: var(--olive-800); }
.quick-prices span { font-weight: 700; color: var(--clay-700); white-space: nowrap; font-size: .95rem; }
.hero__card-link { font-size: var(--fs-sm); font-weight: 600; }

.service-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.service-card { margin: 0; }
.service-card a { display: block; height: 100%; padding: var(--sp-4) var(--sp-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.service-card a:hover { border-color: var(--olive-600); box-shadow: var(--shadow); color: var(--ink); }
.service-card__title { font-size: 1.0625rem; margin: 0 0 var(--sp-1); color: var(--olive-900); }
.service-card p { margin: 0; font-size: .95rem; color: var(--ink-2); }

.heat-grid { display: grid; gap: var(--sp-4); margin: var(--sp-5) 0; }
@media (min-width: 640px) { .heat-grid { grid-template-columns: 1fr 1fr; } }
.heat-item { padding: var(--sp-4) var(--sp-5); background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--olive-600); border-radius: var(--radius); }
.heat-item h3 { margin: 0 0 var(--sp-2); font-size: 1.0625rem; }
.heat-item p { margin: 0; font-size: .975rem; }
.source-note { font-size: var(--fs-sm); color: var(--ink-2); }
.section .faq { margin-top: 0; }
.section .faq h2 { margin-top: 0; }
.contact-list { display: grid; gap: var(--sp-2); margin: var(--sp-5) 0; }
.contact-list div { display: flex; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-list dt { font-weight: 700; min-width: 110px; color: var(--olive-800); }
.contact-list dd { margin: 0; }
.src-list { font-size: .8125rem; color: var(--ink-2); padding-inline-start: 1.6em; } .src-list a { color: var(--ink-2); word-break: break-word; }
