/* Base — RTL-native, Arabic-led typography, logical properties only. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--m-bg);
  color: var(--m-text);
  font-family: var(--m-font-text);
  font-size: var(--m-fs-base);
  line-height: var(--m-lh-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.m-locked { overflow: hidden; }

::selection { background: var(--m-primary); color: var(--m-on-primary); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--m-font-display);
  font-weight: 700;
  line-height: var(--m-lh-tight);
  margin: 0 0 var(--m-sp-3);
  text-wrap: balance;
}
p { margin: 0 0 var(--m-sp-3); text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; }

:focus-visible { outline: 2px solid var(--m-primary); outline-offset: 3px; border-radius: 2px; }

.screen-reader-text {
  position: absolute; clip-path: inset(50%);
  width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}
.m-skip {
  position: absolute; inset-inline-start: -999px; top: 0; z-index: 100;
  background: var(--m-primary); color: var(--m-on-primary);
  padding: var(--m-sp-2) var(--m-sp-4); border-radius: 0 0 var(--m-r-s) var(--m-r-s);
}
.m-skip:focus { inset-inline-start: var(--m-sp-4); }

.m-container { max-width: var(--m-container); margin-inline: auto; padding-inline: var(--m-sp-4); }
.m-title { font-size: var(--m-fs-xl); }

.m-section { padding-block: var(--m-sp-7); }
.m-section__title {
  font-size: var(--m-fs-l);
  text-align: center;
  margin-bottom: var(--m-sp-6);
  position: relative;
  padding-bottom: var(--m-sp-3);
}
/* Signature: the shade strip as the section-title accent. */
.m-section__title::after {
  content: "";
  position: absolute; inset-inline: 0; bottom: 0;
  margin-inline: auto; width: 74px; height: 8px;
  background:
    radial-gradient(circle 4px at 5px 4px,  var(--m-primary) 98%, transparent),
    radial-gradient(circle 4px at 21px 4px, color-mix(in srgb, var(--m-primary) 70%, var(--m-accent)) 98%, transparent),
    radial-gradient(circle 4px at 37px 4px, color-mix(in srgb, var(--m-primary) 40%, var(--m-accent)) 98%, transparent),
    radial-gradient(circle 4px at 53px 4px, var(--m-accent) 98%, transparent),
    radial-gradient(circle 4px at 69px 4px, color-mix(in srgb, var(--m-accent) 60%, var(--m-bg)) 98%, transparent);
  background-repeat: no-repeat;
}

/* Standalone shade strip element (hero, footer). */
.m-strip { display: inline-flex; gap: 10px; }
.m-strip i {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--m-primary);
}
.m-strip i:nth-child(2) { background: color-mix(in srgb, var(--m-primary) 70%, var(--m-accent)); }
.m-strip i:nth-child(3) { background: color-mix(in srgb, var(--m-primary) 40%, var(--m-accent)); }
.m-strip i:nth-child(4) { background: var(--m-accent); }
.m-strip i:nth-child(5) { background: color-mix(in srgb, var(--m-accent) 55%, var(--m-bg)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
