:root {
  --mg-indigo: #2b1b4a;
  --mg-indigo-deep: #1a1030;
  --mg-indigo-soft: #f3f0f8;
  --mg-teal: #3db8a8;
  --mg-teal-bright: #48c0b0;
  --mg-teal-dark: #2a9a8c;
  --mg-teal-soft: #e7f8f5;
  --mg-text: #2b1b4a;
  --mg-muted: #6d6682;
  --mg-line: rgba(43, 27, 74, 0.1);
  --mg-white: #ffffff;
  --mg-bg: #f7f8fc;
  --mg-shadow: 0 20px 50px rgba(43, 27, 74, 0.12);
  --font: "Plus Jakarta Sans", "Noto Sans Arabic", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--mg-text);
  background: var(--mg-white);
  line-height: 1.65;
  overflow-x: hidden;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
.display-font {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--mg-indigo);
  line-height: 1.15;
}

a {
  color: var(--mg-teal-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--mg-indigo);
}

/* Navbar */
.mg-nav {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.mg-nav.is-scrolled {
  box-shadow: 0 10px 30px rgba(43, 27, 74, 0.08);
  border-bottom-color: var(--mg-line);
}

.mg-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.2rem 0;
}

.mg-brand img,
.mg-logo {
  height: 42px;
  width: auto;
  display: block;
}

.mg-brand-footer img {
  height: 48px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.mg-nav .nav-link {
  color: var(--mg-indigo) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.8rem !important;
  border-radius: 10px;
  opacity: 0.78;
}

.mg-nav .nav-link:hover,
.mg-nav .nav-link.active {
  color: var(--mg-indigo) !important;
  background: var(--mg-teal-soft);
  opacity: 1;
}

.btn-mg {
  background: var(--mg-teal);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-mg:hover {
  background: var(--mg-teal-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(61, 184, 168, 0.35);
}

.btn-mg-outline {
  background: transparent;
  color: var(--mg-indigo);
  border: 1.5px solid var(--mg-indigo);
  border-radius: 999px;
  padding: 0.8rem 1.55rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-mg-outline:hover {
  background: var(--mg-indigo);
  color: white;
  transform: translateY(-2px);
}

.btn-mg-outline.light {
  border-color: rgba(255, 255, 255, 0.85);
  color: white;
}

.btn-mg-outline.light:hover {
  background: white;
  color: var(--mg-indigo);
}

/* Hero — font wordmark (no logo image) */
.mg-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 92% 8%, rgba(61, 184, 168, 0.28), transparent 50%),
    radial-gradient(ellipse 50% 45% at 0% 100%, rgba(43, 27, 74, 0.12), transparent 55%),
    linear-gradient(160deg, #ffffff 0%, #f6f7fb 42%, #eef8f6 100%);
}

.mg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(-18deg, transparent 40%, rgba(43, 27, 74, 0.03) 40.5%, transparent 41%),
    linear-gradient(-18deg, transparent 55%, rgba(61, 184, 168, 0.05) 55.5%, transparent 56%);
  pointer-events: none;
}

.mg-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}

.mg-wordmark {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  animation: fadeUp 0.75s ease both;
}

.mg-wordmark-mark {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: clamp(3.2rem, 7vw, 5rem);
  flex-shrink: 0;
}

.mg-wordmark-mark span {
  display: block;
  width: clamp(0.7rem, 1.4vw, 1rem);
  border-radius: 0.35rem 0.35rem 0.15rem 0.15rem;
  background: var(--mg-indigo);
  transform: skewX(-16deg);
  transform-origin: bottom;
  animation: barRise 0.9s ease both;
}

.mg-wordmark-mark span:nth-child(1) {
  height: 55%;
  animation-delay: 0.05s;
}

.mg-wordmark-mark span:nth-child(2) {
  height: 78%;
  animation-delay: 0.12s;
}

.mg-wordmark-mark span:nth-child(3) {
  height: 100%;
  animation-delay: 0.2s;
}

.mg-wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 0.92;
}

.mg-wordmark-meta {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  letter-spacing: 0.02em;
  color: var(--mg-teal);
  text-transform: uppercase;
}

.mg-wordmark-gestion {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(1.55rem, 4.2vw, 2.7rem);
  letter-spacing: 0.22em;
  color: var(--mg-indigo);
  text-transform: lowercase;
  margin-top: 0.15rem;
}

