/*
Theme Name: Marketerlek New
Theme URI: https://marketerlek.com/
Author: Marketerlek
Description: قالب ماركيتيرلك الجديد — قالب عربي RTL مخصص مبني على تصميم Figma "ماركيتيرلك الجديد".
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: marketerlek
Tags: rtl-language-support, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --ml-navy: #00111b;
  --ml-navy-2: #103246;
  --ml-blue: #204b65;
  --ml-blue-2: #21506d;
  --ml-orange: #fe863e;
  --ml-purple: #8a38f5;
  --ml-indigo: #432cff;
  --ml-ink: #111827;
  --ml-gray: #6b7280;
  --ml-gray-2: #4b5563;
  --ml-surface: #efeef9;
  --ml-surface-2: #f3f4f6;
  --ml-line: #e3e6ec;
  --ml-white: #fff;
  --ml-radius: 24px;
  --ml-radius-sm: 14px;
  --ml-container: 1230px;
  --ml-header-h: 92px;
  --ml-shadow: 0 25px 50px -12px rgba(0, 0, 0, .15);
  --ml-head: "Thmanyah Serif Display", "Noto Naskh Arabic", serif;
  --ml-body: "Thmanyah Serif Text", "Noto Naskh Arabic", serif;
  --ml-ui: "Thmanyah Sans", "IBM Plex Sans Arabic", sans-serif;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.ml-no-scroll { overflow: hidden; }
body.ml-body {
  margin: 0;
  font-family: var(--ml-body);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ml-ink);
  background: var(--ml-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
h1, h2, h3, h4 { font-family: var(--ml-head); line-height: 1.25; margin: 0 0 .4em; font-weight: 700; }
p { margin: 0 0 1rem; }
button { font: inherit; cursor: pointer; }
.ml-i { width: 1.1em; height: 1.1em; vertical-align: -0.18em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.ml-container { width: 100%; max-width: var(--ml-container); margin-inline: auto; padding-inline: 24px; }
.ml-skip { position: absolute; right: -999px; top: 0; z-index: 200; background: #fff; padding: 10px 16px; }
.ml-skip:focus { right: 8px; top: 8px; }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.ml-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 16px; border: 1px solid transparent;
  font-family: var(--ml-ui); font-weight: 700; font-size: 16px; line-height: 1;
  transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.ml-btn:hover { transform: translateY(-2px); }
.ml-btn--dark { background: var(--ml-ink); color: #fff; }
.ml-btn--dark:hover { background: #000; }
.ml-btn--light { background: var(--ml-surface-2); color: var(--ml-ink); }
.ml-btn--orange { background: var(--ml-orange); color: #fff; }
.ml-btn--outline { border-color: var(--ml-blue); color: var(--ml-blue); background: transparent; padding: 12px 26px; border-radius: 999px; }
.ml-btn--outline:hover { background: var(--ml-blue); color: #fff; }
.ml-btn--link { padding: 0; color: var(--ml-blue); font-family: var(--ml-ui); font-weight: 700; }
.ml-more { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-family: var(--ml-ui); font-weight: 500; }
.ml-more .ml-i { transition: transform .2s ease; }
.ml-more:hover .ml-i { transform: translateX(-4px); }
.ml-round {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ml-line);
  background: #fff; color: var(--ml-ink); display: grid; place-items: center; transition: .2s;
}
.ml-round:hover { background: var(--ml-blue); color: #fff; border-color: var(--ml-blue); }

/* ==========================================================================
   4. Header
   ========================================================================== */
.ml-header { position: fixed; inset-inline: 0; top: 0; z-index: 100; padding: 14px 0; transition: background .25s ease, box-shadow .25s ease, padding .25s ease; }
.ml-header.is-scrolled { background: rgba(255,255,255,.9); backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(0,0,0,.06); padding: 8px 0; }
.ml-header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ml-header__brand { flex: 1; }
.ml-logo { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; }
.ml-logo__mark { width: 52px; height: auto; }
.ml-logo img { max-height: 54px; width: auto; display: block; }
.ml-logo__text { font-family: var(--ml-head); font-weight: 700; font-size: 22px; color: var(--ml-ink); }
.ml-logo--light .ml-logo__text { color: #fff; }
.ml-logo--light .ml-logo__mark { filter: brightness(0) invert(1); }
.ml-menu-toggle { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: var(--ml-ink); font-family: var(--ml-ui); font-weight: 500; }
.ml-menu-toggle__bars { display: flex; flex-direction: column; gap: 5px; width: 34px; }
.ml-menu-toggle__bars i { height: 2.5px; background: currentColor; border-radius: 2px; }
.ml-header.is-scrolled .ml-menu-toggle, .ml-header.is-scrolled .ml-lang { color: var(--ml-ink); }
/* Dark-hero pages: light header over dark background */
body.ml-dark-hero .ml-menu-toggle,
body.ml-dark-hero .ml-lang,
body.ml-dark-hero .ml-header__wa,
body.ml-dark-hero .ml-logo__text { color: #fff; }
body.ml-dark-hero .ml-logo__mark { filter: brightness(0) invert(1); }
body.ml-dark-hero .ml-header.is-scrolled .ml-menu-toggle,
body.ml-dark-hero .ml-header.is-scrolled .ml-lang,
body.ml-dark-hero .ml-header.is-scrolled .ml-header__wa,
body.ml-dark-hero .ml-header.is-scrolled .ml-logo__text { color: var(--ml-ink); }
body.ml-dark-hero .ml-header.is-scrolled .ml-logo__mark { filter: none; }
.ml-header__actions { display: flex; align-items: center; gap: 18px; flex: 1; justify-content: flex-end; }
.ml-lang { font-family: var(--ml-ui); font-weight: 500; font-size: 16px; }
.ml-header__wa { display: grid; place-items: center; color: var(--ml-ink); }

/* Header center: menu links open on both sides of the "القائمة" toggle */
.ml-header__center { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 28px; }
.ml-nav { opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .22s ease, transform .22s ease, visibility .22s; }
.ml-header.is-menu-open .ml-nav { opacity: 1; visibility: visible; transform: none; }
.ml-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.ml-nav__list li { margin: 0; }
.ml-nav__list a { font-family: var(--ml-ui); font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: inherit; white-space: nowrap; }
.ml-nav__list a:hover, .ml-nav__list .current-menu-item > a { color: var(--ml-orange); }
.ml-nav .sub-menu { display: none; }

/* Toggle becomes a close (X) when open */
.ml-menu-toggle.is-active .ml-menu-toggle__bars i:first-child { transform: translateY(3.75px) rotate(45deg); }
.ml-menu-toggle.is-active .ml-menu-toggle__bars i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.ml-menu-toggle__bars i { transition: transform .25s ease; }

/* ==========================================================================
   5. Hero
   ========================================================================== */
.ml-main { display: block; }
.ml-hero { position: relative; padding: 190px 0 0; overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(138,56,245,.10), transparent 42%),
    radial-gradient(circle at 88% 16%, rgba(254,134,62,.12), transparent 46%),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 70%);
}
.ml-hero::before { content: ""; position: absolute; inset: 0; background: url("assets/img/hero-bg.png") center top / cover no-repeat; opacity: .55; pointer-events: none; }
.ml-hero__bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(32,75,101,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(32,75,101,.05) 1px, transparent 1px); background-size: 60px 60px; mask-image: linear-gradient(180deg,#000,transparent 78%); pointer-events: none; }
.ml-hero__inner { position: relative; text-align: center; }
.ml-hero__text { max-width: 900px; margin-inline: auto; }
.ml-hero__title { font-weight: 900; font-size: clamp(40px, 7vw, 88px); line-height: 1.08; letter-spacing: -.5px; margin-bottom: 22px; }
.ml-hero__lead { font-size: clamp(16px, 2vw, 21px); line-height: 1.8; color: var(--ml-gray-2); max-width: 760px; margin: 0 auto 34px; }
.ml-hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.ml-hero__showcase { margin-top: 40px; max-width: 1024px; margin-inline: auto; }
.ml-hero__showcase img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 17, 27, .18)); }

