/* ===========================================================
   RAKEEN — ركين | نظام تصميم ثيم ووردبريس
   الهوية: عاجي #FBFBFA (60%) · كحلي #0E1B2F (30%) · ذهبي #C5A880 (10%)
   الخط: Tajawal — الاتجاه: RTL.
   =========================================================== */

:root {
  --ivory: #fbfbfa;
  --white: #ffffff;
  --ink: #0e1b2f;
  --ink-hover: #16294a;
  --accent: #c5a880;
  --accent-soft: rgba(197, 168, 128, 0.1);
  --accent-line: rgba(197, 168, 128, 0.32);

  --ink-90: rgba(14, 27, 47, 0.9);
  --ink-78: rgba(14, 27, 47, 0.78);
  --ink-66: rgba(14, 27, 47, 0.66);
  --ink-62: rgba(14, 27, 47, 0.62);
  --ink-50: rgba(14, 27, 47, 0.5);
  --ink-14: rgba(14, 27, 47, 0.14);
  --ink-10: rgba(14, 27, 47, 0.1);
  --ink-08: rgba(14, 27, 47, 0.08);
  --ink-06: rgba(14, 27, 47, 0.06);

  --ivory-90: rgba(251, 251, 250, 0.9);
  --ivory-70: rgba(251, 251, 250, 0.7);
  --ivory-60: rgba(251, 251, 250, 0.6);
  --ivory-55: rgba(251, 251, 250, 0.55);
  --ivory-12: rgba(251, 251, 250, 0.12);
  --ivory-10: rgba(251, 251, 250, 0.1);
  --ivory-04: rgba(251, 251, 250, 0.04);

  --maxw: 1200px;
  --gutter: 24px;
  --r-sm: 11px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-pill: 100px;

  --shadow-card: 0 1px 3px rgba(14, 27, 47, 0.06);
  --shadow-float: 0 18px 40px rgba(14, 27, 47, 0.16);

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* clip (not hidden) prevents horizontal scroll WITHOUT breaking position: sticky on the header */
  overflow-x: clip;
}
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  font-family: "Tajawal", system-ui, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul {
  margin: 0;
}
::selection {
  background: var(--accent);
  color: var(--ivory);
}

/* ---------- a11y ---------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}
/* Visually hidden until focused. Uses the clip pattern (not right:-9999px)
   so it never creates off-canvas width / horizontal scroll in RTL. */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 200;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 18px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 500;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(72px, 9vw, 120px);
}
.section--tight {
  padding-block: clamp(56px, 7vw, 90px);
}
.section--ink {
  background: var(--ink);
  color: var(--ivory);
}
.section--paper {
  background: var(--white);
  border-block: 1px solid var(--ink-06);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 22px;
}
.lede {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.85;
  color: var(--ink-62);
  max-width: 660px;
}
.section--ink .lede {
  color: var(--ivory-60);
}

.h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}
.head {
  max-width: 760px;
  margin-bottom: 54px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn--sm {
  padding: 11px 22px;
  font-size: 15px;
}
.btn--primary {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--ink-hover);
  border-color: var(--ink-hover);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-14);
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn--gold {
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  border-color: var(--accent);
}
.btn--gold:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.section--ink .btn--ghost {
  color: var(--ivory);
  border-color: var(--ivory-12);
}
.section--ink .btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15.5px;
  transition: gap 0.2s var(--ease);
}
.textlink .arrow {
  color: var(--accent);
}
.textlink:hover {
  gap: 14px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 251, 250, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-06);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 11px;
}
.brand img {
  max-height: 40px;
  width: auto;
}
.brand__ar {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand__en {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--accent);
}