.mg-hero-headline {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  letter-spacing: -0.025em;
  color: var(--mg-indigo);
  max-width: 34rem;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  animation: fadeUp 0.75s ease 0.08s both;
}

.mg-hero-lead {
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  max-width: 34rem;
  color: var(--mg-muted);
  font-weight: 400;
  margin-bottom: 1.6rem;
  animation: fadeUp 0.75s ease 0.12s both;
}

.mg-hero-actions {
  animation: fadeUp 0.75s ease 0.18s both;
}

.mg-hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  margin: 1.75rem 0 0;
  padding: 0;
  animation: fadeUp 0.75s ease 0.24s both;
  color: var(--mg-indigo);
  font-size: 0.92rem;
  font-weight: 600;
}

.mg-hero-bullets i {
  color: var(--mg-teal);
  margin-inline-end: 0.35rem;
}

.mg-hero-visual {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  animation: fadeUp 0.9s ease 0.2s both;
}

.mg-hero-panel {
  position: relative;
  width: min(100%, 360px);
  padding: 1.25rem 1.35rem 1.1rem;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78));
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 30px 70px rgba(43, 27, 74, 0.16),
    0 0 0 1px rgba(61, 184, 168, 0.08);
}

.mg-hero-panel::before {
  content: "";
  position: absolute;
  inset: -18% -12% auto auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 184, 168, 0.35), transparent 70%);
  z-index: -1;
}

.mg-hero-panel-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.mg-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e1ec;
}

.mg-hero-dot:nth-child(1) { background: #ff6b6b; }
.mg-hero-dot:nth-child(2) { background: #ffd166; }
.mg-hero-dot:nth-child(3) { background: #06d6a0; }

.mg-hero-panel-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mg-teal-dark);
}

.mg-hero-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 110px;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--mg-indigo-soft), rgba(231, 248, 245, 0.6));
}

.mg-hero-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--mg-teal-bright), var(--mg-indigo));
  transform-origin: bottom;
  animation: chartRise 0.9s ease both;
}

.mg-hero-chart span:nth-child(1) { animation-delay: 0.05s; }
.mg-hero-chart span:nth-child(2) { animation-delay: 0.1s; }
.mg-hero-chart span:nth-child(3) { animation-delay: 0.15s; }
.mg-hero-chart span:nth-child(4) { animation-delay: 0.2s; }
.mg-hero-chart span:nth-child(5) { animation-delay: 0.25s; }
.mg-hero-chart span:nth-child(6) { animation-delay: 0.3s; }
.mg-hero-chart span:nth-child(7) { animation-delay: 0.35s; }

.mg-hero-glass-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--mg-line);
  font-weight: 500;
  color: var(--mg-muted);
  font-size: 0.95rem;
}

.mg-hero-glass-row:last-child {
  border-bottom: none;
}

.mg-hero-glass-row strong {
  color: var(--mg-teal-dark);
  font-weight: 800;
}

.mg-strip {
  padding: 0;
  background: transparent;
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}

.mg-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--mg-indigo);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(43, 27, 74, 0.22);
}

.mg-strip-item {
  padding: 1.6rem 1.2rem;
  text-align: center;
  color: white;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
}

.mg-strip-item:last-child {
  border-inline-end: none;
}

.mg-stat-num {
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--mg-teal-bright);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.mg-stat-label {
  font-size: 0.85rem;
  opacity: 0.78;
  font-weight: 500;
}

.mg-feature-card {
  height: 100%;
  padding: 1.75rem;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--mg-line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mg-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mg-shadow);
  border-color: rgba(61, 184, 168, 0.35);
}

.mg-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--mg-teal-soft);
  color: var(--mg-teal-dark);
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}

.mg-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.mg-service-tile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem 1.35rem;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--mg-line);
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mg-service-tile > i {
  font-size: 1.4rem;
  color: var(--mg-teal-dark);
  background: var(--mg-teal-soft);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mg-service-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--mg-shadow);
  border-color: rgba(61, 184, 168, 0.4);
  color: inherit;
}

.mg-price-tile {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--mg-line);
  border-radius: 22px;
  background: white;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mg-price-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--mg-shadow);
}

