/* =========================================================
   MHIMDAT Service Dépannage — Marrakech
   All selectors namespaced under .mh- to drop in cleanly.
   ========================================================= */

:root {
  --mh-emerald: #009050;
  --mh-emerald-bright: #12b866;
  --mh-black: #0c0d0e;
  --mh-charcoal: #171a1d;
  --mh-charcoal-2: #1e2226;
  --mh-white: #f7f9f8;
  --mh-steel: #8a9297;
  --mh-amber: #f5b400;
  --mh-red: #d91e36;

  --mh-line: rgba(255, 255, 255, 0.08);
  --mh-line-strong: rgba(255, 255, 255, 0.14);

  --mh-head: "Montserrat", "Arial Narrow", Arial, sans-serif;
  --mh-body: "Inter", system-ui, Arial, sans-serif;

  --mh-radius: 14px;
  --mh-radius-sm: 10px;
  --mh-wrap: 1200px;
  --mh-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --mh-glow: 0 0 0 1px rgba(0, 144, 80, 0.35), 0 18px 40px -18px rgba(0, 144, 80, 0.55);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  font-family: var(--mh-body);
  color: var(--mh-white);
  background: var(--mh-black);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--mh-head); margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
ul { margin: 0; padding: 0; list-style: none; }

.mh-wrap { width: 100%; max-width: var(--mh-wrap); margin-inline: auto; padding-inline: 22px; }

/* Visually-hidden skip link. Uses clip (not left:-9999px, which creates a
   phantom horizontal scroll area / zoom-out bug on some mobile browsers). */