.nav > ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  position: relative;
  display: inline-block;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 12px;
}
.nav .current-menu-item > a::after,
.nav .current_page_item > a::after,
.nav .current-menu-parent > a::after,
.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 12px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.nav a:hover::after {
  opacity: 0.5;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--ink-06);
  background: var(--ivory);
  padding: 14px var(--gutter) 24px;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav a {
  display: block;
  font-size: 17px;
  font-weight: 500;
  padding: 13px 4px;
  border-bottom: 1px solid var(--ink-06);
}
.mobile-nav .btn {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero .container {
  padding-block: clamp(64px, 9vw, 120px);
}
.hero__ring {
  position: absolute;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  pointer-events: none;
}
.hero__ring--1 {
  top: -120px;
  inset-inline-start: -80px;
  width: 420px;
  height: 420px;
  opacity: 0.7;
}
.hero__ring--2 {
  top: -60px;
  inset-inline-start: -20px;
  width: 300px;
  height: 300px;
  opacity: 0.45;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  margin-top: 28px;
}
.hero p + p {
  margin-top: 16px;
  color: var(--ink-50);
  font-size: clamp(15px, 1.5vw, 17px);
  max-width: 600px;
}
.hero .btn-row {
  margin-top: 40px;
}
.hero__points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  border-top: 1px solid var(--ink-10);
  margin-top: 56px;
  padding-top: 34px;
}
.hero__point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hero__point .dot {
  flex: none;
  margin-top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.hero__point span:last-child {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-78);
  font-weight: 500;
}

.media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-06);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--hero {
  min-height: clamp(380px, 52vw, 560px);
}
.frame-accent {
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  pointer-events: none;
}
.frame-accent--flip {
  inset: -18px 18px 18px -18px;
}

/* ---------- grids / cards ---------- */
.grid {
  display: grid;
  gap: 16px;
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--ivory);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-md);
  padding: 30px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.card .num {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-62);
}
.section--ink .card {
  background: var(--ivory-04);
  border-color: var(--ivory-10);
}
.section--ink .card p {
  color: var(--ivory-90);
}
.section--ink .card:hover {
  border-color: var(--accent-line);
  background: rgba(251, 251, 250, 0.06);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink-08);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-md);
  overflow: hidden;
}
.value-cell {
  background: var(--ivory);
  padding: 34px 30px;
  transition: background 0.2s var(--ease);
}
.value-cell:hover {
  background: var(--white);
}
.value-cell .num {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.value-cell p {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.service {
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-md);
  padding: 34px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.service:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.service .num {
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
}
.service h3 {
  margin-bottom: 14px;
}
.service p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-62);
  flex: 1;
  margin-bottom: 28px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split--rev {
  grid-template-columns: 1.1fr 0.9fr;
}
.split .media {
  min-height: clamp(300px, 42vw, 460px);
}
.split h2 {
  margin-bottom: 22px;
  max-width: 520px;
}
.split p {
  max-width: 520px;
}

/* timeline */
.timeline {
  overflow-x: auto;
  padding-bottom: 10px;
}
.timeline__track {
  position: relative;
  min-width: 660px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.timeline__line {
  position: absolute;
  top: 23px;
  right: 32px;
  left: 32px;
  height: 2px;
  background: var(--accent-line);
}
.timeline__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 12px;
}
.timeline__node {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 20px;
}
.timeline__step p {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

/* quote */
.quote {
  text-align: center;
}
.quote .mark {
  display: block;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.6;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}
.quote blockquote {
  font-size: clamp(24px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 auto 32px;
  max-width: 840px;
  text-wrap: balance;
}
.quote cite {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.quote cite .rule {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 48px;
  align-items: start;
}
.why-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}
.why-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ivory-10);
  list-style: none;
  font-size: 17.5px;
  font-weight: 500;
}
.why-list .dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* comparison */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 20px;
}
.compare__col {
  border-radius: var(--r-lg);
  padding: clamp(30px, 4vw, 44px);
}
.compare__col--rakeen {
  background: var(--ink);
  color: var(--ivory);
}
.compare__col--trad {
  background: var(--white);
  border: 1px solid var(--ink-10);
}
.compare__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 28px;
}
.compare__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
}
.compare__col--rakeen .compare__row {
  border-bottom: 1px solid var(--ivory-10);
}
.compare__col--trad .compare__row {
  border-bottom: 1px solid var(--ink-08);
}
.compare__mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.compare__mark--y {
  background: var(--accent);
  color: var(--ink);
}
.compare__mark--n {
  border: 1px solid var(--ink-14);
  color: var(--ink-50);
}
.compare__row span:last-child {
  font-size: 17px;
}
.compare__col--rakeen .compare__row span:last-child {
  font-weight: 500;
}
.compare__col--trad .compare__row span:last-child {
  color: var(--ink-50);
}

