/* =========================================================================
   Tamkeen Academy — styles.css
   Brand system 2025–2030. Light mode only. Square-cut, hairline rules.
   ========================================================================= */

:root {
  /* Brand tokens */
  --navy: #17355C;
  --deep-navy: #041A3C;
  --gold: #C69D5E;
  --gold-light: #E3C07F;
  --ivory: #F8F5EC;
  --white: #FFFFFF;
  --rule: #C8CCD3;

  /* Semantic */
  --text: var(--navy);
  --text-soft: rgba(23, 53, 92, .82);
  --on-navy: var(--white);
  --on-navy-soft: rgba(248, 245, 236, .86);
  --field-border: rgba(23, 53, 92, .62);
  --accent: var(--gold);
  --gold-band: linear-gradient(90deg, var(--gold), var(--gold-light) 50%, var(--gold));
  --navy-gradient: linear-gradient(180deg, var(--navy), var(--deep-navy));
  --shadow-lift: 0 14px 30px rgba(4, 26, 60, .10);

  /* Type */
  --font-body: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --font-head: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --font-display: 'Reem Kufi', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-latin: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --lh-body: 1.9;

  /* Layout */
  --header-h: 76px;
  --gutter: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[lang="en"] {
  --font-body: var(--font-latin);
  --font-head: var(--font-latin);
  --font-display: var(--font-latin);
  --lh-body: 1.7;
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1280px) { :root { --gutter: 32px; } }

/* ---------- base ---------- */

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: var(--lh-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open { overflow: hidden; }

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

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.4; margin: 0; color: inherit; }

p { margin: 0; }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

bdi[dir="ltr"], .num { font-family: var(--font-latin); unicode-bidi: isolate; }

::selection { background: var(--gold-light); color: var(--deep-navy); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--navy);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon, .card-icon, .sector-icon, .why-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

[dir="rtl"] .icon-dir { transform: scaleX(-1); }

.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), 880px); }

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: var(--deep-navy);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

main:focus { outline: none; box-shadow: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  touch-action: manipulation;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }

.btn-gold { background: var(--gold); color: var(--deep-navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(227, 192, 127, .75); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); border-color: var(--gold-light); }

.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--deep-navy); border-color: var(--deep-navy); }
.btn-navy .icon { color: var(--gold-light); }
.btn[disabled] { opacity: .5; cursor: progress; }

.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-gradient);
  color: var(--on-navy);
}
.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold-band);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  transition: height .25s var(--ease);
}
.site-header.is-scrolled .header-inner { height: 62px; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(4, 26, 60, .25); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
  min-height: 44px;
}
.brand img { width: 48px; height: 48px; object-fit: contain; transition: width .25s var(--ease), height .25s var(--ease); }
.site-header.is-scrolled .brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--white); line-height: 1.2; white-space: nowrap; }

.primary-nav { display: none; margin-inline-start: auto; }
.primary-nav ul { display: flex; gap: 2px; }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--on-navy-soft);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 10px;
  bottom: 6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--gold-light); }
.primary-nav a:hover::after, .primary-nav a[aria-current]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.primary-nav + .header-actions { margin-inline-start: 0; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(227, 192, 127, .55);
  border-radius: 0;
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: .9rem;
}
.lang-toggle[lang="ar"] { font-family: 'Tajawal', sans-serif; font-weight: 700; font-size: 1rem; }
.lang-toggle .icon { color: var(--gold-light); }
.lang-toggle:hover { border-color: var(--gold-light); background: rgba(255, 255, 255, .06); }

.header-cta { display: none; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(227, 192, 127, .55);
  border-radius: 0;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 560px) { .header-cta { display: inline-flex; } }
@media (max-width: 380px) {
  .brand-name { font-size: 1.15rem; }
  .lang-toggle .icon { display: none; }
}
/* The English wordmark is wider than the Arabic one */
@media (max-width: 440px) {
  html[lang="en"] .header-inner { gap: 10px; }
  html[lang="en"] .brand { gap: 8px; }
  html[lang="en"] .brand img { width: 38px; height: 38px; }
  html[lang="en"] .brand-name { font-size: 1rem; }
  html[lang="en"] .header-actions { gap: 8px; }
  html[lang="en"] .lang-toggle { padding: 0 10px; }
}
@media (min-width: 1180px) {
  .primary-nav { display: block; }
  .menu-toggle { display: none; }
}

