/* Mundher Mahmood editorial redesign — 2026-08-13 */
:root {
  --mm-navy: #153846;
  --mm-navy-2: #1f566b;
  --mm-blue: #169bd5;
  --mm-ink: #0e1a20;
  --mm-muted: #526e7a;
  --mm-pale: #d7dfe2;
  --mm-off: #f7f8fb;
  --mm-white: #fff;
  --mm-radius: 28px;
  --mm-shadow: 0 18px 50px rgba(21, 56, 70, .1);
}

html { scroll-behavior: smooth; }
body.mm-live-redesign { margin: 0; color: var(--mm-ink); background: var(--mm-white); }
body.mm-live-redesign #site_header,
body.mm-live-redesign #site_footer,
body.mm-live-redesign .page_cover,
body.mm-live-redesign .page_title { display: none !important; }
body.mm-live-redesign #layout,
body.mm-live-redesign #page_content,
body.mm-live-redesign #page_content > .row,
body.mm-live-redesign #page_content > .row > .s12,
body.mm-live-redesign .cz_post_content { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.mm-shell { direction: rtl; overflow: hidden; font-family: Changa, Tahoma, Arial, sans-serif; }
.mm-shell *, .mm-shell *::before, .mm-shell *::after { box-sizing: border-box; }
.mm-shell a { text-decoration: none; }
.mm-shell .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mm-container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.mm-section { padding: 104px 0; }
.mm-kicker { margin: 0 0 12px; color: var(--mm-blue); font-size: 18px; font-weight: 700; }
.mm-title { margin: 0; color: var(--mm-navy); font-size: clamp(36px, 4vw, 56px); line-height: 1.25; font-weight: 800; }
.mm-lead { margin: 24px 0 0; color: var(--mm-muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.8; }
.mm-btn { display: inline-flex; min-height: 58px; align-items: center; justify-content: center; padding: 12px 30px; border: 1px solid transparent; border-radius: 999px; font-size: 18px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease; }
.mm-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(21,56,70,.16); }
.mm-btn-primary { color: var(--mm-white); background: var(--mm-blue); }
.mm-btn-dark { color: var(--mm-white); background: var(--mm-navy); }
.mm-btn-outline { color: var(--mm-navy); border-color: var(--mm-navy); background: transparent; }

.mm-header { position: relative; z-index: 5; border-bottom: 1px solid var(--mm-pale); background: var(--mm-white); }
.mm-header-inner { display: grid; min-height: 108px; grid-template-columns: auto 1fr auto; gap: 42px; align-items: center; }
.mm-brand img { display: block; width: 160px; max-height: 78px; object-fit: contain; }
.mm-nav { display: flex; gap: 32px; align-items: center; justify-content: center; }
.mm-nav a { color: var(--mm-navy); font-size: 17px; font-weight: 600; }
.mm-nav a:hover, .mm-nav a.mm-current { color: var(--mm-blue); }
.mm-nav-toggle { display: none; }

.mm-home-hero { background: var(--mm-off); }
.mm-home-hero .mm-container { display: grid; min-height: 780px; grid-template-columns: 1.02fr .98fr; gap: 70px; align-items: center; }
.mm-hero-copy { text-align: right; }
.mm-hero-copy::before { display: block; width: 88px; height: 8px; margin-bottom: 20px; border-radius: 4px; background: var(--mm-blue); content: ""; }
.mm-hero-copy h1 { margin: 14px 0 20px; color: var(--mm-navy); font-size: clamp(54px, 6vw, 78px); line-height: 1.15; font-weight: 800; }
.mm-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.mm-hero-visual { position: relative; min-height: 640px; overflow: hidden; border-radius: var(--mm-radius); background: var(--mm-navy); box-shadow: var(--mm-shadow); }
.mm-hero-visual img { width: 100%; height: 100%; min-height: 640px; object-fit: cover; filter: saturate(.75) contrast(1.04); }
.mm-hero-visual::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,56,70,.05), rgba(21,56,70,.28)); content: ""; }
.mm-visual-label { position: absolute; z-index: 1; right: 30px; bottom: 30px; padding: 15px 24px; border-radius: 16px; color: var(--mm-white); background: var(--mm-navy); font-weight: 700; }

