/* Masharif Al-Hijaz — site stylesheet (plain CSS, no build step). */

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2066-2069;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2066-2069;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2066-2069;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-2065, U+206A-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-2065, U+206A-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-2065, U+206A-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --green: #1e4036;
  --green-deep: #173229;
  --gold: #b89a5d;
  --cream: #f7f4ee;
  --paper: #fffdf9;
  --ink: #22262a;
  --muted: #5d6266;
  --line: #d8cfbf;
  --radius: 16px;
  --wrap: 1040px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.85;
}

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

a {
  color: var(--green);
  text-decoration-color: var(--gold);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--green-deep);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
}

.skip:focus {
  inset-inline-start: 16px;
  top: 12px;
  z-index: 10;
  background: var(--paper);
  padding: 8px 14px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------- header: one bar, like the platform (green, white brand lockup, gold rule) ---------- */
.site-header {
  background: var(--green);
  border-bottom: 3px solid var(--gold);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  height: 36px;
  width: auto;
}

.brand-word {
  height: 32px;
  width: auto;
}

.top-nav {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}

.top-nav a {
  color: #f1ece1;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

/* ---------- content ---------- */
main {
  padding: 32px 0 56px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  margin-bottom: 20px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h2::before {
  content: "";
  width: 4px;
  height: 1.05em;
  background: var(--gold);
  border-radius: 2px;
}

.card p {
  margin: 0 0 10px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* intro */
.intro h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  line-height: 1.45;
  color: var(--green);
}

.intro .tagline {
  margin: 6px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ece5d8;
  color: var(--muted);
  font-size: 1.08rem;
}

.intro p:last-child {
  font-size: 1.05rem;
}

/* three pillars */
.pillars {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.pillar {
  margin: 0;
  padding: 22px;
  border-top: 3px solid var(--gold);
}

.pillar h2 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.pillar h2::before {
  display: none;
}

/* facts (company details, contact) */
.facts {
  margin: 0;
}

.facts div {
  padding: 12px 0;
  border-bottom: 1px solid #ece5d8;
}

.facts div:first-child {
  padding-top: 0;
}

.facts div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.facts dt {
  font-size: 0.9rem;
  color: var(--muted);
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.facts dd a {
  text-decoration: none;
}

/* client protection notice */
.notice {
  background: #fbf6ea;
  border: 1px solid var(--gold);
  border-inline-start-width: 5px;
}

.notice p {
  font-weight: 600;
}

/* legal pages */
.legal h1 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--green);
}

.legal .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.legal .lead {
  font-weight: 600;
  margin: 14px 0 12px;
}

.legal ol {
  margin: 16px 0 0;
  padding-inline-start: 1.4em;
}

.legal li {
  margin-bottom: 12px;
}

.legal li:last-child {
  margin-bottom: 0;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: #e9e3d6;
  border-top: 3px solid var(--gold);
  padding: 26px 0 30px;
  font-size: 0.92rem;
  line-height: 1.9;
}

.site-footer p {
  margin: 0;
}

/* copyright + e-mail centred; legal links in the corner (stacked and centred on phones) */
.footer-grid {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  font-size: 0.88rem;
}

.site-footer a {
  color: #fff;
  text-decoration-color: var(--gold);
}

.site-footer a[aria-current="page"] {
  color: var(--gold);
}

@media (max-width: 759px) {
  .copy .sep {
    display: none;
  }

  .copy a {
    display: block;
  }
}

/* ---------- phones ---------- */
@media (max-width: 559px) {
  .site-header .wrap {
    height: 58px;
    gap: 10px;
  }

  .brand-mark {
    height: 26px;
  }

  .brand-word {
    height: 20px;
  }

  .top-nav {
    gap: 10px;
    font-size: 0.8rem;
  }
}

/* ---------- larger screens ---------- */
@media (min-width: 760px) {
  main {
    padding: 40px 0 64px;
  }

  .card {
    padding: 32px 36px;
  }

  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 20px;
  }

  .grid-2 .card {
    margin-bottom: 0;
  }

  .stack {
    display: grid;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .footer-grid .copy {
    grid-column: 2;
  }

  .footer-grid nav {
    grid-column: 3;
    justify-self: end;
  }
}

@media print {
  .site-header,
  .site-footer nav,
  .skip {
    display: none;
  }
}
