/* =========================================================
   maazoon.css — قالب صفحتي المأذون الشرعي
   (/maazoon/ و /maazoun/) : هيرو بصورة داكنة وخط «مأذون شرعي»،
   شبكات بطاقات متدرجة بعناوين حمراء، قسم صورة ونص،
   شبكة «ما الذي نقدمه لك» وصندوق «المميزات».
   ملاحظة: الصفوف تستخدم direction: ltr (والمحتوى rtl) لتطابق
   ترتيب الأعمدة في التصميم الأصلي على كل المقاسات.
   ========================================================= */

.page-maazoon,
.page-maazoun {
  --mz-red: #800a0a;
  --mz-navy: #07425c;
  --mz-text: #46707f;
  --mz-gold: #f7b359;
  --mz-orange: #f79007;
  --mz-link: #00b1ff;
  --mz-shadow: 0 31px 17px -20px rgba(0, 0, 0, .25);
  --mz-card-bg: linear-gradient(-225deg, #fff 25%, #e7eaea 100%);
  --mz-big-bg: var(--mz-card-bg);
  --mz-feat-bg: var(--mz-card-bg);
  --mz-border: 1px solid #e7eaea;
  --mz-shade: .6;
}
.page-maazoun {
  --mz-card-bg: linear-gradient(-225deg, rgba(246, 254, 255, .91) 25%, rgba(179, 179, 234, .92) 100%);
  --mz-big-bg: linear-gradient(-225deg, rgba(246, 254, 255, .93) 25%, rgba(179, 179, 234, .75) 100%);
  --mz-feat-bg: linear-gradient(-225deg, rgba(246, 254, 255, .95) 25%, rgba(179, 179, 234, .78) 100%);
  --mz-border: 0;
  --mz-shade: .8;
}

.mz-sprite { display: none; }
.mz-wrap { max-width: 1232px; margin-inline: auto; }

/* صفوف بترتيب أعمدة الأصل */
.mz-feature, .mz-media, .mz-cards, .mz-feats__list, .mz-services { direction: ltr; }
.mz-feature > *, .mz-media > *, .mz-cards > *, .mz-feats__list > *, .mz-services > * { direction: rtl; }

/* =========================================================
   الهيرو
   ========================================================= */
.mz-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: #f5fafd; color: #fff; text-align: center;
  padding: 150px 0 100px;
}
.mz-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; max-width: none; object-fit: cover;
}
.mz-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #000; opacity: var(--mz-shade);
}
.mz-hero__inner { display: flex; flex-direction: column; align-items: center; padding-inline: 15px; }
.mz-hero__inner > * { margin: 0; }

.mz-hero__script {
  margin-block: 30px;
  font-family: "Tangerine", cursive; font-weight: 700;
  font-size: 40px; line-height: 1.26; color: var(--mz-gold);
}
.mz-hero__logo { width: 659px; margin-block: 30px; }
.mz-hero__title {
  max-width: 623px; margin-block: 30px;
  font-size: 40px; line-height: 1.26; font-weight: 600; color: var(--mz-gold);
}