/* ---------- drawer ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--navy-gradient);
  color: var(--on-navy);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.drawer.is-open { opacity: 1; transform: none; }
.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(227, 192, 127, .22);
}
.drawer-nav a:hover { color: var(--gold-light); }
.drawer-foot { display: grid; gap: 20px; margin-top: auto; }
.drawer-contacts { display: grid; gap: 4px; }
.drawer-contacts a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--on-navy-soft); }
.drawer-contacts .icon { color: var(--gold-light); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-gradient);
  color: var(--on-navy);
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 72px 0 clamp(96px, 12vw, 160px);
  --accent: var(--gold-light);
}

/* Navy duotone: the photo is greyscaled and blended into the navy gradient */
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: luminosity;
  opacity: .16;
  pointer-events: none;
}
/* Mirror in RTL so the photo's empty side sits under the headline */
[dir="rtl"] .hero-photo { transform: scaleX(-1); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 26, 60, .55), rgba(4, 26, 60, 0) 60%);
  pointer-events: none;
}
[dir="rtl"] .hero::before { background: linear-gradient(270deg, rgba(4, 26, 60, .55), rgba(4, 26, 60, 0) 60%); }

.hero-art {
  position: absolute;
  top: 50%;
  inset-inline-end: -6%;
  width: min(92vw, 620px);
  aspect-ratio: 1;
  transform: translateY(-55%);
  pointer-events: none;
}
.hero-art img { width: 100%; height: 100%; object-fit: contain; opacity: .08; }
@media (min-width: 960px) {
  .hero-art { inset-inline-end: 4%; width: min(44vw, 600px); }
  .hero-art img { opacity: .09; }
}

.hero-inner { position: relative; z-index: 1; }
.hero-inner > * { max-width: 760px; }

.hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--gold); flex: none; align-self: flex-start; margin-top: .9em; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7.4vw, 5.25rem);
  line-height: 1.3;
  margin: 18px 0 14px;
  color: var(--white);
  text-wrap: balance;
}
html[lang="en"] .hero-title { font-size: clamp(2.25rem, 6vw, 4.5rem); line-height: 1.12; letter-spacing: -.01em; }

.hero-activities {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--gold-light);
}
.hero-lead { margin-top: 16px; font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--on-navy-soft); max-width: 60ch; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-locs { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 32px; color: var(--on-navy-soft); font-weight: 700; }
.hero-locs li { display: inline-flex; align-items: center; gap: 8px; }
.hero-locs .icon { color: var(--white); }

@media (max-width: 480px) {
  .hero-ctas .btn { width: 100%; }
}

.wave {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(48px, 7.5vw, 110px);
  display: block;
}

/* ---------- announcement ---------- */

.announce { background: var(--ivory); padding: 0 0 8px; }
.announce-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  background: var(--white);
  border: 1px solid var(--gold);
  padding: 14px 20px;
}
.announce-bar > .icon { width: 24px; height: 24px; }
.announce-bar strong { font-family: var(--font-head); font-weight: 700; }
.announce-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-inline-start: auto;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.announce-bar a:hover { text-decoration-color: var(--navy); }

/* ---------- sections ---------- */

.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section-white { background: var(--white); }
.section-ivory { background: var(--ivory); }
.section-navy { background: var(--navy-gradient); color: var(--on-navy); --accent: var(--gold-light); }

.gold-divider {
  border: 0;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
}

.has-watermark { overflow: hidden; }
.has-watermark::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  inset-inline-start: -160px;
  bottom: -140px;
  background: url("assets/img/tamkeen-watermark.png") center / contain no-repeat;
  opacity: .045;
  pointer-events: none;
}
.has-watermark > .container { position: relative; z-index: 1; }

.section-head { margin-bottom: clamp(32px, 5vw, 48px); max-width: 760px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); flex: none; }
.section-navy .eyebrow { color: var(--gold-light); }

