/* ==========================================================================
   AL MOSTAQBAL FOODS — Base styles, reset, typography
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ar);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

h1, h2, h3, h4, p { margin: 0; }

/* ---- Background texture: subtle warm grain, very low opacity ---- */
body {
  background-image:
    radial-gradient(rgba(18, 65, 76, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  background-attachment: fixed;
}

/* ---- Focus states ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--color-secondary-dark);
  outline-offset: 3px;
  border-radius: var(--radius-tag);
}

/* ---- Layout helpers ---- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

main { display: block; }

.section {
  padding-block: clamp(48px, 7vw, 96px);
}

.section-tight { padding-block: clamp(32px, 5vw, 64px); }

.section-head {
  max-width: 720px;
  margin-block-end: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.section-head--center { max-width: 640px; margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary-text);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
}

h1, .h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-tight);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-tight);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-snug);
  font-weight: 600;
}

.text-lead {
  font-size: var(--text-body-lg);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
}

.text-muted { color: var(--color-text-muted); }
.text-soft { color: var(--color-text-soft); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-4);
  top: -60px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-control);
  z-index: 200;
  transition: top var(--duration-base) var(--ease-standard);
}

.skip-link:focus { top: var(--space-4); }
