/* =====================================================================
   Saudi Future — Base styles
   ===================================================================== */

/* ----- Fonts ----- */
@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("../fonts/main-font/woff2/thmanyahserifdisplay-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("../fonts/main-font/woff2/thmanyahserifdisplay-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("../fonts/main-font/woff2/thmanyahserifdisplay-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("../fonts/main-font/woff2/thmanyahserifdisplay-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("../fonts/main-font/woff2/thmanyahserifdisplay-Black.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("../fonts/sec-font/woff2/thmanyahsans-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("../fonts/sec-font/woff2/thmanyahsans-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("../fonts/sec-font/woff2/thmanyahsans-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("../fonts/sec-font/woff2/thmanyahsans-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("../fonts/sec-font/woff2/thmanyahsans-Black.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ----- Reset (light) ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ----- Base ----- */
html, body {
  font-family: var(--ff-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--bg-page);
  text-align: start;
  font-feature-settings: "kern", "liga", "calt", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html, body { overflow-x: clip; }  /* prevent honeypots & marquee from inducing horizontal scroll */

/* Language-specific stacks: Inter-like fallback for EN, Thmanyah for AR */
html[lang="en"] body { font-family: "Thmanyah Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4 {
  font-family: "Thmanyah Serif Display", "Playfair Display", Georgia, serif;
  letter-spacing: -0.02em;
}

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text-on-cream);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(var(--fs-40), 6vw, var(--fs-72)); font-weight: 900; }
h2 { font-size: clamp(var(--fs-32), 4.5vw, var(--fs-56)); font-weight: 800; }
h3 { font-size: clamp(var(--fs-24), 3vw, var(--fs-32)); font-weight: 700; }
h4 { font-size: var(--fs-20); font-weight: 700; }

p { color: var(--text-primary); }
small, .muted { color: var(--text-secondary); font-size: var(--fs-14); }

a {
  color: var(--brand);
  transition: color var(--d-fast) var(--ease-soft);
}
a:hover { color: var(--brand-hover); }

::selection { background: var(--green-200); color: var(--green-900); }

/* ----- Focus ring ----- */
:focus-visible {
  outline: none;
  box-shadow: var(--sh-glow);
  border-radius: var(--r-sm);
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--sp-10); }
}

.section { padding-block: var(--sp-20); }
@media (min-width: 1024px) { .section { padding-block: var(--sp-24); } }

.section--tight { padding-block: var(--sp-12); }

.grid { display: grid; gap: var(--sp-6); }
.flex { display: flex; gap: var(--sp-4); }
.flex-center { display: flex; align-items: center; justify-content: center; }

.text-center { text-align: center; }
.text-start  { text-align: start; }

/* ----- Utility ----- */
.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;
}

.tag {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-12); font-weight: 600;
  background: var(--cream-100); color: var(--text-on-cream);
  border-radius: var(--r-pill);
}

/* ----- Scrollbar (subtle) ----- */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--green-200) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--green-200); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--green-300); }