.section-title { font-size: clamp(1.75rem, 3.8vw, 2.5rem); line-height: 1.35; text-wrap: balance; }
.section-title.display { font-family: var(--font-display); }
.section-navy .section-title { color: var(--white); }
.section-intro { margin-top: 14px; color: var(--text-soft); font-size: 1.1rem; max-width: 64ch; }

.lead { font-size: 1.15rem; margin-top: 18px; }

/* ---------- about ---------- */

.about-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.35fr 1fr; gap: 72px; } }

.facts { display: grid; gap: 10px; margin-top: 24px; }
.facts li { display: flex; align-items: flex-start; gap: 10px; }
.facts .icon { margin-top: 6px; }

.vm { margin-top: 28px; display: grid; gap: 16px; }
@media (min-width: 640px) { .vm { grid-template-columns: 1fr 1fr; } }
.vm-item { border: 1px solid var(--rule); border-top: 3px solid var(--gold); padding: 20px; background: var(--white); }
.vm-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.vm-item p { color: var(--text-soft); }


.about-visual {
  margin: 0;
  position: relative;
  background: var(--ivory);
  border: 1px solid var(--rule);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 14%;
  max-width: 480px;
  justify-self: center;
  width: 100%;
}
.about-visual::before, .about-visual::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border: 0 solid var(--gold);
}
.about-visual::before { top: -1px; inset-inline-start: -1px; border-top-width: 3px; border-inline-start-width: 3px; }
.about-visual::after { bottom: -1px; inset-inline-end: -1px; border-bottom-width: 3px; border-inline-end-width: 3px; }

/* ---------- cards / services ---------- */

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .services-grid > :nth-child(-n+3) { grid-column: span 2; }
  .services-grid > :nth-child(n+4) { grid-column: span 3; }
  .services-grid > :nth-child(n+4) .card-media { aspect-ratio: 21 / 9; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset-inline: -1px;
  top: -1px;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: var(--origin, right);
  transition: transform .3s var(--ease);
}
[dir="ltr"] .card::before { --origin: left; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--text-soft); }
.card-icon { width: 44px; height: 44px; stroke-width: 1.4; }
.card-media {
  width: calc(100% + 56px);
  max-width: none;
  margin: -28px -28px 8px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ivory);
}
.card::before, .badge { z-index: 2; }

.card-link {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
}
.card-link span { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.card-link:hover span { text-decoration-color: var(--navy); }

.badge {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  background: var(--gold);
  color: var(--deep-navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  padding: 4px 14px;
}
.card-soon { border-color: var(--gold); }

/* ---------- sectors ---------- */

.sector-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.sector {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  min-height: 220px;
  padding: 24px;
  background: var(--deep-navy);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.5;
  --accent: var(--gold-light);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.sector::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 26, 60, .35) 0%, rgba(4, 26, 60, .9) 75%);
}
.sector-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.sector > svg, .sector > span { position: relative; z-index: 1; }
.sector:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.sector:hover .sector-media { transform: scale(1.04); }
.sector-icon { width: 40px; height: 40px; stroke-width: 1.4; }

.tags-block { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); }
.tags-title { font-size: 1.15rem; margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  background: var(--ivory);
  font-weight: 700;
  font-size: .98rem;
}
.tags li::before { content: ""; width: 6px; height: 6px; background: var(--gold); flex: none; }

/* ---------- method / timeline ---------- */

.timeline { position: relative; display: grid; gap: 28px; counter-reset: step; }
.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 27px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), var(--gold-light), var(--gold));
}
.step { position: relative; padding-inline-start: 84px; min-height: 56px; }
.step-num {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--deep-navy);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 1.05rem;
}
.step h3 { color: var(--white); font-size: 1.2rem; padding-top: 10px; }
.step p { color: var(--on-navy-soft); margin-top: 6px; }

@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .timeline::before { inset-inline: 28px; top: 28px; bottom: auto; width: auto; height: 1px; background: var(--gold-band); }
  .step { padding-inline-start: 0; padding-top: 80px; }
}

/* ---------- why ---------- */

