/* ==========================================================================
   base.css — design tokens, fonts, base typography, reveal states
   Palette: Sole teal + Damascus-stone neutrals + deep slate.
   ========================================================================== */

@font-face {
  font-family: "Tajawal";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tajawal-400-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Tajawal";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tajawal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tajawal";
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/tajawal-500-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Tajawal";
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/tajawal-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tajawal";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tajawal-700-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Tajawal";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tajawal-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/noto-kufi-arabic-var-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/noto-kufi-arabic-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* colour */
  --c-teal: #4ca0a8;        /* brand */
  --c-teal-deep: #2f6f75;   /* brand on light backgrounds (AA text) */
  --c-slate: #1e3538;       /* dark surfaces */
  --c-slate-deep: #152729;
  --c-grey: #58595c;        /* logo grey */
  --c-stone: #eceeed;       /* alternate sections */
  --c-white: #ffffff;
  --c-ink: #1b2426;         /* headings */
  --c-text: #3f4b4d;        /* body */
  --c-muted: #6b7778;
  --c-line: #d6dcdc;

  /* type — 1.25 scale */
  --f-display: "Noto Kufi Arabic", "Tajawal", sans-serif;
  --f-body: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --t-sm: .875rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: 1.5625rem;
  --t-xl: clamp(1.45rem, 2.6vw, 1.953rem);
  --t-2xl: clamp(1.65rem, 3.4vw, 2.441rem);
  --t-3xl: clamp(2.2rem, 5.2vw, 3.815rem);

  /* space */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2.5rem;
  --s-6: 4rem;
  --s-section: clamp(4rem, 9vw, 6.5rem);

  /* shape & motion */
  --r-sm: 4px;
  --r-md: 6px;
  --ease-out: cubic-bezier(.2, .65, .3, 1);
  --nav-h: 72px;
  --subnav-h: 54px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--subnav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 var(--s-3);
}

p {
  margin: 0 0 var(--s-3);
  max-width: 68ch;
}

a {
  color: var(--c-teal-deep);
  text-decoration: none;
}

a:hover {
  color: var(--c-slate);
}

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

:focus-visible {
  outline: 3px solid var(--c-teal);
  outline-offset: 3px;
}

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

/* --- reveal states (animations.js adds .is-in) ------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal="image"] {
  transform: none;
}

.js [data-reveal="image"] img {
  transform: scale(1.06);
  transition: transform 1.2s var(--ease-out);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js [data-reveal="image"].is-in img {
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js [data-reveal],
  .js [data-reveal="image"] img {
    opacity: 1;
    transform: none;
  }
}

/* 16px side gutter on phones, 24px from tablet up (Bootstrap grid reads this) */
.container {
  --bs-gutter-x: 2rem;
}

@media (min-width: 768px) {
  .container {
    --bs-gutter-x: 3rem;
  }
}
