/*
Theme Name: MOHAMMED-AlHADI
Theme URI: 
Author: Mohammed Alhadi
Description: قالب عربي خفيف وسريع لشركات المظلات والسواتر بالرياض. التحكم الكامل في الهيدر والفوتر وكل أقسام الصفحة الرئيسية (تعديل، حذف، إعادة ترتيب) من: المظهر ← تخصيص. يتضمن ضغطاً تلقائياً للصور المرفوعة وتحويلها إلى WebP.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: Mohammed alhadi
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, theme-options
*/

/* ========== المتغيرات (غيّر الألوان من هنا) ========== */
:root {
	--mz-primary: #0b2545;
	--mz-primary-dark: #07192f;
	--mz-accent: #d98a16;
	--mz-wa: #25d366;
	--mz-gray: #f6f8fb;
	--mz-border: #e5eaf1;
	--mz-text: #1e293b;
	--mz-muted: #64748b;
	--mz-radius: 8px;
	--mz-shadow: 0 10px 26px rgba(11, 37, 69, .08);
}

/* ========== أساسيات ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: "Tajawal", system-ui, Tahoma, sans-serif; color: var(--mz-text); line-height: 1.75; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mz-primary); text-decoration: none; }
a:hover { color: var(--mz-accent); }
h1, h2, h3 { color: var(--mz-primary); line-height: 1.3; margin: 0 0 .6em; font-weight: 800; }
p { margin: 0 0 1em; }

.mz-icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.mz-container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.mz-container--narrow { max-width: 820px; }
.mz-skip { position: absolute; top: -40px; right: 1rem; background: var(--mz-primary); color: #fff; padding: .5rem 1rem; z-index: 200; }
.mz-skip:focus { top: 0; color: #fff; }
.mz-empty { text-align: center; color: var(--mz-muted); }

/* ========== الأزرار ========== */
.mz-btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.mz-btns--center { justify-content: center; }
.mz-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: var(--mz-radius); font-weight: 700; border: 2px solid transparent; transition: background-color .2s, color .2s; }
.mz-btn--sm { padding: .5rem 1.1rem; font-size: .92rem; }
.mz-btn--accent { background: var(--mz-accent); color: var(--mz-primary); }
.mz-btn--accent:hover { background: #c37910; color: var(--mz-primary); }
.mz-btn--primary { background: var(--mz-primary); color: #fff; margin-top: 1.5rem; }
.mz-btn--primary:hover { background: #133863; color: #fff; }
.mz-btn--ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.mz-btn--ghost:hover { background: #fff; color: var(--mz-primary); }
.mz-btn--wa { background: var(--mz-wa); color: #fff; }
.mz-btn--wa:hover { background: #1ebe5b; color: #fff; }

/* ========== الهيدر ========== */
.mz-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--mz-border); transition: box-shadow .2s; }
.admin-bar .mz-header { top: 32px; }
.mz-header.is-scrolled { box-shadow: 0 4px 16px rgba(11, 37, 69, .07); }
.mz-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.mz-brand { display: flex; align-items: center; gap: .6rem; color: var(--mz-primary); }
.mz-brand__logo { max-height: 48px; width: auto; }
.mz-brand__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--mz-radius); background: var(--mz-primary); color: var(--mz-accent); }
.mz-brand__text strong { display: block; font-size: 1.1rem; font-weight: 800; line-height: 1.2; }
.mz-brand__text small { display: block; color: var(--mz-muted); font-size: .75rem; }
.mz-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.mz-nav__list a { font-weight: 700; }
.mz-header__actions { display: flex; align-items: center; gap: .75rem; }
.mz-header__phone { font-weight: 800; display: none; }
.mz-header__toggle { display: none; background: none; border: 1px solid var(--mz-border); border-radius: var(--mz-radius); padding: .45rem; color: var(--mz-primary); cursor: pointer; }

/* ========== 1. الواجهة ========== */
.mz-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--mz-primary); color: #fff; }
.mz-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mz-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(11, 37, 69, .93), rgba(11, 37, 69, .8) 55%, rgba(11, 37, 69, .45)); }
.mz-hero__content { padding-block: 5rem; max-width: 1180px; }
.mz-hero__badge { display: inline-block; padding: .35rem .9rem; border-radius: 99px; background: rgba(217, 138, 22, .2); border: 1px solid rgba(217, 138, 22, .5); color: #fbbf24; font-size: .85rem; font-weight: 700; }
.mz-hero__title { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.8rem); max-width: 680px; margin-top: 1rem; }
.mz-hero__text { color: #e2e8f0; font-size: 1.1rem; max-width: 600px; }

/* ========== 2. شريط الثقة ========== */
.mz-trust { background: var(--mz-gray); border-bottom: 1px solid var(--mz-border); padding-block: 2rem; }
.mz-trust__grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mz-trust__item { display: flex; align-items: center; gap: .85rem; }
.mz-trust__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--mz-radius); background: var(--mz-primary); color: #fbbf24; flex-shrink: 0; }
.mz-trust__title { display: block; color: var(--mz-primary); font-weight: 800; }
.mz-trust__text { display: block; color: var(--mz-muted); font-size: .88rem; }