.why-grid { display: grid; gap: 0 48px; }
@media (min-width: 768px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why { display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid var(--rule); }
.why-icon { width: 40px; height: 40px; stroke-width: 1.4; }
.why h3 { font-size: 1.2rem; }
.why p { color: var(--text-soft); margin-top: 6px; }

/* ---------- clients ---------- */

/* Flex so the last (incomplete) row of the 13 names sits centred */
.client-grid { --cols: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
@media (min-width: 520px) { .client-grid { --cols: 2; } }
@media (min-width: 800px) { .client-grid { --cols: 3; } }
@media (min-width: 1100px) { .client-grid { --cols: 4; } }
.client {
  flex: 0 0 calc((100% - (var(--cols) - 1) * 16px) / var(--cols));
  display: flex;
  align-items: center;
  min-height: 104px;
  padding: 22px 22px 20px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.55;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.client:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.client.has-logo { flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; }
.client-logo { height: 72px; width: auto; max-width: 100%; object-fit: contain; object-position: var(--logo-pos, right) center; }
[dir="ltr"] .client-logo { --logo-pos: left; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item h3 { font-size: inherit; }
.faq-trigger {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  background: none;
  border: 0;
  text-align: start;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.6;
}
.faq-trigger:hover { color: var(--deep-navy); }
.faq-chev {
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 1px solid var(--rule);
  transition: transform .3s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.faq-trigger[aria-expanded="true"] .faq-chev { transform: rotate(180deg); background: var(--navy); border-color: var(--navy); color: var(--gold-light); }
.faq-panel { display: grid; grid-template-rows: 1fr; }
.js .faq-panel { grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.js .faq-panel.is-open { grid-template-rows: 1fr; }
.faq-inner { overflow: hidden; }
.faq-inner > p:first-child { padding-bottom: 22px; color: var(--text-soft); max-width: 70ch; }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 40px; } }

.form, .form-success { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--gold); padding: clamp(20px, 4vw, 36px); }
.form { display: grid; gap: 20px; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; align-content: start; }
.field label { font-family: var(--font-head); font-weight: 700; font-size: .98rem; }
.req { color: var(--navy); }
.opt { font-family: var(--font-body); font-weight: 500; color: var(--text-soft); font-size: .9rem; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: 0;
  font-size: 1rem;
  line-height: 1.6;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--navy); }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer; }
.select-wrap .icon { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }

.field-hint { font-size: .9rem; color: var(--text-soft); }
.field-error {
  font-size: .92rem;
  font-weight: 700;
  color: var(--deep-navy);
  border-inline-start: 3px solid var(--gold);
  padding-inline-start: 10px;
  line-height: 1.6;
}
.has-error input, .has-error select, .has-error textarea { border: 2px solid var(--deep-navy); background: var(--ivory); }

.form-summary {
  padding: 12px 16px;
  background: var(--ivory);
  border: 1px solid var(--gold);
  border-inline-start-width: 4px;
  font-weight: 700;
}
.form-summary a { text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.btn-submit { justify-self: start; min-width: 200px; }
@media (max-width: 639px) { .btn-submit { width: 100%; } }

.form-success { background: var(--navy-gradient); color: var(--white); text-align: center; display: grid; justify-items: center; gap: 14px; padding-block: 48px; }
.form-success:focus { outline: none; box-shadow: none; }
.form-success h3 { font-size: 1.4rem; }
.form-success p { color: var(--on-navy-soft); max-width: 52ch; }
.success-mark { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-light); }
.success-mark .icon { width: 32px; height: 32px; stroke-width: 2; }

.contact-aside { display: grid; gap: 12px; }
.contact-card { background: var(--white); border: 1px solid var(--rule); padding: 20px; }
.contact-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 6px; }
.contact-card h3 .icon { color: var(--navy); }
.contact-card > p { color: var(--text-soft); }
.phone-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; }
.phone-list li + li { border-top: 1px solid var(--rule); }
.phone-list .num { font-weight: 700; font-size: 1.1rem; }
.phone-actions { display: inline-flex; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--field-border);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.text-link { font-weight: 700; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.map { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--rule); background: var(--white); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-soft); font-size: .95rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--deep-navy);
  color: var(--on-navy-soft);
  border-top: 3px solid var(--gold);
  padding-top: 56px;
  --accent: var(--gold-light);
}
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.footer-brand img { width: 80px; height: 79px; }
.footer-name { margin-top: 16px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--white); line-height: 1.6; max-width: 34ch; }
.footer-activities { margin-top: 8px; color: var(--gold-light); font-weight: 700; }
.footer-title { font-size: 1rem; color: var(--gold-light); margin-bottom: 12px; }
.footer-col ul { display: grid; gap: 2px; }
.footer-col li { min-height: 36px; display: flex; align-items: center; }
.footer-col a { text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.footer-col a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 5px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px 0 96px;
  border-top: 1px solid rgba(227, 192, 127, .2);
  font-size: .92rem;
}
@media (min-width: 768px) { .footer-bottom { padding-bottom: 24px; } }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(227, 192, 127, .6);
  border-radius: 0;
  font-weight: 700;
}
.to-top .icon { color: var(--gold-light); }
.to-top:hover { border-color: var(--gold-light); background: rgba(255, 255, 255, .06); }