/* industries */
.industries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.industry {
  border: 1px solid var(--ink-08);
  border-radius: var(--r-md);
  padding: 32px;
  background: var(--white);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.industry:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.industry .num {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
}
.industry h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.industry p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-62);
}

/* about plate / mission */
.plate {
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
}
.plate img,
.plate svg {
  width: 100%;
  display: block;
}
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 28px;
}
.panel {
  background: var(--ivory-04);
  border: 1px solid var(--ivory-10);
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 48px);
}
.panel p {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.55;
  font-weight: 500;
}

/* ---------- blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink-08);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.post-cover {
  display: block;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: var(--ink-06);
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card .cat {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 14px;
}
.post-card h2,
.post-card h3 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 12px;
  font-weight: 700;
}
.post-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-62);
  flex: 1;
  margin-bottom: 20px;
}
.post-card .meta-date {
  font-size: 13px;
  color: var(--ink-50);
  margin-bottom: 16px;
}
.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-78);
  border: 1px solid var(--ink-14);
  border-radius: var(--r-pill);
  padding: 8px 18px;
}

/* filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-chip {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-78);
  background: transparent;
  border: 1px solid var(--ink-14);
  border-radius: var(--r-pill);
  padding: 9px 20px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-chip:hover {
  border-color: var(--accent);
}
.filter-chip.is-active {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.posts-wrap {
  position: relative;
  min-height: 200px;
}
.posts-wrap.is-loading {
  opacity: 0.45;
  pointer-events: none;
}
.no-posts {
  text-align: center;
  color: var(--ink-50);
  padding: 60px 0;
  font-size: 18px;
}

/* ---------- single article ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: var(--ink-50);
  font-size: 14.5px;
  margin-bottom: 24px;
}
.article__cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin: 8px 0 40px;
  background: var(--ink-06);
}
.article__body p,
.entry-content p {
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink-78);
  margin-bottom: 22px;
}
.article__body h2,
.entry-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 44px 0 18px;
}
.article__body h3,
.entry-content h3 {
  font-size: 21px;
  margin: 32px 0 14px;
}
.article__body ul,
.entry-content ul,
.entry-content ol {
  padding-inline-start: 22px;
  margin-bottom: 22px;
}
.article__body li,
.entry-content li {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-78);
  margin-bottom: 10px;
}
.article__body blockquote,
.entry-content blockquote {
  border-inline-start: 3px solid var(--accent);
  padding: 6px 22px;
  margin: 28px 0;
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}
.entry-content img {
  border-radius: var(--r-md);
  margin: 8px 0;
}
.entry-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}

/* breadcrumb */
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-50);
  margin-bottom: 24px;
}
.crumb a:hover {
  color: var(--accent);
}
.crumb .sep {
  color: var(--ink-14);
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.form {
  background: var(--white);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field--full {
  grid-column: 1 / -1;
}
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-62);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--ink-14);
  border-radius: var(--r-sm);
  background: var(--ivory);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field .error-text {
  font-size: 12.5px;
  color: #b3261e;
}
.form .btn {
  margin-top: 26px;
  width: 100%;
  justify-content: center;
}
.info-card {
  border: 1px solid var(--ink-08);
  border-radius: var(--r-md);
  padding: 28px;
  background: var(--white);
}
.info-card.lead {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.info-card .label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-50);
  margin-bottom: 8px;
}
.info-card .val {
  font-size: 18px;
  font-weight: 500;
}
.info-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* social icons on the contact "وسائل التواصل" card */
.rakeen-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.rakeen-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ink-14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--white);
  transition: all 0.25s var(--ease);
}
.rakeen-social a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}
.rakeen-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- consultation / Calendly booking ---------- */
#booking {
  scroll-margin-top: 90px;
}
.booking-card {
  margin-top: 40px;
  background: #f7f3ec;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
  padding: 12px;
  overflow: hidden;
}
.booking-card .calendly-inline-widget {
  width: 100%;
  min-width: 320px;
  /* override the embed's inline height so the widget stays tall enough responsively */
  height: 720px !important;
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 640px) {
  .booking-card {
    padding: 8px;
    border-radius: var(--r-md);
  }
  .booking-card .calendly-inline-widget {
    height: 820px !important;
  }
}

