/* ============================================================
   مودّة — هيكل الموقع 2026 (رأس/تذييل/تنقّل) — عالميّ لكل الصفحات.
   أصناف مسبوقة بـ maw- لتفادي أي تعارض مع Bootstrap/site.css.
   تعتمد على رموز --maw-* من mawaddah-theme-2026.css.
   ============================================================ */

/* شريط الإعلان العلويّ */
.maw-top { background: var(--maw-night, #202b43); color: #f3efe9; text-align: center; font-size: .82rem; padding: 8px 16px; }
.maw-top a { color: #e9bc98; font-weight: 600; text-decoration: none; }
.maw-top a:hover { text-decoration: underline; }

/* الرأس */
.maw-header { background: var(--maw-cream, #faf8f5); border-bottom: 1px solid var(--maw-line, #e7e5e3); position: sticky; top: 0; z-index: 1030; }
.maw-header-inner { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.maw-logo { display: inline-flex; align-items: center; }
.maw-logo img { height: 44px; width: auto; display: block; }
.maw-nav { display: flex; align-items: center; gap: 22px; margin: 0 auto; }
.maw-nav a { color: var(--maw-ink, #22304b); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 6px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.maw-nav a:hover { color: var(--maw-copper, #b26f62); }
.maw-nav a.active { color: var(--maw-copper, #b26f62); border-bottom-color: var(--maw-copper, #b26f62); }
.maw-nav a.plus { color: var(--maw-copper, #b26f62); font-weight: 700; }

.maw-actions { display: flex; align-items: center; gap: 10px; }
.maw-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--maw-copper, #b26f62); color: #fff !important; border-radius: 999px; padding: 9px 20px; font-weight: 700; text-decoration: none; border: 0; font-size: .95rem; transition: background .18s ease; }
.maw-cta:hover { background: #9d5f53; color: #fff; }
.maw-textlink { color: var(--maw-ink, #22304b); text-decoration: none; font-weight: 600; padding: 8px 10px; }
.maw-textlink:hover { color: var(--maw-copper, #b26f62); }
.maw-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--maw-blush, #f7e9e4); color: var(--maw-copper, #b26f62); border-radius: 999px; padding: 7px 14px; font-weight: 700; text-decoration: none; font-size: .9rem; }
.maw-pill:hover { color: var(--maw-copper); filter: brightness(.97); }
.maw-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--maw-ink, #22304b); background: transparent; border: 1px solid var(--maw-line, #e7e5e3); cursor: pointer; text-decoration: none; }
.maw-icon:hover { color: var(--maw-copper, #b26f62); border-color: var(--maw-copper, #b26f62); }
.maw-badge { position: absolute; top: -4px; inset-inline-start: -4px; background: #d15853; color: #fff; border-radius: 999px; font-size: .62rem; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.maw-rolelink { color: var(--maw-ink, #22304b); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 6px 10px; }
.maw-rolelink:hover { color: var(--maw-copper, #b26f62); }

/* زر القائمة (جوال) */
.maw-hamburger { display: none; background: transparent; border: 1px solid var(--maw-line, #e7e5e3); border-radius: 10px; width: 42px; height: 42px; font-size: 1.2rem; color: var(--maw-ink, #22304b); cursor: pointer; }

/* حساب: قائمة منسدلة (نعيد استخدام Bootstrap dropdown مع لمسة) */
.maw-header .dropdown-menu { border: 1px solid var(--maw-line, #e7e5e3); border-radius: 14px; box-shadow: 0 14px 40px rgba(34,48,75,.12); }

@media (max-width: 991px) {
  .maw-nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; background: var(--maw-cream, #faf8f5); border-bottom: 1px solid var(--maw-line, #e7e5e3); padding: 8px 20px 14px; box-shadow: 0 14px 30px rgba(34,48,75,.10); }
  .maw-nav.open { display: flex; }
  .maw-nav a { padding: 11px 4px; border-bottom: 1px solid var(--maw-line, #e7e5e3); }
  .maw-nav a.active { border-bottom-color: var(--maw-line, #e7e5e3); }
  .maw-header-inner { position: relative; }
  .maw-hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .maw-actions .maw-hide-sm { display: none; }
  .maw-logo img { height: 38px; }
}

/* التذييل */
.maw-footer { background: var(--maw-night, #202b43); color: #cfd3dd; padding: 54px 0 26px; }
.maw-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.maw-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.maw-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; font-family: var(--font-serif, 'Amiri', serif); }
.maw-footer nav { display: flex; flex-direction: column; gap: 9px; }
.maw-footer a { color: #cfd3dd; text-decoration: none; font-size: .92rem; }
.maw-footer a:hover { color: #e9bc98; }
.maw-footer .maw-foot-brand img { height: 40px; margin-bottom: 12px; }
.maw-footer .maw-foot-brand p { color: #aab0be; font-size: .9rem; line-height: 1.9; max-width: 340px; }
.maw-footer .maw-foot-legal { color: #8b92a3; font-size: .82rem; line-height: 1.9; margin-top: 10px; }
.maw-footer-sep { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 26px 0; }
.maw-footer-copy { text-align: center; color: #8b92a3; font-size: .85rem; }
@media (max-width: 860px) { .maw-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 520px) { .maw-footer-grid { grid-template-columns: 1fr; } }

/* تنقّل الجوال السفليّ */
.maw-mobilenav { display: none; }
@media (max-width: 991px) {
  .maw-mobilenav { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 1040; background: var(--maw-paper, #fffaf7); border-top: 1px solid var(--maw-line, #e7e5e3); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); justify-content: space-around; }
  .maw-mobilenav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--maw-muted, #647087); text-decoration: none; font-size: .68rem; padding: 4px 0; }
  .maw-mobilenav a span { font-size: 1.15rem; line-height: 1; }
  .maw-mobilenav a.active { color: var(--maw-copper, #b26f62); }
  body { padding-bottom: 62px; }
}