/* نسخة /maazoun/ */
.mz-hero--alt { padding: 100px 0 50px; }
.mz-hero__kicker {
  margin-block: 15px 20px;
  font-family: "Abril Fatface", serif; font-size: 24px; line-height: 1.26; color: var(--mz-orange);
}
.mz-hero--alt .mz-hero__logo { width: 726px; margin-block: 0 15px; }
.mz-hero__box {
  width: 653px; max-width: 100%; margin-block: 15px;
  padding: 15px; border-radius: 50px; background: rgba(23, 37, 42, .56);
}
.mz-hero__tag {
  margin: 0 0 20px;
  font-family: "Courgette", cursive; font-size: 32px; line-height: 1.26; color: var(--mz-orange);
}
.mz-hero__box h1 { margin: 0; font-size: 54px; line-height: 1.26; font-weight: 700; color: #fff; }

/* أزرار الهيرو */
.mz-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-block: 30px; }
.mz-hero--alt .mz-btns { margin-block: 16px; }
.mz-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 21px; border-radius: 212px;
  font-size: 21px; font-weight: 600; line-height: 1; color: #fff;
  background: linear-gradient(90deg, #243949 0%, #517fa4 100%);
  transition: filter .2s, transform .2s;
}
.mz-btn:hover { color: #fff; filter: brightness(1.12); transform: translateY(-2px); }
.mz-btn svg { width: 50px; height: 50px; fill: currentColor; flex: none; }
.mz-btn--light { color: #026e9f; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.mz-btn--light:hover { color: #026e9f; }

/* =========================================================
   الأقسام والعناوين
   ========================================================= */
.mz-sec { background: #fff; padding: 40px 0 90px; }
.mz-intro { max-width: 835px; margin-inline: auto; padding: 30px 15px; text-align: center; }
.mz-intro h2 { margin: 0 0 20px; font-size: 32px; line-height: 1.26; font-weight: 600; color: var(--mz-navy); }
.mz-intro p { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 300; color: var(--mz-text); }
.mz-intro--lg h2 { font-size: 40px; }
.mz-intro--lg p { font-size: 19px; }

.mz-title { margin: 0 0 20px; font-size: 54px; line-height: 1.26; font-weight: 600; color: var(--mz-red); text-align: center; }
.mz-emoji { display: inline-block; width: 1em; height: 1em; margin-inline: .07em; vertical-align: -.12em; }
.mz-dot {
  display: inline-block; width: 1em; height: 1em; border-radius: 50%;
  background: #78b159; vertical-align: -.1em; margin-inline-start: .05em;
}

/* =========================================================
   صف «بطاقة كبيرة + بطاقات صغيرة»
   ========================================================= */
.mz-feature {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-items: center;
  padding: 16px;
}
.mz-feature--wide { grid-template-columns: 670fr 498fr; }
.mz-side { padding: 8px; }

.mz-big {
  padding: 16px; border: var(--mz-border); border-radius: 23px;
  background: var(--mz-big-bg); box-shadow: var(--mz-shadow);
  text-align: center; font-size: 17px; line-height: 1.9; font-weight: 300; color: var(--mz-navy);
}
.mz-big p { margin: 0 0 16px; }
.mz-big p:last-child { margin-bottom: 0; }
.mz-big b, .mz-big strong { font-weight: 600; }
.mz-big__lead { margin: 0 0 16px; font-size: 1.25em; line-height: 1.9; font-weight: 600; color: var(--mz-red); }

/* بطاقة الصورة الكبيرة (/maazoon/) */
.mz-big--photo { font-size: 16px; line-height: 1.6; font-weight: 400; color: var(--mz-text); }
.mz-big--photo .mz-big__lead { font-size: 22.25px; margin-bottom: 20px; }
.mz-big__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 23px; margin-bottom: 20px; }
.mz-light { font-weight: 300; }
.mz-big--photo .mz-more { font-size: 15px; }

/* بطاقات /maazoun/ البنفسجية */
.mz-big--soft { border-radius: 50px; }
.mz-big__lead--flush { margin-bottom: 0; }
.mz-phone { font-weight: 900; font-size: 1.12em; line-height: 1.5; color: var(--c-primary); }

/* نص «خدمة تجمع بين الأصالة…» */
.mz-note { font-size: 17px; }
.mz-sub { font-size: 1.14em; font-weight: 600; }
.mz-big .mz-punch { font-size: .97em; font-weight: 800; }

/* البطاقات الصغيرة */
.mz-cards { display: grid; gap: 16px; }
.mz-cards--2 { grid-template-columns: 1fr 1fr; }
.mz-cards--4 { grid-template-columns: repeat(4, 1fr); padding: 31px; margin-top: 110px; }
.mz-card {
  display: flex; flex-direction: column; justify-content: center;
  padding: 15px; border: var(--mz-border); border-radius: 40px;
  background: var(--mz-card-bg); box-shadow: var(--mz-shadow); text-align: center;
}
.mz-card__title { margin: 0 0 20px; font-size: 25.6px; line-height: 1.26; font-weight: 600; color: var(--mz-red); }
.mz-card__title a { color: inherit; }
.mz-card__imglink { display: block; }
.mz-card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 23px; margin-bottom: 20px; }
.mz-card__text { margin: 0; font-size: 15px; line-height: 1.8; color: var(--mz-navy); }
.mz-card__text p { margin: 0 0 16px; }
.mz-card__text p:last-child { margin-bottom: 0; }
.mz-card__text b { font-weight: 600; }
.mz-card__text strong { font-weight: 700; }
.page-maazoun .mz-card__text { line-height: 1.6; }

.mz-more {
  font-size: 1.12em; line-height: 1.5; font-weight: 900;
  color: var(--mz-link); text-decoration: underline;
}
.mz-more:hover { color: var(--c-primary-dark); }

/* أزرار الكبسولة أسفل البطاقات */
.mz-pills { display: flex; justify-content: center; gap: 30px; margin: 43px 0 7px; }
.mz-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 163px; height: 65px; padding: 0 25px; border-radius: 50px;
  font-size: 21px; font-weight: 600; line-height: 1; color: #fff;
  background: linear-gradient(90deg, rgba(36, 57, 73, .92) 0%, rgba(81, 127, 164, .8) 100%);
  transition: filter .2s, transform .2s;
}
.mz-pill:hover { color: #fff; filter: brightness(1.12); transform: translateY(-2px); }
.mz-pill svg { width: 35px; height: 35px; fill: currentColor; flex: none; }

/* =========================================================
   صف «نص + صورة»
   ========================================================= */
.mz-media {
  display: grid; grid-template-columns: 1fr 292px; column-gap: 16px; align-items: center;
  padding: 8px;
}
.mz-big--text { margin: 8px; font-size: 23px; }
.mz-big--text .mz-big__lead { font-size: 1.25em; }
.mz-media__img { width: 292px; border-radius: 23px; }

/* =========================================================
   ما الذي نقدمه لك (/maazoun/)
   ========================================================= */
.mz-offer { padding: 50px 0 100px; }
.mz-offer .mz-title { padding: 30px 15px; margin: 0; }
.mz-services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 15px;
}
.mz-service {
  display: grid; grid-template-columns: 75px 1fr; column-gap: 17px; align-items: center;
  padding: 16px; border-radius: 50px; background: #fff;
  box-shadow: 0 1px 3px 1px rgba(81, 127, 164, .3);
}
.mz-service__ico { display: grid; place-items: center; padding: 8px; color: #6262b3; }
.mz-service__ico svg { height: 60px; width: auto; fill: currentColor; }
.mz-service__ico:hover { color: #03a9f4; }
.mz-service p {
  margin: 0; min-height: 60px; display: grid; place-items: center;
  font-size: 19.2px; line-height: 1.55; font-weight: 300; color: var(--c-ink, #17252a); text-align: center;
}

/* =========================================================
   المميزات
   ========================================================= */
.mz-feats-sec { padding: 100px 0; }
.mz-feats {
  padding: 10%; border: var(--mz-border); border-radius: 50px;
  background: var(--mz-feat-bg); box-shadow: var(--mz-shadow); text-align: center;
}
.mz-feats__list { display: flex; flex-wrap: nowrap; justify-content: center; gap: 16px; padding: 8px; }
.mz-feats__list li {
  flex: 1 1 148px; padding: 8px;
  font-size: 15px; line-height: 1.6; color: var(--mz-text);
}
.mz-feats__list svg { height: 40px; width: auto; margin: 0 auto 20px; fill: #254d6b; }

/* =========================================================
   الشاشات المتوسطة
   ========================================================= */
@media (max-width: 1023px) and (min-width: 768px) {
  .mz-feature, .mz-feature--wide { grid-template-columns: 1fr; row-gap: 32px; }
  .mz-big--photo { width: 100%; max-width: 640px; justify-self: center; }
  .mz-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .mz-services { grid-template-columns: repeat(2, 1fr); }
  .mz-media { grid-template-columns: 1fr 240px; }
  .mz-media__img { width: 240px; }
  .mz-big--text { font-size: 18px; }
}

/* =========================================================
   الجوال
   ========================================================= */
@media (max-width: 767px) {
  .mz-hero { padding: 200px 0; }
  .page-maazoon .mz-hero__bg { object-position: 0 0; }
  .mz-hero__inner { padding-inline: 0; }
  .mz-hero__script { margin-block: 20px; font-size: 24px; }
  .mz-hero__logo { width: 340px; max-width: calc(100% - 50px); margin-block: 25px; }
  .mz-hero__title { max-width: calc(100% - 98px); margin-block: 20px; font-size: 20.8px; }
  .mz-btns { margin-block: 25px; }
  .mz-btn { gap: 5px; padding: 15px 18px; font-size: 18px; }
  .mz-btn svg { width: 30px; height: 30px; }

  .mz-hero--alt { padding: 200px 0; }
  .mz-hero__kicker { margin-block: 20px; font-size: 14.4px; }
  .mz-hero--alt .mz-hero__logo { width: 350px; max-width: calc(100% - 40px); margin-block: 0 20px; }
  .mz-hero__box { width: 100%; margin-block: 10px; padding: 10px; }
  .mz-hero__tag { font-size: 24px; }
  .mz-hero__box h1 { font-size: 32px; }
  .mz-hero--alt .mz-btns { margin-block: 25px; }
  .mz-btn--light { padding-inline: 21px; }

  .mz-sec { padding: 40px 0 30px; }
  .mz-intro { padding: 20px 10px; }
  .mz-intro h2 { font-size: 20.8px; line-height: 1.8; }
  .page-maazoun .mz-intro h2 { font-size: 22.4px; }
  .mz-intro p, .mz-intro--lg p { font-size: 15px; }

  .mz-feature, .mz-feature--wide { grid-template-columns: 1fr; row-gap: 40px; padding: 20px; }
  .mz-side { padding: 0; }
  .mz-big { padding: 21px; font-size: 15px; }
  .page-maazoun .mz-big { padding: 20px; }
  .mz-big--photo { font-size: 16px; }
  .mz-big--photo .mz-big__lead { font-size: 18.34px; }
  .mz-big--soft .mz-big__lead { font-size: 18.75px; }

  .mz-cards { gap: 10px; }
  .mz-cards--4 { grid-template-columns: 1fr 1fr; padding: 20px; margin-top: 90px; }
  .mz-card { padding: 10px; border-radius: 23px; }
  .page-maazoun .mz-card { border-radius: 40px; }
  .mz-card__title { font-size: 22.4px; }
  .mz-card__text { font-size: 10px; line-height: 1.4; }
  .page-maazoun .mz-card__text { font-size: 12px; line-height: 1.6; }

  .mz-pills { gap: 20px; margin: 34px 0 5px; }
  .mz-pill { min-width: 124px; height: 57px; padding: 0 15px; font-size: 14px; }
  .mz-pill svg { width: 27px; height: 27px; }

  .mz-media { grid-template-columns: 1fr; row-gap: 44px; padding: 20px 20px 26px; }
  .mz-big--text { margin: 0; font-size: 14px; line-height: 1.5; }
  .mz-big--text .mz-big__lead { line-height: 1.5; }
  .mz-media__img { width: 340px; max-width: 100%; justify-self: center; }

  .mz-title { font-size: 32px; line-height: 1.6; }
  .mz-offer { padding: 21px 0 60px; }
  .mz-offer .mz-title { padding: 20px 10px; }
  .mz-services { grid-template-columns: 1fr 1fr; gap: 20px; padding: 10px; }
  .mz-service { grid-template-columns: 33px 1fr; column-gap: 0; padding: 10px 5px; border-radius: 20px; }
  .mz-service__ico { padding: 5px 4px; }
  .mz-service__ico svg { height: 25px; }
  .mz-service p { min-height: 35px; font-size: 11.2px; }

  .mz-feats-sec { padding: 70px 0; }
  .mz-feats { margin-inline: 15px; padding: 36px; border-radius: 23px; }
  .page-maazoun .mz-feats { border-radius: 50px; }
  .mz-feats .mz-title { margin-bottom: 50px; }
  .mz-feats__list { flex-wrap: wrap; gap: 10px 0; padding: 5px 0; }
  .mz-feats__list li { flex: 0 0 33.333%; padding: 5px; font-size: 11px; line-height: 1; font-weight: 300; }
  .mz-feats__list svg { height: 25px; }
}