.mm-stats { background: var(--mm-navy); }
.mm-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.mm-stat { position: relative; padding: 44px 20px; text-align: center; }
.mm-stat + .mm-stat::before { position: absolute; top: 35px; right: 0; width: 1px; height: calc(100% - 70px); background: rgba(255,255,255,.18); content: ""; }
.mm-stat strong { display: block; color: var(--mm-blue); font-size: 48px; line-height: 1.15; }
.mm-stat span { color: var(--mm-white); font-size: 18px; }

.mm-about-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 80px; align-items: stretch; }
.mm-about-copy { padding-top: 32px; }
.mm-quote { display: grid; padding: 54px; border: 1px solid var(--mm-pale); border-radius: var(--mm-radius); background: var(--mm-off); place-content: center; text-align: center; }
.mm-quote::before { color: var(--mm-blue); content: "“"; font-size: 86px; font-weight: 800; line-height: .8; }
.mm-quote blockquote { margin: 25px 0; color: var(--mm-navy); font-size: 27px; line-height: 1.65; font-weight: 700; }
.mm-quote cite { color: var(--mm-blue); font-style: normal; font-weight: 700; }

.mm-services { background: var(--mm-off); }
.mm-services-head { max-width: 900px; margin-right: auto; margin-bottom: 56px; }
.mm-services-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 28px; }
.mm-service-stack { display: grid; gap: 28px; }
.mm-service { position: relative; padding: 42px; border-radius: var(--mm-radius); background: var(--mm-white); box-shadow: 0 0 0 1px var(--mm-pale); }
.mm-service-featured { display: flex; min-height: 430px; flex-direction: column; justify-content: center; color: var(--mm-white); background: var(--mm-navy); box-shadow: none; }
.mm-service-number { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 50%; color: var(--mm-white); background: var(--mm-blue); font-weight: 800; }
.mm-service h3 { margin: 24px 0 12px; color: var(--mm-navy); font-size: 30px; }
.mm-service-featured h3 { color: var(--mm-white); font-size: 38px; }
.mm-service p { margin: 0; color: var(--mm-muted); font-size: 19px; line-height: 1.8; }
.mm-service-featured p { color: #d7e8ee; }
.mm-method { margin-top: 28px; padding: 24px; border-radius: 20px; color: var(--mm-white); background: var(--mm-blue); text-align: center; font-size: 20px; font-weight: 700; }

.mm-article-card { display: grid; margin-top: 48px; padding: 30px; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; border: 1px solid var(--mm-pale); border-radius: var(--mm-radius); background: var(--mm-off); }
.mm-article-image { display: flex; min-height: 330px; align-items: center; justify-content: center; border-radius: 22px; background-color: var(--mm-white); background-position: center; background-repeat: no-repeat; background-size: contain; }
.mm-article-image img { max-width: 100%; max-height: 330px; object-fit: contain; }
.mm-tag { display: inline-flex; padding: 7px 18px; border-radius: 999px; color: var(--mm-white); background: var(--mm-blue); font-size: 15px; font-weight: 700; }
.mm-meta { margin: 20px 0 0; color: var(--mm-muted); font-size: 15px; }
.mm-article-card h2, .mm-article-card h3 { margin: 16px 0; color: var(--mm-navy); font-size: clamp(30px, 3vw, 42px); line-height: 1.35; }
.mm-article-card h2 a, .mm-article-card h3 a { color: inherit; }
.mm-article-card p { color: var(--mm-muted); font-size: 19px; line-height: 1.8; }
.mm-readmore { color: var(--mm-blue); font-size: 18px; font-weight: 800; }

.mm-cta { padding: 78px 0; color: var(--mm-white); background: var(--mm-navy); }
.mm-cta .mm-container { display: flex; gap: 35px; align-items: center; justify-content: space-between; }
.mm-cta h2 { max-width: 820px; margin: 0; color: var(--mm-white); font-size: clamp(34px, 4vw, 50px); line-height: 1.35; }
.mm-footer { padding: 38px 0; background: var(--mm-white); }
.mm-footer .mm-container { display: flex; gap: 24px; align-items: center; justify-content: space-between; color: var(--mm-muted); }
.mm-footer strong { color: var(--mm-navy); font-size: 20px; }

.mm-articles-hero { position: relative; padding: 96px 0; color: var(--mm-white); background: linear-gradient(135deg, var(--mm-navy), var(--mm-navy-2)); }
.mm-articles-hero::before, .mm-articles-hero::after { position: absolute; border-radius: 50%; background: rgba(22,155,213,.14); content: ""; }
.mm-articles-hero::before { width: 260px; height: 260px; left: 80px; top: 40px; }
.mm-articles-hero::after { width: 340px; height: 340px; left: 190px; bottom: -130px; }
.mm-articles-hero .mm-container { position: relative; z-index: 1; }
.mm-articles-hero .mm-title { color: var(--mm-white); font-size: clamp(54px, 7vw, 78px); }
.mm-search { display: flex; max-width: 620px; margin-top: 36px; padding: 6px; border-radius: 999px; color: var(--mm-muted); background: var(--mm-white); }
.mm-search input { min-width: 0; flex: 1; padding: 12px 20px; border: 0; outline: 0; color: var(--mm-navy); background: transparent; font: inherit; }
.mm-search button { padding: 11px 25px; border: 0; border-radius: 999px; color: var(--mm-white); background: var(--mm-blue); font: inherit; font-weight: 800; cursor: pointer; }
.mm-filter-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.mm-filter { padding: 10px 22px; border: 1px solid var(--mm-pale); border-radius: 999px; color: var(--mm-navy); background: var(--mm-white); font-weight: 600; }
.mm-filter.mm-active { color: var(--mm-white); border-color: var(--mm-blue); background: var(--mm-blue); }
.mm-articles-list { margin-top: 36px; }
.mm-articles-list .mm-article-card { margin-top: 28px; }
.mm-article-image-fallback { color: var(--mm-navy); background: linear-gradient(135deg, #fff, #dcecf3); font-size: 28px; font-weight: 800; }
.mm-pagination { margin-top: 40px; }
.mm-pagination .page-numbers { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.mm-pagination a, .mm-pagination span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 999px; color: var(--mm-navy); background: var(--mm-off); }
.mm-pagination .current { color: var(--mm-white); background: var(--mm-blue); }
.mm-article-empty { margin-top: 28px; padding: 38px; border: 1px dashed #b7c5ca; border-radius: 24px; color: var(--mm-muted); background: var(--mm-white); text-align: center; }

/* Unified internal pages */
.mm-page-hero { padding: 100px 0; background: var(--mm-off); }
.mm-page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.mm-page-hero .mm-title { max-width: 880px; font-size: clamp(46px, 6vw, 72px); }
.mm-profile-image { min-height: 520px; border-radius: var(--mm-radius); background-color: var(--mm-navy); background-position: center; background-repeat: no-repeat; background-size: cover; box-shadow: var(--mm-shadow); }
.mm-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.mm-process-grid.mm-process-four { grid-template-columns: repeat(4, 1fr); }
.mm-process-grid article { padding: 34px; border: 1px solid var(--mm-pale); border-radius: 24px; background: var(--mm-white); }
.mm-process-grid span, .mm-catalog-card > span, .mm-detail-number { display: inline-flex; min-width: 52px; min-height: 52px; align-items: center; justify-content: center; border-radius: 50%; color: var(--mm-white); background: var(--mm-blue); font-weight: 800; }
.mm-process-grid h3 { margin: 22px 0 10px; color: var(--mm-navy); font-size: 25px; }
.mm-process-grid p { margin: 0; color: var(--mm-muted); font-size: 17px; line-height: 1.8; }
.mm-chip-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.mm-chip-grid a { padding: 13px 22px; border: 1px solid var(--mm-pale); border-radius: 999px; color: var(--mm-navy); background: var(--mm-off); font-weight: 700; }
.mm-chip-grid a:hover { color: var(--mm-white); border-color: var(--mm-blue); background: var(--mm-blue); }
.mm-services-hero { color: var(--mm-white); background: linear-gradient(135deg, var(--mm-navy), var(--mm-navy-2)); }
.mm-services-hero .mm-title { color: var(--mm-white); }
.mm-services-hero .mm-lead { max-width: 940px; color: #d7e8ee; }
.mm-service-catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.mm-catalog-card { display: block; min-height: 310px; padding: 36px; border: 1px solid var(--mm-pale); border-radius: var(--mm-radius); color: var(--mm-ink); background: var(--mm-off); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.mm-catalog-card:hover { transform: translateY(-4px); border-color: var(--mm-blue); box-shadow: var(--mm-shadow); }
.mm-catalog-card h2 { margin: 22px 0 12px; color: var(--mm-navy); font-size: 27px; line-height: 1.45; }
.mm-catalog-card p { min-height: 62px; margin: 0 0 22px; color: var(--mm-muted); font-size: 17px; line-height: 1.8; }
.mm-catalog-card b { color: var(--mm-blue); }
.mm-contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.mm-contact-facts { display: grid; gap: 14px; margin-top: 36px; }
.mm-contact-facts div { padding: 20px 22px; border: 1px solid var(--mm-pale); border-radius: 18px; background: var(--mm-off); }
.mm-contact-facts span { display: block; margin-bottom: 6px; color: var(--mm-blue); font-size: 14px; font-weight: 800; }
.mm-contact-facts strong { color: var(--mm-navy); font-size: 17px; }
.mm-contact-form { padding: 36px; border-radius: var(--mm-radius); color: var(--mm-white); background: var(--mm-navy); }
.mm-contact-form p { margin: 0 0 18px; }
.mm-contact-form label { display: block; color: #d7e8ee; font-size: 15px; }
.mm-contact-form input:not([type="submit"]), .mm-contact-form textarea, .mm-contact-form select { width: 100%; margin-top: 7px; padding: 14px 16px !important; border: 1px solid #6f8d99 !important; border-radius: 12px !important; color: var(--mm-white) !important; background: rgba(255,255,255,.08) !important; font: inherit; }
.mm-contact-form textarea { min-height: 150px; }
.mm-contact-form input[type="submit"] { padding: 13px 28px !important; border: 0 !important; border-radius: 999px !important; color: var(--mm-white) !important; background: var(--mm-blue) !important; font: inherit; font-weight: 800; cursor: pointer; }
.mm-contact-form .wpcf7-response-output { margin: 20px 0 0 !important; border-radius: 12px; }
.mm-detail-hero { padding: 86px 0; color: var(--mm-white); background: linear-gradient(135deg, var(--mm-navy), var(--mm-navy-2)); }
.mm-detail-hero .mm-title { max-width: 980px; margin-top: 22px; color: var(--mm-white); }
.mm-detail-hero .mm-lead { max-width: 940px; color: #d7e8ee; }
.mm-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.mm-detail-block { padding: 34px; border: 1px solid var(--mm-pale); border-radius: var(--mm-radius); background: var(--mm-white); }
.mm-detail-block.mm-detail-problem { grid-column: 1 / -1; color: var(--mm-white); border: 0; background: var(--mm-navy); }
.mm-detail-block h2 { margin: 0 0 18px; color: var(--mm-navy); font-size: 28px; }
.mm-detail-block.mm-detail-problem h2 { color: var(--mm-white); }
.mm-detail-block p, .mm-detail-block li { color: var(--mm-muted); font-size: 17px; line-height: 1.9; }
.mm-detail-block.mm-detail-problem p { color: #d7e8ee; }
.mm-detail-block ul { margin: 0; padding-right: 22px; }
.mm-detail-block li + li { margin-top: 8px; }
.mm-mobile-bar { display: none; }

@media (max-width: 900px) {
  .mm-container { width: min(100% - 32px, 720px); }
  .mm-section { padding: 72px 0; }
  .mm-header-inner { min-height: 88px; grid-template-columns: 1fr auto; gap: 16px; }
  .mm-brand img { width: 128px; }
  .mm-nav-toggle { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: var(--mm-white); background: var(--mm-navy); font-size: 22px; }
  .mm-nav { display: none; position: absolute; top: 88px; right: 16px; left: 16px; padding: 22px; flex-direction: column; border-radius: 20px; background: var(--mm-white); box-shadow: var(--mm-shadow); }
  .mm-nav.mm-open { display: flex; }
  .mm-header .mm-btn { display: none; }
  .mm-home-hero .mm-container, .mm-about-grid, .mm-services-grid, .mm-article-card { grid-template-columns: 1fr; }
  .mm-home-hero .mm-container { padding: 58px 0; gap: 42px; }
  .mm-home-hero .mm-hero-copy { order: 1; }
  .mm-home-hero .mm-hero-visual { min-height: 430px; order: 2; }
  .mm-home-hero .mm-hero-visual img { min-height: 430px; }
  .mm-hero-copy h1 { font-size: 48px; }
  .mm-stats-grid { grid-template-columns: 1fr; }
  .mm-stat + .mm-stat::before { top: 0; right: 12%; width: 76%; height: 1px; }
  .mm-about-grid { gap: 34px; }
  .mm-quote { padding: 36px 26px; }
  .mm-quote blockquote { font-size: 23px; }
  .mm-services-head { margin-bottom: 36px; }
  .mm-service-featured { min-height: auto; }
  .mm-article-card { gap: 28px; }
  .mm-article-image { min-height: 280px; }
  .mm-cta .mm-container, .mm-footer .mm-container { align-items: stretch; flex-direction: column; text-align: center; }
  .mm-cta .mm-btn { width: 100%; }
  .mm-page-hero { padding: 68px 0; }
  .mm-page-hero-grid, .mm-contact-grid, .mm-detail-layout { grid-template-columns: 1fr; }
  .mm-profile-image { min-height: 420px; }
  .mm-process-grid, .mm-process-grid.mm-process-four, .mm-service-catalog { grid-template-columns: 1fr; }
  .mm-detail-block.mm-detail-problem { grid-column: auto; }
  .mm-mobile-bar { display: grid; position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--mm-pale); background: rgba(255,255,255,.97); box-shadow: 0 -8px 28px rgba(21,56,70,.12); backdrop-filter: blur(10px); }
  .mm-mobile-bar a { display: flex; min-height: 62px; align-items: center; justify-content: center; padding: 8px 4px; color: var(--mm-navy); font-size: 13px; font-weight: 700; text-align: center; }
  .mm-mobile-bar a.mm-current { color: var(--mm-blue); }
  .mm-mobile-bar a.mm-mobile-cta { color: var(--mm-white); background: var(--mm-blue); }
  body.mm-live-redesign { padding-bottom: 62px; }
}

@media (max-width: 640px) {
  .mm-container { width: min(100% - 28px, 560px); }
  .mm-section { padding: 58px 0; }
  .mm-title, .mm-page-hero .mm-title { font-size: 36px; }
  .mm-lead { font-size: 17px; line-height: 1.75; }
  .mm-home-hero .mm-container { min-height: auto; padding: 48px 0; gap: 30px; }
  .mm-hero-copy h1 { font-size: 40px; }
  .mm-home-hero .mm-hero-visual, .mm-home-hero .mm-hero-visual img { min-height: 350px; }
  .mm-profile-image { min-height: 360px; }
  .mm-service, .mm-catalog-card, .mm-detail-block, .mm-contact-form { padding: 26px; }
  .mm-catalog-card { min-height: 0; }
  .mm-catalog-card h2 { font-size: 23px; }
  .mm-catalog-card p { min-height: 0; }
  .mm-articles-hero { padding: 64px 0; }
  .mm-articles-hero .mm-title { font-size: 46px; }
  .mm-search { width: 100%; }
}

@media (max-width: 390px) {
  .mm-container { width: min(100% - 24px, 360px); }
  .mm-brand img { width: 112px; }
  .mm-header-inner { min-height: 80px; }
  .mm-nav { top: 80px; }
  .mm-title, .mm-page-hero .mm-title { font-size: 32px; }
  .mm-hero-copy h1 { font-size: 36px; }
  .mm-home-hero .mm-hero-visual, .mm-home-hero .mm-hero-visual img, .mm-profile-image { min-height: 320px; }
  .mm-hero-actions { align-items: stretch; flex-direction: column; }
  .mm-hero-actions .mm-btn { width: 100%; }
  .mm-search button { padding-inline: 18px; }
  .mm-mobile-bar a { font-size: 12px; }
}
