/* ==========================================================================
   EasyEG — Base Reset & Arabic RTL Typography (base.css)
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  font-size: 14px;
  overflow-x: clip;
}
@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--bottom-nav-height);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
}

main {
  flex: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