/* alerts */
.rakeen-alert {
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin-bottom: 26px;
  font-size: 15.5px;
  font-weight: 500;
}
.rakeen-alert--success {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--ink);
}
.rakeen-alert--error {
  background: rgba(179, 38, 30, 0.08);
  border: 1px solid rgba(179, 38, 30, 0.32);
  color: #8c1d18;
}

/* CTA */
.cta-band {
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.cta-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta-center .btn-row {
  justify-content: center;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--ivory);
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) var(--gutter) 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ivory-12);
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-col .stack,
.footer-col .menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col a,
.footer-col span {
  font-size: 15.5px;
  color: var(--ivory-70);
}
.footer-col a:hover {
  color: var(--ivory);
}
.footer-about p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ivory-55);
  max-width: 300px;
  margin-top: 18px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--ivory-12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory-70);
  transition: all 0.2s var(--ease);
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.footer-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom span {
  font-size: 14px;
  color: rgba(251, 251, 250, 0.45);
}
.ltr {
  direction: ltr;
  text-align: right;
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.stat {
  position: relative;
  text-align: center;
  padding: 24px 16px;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--ivory-12);
}
.stat__top {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}
.stat__num {
  display: block;
  font-size: clamp(52px, 7.5vw, 92px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--ivory-60);
  margin-top: 16px;
}
.stats-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--ivory-55);
  margin-top: 30px;
}
.stats-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- pagination ---------- */
.rakeen-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.rakeen-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ink-14);
  border-radius: var(--r-sm);
  font-weight: 500;
  color: var(--ink);
}
.rakeen-pagination .page-numbers.current {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.rakeen-pagination a.page-numbers:hover {
  border-color: var(--accent);
}

/* ---------- WordPress alignment / media ---------- */
.alignleft {
  float: right;
  margin: 0 0 16px 24px;
}
.alignright {
  float: left;
  margin: 0 24px 16px 0;
}
.aligncenter {
  display: block;
  margin: 16px auto;
}
.wp-caption {
  max-width: 100%;
}
.wp-caption-text {
  font-size: 13px;
  color: var(--ink-50);
  text-align: center;
  margin-top: 8px;
}
.sticky,
.gallery-caption,
.bypostauthor {
  display: block;
}

/* ---------- comments (minimal) ---------- */
.comments-area {
  max-width: 760px;
  margin: 60px auto 0;
}
.comments-area .comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}
.comments-area .comment-body {
  padding: 20px 0;
  border-bottom: 1px solid var(--ink-08);
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--ink-14);
  border-radius: var(--r-sm);
  background: var(--ivory);
  font-family: inherit;
  margin-bottom: 14px;
}

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
  .js .reveal .stagger > * {
    transform: translateY(16px);
    transition: transform 0.6s var(--ease);
  }
  .js .reveal.in .stagger > * {
    transform: none;
  }
  .js .reveal.in .stagger > *:nth-child(1) {
    transition-delay: 0.04s;
  }
  .js .reveal.in .stagger > *:nth-child(2) {
    transition-delay: 0.1s;
  }
  .js .reveal.in .stagger > *:nth-child(3) {
    transition-delay: 0.16s;
  }
  .js .reveal.in .stagger > *:nth-child(4) {
    transition-delay: 0.22s;
  }
  .js .reveal.in .stagger > *:nth-child(5) {
    transition-delay: 0.28s;
  }
  .js .reveal.in .stagger > *:nth-child(6) {
    transition-delay: 0.34s;
  }
  .js .reveal.in .stagger > *:nth-child(7) {
    transition-delay: 0.4s;
  }
  .js .reveal.in .stagger > *:nth-child(8) {
    transition-delay: 0.46s;
  }
  .hero__ring--1 {
    animation: rkDrift1 24s ease-in-out infinite;
  }
  .hero__ring--2 {
    animation: rkDrift2 30s ease-in-out infinite;
  }
  @keyframes rkDrift1 {
    0%,
    100% {
      transform: translate(0, 0);
    }
    50% {
      transform: translate(16px, 20px);
    }
  }
  @keyframes rkDrift2 {
    0%,
    100% {
      transform: translate(0, 0);
    }
    50% {
      transform: translate(-14px, 12px);
    }
  }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav,
  .header-cta .btn {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero__grid,
  .split,
  .split--rev {
    grid-template-columns: 1fr;
  }
  .hero__grid .media {
    order: 2;
  }
  .frame-accent {
    inset: 14px -14px -14px 14px;
  }
  .grid--3,
  .services,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .why-grid,
  .compare,
  .duo,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    gap: 32px;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 640px) and (max-width: 900px) {
  .grid--3,
  .services,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .stat + .stat::before {
    display: none;
  }
  .stat {
    border-top: 1px solid var(--ivory-12);
  }
}