/* ========== الأقسام العامة ========== */
.mz-section { padding-block: 4.5rem; }
.mz-section--gray { background: var(--mz-gray); }
.mz-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.mz-head__kicker { color: var(--mz-accent); font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.mz-head__title { font-size: clamp(1.5rem, 3vw, 2rem); }
.mz-head__text { color: var(--mz-muted); }
.mz-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }

/* ========== 3. البطاقات ========== */
.mz-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mz-border); border-radius: var(--mz-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.mz-card:hover { box-shadow: var(--mz-shadow); transform: translateY(-2px); }
.mz-card__img { width: 100%; height: 190px; object-fit: cover; }
.mz-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.mz-card__title { font-size: 1.1rem; }
.mz-card__title a { color: inherit; }
.mz-card__text { color: var(--mz-muted); font-size: .92rem; flex: 1; }
.mz-card__link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .92rem; }
.mz-card__date { display: block; color: var(--mz-accent); font-size: .8rem; font-weight: 700; margin-bottom: .3rem; }

/* ========== 4. لماذا تختارنا ========== */
.mz-split { display: grid; gap: 2.5rem; align-items: center; }
.mz-split .mz-head__title, .mz-split .mz-head__text, .mz-split .mz-head__kicker { text-align: right; }
.mz-split__img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--mz-radius); }
.mz-checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .8rem; }
.mz-checklist li { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500; }
.mz-checklist .mz-icon { background: var(--mz-accent); color: var(--mz-primary); border-radius: 50%; padding: 3px; margin-top: .2rem; }