.mg-price-tile.is-featured {
  border-color: var(--mg-teal);
  box-shadow: var(--mg-shadow);
  background: linear-gradient(180deg, #fff 0%, var(--mg-teal-soft) 100%);
  transform: translateY(-6px);
}

.mg-section-dark {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(61, 184, 168, 0.22), transparent 50%),
    var(--mg-indigo-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 0;
}

.mg-eyebrow.light {
  color: var(--mg-teal-bright);
}

.mg-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.mg-process::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 184, 168, 0.45), transparent);
}

.mg-process-step {
  position: relative;
  z-index: 1;
}

.mg-step-num {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--mg-teal);
  color: white;
  font-weight: 800;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 6px rgba(61, 184, 168, 0.15);
}

.mg-quote {
  margin: 0;
  padding: 2rem;
  border-radius: 22px;
  background: var(--mg-indigo-soft);
  border: 1px solid rgba(43, 27, 74, 0.06);
  position: relative;
}

.mg-quote-icon {
  font-size: 2rem;
  color: var(--mg-teal);
  opacity: 0.55;
  display: block;
  margin-bottom: 0.5rem;
}

.mg-quote p {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--mg-indigo);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.mg-quote footer {
  color: var(--mg-muted);
  font-size: 0.9rem;
}

.mg-cta-band {
  background: linear-gradient(180deg, var(--mg-bg), #fff);
  padding-bottom: 3rem;
}

.mg-cta-box {
  padding: 3rem 1.5rem;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(61, 184, 168, 0.16), transparent 55%),
    white;
  border: 1px solid var(--mg-line);
  box-shadow: var(--mg-shadow);
}

.link-more {
  font-weight: 700;
  color: var(--mg-indigo);
}

.link-more:hover {
  color: var(--mg-teal-dark);
}

.link-more i {
  transition: transform 0.2s ease;
}

.link-more:hover i {
  transform: translateX(4px);
}

@keyframes chartRise {
  from {
    opacity: 0;
    transform: scaleY(0.15);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

.mg-wordmark-mark span {
  animation-name: markRise;
}

@keyframes markRise {
  from {
    opacity: 0;
    transform: skewX(-16deg) scaleY(0.2);
  }
  to {
    opacity: 1;
    transform: skewX(-16deg) scaleY(1);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

.mg-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mg-teal-dark);
  margin-bottom: 0.85rem;
}

/* Sections */
.mg-section {
  padding: 5rem 0;
}

.mg-section-alt {
  background: linear-gradient(180deg, var(--mg-bg) 0%, var(--mg-indigo-soft) 100%);
}

.mg-section-title {
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  margin-bottom: 0.75rem;
}

.mg-section-lead {
  color: var(--mg-muted);
  max-width: 38rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.mg-feature {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--mg-line);
}

.mg-feature:last-child {
  border-bottom: none;
}

.mg-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--mg-teal-soft);
  color: var(--mg-teal-dark);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.mg-panel {
  background: white;
  border: 1px solid var(--mg-line);
  border-radius: 20px;
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mg-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--mg-shadow);
  border-color: rgba(61, 184, 168, 0.35);
}

.mg-price {
  font-family: var(--font);
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--mg-teal-dark);
  line-height: 1;
  letter-spacing: -0.03em;
}

.mg-price small {
  font-size: 0.9rem;
  color: var(--mg-muted);
  font-weight: 500;
  letter-spacing: 0;
}

.mg-badge {
  display: inline-block;
  background: var(--mg-teal-soft);
  color: var(--mg-teal-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.mg-badge-hot {
  background: var(--mg-indigo);
  color: white;
}

.page-hero {
  padding: 4.25rem 0 2.75rem;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(61, 184, 168, 0.16), transparent 55%),
    linear-gradient(180deg, #fff, var(--mg-bg));
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--mg-teal), var(--mg-indigo));
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 800;
}

.testimonial {
  border-left: 3px solid var(--mg-teal);
  padding-left: 1.25rem;
}

.news-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--mg-line);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mg-teal-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mg-footer {
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(61, 184, 168, 0.14), transparent 55%),
    var(--mg-indigo-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 0;
  margin-top: 0;
}

.mg-footer-cta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.25rem 0;
}

.mg-footer-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.mg-footer-main {
  padding: 3.5rem 0 2.5rem;
}

.mg-footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-bottom: 1.1rem;
}

.mg-footer-mark {
  display: flex;
  align-items: flex-end;
  gap: 0.22rem;
  height: 1.7rem;
}

.mg-footer-mark span {
  display: block;
  width: 0.42rem;
  border-radius: 0.2rem;
  background: var(--mg-teal-bright);
  transform: skewX(-16deg);
}