/* ---------- product portfolio (Solutions page) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.product-card {
  --pc: var(--ink);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--ink-08);
  border-top: 3px solid var(--pc);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  border-color: var(--accent-line);
}
.product-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.product-logo-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--pc);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  box-shadow: 0 6px 16px -6px var(--pc);
}
.product-card__id {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.product-card__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.2px;
}
.product-card__cat {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--pc);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.product-card__headline {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 12px;
}
.product-card__desc {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-62);
  margin: 0 0 20px;
}
.product-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
}
.product-tags li {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-66);
  background: var(--ink-06);
  border-radius: 999px;
  padding: 6px 13px;
}
.product-card__cta {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- demo request modal ---------- */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
.demo-modal.is-open {
  display: flex;
}
.demo-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 27, 47, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
/* Anti-spam honeypot: hidden with the safe "visually-hidden" pattern.
   Avoids left:-9999px, which in an RTL document creates a wide off-canvas
   area and a horizontal scrollbar on mobile. */
.demo-honeypot,
.rakeen-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.demo-modal__card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  background: var(--ivory);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
  padding: clamp(26px, 4vw, 42px);
  animation: rakeen-modal-in 0.25s var(--ease);
}
@keyframes rakeen-modal-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.demo-modal__close {
  position: absolute;
  inset-inline-start: 18px;
  top: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink-14);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.demo-modal__close:hover,
.demo-modal__close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}
.demo-modal__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 16px;
  line-height: 1.3;
}
.demo-modal__product {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.demo-modal__product-label {
  font-size: 13px;
  color: var(--ink-50);
}
.demo-modal__chip {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 6px 15px;
}
.demo-modal__chip:empty {
  display: none;
}
.demo-form__submit {
  margin-top: 26px;
  width: 100%;
}
body.demo-open {
  overflow: hidden;
}

@media (min-width: 640px) and (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
