/* =============================================
   Etqan Design System — Base Reset
   ============================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-arabic);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--color-white);
  background-color: var(--color-brand-dark);
  min-height: 100dvh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-brand-gold);
  outline-offset: 3px;
}

/*
 * منع التكبير التلقائي على الموبايل عند التركيز على الحقول أو فتح dialog.
 * iOS Safari (ومعظم WebViews) يكبّر الصفحة إذا كان font-size للحقل < 16px.
 */
@media screen and (max-width: 1024px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="color"]),
  textarea,
  select {
    font-size: 16px !important;
    line-height: 1.4;
  }

  /* يقلّل تكبير النقر المزدوج على الأزرار/الروابط */
  button,
  a,
  [role="button"],
  label {
    touch-action: manipulation;
  }
}

