/* ===========================================
   Anas AJ — site-wide styles
   Brand: Cream paper + dot grid; Black, Red, Blue, Green accents.
   Typography: FF Yaseer (Arabic).
=========================================== */

@font-face {
  font-family: "Yaseer";
  src: url("assets/fonts/FFYaseer-Regular.otf") format("opentype"),
       url("assets/fonts/FFYaseer-Regular.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yaseer";
  src: url("assets/fonts/FFYaseer-Solid.otf") format("opentype"),
       url("assets/fonts/FFYaseer-Solid.ttf") format("truetype");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette */
  --cream:        #F4EFE6;
  --cream-2:      #ECE5D7;
  --paper:        #FBF8F1;
  --ink:          #15140F;
  --ink-2:        #2A2823;
  --ink-soft:     #5A574E;
  --ink-faint:    #8E8B81;
  --rule:         #1514100F;

  --red:          #B71F1F;
  --blue:         #1E2D8C;
  --green:        #1F7A4A;
  --green-deep:   #115A35;
  --black:        #15140F;

  /* Type scale (web — large for AR readability) */
  --fs-mega:   clamp(56px, 9vw, 144px);
  --fs-h1:     clamp(40px, 5.5vw, 84px);
  --fs-h2:     clamp(30px, 3.4vw, 56px);
  --fs-h3:     clamp(22px, 2vw, 32px);
  --fs-lead:   clamp(20px, 1.6vw, 26px);
  --fs-body:   18px;
  --fs-small:  15px;
  --fs-eyebrow:13px;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 22px;

  --container: 1280px;
  --gutter:    clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

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

body {
  font-family: "Yaseer", "Noto Naskh Arabic", "Tajawal", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* dot grid background — subtle, editorial */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #1514101A 1px, transparent 1.2px);
  background-size: 28px 28px;
  background-position: 0 0;
  opacity: 0.55;
  z-index: 0;
}

main, header, footer, section { position: relative; z-index: 1; }

/* ----- Type ----- */
h1, h2, h3, h4 {
  font-family: "Yaseer", serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p  { margin: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-deep); }

.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-weight: 600;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--ink-2);
}

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

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* ----- Layout ----- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(80px, 10vw, 140px) 0;
}

.section-tight {
  padding: clamp(60px, 7vw, 100px) 0;
}

/* ----- Header / Nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(251, 248, 241, 0.82);
  border-bottom: 1px solid var(--rule);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 22px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  /* tiny green dot accent */
  content: "";
  position: absolute;
  inset: auto -2px -2px auto;
  width: 12px; height: 12px;
  background: var(--green);
  border-radius: 50%;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-size: 20px; }
.brand-name span { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.12em; }

.nav-links {
  display: flex; gap: clamp(8px, 1.4vw, 22px);
  list-style: none; margin: 0; padding: 0;
  font-size: 17px;
  font-weight: 500;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease;
}
.nav-links a:hover { background: var(--cream-2); }
.nav-links a.active {
  background: var(--ink);
  color: var(--paper);
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease;
}
.nav-cta:hover { background: var(--green-deep); color: #fff; transform: translateY(-1px); }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--cream-2);
  border: 0;
  font-size: 22px;
  cursor: pointer;
}

/* mobile nav */
@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: grid; place-items: center; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute;
    top: 78px; right: var(--gutter); left: var(--gutter);
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.12);
  }
  .nav-links.open a { padding: 14px 16px; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  border: 0;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  font-family: inherit;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(31,122,74,0.6); }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; color: var(--paper); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-arrow::after {
  content: "←";
  display: inline-block;
  transition: transform 200ms ease;
}
.btn-arrow:hover::after { transform: translateX(-4px); }

/* ----- Cards ----- */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -28px rgba(20,20,15,0.25);
  border-color: #15141022;
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--cream);
  padding: 60px 0 36px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 { font-size: 16px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--ink-2); }
.footer-grid ul a:hover { color: var(--green-deep); }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  font-size: 16px;
  transition: background 160ms ease, color 160ms ease;
}
.social-row a:hover { background: var(--ink); color: var(--paper); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-size: 14px; color: var(--ink-soft);
  flex-wrap: wrap; gap: 12px;
}

/* ----- Reusable ----- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--cream-2);
  color: var(--ink-2);
}
.tag.green { background: #1F7A4A18; color: var(--green-deep); }
.tag.red   { background: #B71F1F18; color: var(--red); }
.tag.blue  { background: #1E2D8C18; color: var(--blue); }
.tag.dark  { background: #1514100D; color: var(--ink); }

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: middle;
}

/* Number markers (for numbered lists, openings) */
.num {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Section headings used across pages */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-heading .left { max-width: 720px; }
.section-heading h2 { margin-top: 8px; }

/* utility: visually-hidden */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== WhatsApp Floating Button ===== */
.wa-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,0.55), 0 6px 16px -4px rgba(0,0,0,0.2);
  z-index: 200;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.wa-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 18px 40px -10px rgba(37,211,102,0.7), 0 8px 20px -4px rgba(0,0,0,0.25);
}
@media (max-width: 540px) {
  .wa-fab { width: 54px; height: 54px; bottom: 16px; left: 16px; }
}