/* ==========================================================================
   6. Sections
   ========================================================================== */
.ml-section { padding: 90px 0; }
.ml-section--light { background: #fff; }
.ml-section--surface { background: linear-gradient(180deg, var(--ml-surface-2), #fff); }
.ml-section--dark { background: var(--ml-navy); color: #fff; }
.ml-section--orange { background: linear-gradient(120deg, #ff8a3d 0%, #fe863e 55%, #f0742a 100%); color: #fff; }
.ml-section__head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.ml-section__title { font-weight: 700; font-size: clamp(30px, 4vw, 46px); }
.ml-section__title--light { color: #fff; }
.ml-section__sub { color: rgba(255,255,255,.72); }
.ml-section:not(.ml-section--dark):not(.ml-section--orange) .ml-section__sub { color: var(--ml-gray); }
.ml-section--dark .ml-section__title { color: #fff; }

/* Heading row (right aligned with rule) */
.ml-heading { display: flex; align-items: center; gap: 26px; margin-bottom: 46px; }
.ml-heading--rule { padding-bottom: 20px; border-bottom: 1px solid var(--ml-line); }
.ml-heading__title { font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); margin: 0; }
.ml-heading__action { margin-inline-start: auto; }

/* ==========================================================================
   7. Cards
   ========================================================================== */
.ml-cards { display: grid; gap: 26px; }
.ml-cards--3 { grid-template-columns: repeat(3, 1fr); }
.ml-card { border-radius: var(--ml-radius); padding: 34px 30px; }
.ml-card--dark { position: relative; color: #fff; background: linear-gradient(150deg, rgba(32,75,101,.55), rgba(0,17,27,0) 62%), rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.14); }
.ml-card--light { background: #fff; border: 1px solid var(--ml-line); box-shadow: 0 20px 40px -30px rgba(0,17,27,.4); }
.ml-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(59,164,226,.18); color: #4fb0ea; margin-bottom: 20px; }
.ml-card--light .ml-card__icon { background: var(--ml-surface); color: var(--ml-blue); }
.ml-card__title { font-size: 24px; font-weight: 700; }
.ml-card__text { color: rgba(255,255,255,.78); margin-bottom: 18px; }
.ml-card--light .ml-card__text { color: var(--ml-gray-2); }
.ml-card .ml-more { color: #fff; }

/* ==========================================================================
   8. Carousel
   ========================================================================== */
.ml-carousel { position: relative; }
.ml-carousel [data-carousel-track] { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
.ml-carousel [data-carousel-track]::-webkit-scrollbar { display: none; }
.ml-carousel .ml-card { min-width: 360px; scroll-snap-align: start; }
.ml-carousel .ml-post-card { min-width: 384px; max-width: 384px; scroll-snap-align: start; }
.ml-posts-track { scroll-behavior: smooth; }
.ml-carousel__nav .ml-round svg { transform: none; }
.ml-carousel__nav .ml-round[data-carousel-prev] svg { transform: rotate(-90deg); }
.ml-carousel__nav .ml-round[data-carousel-next] svg { transform: rotate(90deg); }
.ml-carousel--bleed [data-carousel-track] { padding-inline: max(24px, calc((100vw - var(--ml-container)) / 2 + 24px)); }
.ml-carousel__nav { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }

/* Side arrows (services carousels) */
.ml-carousel__side {
  position: absolute; z-index: 5; top: calc((100% - 35px) / 2); transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ml-line);
  background: #fff; color: var(--ml-ink); display: grid; place-items: center;
  box-shadow: 0 14px 30px -12px rgba(0, 17, 27, .35); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.ml-carousel__side:hover { background: var(--ml-blue); border-color: var(--ml-blue); color: #fff; }
.ml-carousel__side[data-carousel-prev] { inset-inline-start: -22px; }
.ml-carousel__side[data-carousel-next] { inset-inline-end: -22px; }
.ml-carousel__side svg { transform: none; }
.ml-carousel__side[data-carousel-prev] svg { transform: rotate(-90deg); }
.ml-carousel__side[data-carousel-next] svg { transform: rotate(90deg); }
.ml-carousel__side.is-disabled, .ml-carousel__nav .ml-round.is-disabled { opacity: .35; pointer-events: none; }
.ml-carousel.is-static .ml-carousel__side { display: none; }
@media (max-width: 560px) {
  .ml-carousel__side { width: 40px; height: 40px; }
  .ml-carousel__side[data-carousel-prev] { inset-inline-start: 4px; }
  .ml-carousel__side[data-carousel-next] { inset-inline-end: 4px; }
}

.ml-dots { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.ml-dots[hidden] { display: none; }
.ml-dots span, .ml-dots__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--ml-line);
  border: 0; padding: 0; appearance: none; -webkit-appearance: none; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.ml-dots span.is-active, .ml-dots__dot.is-active { background: var(--ml-orange); }
.ml-dots__dot:hover { background: var(--ml-gray); transform: scale(1.2); }

/* ==========================================================================
   9. Projects (home)
   ========================================================================== */
.ml-projects__track { display: flex; gap: 24px; }
.ml-project { position: relative; width: 246px; min-width: 246px; height: 460px; border-radius: 20px; overflow: hidden; scroll-snap-align: center;
  background-image: var(--ml-project-image); background-size: cover; background-position: center; filter: grayscale(1); transition: filter .3s; }
.ml-project:hover { filter: grayscale(.4); }
.ml-project--featured { width: 320px; min-width: 320px; filter: none; background: linear-gradient(180deg, var(--ml-blue), #000); }
.ml-project__link { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 24px; color: #fff; position: relative; }
.ml-project__media { position: absolute; inset: 0; }
.ml-project__media img { width: 100%; height: 100%; object-fit: cover; }
.ml-project__body { position: relative; }
.ml-project__title { display: block; font-family: var(--ml-head); font-weight: 700; font-size: 22px; margin-bottom: 10px; }
.ml-project__text { display: block; font-size: 14px; line-height: 1.7; opacity: .85; }
.ml-project:not(.ml-project--featured) .ml-project__text { display: none; }

/* ==========================================================================
   10. About
   ========================================================================== */
.ml-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ml-about__title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; }
.ml-about__lead { color: var(--ml-gray-2); font-size: 18px; }
.ml-about__media { position: relative; }
.ml-about__media img { border-radius: 28px; width: 100%; }
.ml-about__badge { position: absolute; inset-block-end: 26px; inset-inline-start: -10px; background: #fff; border-radius: 16px; padding: 12px 18px; box-shadow: var(--ml-shadow); font-family: var(--ml-ui); display: flex; align-items: center; gap: 10px; }
.ml-about__badge b { color: var(--ml-blue); font-size: 22px; }
.ml-stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; margin: 34px 0; }
.ml-stat { text-align: center; }
.ml-stat__num { display: block; font-family: var(--ml-head); font-weight: 700; font-size: 30px; color: var(--ml-ink); }
.ml-stat__label { font-size: 14px; color: var(--ml-gray); }

/* ==========================================================================
   11. Solutions / accordion
   ========================================================================== */
.ml-solutions__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ml-solutions__media img { width: 100%; }
.ml-section__title--start { text-align: start; }
.ml-acc { display: flex; flex-direction: column; gap: 4px; }
.ml-acc__item { border-bottom: 1px solid rgba(0,0,0,.06); }
.ml-acc__head { width: 100%; display: flex; align-items: center; gap: 16px; background: none; border: 0; padding: 20px 4px; text-align: start; }
.ml-acc__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ml-blue); color: #fff; flex: none; }
.ml-acc__label { font-family: var(--ml-head); font-weight: 700; font-size: 22px; flex: 1; }
.ml-acc__chev { transition: transform .25s; color: var(--ml-gray); }
.ml-acc__item.is-open .ml-acc__chev { transform: rotate(180deg); }
.ml-acc__panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; padding-inline-start: 62px; }
.ml-acc__item.is-open .ml-acc__panel { max-height: 240px; }
.ml-acc__panel p { color: var(--ml-gray-2); }

/* ==========================================================================
   12. Partners (logo wall)
   ========================================================================== */
.ml-partners {
  color: #fff;
  background:
    radial-gradient(circle at 14% 0%, rgba(53, 0, 109, .55), transparent 58%),
    radial-gradient(circle at 88% 100%, rgba(53, 0, 109, .35), transparent 55%),
    linear-gradient(120deg, #ff8f43 0%, #fe863e 55%, #ef7229 100%);
}
.ml-partners .ml-section__head { margin-bottom: 40px; }
.ml-partners__wall { display: grid; gap: 26px; align-items: center; }
.ml-partners__wall img { width: 100%; height: auto; display: block; filter: brightness(0) invert(1); opacity: .96; }

/* ==========================================================================
   13. Blog / posts
   ========================================================================== */
.ml-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.ml-posts--grid { grid-template-columns: repeat(3, 1fr); }
.ml-post-card { display: flex; flex-direction: column; }
.ml-post-card__media { border-radius: 20px; overflow: hidden; aspect-ratio: 16/10; display: block; background: var(--ml-surface); }
.ml-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ml-post-card:hover .ml-post-card__media img { transform: scale(1.05); }
.ml-post-card__title { font-size: 20px; margin: 18px 0 0; }
.ml-post-card__title a:hover { color: var(--ml-orange); }
.ml-post-card__excerpt { color: var(--ml-gray); font-size: 15px; margin-top: 8px; }
.ml-dots--center { justify-content: center; }

/* ==========================================================================
   14. Page hero / generic page
   ========================================================================== */
.ml-page-hero { padding: 200px 0 70px; background: var(--ml-navy); color: #fff; background-size: cover; background-position: center; }
.ml-page-hero--light { background: linear-gradient(180deg, var(--ml-surface), #fff); color: var(--ml-ink); }
.ml-page-hero--dark { background: var(--ml-navy); color: #fff; }
.ml-page-hero__eyebrow { font-family: var(--ml-ui); color: var(--ml-orange); font-weight: 700; margin-bottom: 8px; }
.ml-page-hero__title { font-size: clamp(34px, 5vw, 60px); font-weight: 700; margin: 0; }
.ml-page-hero__lead { color: rgba(255,255,255,.75); max-width: 620px; margin-top: 14px; }
.ml-page-hero--light .ml-page-hero__lead { color: var(--ml-gray); }
.ml-content { max-width: 900px; font-size: 18px; line-height: 2; }
.ml-content--narrow { max-width: 820px; }
.ml-content h2, .ml-content h3 { margin-top: 1.4em; }
.ml-content img { border-radius: 18px; margin: 1.4em 0; }
.ml-empty { color: var(--ml-gray); text-align: center; padding: 40px 0; }

/* Article */
.ml-article__hero { padding: 200px 0 70px; background: var(--ml-navy); color: #fff; background-size: cover; background-position: center; }
.ml-article__meta { font-family: var(--ml-ui); color: rgba(255,255,255,.75); margin-bottom: 14px; }
.ml-article__title { font-size: clamp(30px, 4.4vw, 54px); font-weight: 700; }
.ml-article__body { padding: 60px 0; }
.ml-related { border-top: 1px solid var(--ml-line); }

/* Table of contents (H2 only) */
.ml-toc { margin: 0 0 34px; padding: 24px 28px; background: #fff; border: 1px solid var(--ml-line); border-inline-start: 4px solid var(--ml-orange); border-radius: var(--ml-radius-sm); box-shadow: 0 20px 40px -30px rgba(0,17,27,.4); }
.ml-toc__title { font-family: var(--ml-head); font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.ml-toc__list { margin: 0; padding: 0; list-style: none; counter-reset: ml-toc; display: grid; gap: 10px; }
.ml-toc__list li { counter-increment: ml-toc; position: relative; padding-inline-start: 34px; }
.ml-toc__list li::before {
  content: counter(ml-toc); position: absolute; inset-inline-start: 0; top: 3px;
  width: 24px; height: 24px; border-radius: 50%; background: rgba(254, 134, 62, .14);
  color: var(--ml-orange); font-family: var(--ml-ui); font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}
.ml-toc__list a { color: var(--ml-ink); text-decoration: none; transition: color .2s; }
.ml-toc__list a:hover { color: var(--ml-orange); }
.ml-article__body h2[id] { scroll-margin-top: calc( var(--ml-header-h) + 20px ); }

/* Content tables (comparison tables in articles) */
.ml-table-wrap { overflow-x: auto; margin: 1.6em 0; -webkit-overflow-scrolling: touch; }
.ml-content table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.8; }
.ml-content th, .ml-content td { border: 1px solid var(--ml-line); padding: 12px 16px; text-align: right; }
.ml-content thead th { background: var(--ml-navy); color: #fff; font-family: var(--ml-ui); font-weight: 700; font-size: 15px; }
.ml-content tbody tr:nth-child(even) { background: var(--ml-surface-2); }
@media (max-width: 560px) {
  .ml-content table { min-width: 480px; }
}

/* Sidebar layout */
.ml-sidebar-layout { display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start; }
.ml-sidebar { background: var(--ml-surface); border-radius: 24px; padding: 30px; position: sticky; top: 110px; }
.ml-sidebar__title { font-size: 22px; }
.ml-sidebar__list { list-style: none; padding: 0; margin: 0 0 22px; }
.ml-sidebar__list a { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.ml-sidebar__list a:hover { color: var(--ml-orange); }

/* Contact */
.ml-contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 46px; align-items: start; }
.ml-contact-card { background: var(--ml-navy); color: #fff; border-radius: 24px; padding: 36px; }
.ml-contact-card__title { color: #fff; font-size: 24px; }
.ml-contact { list-style: none; padding: 0; margin: 0 0 20px; }
.ml-contact li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.ml-contact .ml-i { color: var(--ml-orange); flex: none; }
.ml-contact--big { margin-bottom: 26px; }
.ml-form { background: #fff; border: 1px solid var(--ml-line); border-radius: 24px; padding: 34px; box-shadow: 0 30px 60px -40px rgba(0,17,27,.4); }
.ml-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ml-form label { display: block; margin-bottom: 18px; font-family: var(--ml-ui); font-weight: 500; font-size: 15px; }
.ml-form input, .ml-form textarea { width: 100%; margin-top: 8px; padding: 14px 16px; border: 1px solid var(--ml-line); border-radius: 12px; font: inherit; background: #fbfbfd; }
.ml-form input:focus, .ml-form textarea:focus { outline: none; border-color: var(--ml-blue); background: #fff; }
.ml-note { border-radius: 12px; padding: 14px 18px; font-family: var(--ml-ui); }
.ml-note--ok { background: #e7f8ee; color: #1c7c46; }
.ml-note--err { background: #fdeaea; color: #b93030; }

/* 404 */
.ml-404 { padding: 220px 0 120px; text-align: center; }
.ml-404__code { font-family: var(--ml-head); font-weight: 900; font-size: 120px; color: var(--ml-orange); line-height: 1; margin: 0; }
.ml-404__title { font-size: 34px; }
.ml-404__text { color: var(--ml-gray); margin-bottom: 26px; }

/* ==========================================================================
   15. Footer
   ========================================================================== */
.ml-footer { background: var(--ml-navy); color: #fff; padding: 80px 0 30px; }
.ml-footer__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 50px; }
.ml-footer__title { font-size: 26px; font-weight: 500; margin-bottom: 26px; }
.ml-footer .ml-contact li { border-color: rgba(255,255,255,.12); }
.ml-footer__list { list-style: none; padding: 0; margin: 0; }
.ml-footer__list li { border-bottom: 1px solid rgba(255,255,255,.12); }
.ml-footer__list a { display: flex; align-items: center; gap: 8px; padding: 14px 0; justify-content: space-between; }
.ml-footer__list a:hover { color: var(--ml-orange); }
.ml-footer__list .ml-i { order: -1; color: rgba(255,255,255,.6); }
.ml-map { border-radius: 18px; overflow: hidden; filter: grayscale(.3); }
.ml-map iframe { width: 100%; height: 260px; border: 0; display: block; }
.ml-footer__col--map .ml-social { margin-top: 26px; }
.ml-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; }
.ml-social__list { list-style: none; display: flex; justify-content: center; gap: 12px; margin: 0; padding: 0; flex-wrap: wrap; }
.ml-social__link { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: transform .2s ease, opacity .2s ease; }
.ml-social__link svg { width: 20px; height: 20px; fill: currentColor; }
.ml-social__link:hover { transform: translateY(-2px); color: #fff; opacity: .92; }
.ml-social__item--facebook .ml-social__link { background: #3b5998; }
.ml-social__item--x-twitter .ml-social__link { background: #000; }
.ml-social__item--instagram .ml-social__link { background: #d353de; }
.ml-social__item--youtube .ml-social__link { background: #cd201f; }
.ml-social__item--linkedin .ml-social__link { background: #0077b5; }
.ml-footer__copy { color: rgba(255,255,255,.7); margin: 0; font-family: var(--ml-ui); font-size: 15px; }

/* ==========================================================================
   16. Floating buttons
   ========================================================================== */
.ml-float { position: fixed; inset-inline-start: 22px; inset-block-end: 24px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.ml-float__btn { width: 54px; height: 54px; border-radius: 50%; border: 0; display: grid; place-items: center; box-shadow: var(--ml-shadow); }
.ml-float__btn--support { background: #fff; color: var(--ml-ink); }
.ml-float__btn--top { background: var(--ml-orange); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease; }
.ml-float__btn--top.is-visible { opacity: 1; visibility: visible; transform: none; }
.ml-float__wa {
  position: fixed; left: 22px; inset-block-end: 24px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: var(--ml-shadow);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.ml-float__wa svg { width: 27px; height: 27px; }
.ml-float__wa:hover { background: #1ebe5b; color: #fff; transform: scale(1.07); }

/* ==========================================================================
   17. Pagination
   ========================================================================== */
.ml-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.ml-pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--ml-line); font-family: var(--ml-ui); }
.ml-pagination .current, .ml-pagination a:hover { background: var(--ml-blue); color: #fff; border-color: var(--ml-blue); }

/* ==========================================================================
   17b. About page (matches Figma "about page")
   ========================================================================== */
.ml-about-intro {
  padding-top: 210px;
  background:
    radial-gradient(circle at 12% 10%, rgba(138, 56, 245, .08), transparent 40%),
    radial-gradient(circle at 88% 8%, rgba(254, 134, 62, .10), transparent 42%),
    linear-gradient(180deg, #fbfaff, #fff 70%);
}
.ml-about-intro .ml-about__title { font-size: clamp(28px, 3.6vw, 46px); }
.ml-cards--2 { grid-template-columns: repeat(2, 1fr); }
.ml-value { padding: 40px 36px; }
.ml-value__title { font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.ml-value__text { color: var(--ml-gray-2); margin: 0; }
.ml-stats--band { background: linear-gradient(180deg, #f0eefb, #e9e7fa); border-radius: 24px; padding: 44px 40px; margin: 0; }
.ml-stats--band .ml-stat__num { font-size: clamp(34px, 4vw, 52px); }
.ml-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.ml-team__card { margin: 0; text-align: center; }
.ml-team__photo { display: block; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--ml-line); box-shadow: 0 24px 40px -32px rgba(0, 17, 27, .4); }
.ml-team__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; }
.ml-team__name { margin-top: 16px; font-family: var(--ml-ui); font-weight: 700; font-size: 18px; }
.ml-cta-band { padding: 20px 0 80px; }
.ml-cta-band__inner { background: var(--ml-navy); border-radius: 24px; padding: 26px 40px; display: flex; align-items: center; justify-content: space-between; gap: 26px; color: #fff; flex-wrap: wrap; }
.ml-cta-band__title { font-family: var(--ml-head); font-weight: 700; font-size: 24px; line-height: 1.4; margin: 0; text-align: center; }
.ml-cta-band__title strong { color: var(--ml-orange); }
.ml-cta-band__phone { text-align: end; }
.ml-cta-band__phone span { display: block; color: rgba(255, 255, 255, .7); font-size: 14px; }
.ml-cta-band__phone b { font-family: var(--ml-head); font-size: 26px; }
.ml-btn--outline-light { border: 1px solid rgba(255, 255, 255, .55); color: #fff; border-radius: 999px; padding: 12px 28px; }
.ml-btn--outline-light:hover { background: #fff; color: var(--ml-navy); }
@media (max-width: 992px) {
  .ml-cards--2 { grid-template-columns: 1fr; }
  .ml-team { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ml-team { grid-template-columns: 1fr; }
  .ml-cta-band__inner { flex-direction: column; text-align: center; }
  .ml-cta-band__phone { text-align: center; }
}

/* ==========================================================================
   17c. Services page (matches Figma "services page")
   ========================================================================== */
.ml-services-page {
  padding-top: 210px;
  background:
    radial-gradient(circle at 12% 6%, rgba(138, 56, 245, .08), transparent 40%),
    radial-gradient(circle at 88% 6%, rgba(254, 134, 62, .10), transparent 42%),
    linear-gradient(180deg, #fbfaff, #fff 60%);
}
.ml-card--light .ml-card__icon { background: #efeafd; color: var(--ml-purple); }
.ml-card--light .ml-more { color: var(--ml-blue); }
.ml-card--light .ml-more:hover { color: var(--ml-orange); }
.ml-services-grid { gap: 30px; }

/* ==========================================================================
   17d. Projects page
   ========================================================================== */
.ml-projects-page {
  padding-top: 210px;
  background:
    radial-gradient(circle at 12% 6%, rgba(138, 56, 245, .08), transparent 40%),
    radial-gradient(circle at 88% 6%, rgba(254, 134, 62, .10), transparent 42%),
    linear-gradient(180deg, #fbfaff, #fff 60%);
}
/* Centered slider: one wide card in the middle + a peek of the neighbours */
.ml-carousel--projects { max-width: 1440px; margin-inline: auto; --ml-proj-w: 900px; }
.ml-carousel--projects [data-carousel-track] { padding-inline: calc((100% - var(--ml-proj-w)) / 2); padding-block: 70px 14px; scroll-snap-type: x mandatory; perspective: 1200px; }
.ml-projects-page .ml-project { width: var(--ml-proj-w); min-width: var(--ml-proj-w); height: 500px; scroll-snap-align: center; transition: transform .3s ease, opacity .3s ease; transform-origin: center center; will-change: transform, opacity; }
.ml-projects-page .ml-project { filter: none; }
.ml-projects-page .ml-project:hover { filter: brightness(1.08); }
.ml-projects-page .ml-project:not(.ml-project--featured) .ml-project__text { display: block; }
.ml-carousel--projects .ml-carousel__nav { margin-top: 34px; }
@media (max-width: 992px) { .ml-carousel--projects { --ml-proj-w: 78vw; } }
@media (max-width: 560px) { .ml-carousel--projects { --ml-proj-w: 84vw; } .ml-projects-page .ml-project { height: 420px; } }

/* Single project hero (matches Figma) */
.ml-project-hero {
  padding-top: 200px;
  background:
    radial-gradient(circle at 12% 6%, rgba(138, 56, 245, .08), transparent 40%),
    radial-gradient(circle at 88% 6%, rgba(254, 134, 62, .10), transparent 42%),
    linear-gradient(180deg, #fbfaff, #fff 62%);
}
.ml-project-hero__cover { border-radius: 28px; overflow: hidden; box-shadow: 0 40px 70px -50px rgba(0, 17, 27, .5); background: var(--ml-surface); }
.ml-project-hero__cover img { width: 100%; height: auto; display: block; }
.ml-project-hero__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 28px; }
.ml-project-hero__thumb { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ml-surface); }
.ml-project-hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ml-project-hero__title { margin: 44px 0 0; font-size: clamp(30px, 4.4vw, 56px); font-weight: 700; }
@media (max-width: 768px) { .ml-project-hero__thumbs { grid-template-columns: repeat(3, 1fr); gap: 12px; } }

/* ==========================================================================
   17e. Blog listing + single article (matches Figma)
   ========================================================================== */
.ml-blog-page, .ml-article-page {
  padding-top: 200px;
  background:
    radial-gradient(circle at 12% 6%, rgba(138, 56, 245, .08), transparent 40%),
    radial-gradient(circle at 88% 6%, rgba(254, 134, 62, .10), transparent 42%),
    linear-gradient(180deg, #fbfaff, #fff 62%);
}
.ml-crumb-row { display: flex; justify-content: flex-start; margin-bottom: 14px; }
.ml-crumb { font-family: var(--ml-ui); font-size: 15px; color: var(--ml-gray); display: flex; align-items: center; gap: 8px; }
.ml-crumb a:hover { color: var(--ml-orange); }
.ml-posts--blog { grid-template-columns: repeat(3, 1fr); }
.ml-posts--blog .ml-post-card__title { text-align: center; font-size: 20px; }
.ml-article-card { margin-bottom: 46px; }
.ml-article-card__title { text-align: center; max-width: 1000px; margin: 0 auto 18px; font-size: clamp(28px, 4vw, 52px); font-weight: 700; }
.ml-article-card__meta { display: flex; justify-content: flex-start; align-items: center; gap: 18px; font-family: var(--ml-ui); color: var(--ml-gray); margin-bottom: 28px; }
.ml-article-card__author { display: inline-flex; align-items: center; gap: 8px; }
.ml-article-card__author img { border-radius: 50%; }
.ml-article-card__comments { display: inline-flex; align-items: center; gap: 6px; }
.ml-article-card__cover { border-radius: 24px; overflow: hidden; }
.ml-article-card__cover img { width: 100%; height: auto; display: block; }
.ml-article-page .ml-article__body { max-width: 900px; margin-inline: auto; }
@media (max-width: 768px) { .ml-posts--blog { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ml-posts--blog { grid-template-columns: 1fr; } }

/* ==========================================================================
   17f. Contact page (matches Figma)
   ========================================================================== */
.ml-contact-page {
  padding-top: 200px;
  background:
    radial-gradient(circle at 12% 6%, rgba(138, 56, 245, .08), transparent 40%),
    radial-gradient(circle at 88% 6%, rgba(254, 134, 62, .10), transparent 42%),
    linear-gradient(180deg, #fbfaff, #fff 62%);
}
.ml-contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.ml-panel { background: #fff; border: 1px solid var(--ml-line); border-radius: 24px; padding: 40px; box-shadow: 0 30px 60px -50px rgba(0, 17, 27, .45); }
.ml-panel__title { text-align: center; font-size: 30px; font-weight: 700; margin-bottom: 30px; }
.ml-info { list-style: none; padding: 0; margin: 0; }
.ml-info li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ml-line); font-family: var(--ml-ui); }
.ml-info li:last-child { border-bottom: 0; }
.ml-info .ml-i { color: var(--ml-blue); flex: none; }
.ml-info a:hover { color: var(--ml-orange); }
.ml-contact-page .ml-form { background: transparent; border: 0; box-shadow: none; padding: 0; }
@media (max-width: 992px) { .ml-contact-cards { grid-template-columns: 1fr; } }

/* Terms / privacy page (matches Figma) */
.ml-terms-page {
  padding-top: 200px;
  background:
    radial-gradient(circle at 12% 6%, rgba(138, 56, 245, .08), transparent 40%),
    radial-gradient(circle at 88% 6%, rgba(254, 134, 62, .10), transparent 42%),
    linear-gradient(180deg, #fbfaff, #fff 62%);
}
.ml-terms-card { background: #fff; border: 1px solid var(--ml-line); border-radius: 24px; padding: 50px; max-width: 1100px; margin-inline: auto; box-shadow: 0 30px 60px -50px rgba(0, 17, 27, .45); }
.ml-terms-card section { padding: 28px 0; border-bottom: 1px solid var(--ml-line); }
.ml-terms-card section:last-child { border-bottom: 0; }
.ml-terms-card h3 { display: flex; align-items: center; gap: 12px; font-size: 26px; margin: 0 0 16px; }
.ml-terms-card h3 .ml-i { color: var(--ml-indigo); flex: none; }
.ml-terms-card p { color: var(--ml-gray-2); margin: 0 0 10px; }
.ml-terms-card ul { padding-inline-start: 22px; color: var(--ml-gray-2); }
.ml-terms-card ul li { margin-bottom: 6px; }

/* ==========================================================================
   18. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .ml-carousel .ml-card { min-width: 320px; }
}
@media (max-width: 992px) {
  .ml-about__grid, .ml-solutions__grid, .ml-contact-grid, .ml-sidebar-layout { grid-template-columns: 1fr; gap: 40px; }
  .ml-footer__grid { grid-template-columns: 1fr 1fr; }
  .ml-cards--3, .ml-posts, .ml-posts--grid { grid-template-columns: repeat(2, 1fr); }
  .ml-sidebar { position: static; }
  .ml-about__media { order: -1; }
}
@media (max-width: 768px) {
  .ml-section { padding: 64px 0; }
  .ml-hero { padding-top: 150px; }
  .ml-header { padding: 8px 0; }
  .ml-logo__mark { width: 40px; }
  .ml-logo__text { font-size: 18px; }
  .ml-logo img { max-height: 40px; }
  .ml-menu-toggle__bars { width: 28px; }
  .ml-cards--3, .ml-posts, .ml-posts--grid { grid-template-columns: 1fr; }
  .ml-form__row { grid-template-columns: 1fr; }
  .ml-stats { grid-template-columns: repeat(2, 1fr); }
  .ml-partners__wall { gap: 16px; }
  .ml-footer__grid { grid-template-columns: 1fr; }
  .ml-footer__bottom { flex-direction: column; text-align: center; }
  .ml-carousel--bleed [data-carousel-track] { padding-inline: 24px; }
  /* Mobile: the menu becomes a dropdown panel under the header */
  .ml-header__center { position: static; transform: none; }
  .ml-nav { display: none; }
  .ml-header.is-menu-open .ml-nav { display: block; }
  .ml-header.is-menu-open .ml-header__center {
    position: fixed; top: var(--ml-header-h, 78px); inset-inline: 0;
    background: #fff; padding: 10px 24px 18px;
    box-shadow: 0 24px 40px -24px rgba(0, 17, 27, .4);
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--ml-header-h, 78px)); overflow: auto;
  }
  .ml-header.is-menu-open .ml-menu-toggle { order: 1; align-self: center; margin-bottom: 10px; }
  .ml-header.is-menu-open .ml-nav--start { order: 2; }
  .ml-header.is-menu-open .ml-nav--end { order: 3; }
  .ml-header.is-menu-open .ml-nav { width: 100%; }
  .ml-header.is-menu-open .ml-nav__list { flex-direction: column; gap: 0; }
  .ml-header.is-menu-open .ml-nav__list a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--ml-line); font-size: 18px; }
}
@media (max-width: 480px) {
  .ml-float { inset-inline-start: 14px; inset-block-end: 16px; }
  .ml-float__btn { width: 48px; height: 48px; }
  .ml-float__wa { left: 14px; inset-block-end: 16px; width: 48px; height: 48px; }
  .ml-hero__actions .ml-btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   12b. Partners — single-row client logo slider
   ========================================================================== */
.ml-partners .ml-section__head { margin-bottom: 38px; }
.ml-partners__slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ml-partners__track {
  display: flex;
  align-items: center;
  width: max-content;
  direction: ltr;
  animation: ml-marquee 55s linear infinite;
  will-change: transform;
}
.ml-partners__track img {
  flex: none;
  height: 50px;
  width: auto;
  margin-right: 74px;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.ml-partners__slider:hover .ml-partners__track { animation-play-state: paused; }
@keyframes ml-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 768px) {
  .ml-partners__track img { height: 36px; margin-right: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-partners__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 26px; }
  .ml-partners__slider { -webkit-mask-image: none; mask-image: none; }
}

/* Clients logos are white circular badges -> show original colors (no invert). */
.ml-partners__track img { filter: none; height: 62px; opacity: 1; }
@media (max-width: 768px) { .ml-partners__track img { height: 44px; } }

/* Keep marquee flow LTR so the wide track overflows to the right, not left (RTL page). */
.ml-partners__slider { direction: ltr; }

/* ==========================================================================
   14b. Footer — brand block (logo + about paragraph)
   ========================================================================== */
.ml-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 50px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  text-align: right;
}
.ml-footer__brand .ml-logo { flex-direction: row; align-items: center; gap: 12px; }
.ml-footer__brand .ml-logo__mark { width: 58px; }
.ml-footer__brand .ml-logo__text { font-size: 26px; }
.ml-footer__about {
  margin: 0;
  max-width: 880px;
  color: rgba(255,255,255,.74);
  font-size: 16px;
  line-height: 1.95;
}
@media (max-width: 768px) {
  .ml-footer__about { font-size: 15px; line-height: 1.9; }
}

/* ==========================================================================
   15b. About — "فريق إبداعي" badge over the building image (animated)
   ========================================================================== */
.ml-about__media { position: relative; container-type: inline-size; }
.ml-crew {
  position: absolute;
  inset-inline-end: -4%;
  top: 53.5%;
  width: 40.5%;
  height: 24.5%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55em;
  padding: 0.75em 1.05em;
  background: #fff;
  border-radius: 2.1em;
  box-shadow: 0 22px 45px -32px rgba(0, 17, 27, .5);
  direction: rtl;
  z-index: 2;
  font-size: 3.05px;
  font-size: 3.05cqw;
}
.ml-crew__label {
  font-family: var(--ml-head);
  font-weight: 700;
  font-size: 1em;
  line-height: 1.25;
  color: var(--ml-ink);
  white-space: nowrap;
}
.ml-crew__row { display: flex; align-items: center; gap: 0.55em; }
.ml-crew__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 82%, transparent 100%);
}
.ml-crew__track {
  display: flex;
  align-items: center;
  width: max-content;
  direction: ltr;
  animation: ml-crew-slide 13s linear infinite;
  will-change: transform;
}
.ml-crew__track img {
  flex: none;
  display: block;
  width: 2.45em;
  height: 2.45em;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.5em;
}
.ml-crew__count {
  flex: none;
  width: 2.45em;
  height: 2.45em;
  border-radius: 50%;
  background: var(--ml-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--ml-ui);
  font-weight: 700;
  font-size: 0.82em;
  line-height: 1;
}
@keyframes ml-crew-slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 768px) {
  .ml-crew { inset-inline-end: -4.5%; font-size: 3.4cqw; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-crew__track { animation: none; }
}

/* ==========================================================================
   17e. Single service (Figma node 16193:4008)
   ========================================================================== */
.ml-service-hero__lead { max-width: 780px; margin: 18px 0 0; color: var(--ml-gray); font-size: 17px; line-height: 1.9; }
.ml-service-hero__cta { margin-top: 26px; }
.ml-sidebar__title--form { margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(0,0,0,.08); }
.ml-sidebar .ml-form { padding: 0; border: 0; box-shadow: none; background: transparent; }
.ml-sidebar .ml-form label { font-size: 14px; margin-bottom: 14px; }
.ml-sidebar .ml-form input, .ml-sidebar .ml-form textarea { padding: 12px 14px; }
.ml-sidebar .ml-form .ml-btn { width: 100%; justify-content: center; }
.ml-sidebar-layout .ml-sidebar { max-height: calc(100vh - 130px); overflow: auto; }
.ml-service-content > h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 44px 0 16px; }
.ml-service-content > h2:first-child { margin-top: 0; }
.ml-service-content p { color: var(--ml-gray); line-height: 1.9; margin: 0 0 16px; }

/* ==========================================================================
   17f. Single service — Figma sections (cards + why)
   ========================================================================== */
.ml-service-sec__head { text-align: center; max-width: 820px; margin: 0 auto 44px; }
.ml-service-sec__head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 14px; }
.ml-service-sec__head p { color: var(--ml-gray); line-height: 1.9; margin: 0; }
.ml-service-top .ml-cards--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ml-service-card { text-align: center; padding: 32px 26px; }
.ml-service-card .ml-card__icon { margin: 0 auto 20px; }
.ml-service-card .ml-card__title { font-size: 20px; line-height: 1.6; margin: 0 0 16px; }
.ml-service-card__list { list-style: none; padding: 0; margin: 0; display: inline-block; text-align: right; }
.ml-service-card__list li { position: relative; padding: 7px 24px 7px 0; color: var(--ml-gray-2); line-height: 1.7; }
.ml-service-card__list li::before { content: ""; position: absolute; right: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--ml-orange); }
.ml-service-dots { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.ml-service-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--ml-line); }
.ml-service-dots span:nth-child(1) { background: var(--ml-blue); }
.ml-service-dots span:nth-child(2) { background: var(--ml-orange); }

.ml-service-why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: 60px; align-items: center; }
.ml-service-why__body h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.5; margin: 0 0 16px; }
.ml-service-why__body p { color: var(--ml-gray); line-height: 1.9; margin: 0; }
.ml-service-why__body ul { list-style: none; padding: 0; margin: 22px 0 0; }
.ml-service-why__body ul li { position: relative; padding: 9px 28px 9px 0; line-height: 1.8; }
.ml-service-why__body ul li::before { content: ""; position: absolute; right: 3px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--ml-orange); }
.ml-service-why__media { position: relative; align-self: center; }
.ml-service-why__media img { width: 100%; height: auto; display: block; }
@media (max-width: 992px) {
  .ml-service-why { grid-template-columns: 1fr; gap: 34px; }
  .ml-service-why__media { order: 2; }
}

/* ==========================================================================
   17g. Service page — Figma section components
   ========================================================================== */
.ml-svc-grid { display: grid; gap: 26px; }
.ml-svc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ml-svc-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .ml-svc-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .ml-svc-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ml-svc-grid--4 { grid-template-columns: 1fr; } }

.ml-svc-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 1px solid var(--ml-line); border-radius: 30px; padding: 84px 26px 30px; box-shadow: 0 34px 60px -52px rgba(0, 17, 27, .55); }
.ml-svc-card__icon { position: absolute; top: 22px; inset-inline-start: 22px; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(120% 120% at 30% 20%, #f4eeff 0%, #e4d9ff 100%); color: #6d5ef0; box-shadow: 0 18px 32px -20px rgba(109, 94, 240, .6); }
.ml-svc-card__icon svg { width: 22px; height: 22px; }
.ml-svc-card__title { font-size: 20px; margin: 0 0 12px; }
.ml-svc-card__text { color: var(--ml-gray-2); font-size: 15px; line-height: 1.9; margin: 0; }
.ml-svc-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font-family: var(--ml-ui); font-size: 15px; font-weight: 700; color: var(--ml-ink); }
.ml-svc-card__link svg { width: 18px; height: 18px; }
.ml-svc-card__link:hover { color: var(--ml-orange); }
.ml-svc-card--bare { padding-bottom: 40px; }

.ml-svc-advice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 430px); gap: 56px; align-items: center; }
.ml-svc-advice__text p { color: var(--ml-gray); line-height: 2; margin: 0 0 22px; }
.ml-svc-advice__media img { width: 100%; height: auto; display: block; }
@media (max-width: 992px) { .ml-svc-advice { grid-template-columns: 1fr; } }

.ml-svc-team { background: var(--ml-surface); border-radius: 36px; padding: 46px 40px 40px; text-align: center; }
.ml-svc-team h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 28px; }
.ml-svc-team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ml-svc-team__item { font-weight: 600; line-height: 1.9; }
@media (max-width: 768px) { .ml-svc-team__grid { grid-template-columns: 1fr; } }

.ml-svc-outro { text-align: center; max-width: 800px; margin: 0 auto; }
.ml-svc-outro h2 { font-size: clamp(22px, 2.8vw, 30px); margin: 0 0 12px; }
.ml-svc-outro p { color: var(--ml-gray); line-height: 1.9; margin: 0; }

.ml-svc-stack { display: grid; gap: 60px; }
.ml-svc-sec--tight { padding-top: 0; }

/* Wide CTA band variant */
.ml-cta-band__inner--wide { display: flex; align-items: center; justify-content: space-between; gap: 44px; }
.ml-cta-band__inner--wide .ml-cta-band__text { margin: 0; max-width: 980px; font-size: 16px; line-height: 2; color: rgba(255, 255, 255, .92); }
.ml-cta-band__inner--wide .ml-btn { flex-shrink: 0; }
@media (max-width: 768px) { .ml-cta-band__inner--wide { flex-direction: column; align-items: flex-start; } }
.ml-svc-block + .ml-svc-block { margin-top: 84px; }

/* ==========================================================================
   17h. Article page sidebar + author archive
   ========================================================================== */
.ml-sidebar-posts { list-style: none; padding: 0; margin: 0 0 4px; }
.ml-sidebar-posts li { border-bottom: 1px solid rgba(0, 0, 0, .06); }
.ml-sidebar-posts li:last-child { border-bottom: 0; }
.ml-sidebar-posts a { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.ml-sidebar-posts__thumb { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: var(--ml-surface-2); }
.ml-sidebar-posts__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-sidebar-posts b { display: block; font-size: 15px; font-weight: 700; line-height: 1.6; }
.ml-sidebar-posts time { display: block; color: var(--ml-gray-2); font-size: 13px; margin-top: 4px; }
.ml-sidebar-posts a:hover b { color: var(--ml-orange); }

.ml-article-card__author { color: inherit; }
.ml-article-card__author:hover { color: var(--ml-orange); }

.ml-author-head { display: flex; align-items: center; gap: 22px; justify-content: center; text-align: right; }
.ml-author-head img { border-radius: 50%; flex-shrink: 0; }
.ml-author-head .ml-section__title { margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 40px); }
.ml-author-head p { color: var(--ml-gray); margin: 0; line-height: 1.8; }
@media (max-width: 560px) { .ml-author-head { flex-direction: column; text-align: center; } }

/* ==========================================================================
   17i. Imported content (main-site content on service pages)
   ========================================================================== */
.ml-service-content h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 46px 0 16px; }
.ml-service-content h3 { font-size: 20px; margin: 30px 0 12px; }
.ml-service-content > h2:first-child, .ml-service-content > h3:first-child { margin-top: 0; }
.ml-service-content p { color: var(--ml-gray-2); line-height: 2; margin: 0 0 16px; }
.ml-service-content ul, .ml-service-content ol { padding-inline-start: 22px; margin: 0 0 18px; }
.ml-service-content li { line-height: 2; margin-bottom: 8px; }
.ml-service-content strong { color: var(--ml-ink); }
.ml-service-content a { color: var(--ml-blue); }
.ml-service-content a:hover { color: var(--ml-orange); }
.ml-service-content img { max-width: 100%; height: auto; border-radius: 18px; display: block; margin: 22px auto; }
.ml-service-content blockquote { border-inline-start: 4px solid var(--ml-orange); background: var(--ml-surface); border-radius: 14px; padding: 18px 22px; margin: 20px 0; }
.ml-service-content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.ml-service-content th, .ml-service-content td { border: 1px solid var(--ml-line); padding: 10px 12px; text-align: right; }

/* ==========================================================================
   17j. Contact page — branch numbers + social icons
   ========================================================================== */
.ml-info__wa { display: inline-flex; align-items: center; margin-inline-start: 4px; color: var(--ml-orange); }
.ml-info__wa .ml-i { color: inherit; width: 18px; height: 18px; }
.ml-info__wa:hover { color: #25d366; }
.ml-panel__subtitle { margin: 28px 0 14px; font-size: 18px; }
.ml-contact-page .ml-social__list { justify-content: flex-start; }

/* ==========================================================================
   17k. Map link
   ========================================================================== */
.ml-map__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ml-orange); font-family: var(--ml-ui); font-weight: 700; }
.ml-footer__col--map .ml-map__link:hover { color: #fff; }
.ml-contact-map { margin-top: 44px; }
.ml-contact-map .ml-map iframe { height: 420px; }
.ml-contact-map .ml-map__link:hover { color: var(--ml-blue); }

/* ==========================================================================
   15c. Home about — dots + scroll reveal (Figma animation)
   ========================================================================== */
.ml-about__dots {
  position: absolute;
  z-index: 0;
  inset-block-start: -26px;
  inset-inline-start: -26px;
  width: 170px;
  height: 170px;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 17, 27, .20) 1.6px, transparent 1.7px);
  background-size: 15px 15px;
  animation: ml-dots-float 7s ease-in-out infinite;
}
.ml-about__dots--b {
  inset-block-start: auto;
  inset-inline-start: auto;
  inset-block-end: -26px;
  inset-inline-end: -26px;
  animation-delay: -3.5s;
}
.ml-about__media img { position: relative; z-index: 1; }
@keyframes ml-dots-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22, .7, .3, 1), transform .8s cubic-bezier(.22, .7, .3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal="right"] { transform: translateX(52px); }
[data-reveal="left"]  { transform: translateX(-52px); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ml-about__dots { animation: none; }
}
