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

html {
  scroll-behavior: smooth;
  direction: rtl;
  font-family: var(--font-body-ar);
  font-size: 16px;
  line-height: var(--leading-normal);
  color: var(--color-navy);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading-ar);
  line-height: var(--leading-tight);
  font-weight: 700;
}

html[lang="en"] {
  direction: ltr;
  font-family: var(--font-body-en);
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] h5,
html[lang="en"] h6 {
  font-family: var(--font-heading-en);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea {
  font: inherit;
  color: inherit;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-orange);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Section title accent line */
.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-8);
  position: relative;
  display: inline-block;
}

.section-title::before {
  content: '';
  position: absolute;
  top: calc(-1 * var(--space-3));
  inset-inline-start: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-orange);
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
