@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--page);
  color: #4b5563;
  font-family: var(--font-ar);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
main { flex: 1; min-width: 0; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ar);
  font-weight: 800;
  line-height: 1.18;
}
h1 { font-size: clamp(2.65rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2.15rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0; }

.container { width: var(--container); margin-inline: auto; }
.container--wide { width: var(--container-wide); margin-inline: auto; }
.section { padding-block: var(--section-py); }
.section--tight { padding-block: clamp(64px, 7vw, 92px); }
.section--white { background: #fff; }
.section--warm { background: var(--bg-primary); }
.section--soft { background: var(--bg-secondary); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }

.lead {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: clamp(.96rem, 1.35vw, 1.08rem);
  line-height: 1.95;
}
.muted { color: var(--text-tertiary); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow,
.rule-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.6;
}
.eyebrow::before,
.rule-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.page-shell {
  min-height: calc(100vh - var(--header-height));
  background: var(--page);
}

[data-reveal] {
  --reveal-delay: 0ms;
}
[data-reveal].reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--motion-reveal) var(--ease-out) var(--reveal-delay),
    transform var(--motion-reveal) var(--ease-out) var(--reveal-delay);
}
[data-reveal="clip"].reveal-ready {
  transform: translateY(14px) scale(.992);
}
[data-reveal].reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}

::selection { background: #f2dfc1; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal].reveal-ready { opacity: 1; transform: none; }
}