/* ---------- floating WhatsApp ---------- */

.wa { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 45; }
.drawer-open .wa { display: none; }
.wa-fab {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold-light);
  border: 2px solid var(--gold);
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(4, 26, 60, .3);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.wa-fab:hover { background: var(--deep-navy); transform: translateY(-2px); }
.wa-fab .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.wa-menu {
  position: absolute;
  bottom: 68px;
  inset-inline-end: 0;
  min-width: 232px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-lift);
  padding: 8px 0;
}
.wa-title { padding: 6px 16px 8px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.wa-menu a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; text-decoration: none; font-weight: 700; }
.wa-menu a:hover { background: var(--ivory); }
.wa-menu bdi { font-size: 1.05rem; }

/* ---------- reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.is-visible:hover { transition-duration: .25s; }
.cards > .reveal:nth-child(2), .sector-grid > .reveal:nth-child(2), .client-grid > .reveal:nth-child(3n+2), .timeline > .reveal:nth-child(2), .why-grid > .reveal:nth-child(2) { transition-delay: 50ms; }
.cards > .reveal:nth-child(3), .sector-grid > .reveal:nth-child(3), .client-grid > .reveal:nth-child(3n), .timeline > .reveal:nth-child(3), .why-grid > .reveal:nth-child(3) { transition-delay: 100ms; }
.cards > .reveal:nth-child(4), .sector-grid > .reveal:nth-child(4), .timeline > .reveal:nth-child(4), .why-grid > .reveal:nth-child(4) { transition-delay: 150ms; }
.cards > .reveal:nth-child(5), .sector-grid > .reveal:nth-child(5) { transition-delay: 200ms; }

/* ---------- 404 ---------- */

.nf {
  position: relative;
  overflow: hidden;
  background: var(--ivory);
  padding: clamp(48px, 8vw, 96px) 0;
  min-height: calc(100svh - var(--header-h) - 120px);
  display: grid;
  place-items: center;
}
.nf::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/img/tamkeen-watermark.png") center / min(80vw, 720px) no-repeat;
  opacity: .06;
  pointer-events: none;
}
.nf-panel {
  position: relative;
  width: min(100% - 2 * var(--gutter), 720px);
  margin-inline: auto;
  background: var(--navy-gradient);
  color: var(--white);
  text-align: center;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 56px);
  border-bottom: 4px solid var(--gold);
}
.nf-code {
  font-family: 'Reem Kufi', 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(5.5rem, 22vw, 10rem);
  line-height: 1;
  color: var(--gold);
  margin: 0;
}
.nf-panel h1 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); margin-top: 20px; }
.nf-alt { margin-top: 8px; color: var(--on-navy-soft); }
.nf-alt:lang(en) { font-family: var(--font-latin); line-height: 1.6; }
.nf-alt:lang(ar) { font-family: 'Tajawal', sans-serif; line-height: 1.9; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .sector:hover, .client:hover, .wa-fab:hover, .sector:hover .sector-media { transform: none; }
}