.mg-footer-mark span:nth-child(1) { height: 55%; }
.mg-footer-mark span:nth-child(2) { height: 78%; }
.mg-footer-mark span:nth-child(3) { height: 100%; }

.mg-footer-wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
}

.mg-footer-meta {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--mg-teal-bright);
}

.mg-footer-gestion {
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.88);
}

.mg-footer-blurb {
  max-width: 20rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.mg-footer-social {
  display: flex;
  gap: 0.55rem;
}

.mg-footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mg-footer-social a:hover {
  background: var(--mg-teal);
  color: white;
  transform: translateY(-2px);
}

.mg-footer-title {
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.mg-footer-links,
.mg-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.mg-footer-links a,
.mg-footer-contact a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

.mg-footer-links a:hover,
.mg-footer-contact a:hover {
  color: var(--mg-teal-bright);
}

.mg-footer-contact li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.mg-footer-contact i {
  color: var(--mg-teal-bright);
  margin-top: 0.15rem;
}

.mg-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  font-size: 0.88rem;
  background: rgba(0, 0, 0, 0.15);
}

.mg-footer-legal {
  display: flex;
  gap: 1.25rem;
}

.mg-footer-legal a {
  color: rgba(255, 255, 255, 0.65);
}

.mg-footer-legal a:hover {
  color: white;
}

.mg-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mg-muted);
  margin-bottom: 1rem;
}

.mg-breadcrumb a {
  color: var(--mg-teal-dark);
}

.mg-city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.mg-city-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--mg-line);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mg-indigo);
}

.mg-ref-sector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  height: 100%;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--mg-line);
  font-weight: 600;
  color: var(--mg-indigo);
}

.mg-ref-sector i {
  color: var(--mg-teal-dark);
  font-size: 1.25rem;
}

.mg-case-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--mg-line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mg-case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--mg-shadow);
}

.mg-case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.mg-case-meta span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--mg-teal-soft);
  color: var(--mg-teal-dark);
}

.mg-case-tags {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mg-case-tags li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mg-muted);
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  background: var(--mg-bg);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-control,
.form-select {
  border-radius: 12px;
  border-color: var(--mg-line);
  padding: 0.8rem 1rem;
  font-weight: 500;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--mg-teal);
  box-shadow: 0 0 0 0.2rem rgba(61, 184, 168, 0.2);
}

.text-secondary {
  color: var(--mg-muted) !important;
}

/* Language switcher */
.lang-switcher-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700 !important;
  opacity: 1 !important;
}

.lang-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(43, 27, 74, 0.12);
}

.lang-menu {
  min-width: 11rem;
  border: 1px solid var(--mg-line);
  border-radius: 14px;
  padding: 0.4rem;
  box-shadow: var(--mg-shadow);
}

.lang-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--mg-indigo);
  padding: 0.55rem 0.7rem;
}

.lang-menu .dropdown-item:hover,
.lang-menu .dropdown-item.active {
  background: var(--mg-teal-soft);
  color: var(--mg-indigo);
}

/* Arabic / RTL */
html[dir="rtl"] body,
body.is-rtl {
  font-family: "Noto Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif;
}

html[dir="rtl"] .mg-hero-logo {
  margin-inline-start: 0;
}

html[dir="rtl"] .mg-quote {
  border-left: none;
  border-right: 4px solid var(--mg-teal);
}

html[dir="rtl"] .testimonial {
  border-left: none;
  border-right: 3px solid var(--mg-teal);
  padding-left: 0;
  padding-right: 1.25rem;
}

html[dir="rtl"] .lang-menu {
  text-align: right;
}

@media (max-width: 991.98px) {
  .mg-hero {
    min-height: auto;
  }

  .mg-brand img,
  .mg-logo {
    height: 36px;
  }

  .mg-nav .navbar-collapse {
    background: white;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 16px;
    border: 1px solid var(--mg-line);
  }

  .mg-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mg-strip-item:nth-child(2) {
    border-inline-end: none;
  }

  .mg-service-grid,
  .mg-process {
    grid-template-columns: 1fr;
  }

  .mg-process::before {
    display: none;
  }

  .mg-price-tile.is-featured {
    transform: none;
  }

  .mg-hero-visual {
    min-height: auto;
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .mg-strip-grid {
    grid-template-columns: 1fr 1fr;
    border-radius: 18px;
  }
}