.mh-skip {
  position: absolute; top: 0; left: 0; z-index: 200;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
  background: var(--mh-emerald); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.mh-skip:focus {
  width: auto; height: auto; overflow: visible; clip: auto; clip-path: none;
}

:focus-visible { outline: 3px solid var(--mh-emerald-bright); outline-offset: 2px; border-radius: 6px; }

.mh-ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.mh-btn {
  --_bg: var(--mh-emerald);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--mh-head); font-weight: 800; font-size: 0.95rem;
  letter-spacing: 0.02em; text-transform: uppercase;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  color: #fff; background: var(--_bg);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 46px;
}
.mh-btn:hover { transform: translateY(-2px); }
.mh-btn--lg { padding: 16px 28px; font-size: 1.02rem; min-height: 54px; }
.mh-btn--primary { --_bg: var(--mh-emerald); box-shadow: var(--mh-glow); }
.mh-btn--primary:hover { background: var(--mh-emerald-bright); }
.mh-btn--call { --_bg: var(--mh-emerald); }
.mh-btn--wa { --_bg: #1faf54; }
.mh-btn--wa:hover { background: #25d366; }

/* ---------- Top emergency bar ---------- */
.mh-topbar {
  background: linear-gradient(90deg, var(--mh-emerald), #0a6e3f);
  font-size: 0.86rem; position: relative; z-index: 60;
}
.mh-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 8px; }
.mh-topbar__badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.mh-topbar__call { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.mh-topbar__call:hover { text-decoration: underline; }

.mh-pulse {
  width: 9px; height: 9px; border-radius: 50%; background: #eafff2;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); animation: mh-pulse 1.8s infinite;
}
@keyframes mh-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ---------- Header ---------- */
.mh-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 13, 14, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mh-line);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.mh-header.is-stuck { background: rgba(12, 13, 14, 0.96); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9); }
.mh-header__inner { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
/* White logo variant reads natively on the dark header — no chip needed */
.mh-brand { flex: none; display: inline-flex; align-items: center; }
.mh-brand img { height: 40px; width: auto; display: block; }
.mh-nav { margin-left: auto; display: flex; gap: 26px; }
.mh-nav a { font-weight: 600; font-size: 0.95rem; color: var(--mh-steel); transition: color 0.15s; }
.mh-nav a:hover { color: #fff; }
.mh-header__cta { margin-left: 8px; }

.mh-burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; margin-left: auto; }
.mh-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.mh-burger span + span { margin-top: 5px; }
.mh-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mh-burger.is-open span:nth-child(2) { opacity: 0; }
.mh-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mh-mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 12px 22px 20px; border-bottom: 1px solid var(--mh-line); background: rgba(12, 13, 14, 0.98); }
.mh-mobile-nav a { padding: 13px 6px; font-weight: 600; color: var(--mh-white); border-bottom: 1px solid var(--mh-line); }
.mh-mobile-nav a:last-child { border: 0; margin-top: 10px; }

/* ---------- Section basics ---------- */
.mh-section { padding-block: clamp(56px, 8vw, 110px); position: relative; }
.mh-shead { max-width: 720px; margin-bottom: 42px; }
.mh-kicker { color: var(--mh-emerald-bright); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; margin: 0 0 12px; }
.mh-h2 { font-size: clamp(1.7rem, 4.2vw, 2.8rem); font-weight: 800; }
.mh-h3 { font-size: 1.24rem; font-weight: 800; margin-bottom: 8px; }
.mh-lead { color: var(--mh-steel); font-size: 1.06rem; margin: 14px 0 0; }
.mh-accent { color: var(--mh-emerald-bright); }

/* ---------- Hero ---------- */
.mh-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 84px); }
.mh-hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(0, 144, 80, 0.22), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(0, 144, 80, 0.12), transparent 60%),
    linear-gradient(180deg, #0c0d0e, #101314 60%, #0c0d0e);
}
.mh-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.mh-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  padding: 7px 15px; border-radius: 999px; font-weight: 600; font-size: 0.86rem;
  color: #d9ffe9; background: rgba(0, 144, 80, 0.14); border: 1px solid rgba(0, 144, 80, 0.35);
}
.mh-hero__title { font-size: clamp(2.1rem, 6vw, 4rem); font-weight: 900; text-transform: uppercase; }
.mh-hero__sub { color: var(--mh-steel); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 560px; margin: 20px 0 28px; }
.mh-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.mh-hero__trust { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.mh-hero__trust li { display: flex; flex-direction: column; }
.mh-hero__trust strong { font-family: var(--mh-head); font-size: 1.35rem; color: #fff; }
.mh-hero__trust span { color: var(--mh-steel); font-size: 0.86rem; }

.mh-hero__media { position: relative; margin: 0; }
.mh-hero__media img { width: 100%; height: auto; border-radius: var(--mh-radius); box-shadow: var(--mh-shadow); border: 1px solid var(--mh-line-strong); }
.mh-hero__media::after {
  content: ""; position: absolute; inset: -14px -14px auto auto; width: 130px; height: 130px; z-index: -1;
  background: radial-gradient(circle, rgba(0, 144, 80, 0.45), transparent 70%); filter: blur(6px);
}
.mh-hero__tag {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(12, 13, 14, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--mh-line-strong); border-radius: 999px;
  padding: 8px 16px; font-size: 0.82rem; font-weight: 600; color: #d7dde0;
}
.mh-hero__tag-k { color: var(--mh-emerald-bright); font-family: var(--mh-head); font-weight: 800; text-transform: uppercase; margin-right: 6px; }

/* ---------- Services ---------- */
.mh-services { background: linear-gradient(180deg, #0c0d0e, #101314); }
.mh-grid { display: grid; gap: 22px; }
.mh-grid--services { grid-template-columns: repeat(3, 1fr); }
.mh-card {
  background: linear-gradient(180deg, var(--mh-charcoal), var(--mh-charcoal-2));
  border: 1px solid var(--mh-line); border-radius: var(--mh-radius); overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.mh-card:hover { transform: translateY(-6px); border-color: rgba(0, 144, 80, 0.5); box-shadow: 0 26px 50px -30px rgba(0, 144, 80, 0.6); }
.mh-card__media { position: relative; aspect-ratio: 8 / 5; overflow: hidden; }
.mh-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mh-card:hover .mh-card__media img { transform: scale(1.06); }
.mh-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--mh-emerald); color: #fff; font-family: var(--mh-head); font-weight: 800;
  font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.mh-card__badge--amber { background: var(--mh-amber); color: #201a00; }
.mh-card__body { padding: 20px 22px 24px; }
.mh-card__body p { color: var(--mh-steel); margin: 0; font-size: 0.96rem; }

/* ---------- Why ---------- */
.mh-why { background: var(--mh-black); }
.mh-why__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.mh-feats { display: grid; gap: 18px; margin-top: 28px; }
.mh-feats li { display: flex; gap: 16px; align-items: flex-start; }
.mh-feat-ico {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.3rem;
  background: rgba(0, 144, 80, 0.14); border: 1px solid rgba(0, 144, 80, 0.3); border-radius: 12px;
}
.mh-feats strong { display: block; font-family: var(--mh-head); font-size: 1.05rem; }
.mh-feats p { margin: 3px 0 0; color: var(--mh-steel); font-size: 0.94rem; }

.mh-why__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mh-stat {
  background: linear-gradient(180deg, var(--mh-charcoal), var(--mh-charcoal-2));
  border: 1px solid var(--mh-line); border-radius: var(--mh-radius);
  padding: 26px 20px; text-align: center;
}
.mh-stat strong { display: block; font-family: var(--mh-head); font-size: 2.1rem; font-weight: 900; color: var(--mh-emerald-bright); }
.mh-stat span { color: var(--mh-steel); font-size: 0.86rem; }

/* ---------- Mid CTA band ---------- */
.mh-cta-band { background: linear-gradient(100deg, var(--mh-emerald), #0a6e3f); }
.mh-cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-block: 44px; flex-wrap: wrap; }
.mh-cta-band__title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; text-transform: uppercase; }
.mh-cta-band__inner p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.9); }
.mh-cta-band .mh-btn--primary { background: #0c0d0e; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6); }
.mh-cta-band .mh-btn--primary:hover { background: #000; }

/* ---------- Zone / Map ---------- */
.mh-zone { background: linear-gradient(180deg, #101314, #0c0d0e); }
.mh-zone__grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 24px; align-items: stretch; }
.mh-map { aspect-ratio: 16 / 10; width: 100%; max-width: 100%; border-radius: var(--mh-radius); overflow: hidden; border: 1px solid var(--mh-line-strong); box-shadow: var(--mh-shadow); min-height: 320px; }
.mh-map iframe { display: block; width: 100%; max-width: 100%; height: 100%; border: 0; filter: grayscale(0.2) contrast(1.05); }
.mh-zone__list { display: grid; gap: 12px; align-content: center; }
.mh-zone__list li {
  background: linear-gradient(180deg, var(--mh-charcoal), var(--mh-charcoal-2));
  border: 1px solid var(--mh-line); border-left: 3px solid var(--mh-emerald);
  border-radius: var(--mh-radius-sm); padding: 14px 18px; font-weight: 600; color: #e6eaec;
}

/* ---------- Contact ---------- */
.mh-contact { background: var(--mh-black); }
.mh-phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mh-phone {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, var(--mh-charcoal), var(--mh-charcoal-2));
  border: 1px solid var(--mh-line); border-radius: var(--mh-radius); padding: 16px 20px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s;
}
.mh-phone:hover { transform: translateY(-3px); border-color: rgba(0, 144, 80, 0.55); box-shadow: 0 18px 36px -24px rgba(0, 144, 80, 0.6); }
/* main line: subtle emerald highlight to signal the primary number */
.mh-phone--main { border-color: rgba(0, 144, 80, 0.55); background: linear-gradient(180deg, rgba(0, 144, 80, 0.16), var(--mh-charcoal-2)); box-shadow: inset 0 0 0 1px rgba(0, 144, 80, 0.25); }
.mh-phone--main .mh-phone__ico { background: var(--mh-emerald); }
.mh-phone__ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; font-size: 1.15rem; background: rgba(0, 144, 80, 0.14); border-radius: 10px; }
.mh-phone__num { font-family: var(--mh-head); font-weight: 800; font-size: 1.18rem; letter-spacing: 0.02em; }

.mh-contact__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.mh-socials { display: flex; gap: 12px; }
.mh-soc { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--mh-line-strong); background: var(--mh-charcoal); transition: transform 0.18s, background 0.18s, border-color 0.18s; }
.mh-soc svg { width: 22px; height: 22px; fill: #fff; }
.mh-soc:hover { transform: translateY(-3px); background: var(--mh-emerald); border-color: var(--mh-emerald); }

/* ---------- Footer ---------- */
.mh-footer { background: #08090a; border-top: 1px solid var(--mh-line); padding-top: 56px; }
.mh-footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.mh-footer__brand img { height: 40px; width: auto; margin-bottom: 16px; }
.mh-footer__brand p { color: var(--mh-steel); font-size: 0.95rem; max-width: 340px; }
.mh-socials--foot { margin-top: 18px; }
.mh-footer__col h3 { font-family: var(--mh-head); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; margin-bottom: 14px; }
.mh-footer__col ul { display: grid; gap: 9px; }
.mh-footer__col a, .mh-footer__col li { color: var(--mh-steel); font-size: 0.94rem; }
.mh-footer__col a:hover { color: var(--mh-emerald-bright); }
.mh-footer__bar { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid var(--mh-line); color: var(--mh-steel); font-size: 0.82rem; }
.mh-footer__bar p { margin: 0; }
.mh-footer__seo { color: #4d545a; }

/* ---------- Sticky mobile call bar ---------- */
.mh-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(12, 13, 14, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--mh-line-strong);
  transform: translateY(120%); transition: transform 0.3s ease;
}
.mh-sticky.is-visible { transform: translateY(0); }
.mh-sticky a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--mh-head); font-weight: 800; text-transform: uppercase; font-size: 0.92rem; padding: 14px; border-radius: 12px; color: #fff; min-height: 50px; }
.mh-sticky__call { background: var(--mh-emerald); }
.mh-sticky__wa { background: #1faf54; }

/* ---------- Scroll reveal (only hidden when JS is available) ---------- */
.mh-js [data-mh-anim] { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; will-change: opacity, transform; }
.mh-js [data-mh-anim].is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .mh-nav, .mh-header__cta { display: none; }
  .mh-burger { display: block; }
  .mh-header__inner { justify-content: space-between; }
  .mh-brand { margin-right: auto; }
  .mh-hero__grid { grid-template-columns: 1fr; }
  .mh-hero__media { order: -1; }
  .mh-grid--services { grid-template-columns: repeat(2, 1fr); }
  .mh-why__grid { grid-template-columns: 1fr; }
  .mh-zone__grid { grid-template-columns: 1fr; }
  /* let width drive the map height on mobile; min-height was inflating
     the computed width (min-height 320 × 16/11 ≈ 465px) and overflowing */
  .mh-map { aspect-ratio: 16 / 11; min-height: 0; }
  .mh-footer__grid { grid-template-columns: 1fr 1fr; }
  .mh-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .mh-wrap { padding-inline: 16px; }
  .mh-topbar__badge { display: none; }
  .mh-topbar__inner { justify-content: center; }
  .mh-brand img { height: 36px; }

  /* Tighten the header row so logo + language + burger always fit */
  .mh-header__inner { gap: 8px; }
  .mh-lang__btn { padding: 6px 9px; font-size: 0.8rem; gap: 4px; }
  .mh-lang__btn .mh-ico { width: 15px; height: 15px; }
  .mh-burger { width: 40px; height: 40px; padding: 9px; margin-left: 2px; }
  .mh-rtl .mh-burger { margin-left: 0; margin-right: 2px; }

  /* Mobile hero restraint: visual capped, headline short, CTA reachable */
  .mh-hero { padding-block: 26px 34px; }
  .mh-hero__media img { max-height: 40vh; object-fit: cover; }
  .mh-hero__title { font-size: clamp(1.8rem, 8.5vw, 2.4rem); }
  .mh-hero__sub { font-size: 1rem; margin: 16px 0 22px; }
  .mh-hero__cta { flex-direction: column; }
  .mh-hero__cta .mh-btn { width: 100%; }
  .mh-hero__trust { gap: 18px 28px; margin-top: 24px; }

  .mh-grid--services { grid-template-columns: 1fr; }
  .mh-phones { grid-template-columns: 1fr; }
  .mh-why__stats { grid-template-columns: 1fr 1fr; }
  .mh-cta-band__inner { text-align: center; justify-content: center; }
  .mh-cta-band__inner .mh-btn { width: 100%; }
  .mh-contact__row { flex-direction: column; align-items: stretch; }
  .mh-contact__row .mh-btn { width: 100%; }
  .mh-socials { justify-content: center; }
  .mh-footer__grid { grid-template-columns: 1fr; }
  .mh-footer__bar { flex-direction: column; }

  .mh-sticky { display: flex; }
  body { padding-bottom: 74px; }
}

/* =========================================================
   LANGUAGE SWITCHER (header)
   ========================================================= */
.mh-lang { position: relative; flex: none; }
.mh-lang__btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--mh-line-strong);
  color: #e6eaec; font-family: var(--mh-head); font-weight: 700; font-size: 0.86rem;
  padding: 8px 12px; border-radius: 999px; transition: background 0.18s, border-color 0.18s;
}
.mh-lang__btn:hover { background: rgba(0, 144, 80, 0.16); border-color: rgba(0, 144, 80, 0.5); }
.mh-lang__btn .mh-ico { width: 17px; height: 17px; opacity: 0.9; }
.mh-lang__cur { letter-spacing: 0.04em; }
.mh-lang__chev { width: 15px; height: 15px; fill: currentColor; opacity: 0.7; transition: transform 0.2s; }
.mh-lang.is-open .mh-lang__chev { transform: rotate(180deg); }

.mh-lang__menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; min-width: 190px;
  background: rgba(20, 23, 25, 0.98); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--mh-line-strong); border-radius: 14px; padding: 6px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
  animation: mh-pop 0.16s ease;
}
@keyframes mh-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mh-lang__menu li { list-style: none; }
.mh-lang__menu button {
  display: flex; align-items: center; gap: 11px; width: 100%; cursor: pointer;
  background: none; border: 0; color: #e6eaec; font-family: var(--mh-body); font-size: 0.96rem; font-weight: 500;
  padding: 11px 13px; border-radius: 9px; text-align: start; transition: background 0.14s;
}
.mh-lang__menu button:hover { background: rgba(0, 144, 80, 0.16); }
.mh-lang__menu button[aria-checked="true"] { color: #fff; background: rgba(0, 144, 80, 0.22); font-weight: 700; }
.mh-lang__flag { font-size: 1.15rem; line-height: 1; }
.mh-rtl .mh-lang__menu { right: auto; left: 0; }

/* =========================================================
   LANGUAGE MODAL (first visit) — elegant
   ========================================================= */
/* lock scroll while the modal is open — applied to <html> so it holds on iOS */
.mh-noscroll, .mh-noscroll body { overflow: hidden; height: 100%; }
.mh-langmodal {
  position: fixed; inset: 0; z-index: 120; width: 100%; max-width: 100vw;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; pointer-events: none; transition: opacity 0.32s ease;
}
/* when the card is taller than the screen, don't center-clip it — let it scroll from the top */
.mh-langmodal.is-open { opacity: 1; pointer-events: auto; }
.mh-langmodal__backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 50% 0%, rgba(0, 144, 80, 0.16), transparent 55%), rgba(6, 8, 9, 0.82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mh-langmodal__card {
  position: relative; z-index: 1; width: 100%; max-width: 460px; overflow: hidden;
  margin: auto; /* centers when it fits, allows scroll when it doesn't */
  background: linear-gradient(180deg, #191d20, #121517);
  border: 1px solid var(--mh-line-strong); border-radius: 22px;
  padding: 40px 34px 34px; text-align: center;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  transform: translateY(18px) scale(0.97); opacity: 0; transition: transform 0.4s cubic-bezier(.2,.8,.2,1), opacity 0.4s ease;
}
.mh-langmodal.is-open .mh-langmodal__card { transform: none; opacity: 1; }
.mh-langmodal__glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 320px; height: 220px; background: radial-gradient(circle, rgba(0, 144, 80, 0.4), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.mh-langmodal__logo { height: 34px; width: auto; margin: 0 auto 18px; position: relative; }
.mh-langmodal__eyebrow { color: var(--mh-emerald-bright); font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; margin: 0 0 8px; }
.mh-langmodal__title { font-family: var(--mh-head); font-weight: 800; font-size: 1.5rem; margin: 0 0 24px; line-height: 1.25; }
.mh-langmodal__title span { display: block; }
.mh-langmodal__title span[lang="ar"] { font-size: 1.35rem; opacity: 0.92; margin-top: 2px; }
.mh-langmodal__title span[lang="en"] { font-size: 1rem; color: var(--mh-steel); font-weight: 600; margin-top: 2px; }

.mh-langmodal__opts { display: grid; gap: 12px; }
.mh-langopt {
  display: flex; align-items: center; gap: 15px; width: 100%; cursor: pointer; text-align: start;
  background: linear-gradient(180deg, var(--mh-charcoal), var(--mh-charcoal-2));
  border: 1px solid var(--mh-line); border-radius: 14px; padding: 15px 18px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.mh-langopt:hover { transform: translateY(-2px); border-color: rgba(0, 144, 80, 0.6); box-shadow: 0 16px 34px -22px rgba(0, 144, 80, 0.7); }
.mh-langopt__flag { font-size: 1.7rem; line-height: 1; flex: none; }
.mh-langopt__name { font-family: var(--mh-head); font-weight: 800; font-size: 1.08rem; color: #fff; }
.mh-langopt__sub { color: var(--mh-steel); font-size: 0.82rem; margin-inline-start: auto; }
.mh-langopt[dir="rtl"] { text-align: right; }

/* =========================================================
   RTL ADJUSTMENTS (Arabic)
   ========================================================= */
.mh-rtl body, .mh-rtl { text-align: right; }
.mh-rtl .mh-topbar__inner,
.mh-rtl .mh-header__inner,
.mh-rtl .mh-hero__cta,
.mh-rtl .mh-hero__trust,
.mh-rtl .mh-feats li,
.mh-rtl .mh-contact__row,
.mh-rtl .mh-cta-band__inner { direction: rtl; }
.mh-rtl .mh-nav { margin-left: 0; margin-right: auto; }
.mh-rtl .mh-header__cta { margin-left: 0; margin-right: 8px; }
.mh-rtl .mh-burger { margin-left: 0; margin-right: auto; }
.mh-rtl .mh-kicker,
.mh-rtl .mh-shead,
.mh-rtl .mh-hero__sub { text-align: right; }
.mh-rtl .mh-zone__list li { border-left: 0; border-right: 3px solid var(--mh-emerald); }
.mh-rtl .mh-feats li { flex-direction: row; }
.mh-rtl .mh-hero__tag { left: auto; right: 14px; }
.mh-rtl .mh-hero__media::after { inset: -14px auto auto -14px; }
/* keep phone numbers & the brand mark visually LTR */
.mh-rtl [dir="ltr"] { direction: ltr; text-align: left; }

@media (max-width: 980px) {
  /* .mh-brand already has margin-right:auto, so the switcher + burger
     group on the trailing edge. Just space them. */
  .mh-lang { flex: none; }
  .mh-burger { margin-left: 8px; }
  .mh-rtl .mh-burger { margin-left: 0; margin-right: 8px; }
}
@media (max-width: 480px) {
  .mh-langmodal__card { padding: 32px 22px 26px; }
  .mh-langopt__sub { display: none; }
  .mh-lang__btn { padding: 7px 10px; }
}
/* Very narrow phones (≤360px): reclaim space so the burger never overflows */
@media (max-width: 360px) {
  .mh-brand img { height: 32px; }
  .mh-lang__cur { display: none; }         /* keep just the globe icon + chevron */
  .mh-lang__btn { padding: 7px 8px; }
  .mh-header__inner { gap: 6px; }
}
/* Short viewports (landscape phones, small screens): compact the modal so it never clips.
   The overlay scrolls (overflow-y:auto, align-items:flex-start) as a safety net. */
@media (max-height: 620px) {
  .mh-langmodal { padding: 10px; align-items: flex-start; }
  .mh-langmodal__card { padding: 18px 22px 16px; }
  .mh-langmodal__glow { display: none; }
  .mh-langmodal__logo { height: 26px; margin-bottom: 8px; }
  .mh-langmodal__eyebrow { margin-bottom: 4px; }
  .mh-langmodal__title { font-size: 1.15rem; margin-bottom: 12px; }
  .mh-langmodal__title span[lang="ar"] { font-size: 1.02rem; }
  .mh-langmodal__title span[lang="en"] { font-size: 0.9rem; }
  .mh-langmodal__opts { gap: 8px; }
  .mh-langopt { padding: 10px 14px; }
  .mh-langopt__flag { font-size: 1.4rem; }
  .mh-langopt__sub { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  [data-mh-anim] { opacity: 1 !important; transform: none !important; }
  .mh-pulse { animation: none !important; }
  .mh-langmodal, .mh-langmodal__card { transition: none !important; }
}