/* ========== 5. المشاريع ========== */
.mz-project { margin: 0; background: #fff; border: 1px solid var(--mz-border); border-radius: var(--mz-radius); overflow: hidden; transition: box-shadow .2s; }
.mz-project:hover { box-shadow: var(--mz-shadow); }
.mz-project__img { width: 100%; height: 220px; object-fit: cover; }
.mz-project__meta { padding: 1rem; }
.mz-project__city { display: flex; align-items: center; gap: .3rem; color: var(--mz-accent); font-size: .82rem; font-weight: 700; }
.mz-project__title { color: var(--mz-primary); }

/* ========== 6. الأسئلة الشائعة ========== */
.mz-faq { background: #fff; border: 1px solid var(--mz-border); border-radius: var(--mz-radius); overflow: hidden; }
.mz-faq__item + .mz-faq__item { border-top: 1px solid var(--mz-border); }
.mz-faq__q { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; font-weight: 700; color: var(--mz-primary); list-style: none; }
.mz-faq__q::-webkit-details-marker { display: none; }
.mz-faq__q .mz-icon { color: var(--mz-accent); transition: transform .2s; }
.mz-faq__item[open] .mz-faq__q .mz-icon { transform: rotate(180deg); }
.mz-faq__a { padding: 0 1.3rem 1.2rem; margin: 0; color: #475569; }

/* ========== 8. شريط الاتصال ========== */
.mz-cta { background: var(--mz-primary); color: #cbd5e1; padding-block: 4rem; text-align: center; }
.mz-cta__title { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }

/* ========== الفوتر ========== */
.mz-footer { background: var(--mz-primary-dark); color: #94a3b8; padding-top: 3.5rem; font-size: .92rem; }
.mz-footer a { color: #cbd5e1; }
.mz-footer a:hover { color: #fbbf24; }
.mz-footer__grid { display: grid; gap: 2rem; }
.mz-footer__title { color: #fff; font-weight: 800; margin-bottom: .9rem; }
.mz-footer__list, .mz-footer .mz-nav__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.mz-footer__contact li { display: flex; gap: .5rem; align-items: flex-start; }
.mz-footer__contact .mz-icon { color: var(--mz-accent); margin-top: .25rem; }
.mz-footer__copy { text-align: center; border-top: 1px solid rgba(255, 255, 255, .1); margin: 2.5rem 0 0; padding: 1.25rem; font-size: .85rem; }
.mz-wa-float { position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 90; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mz-wa); color: #fff; box-shadow: 0 6px 20px rgba(37, 211, 102, .4); }
.mz-wa-float:hover { color: #fff; transform: scale(1.06); }
.mz-wa-float .mz-icon { width: 28px; height: 28px; }

/* ========== المقالات والصفحات ========== */
.mz-content h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.mz-content h2 { margin-top: 1.6em; }
.mz-content img { border-radius: var(--mz-radius); }
.mz-content__img { width: 100%; margin-bottom: 1.5rem; }
.mz-content__cta { margin-top: 2.5rem; padding: 1.5rem; background: var(--mz-gray); border-radius: var(--mz-radius); text-align: center; }
.mz-pagination { margin-top: 2.5rem; text-align: center; }
.mz-pagination .page-numbers { display: inline-block; padding: .4rem .85rem; border: 1px solid var(--mz-border); border-radius: var(--mz-radius); margin: 0 .15rem; }
.mz-pagination .current { background: var(--mz-primary); color: #fff; }

/* ========== الشورت كود والنماذج ========== */
.mz-shortcode-box { max-width: 820px; margin: 0 auto; }
.mz-form-card { background: #fff; border: 1px solid var(--mz-border); border-radius: var(--mz-radius); padding: 2rem; box-shadow: var(--mz-shadow); }
.mz-form-card__title { font-size: 1.3rem; margin-bottom: .3rem; text-align: center; }
.mz-form-card__sub { text-align: center; color: var(--mz-muted); font-size: .92rem; margin-bottom: 1.5rem; }
.mz-form { display: grid; gap: 1rem; }
.mz-form__grid { display: grid; gap: 1rem; }
@media (min-width: 600px) { .mz-form__grid { grid-template-columns: 1fr 1fr; } }
.mz-form__group { display: flex; flex-direction: column; gap: .35rem; }
.mz-form__label { font-size: .88rem; font-weight: 700; color: var(--mz-primary); }
.mz-req { color: #dc2626; }
.mz-form__input, .mz-form__select { width: 100%; padding: .75rem 1rem; border: 1px solid var(--mz-border); border-radius: var(--mz-radius); font-family: inherit; font-size: .95rem; background: #fff; color: var(--mz-text); transition: border-color .2s; }
.mz-form__input:focus, .mz-form__select:focus { border-color: var(--mz-primary); outline: none; }
.mz-form__btn { width: 100%; justify-content: center; padding: 1rem; font-size: 1.05rem; cursor: pointer; }
.mz-form__notice { text-align: center; font-size: .8rem; color: var(--mz-muted); margin: .5rem 0 0; }
.mz-form__success { text-align: center; padding: 2rem 1rem; }
.mz-form__success-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #dcfce7; color: #15803d; margin-bottom: 1rem; }
.mz-table-card { background: #fff; border: 1px solid var(--mz-border); border-radius: var(--mz-radius); padding: 1.5rem; box-shadow: var(--mz-shadow); }
.mz-table-card__title { font-size: 1.25rem; margin-bottom: 1rem; text-align: center; }
.mz-table-scroll { overflow-x: auto; }
.mz-table { width: 100%; border-collapse: collapse; text-align: right; font-size: .92rem; }
.mz-table th, .mz-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--mz-border); }
.mz-table th { background: var(--mz-gray); color: var(--mz-primary); font-weight: 800; white-space: nowrap; }
.mz-table__price { color: var(--mz-accent); font-weight: 800; white-space: nowrap; }
.mz-badge-w { display: inline-block; padding: .15rem .5rem; border-radius: 4px; background: rgba(217, 138, 22, .12); color: #b45309; font-weight: 700; font-size: .8rem; white-space: nowrap; }
.mz-table-card__note { font-size: .8rem; color: var(--mz-muted); margin: .75rem 0 0; text-align: center; }
.mz-contact-card { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: #fff; border: 1px solid var(--mz-border); border-radius: var(--mz-radius); padding: 1.5rem; }
.mz-contact-card__item { display: flex; align-items: center; gap: .75rem; }
.mz-contact-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--mz-radius); background: var(--mz-gray); color: var(--mz-primary); flex-shrink: 0; }
.mz-contact-card__icon--wa { background: #dcfce7; color: #15803d; }
.mz-contact-card__item strong { display: block; font-size: .9rem; color: var(--mz-primary); }
.mz-contact-card__item span, .mz-contact-card__item a { font-size: .85rem; color: var(--mz-muted); }

/* ========== الجوال (أقل من 992px) ========== */
@media (max-width: 991px) {
	.mz-header__toggle { display: inline-flex; }
	.mz-header .mz-btn--sm { display: none; }
	.mz-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: #fff; border-bottom: 1px solid var(--mz-border); padding: .75rem 1.25rem; }
	.mz-header.is-open .mz-nav { display: block; }
	.mz-header .mz-nav__list { flex-direction: column; gap: 0; }
	.mz-header .mz-nav__list a { display: block; padding: .7rem 0; }
	.mz-hero__content { padding-block: 3.5rem; }
}

/* ========== الشاشات المتوسطة والكبيرة ========== */
@media (min-width: 600px) {
	.mz-grid--3, .mz-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.mz-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
	.mz-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.mz-grid--4 { grid-template-columns: repeat(4, 1fr); }
	.mz-split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
	.mz-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
	.mz-header__phone { display: inline; }
	.mz-section { padding-block: 5.5rem; }
}
@media (max-width: 782px) {
	.admin-bar .mz-header { top: 46px; }
}
