/* ==========================================================================
   Smart Kernel — additions on top of the vendor template.

   Two kinds of rule only:
     1. The loading screen, rebuilt around the brand mark.
     2. Styling for content the template had no slot for — the practice-area
        pages, which carry 37 service taglines, 299 scope items and 113
        expected-impact statements from the client's brief.

   Brand book rules enforced here: green is rationed to rules, dots and marks;
   green never carries text on navy (2.38:1) — Steel Blue does (5.04:1).
   ========================================================================== */

/* ------------------------------------------------------------- skip link --- */

.sk-skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 22px;
  background: var(--tj-color-theme-primary);
  color: #fff;
  font-weight: var(--tj-fw-sbold);
}
.sk-skip:focus { inset-inline-start: 0; }

/* ------------------------------------------------------ language switch --- */

.sk-lang {
  display: inline-flex;
  align-items: center;
  padding-inline: 16px;
  color: var(--tj-color-heading-primary);
  font-size: 15px;
  font-weight: var(--tj-fw-medium);
  border-inline-end: 1px solid var(--tj-color-border-1);
  line-height: 1;
}
.sk-lang:hover { color: var(--tj-color-theme-primary); }
.header-area.header-sticky .sk-lang { border-inline-end-color: var(--tj-color-border-1); }

/* ========================================================== loading screen ===
   The template shipped a bouncing ball and the word "Loading...". This is the
   Smart Kernel mark instead: SK, the logo's green divider rule drawing itself
   downward, then the wordmark — on the brand's Deep Slate ground.
   ========================================================================== */

/* Standalone: it no longer borrows .tj-preloader, so it carries its own
   positioning and its own exit transition. */
.sk-preloader {
  position: fixed;
  inset: 0;
  z-index: 100000000;
  background-color: var(--tj-color-theme-dark);
  color: #fdfdf9;
  user-select: none;
  opacity: 1;
  transition: opacity .45s ease;
}
.sk-preloader.is-done {
  opacity: 0;
  pointer-events: none;
}
.sk-preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  inline-size: 100%;
  block-size: 100%;
  gap: 26px;
}

.sk-preloader-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--tj-ff-heading);
  color: #fff;
  line-height: .96;
  letter-spacing: -0.01em;
}

.sk-preloader-sk {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: var(--tj-fw-bold);
  opacity: 0;
  animation: sk-fade-in .5s ease forwards;
}

/* The signature device: a single confident line, drawn top to bottom. */
.sk-preloader-rule {
  inline-size: 4px;
  block-size: clamp(42px, 7vw, 72px);
  background-color: var(--sk-green, #009444);
  border-radius: 1px;
  transform-origin: top center;
  transform: scaleY(0);
  animation: sk-draw-rule .55s cubic-bezier(.4, 0, .2, 1) .28s forwards;
}

.sk-preloader-word {
  font-size: clamp(17px, 2.4vw, 27px);
  font-weight: var(--tj-fw-bold);
  letter-spacing: .02em;
  opacity: 0;
  animation: sk-fade-in .5s ease .5s forwards;
}

/* A quiet progress hairline rather than a spinner — the brand is composed. */
.sk-preloader-track {
  position: relative;
  inline-size: clamp(150px, 22vw, 230px);
  block-size: 2px;
  background-color: rgba(255, 255, 255, .14);
  border-radius: 2px;
  overflow: hidden;
}
.sk-preloader-track span {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 38%;
  background-color: var(--sk-green, #009444);
  border-radius: 2px;
  animation: sk-track 1.15s ease-in-out infinite;
}

.sk-preloader-label {
  margin: 0;
  color: var(--tj-color-text-body-2);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
html[lang="ar"] .sk-preloader-label { letter-spacing: 0; text-transform: none; font-size: 15px; }

@keyframes sk-fade-in { to { opacity: 1; } }
@keyframes sk-draw-rule { to { transform: scaleY(1); } }
@keyframes sk-track {
  0%   { inset-inline-start: -40%; }
  100% { inset-inline-start: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sk-preloader-sk,
  .sk-preloader-word { opacity: 1; animation: none; }
  .sk-preloader-rule { transform: scaleY(1); animation: none; }
  .sk-preloader-track span { animation-duration: 3s; }
}

/* ===================================================== practice-area pages ===
   The client's brief carries, per service: a tagline, a scope-of-solutions list
   and an expected-impact list. The template had no component for that shape.
   ========================================================================== */

.sk-service {
  padding-block: 56px;
  border-block-start: 1px solid var(--tj-color-border-1);
}
.sk-area-services .sk-service:first-of-type { border-block-start: 0; padding-block-start: 0; }

.sk-service-head { padding-inline-end: 34px; }

.sk-service-code {
  display: inline-block;
  margin-block-end: 10px;
  color: var(--tj-color-theme-primary);
  font-size: 14px;
  font-weight: var(--tj-fw-bold);
  letter-spacing: .1em;
  direction: ltr;
  unicode-bidi: isolate;
}

.sk-service-title {
  margin: 0 0 12px;
  color: var(--tj-color-heading-primary);
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: var(--tj-fw-bold);
  line-height: 1.25;
}

.sk-service-tagline {
  margin: 0;
  color: var(--tj-color-theme-primary);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}

.sk-service-sub {
  margin: 0 0 16px;
  color: var(--tj-color-heading-primary);
  font-size: 13px;
  font-weight: var(--tj-fw-sbold);
  letter-spacing: .14em;
  text-transform: uppercase;
}
html[lang="ar"] .sk-service-sub { letter-spacing: 0; text-transform: none; font-size: 15px; }

.sk-scope {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  columns: 2;
  column-gap: 34px;
}
.sk-scope li {
  break-inside: avoid;
  position: relative;
  padding-block: 7px;
  padding-inline-start: 20px;
  font-size: 16px;
  line-height: 1.6;
}
.sk-scope li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 15px;
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background-color: var(--tj-color-theme-primary);
}

.sk-impact {
  padding: 28px 30px;
  background-color: var(--tj-color-common-white);
  border: 1px solid var(--tj-color-border-1);
  border-radius: 10px;
}
.sk-impact ul { list-style: none; margin: 0; padding: 0; }
.sk-impact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 9px;
  color: var(--tj-color-heading-primary);
  font-size: 16px;
  line-height: 1.55;
}
.sk-impact li i {
  flex: 0 0 auto;
  margin-block-start: 6px;
  color: var(--sk-green, #009444);
  font-size: 13px;
}

@media (max-width: 991px) {
  .sk-scope { columns: 1; }
  .sk-service-head { padding-inline-end: 0; margin-block-end: 26px; }
}

/* ------------------------------------------------- practice-area cards ----- */

.sk-area-link { display: block; block-size: 100%; }
.sk-area-link .title { transition: color .25s ease; }
.sk-area-link:hover .title { color: var(--tj-color-theme-primary); }

.sk-area-num {
  display: block;
  margin-block-end: 6px;
  color: var(--tj-color-text-body-3);
  font-size: 13px;
  font-weight: var(--tj-fw-sbold);
  letter-spacing: .12em;
  direction: ltr;
  unicode-bidi: isolate;
}

.sk-area-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 14px;
  color: var(--tj-color-theme-primary);
  font-size: 15px;
  font-weight: var(--tj-fw-sbold);
}

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

.footer-offices { margin-block-start: 20px; }
.footer-office {
  margin: 0 0 16px;
  color: var(--tj-color-text-body-2);
  font-size: 15px;
  line-height: 1.7;
  unicode-bidi: plaintext;
}
.footer-office strong { color: var(--tj-color-common-white); font-weight: var(--tj-fw-sbold); }
.footer-office a { color: var(--tj-color-text-body-2); }
.footer-office a:hover { color: var(--tj-color-common-white); }

/* ------------------------------------------------------------- the form --- */

/* Honeypot: off-screen for people, still reachable by bots. */
.sk-hp {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sk-form-note {
  margin: 18px 0 0;
  font-size: 15px;
  font-weight: var(--tj-fw-medium);
  color: var(--sk-green, #009444);
  min-block-size: 1.4em;
}
.sk-form-note.is-error { color: #FF9B8A; }

.submit-btn .tj-primary-btn[disabled] { opacity: .6; pointer-events: none; }

/* Phone numbers and figures inside Arabic prose keep the form the client wrote. */
.contact-link,
.call-box .number span,
.footer-contact .text,
.location-tooltip a { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .countup-number,
html[lang="ar"] .customers-number { direction: ltr; unicode-bidi: isolate; }

/* ======================================================= fit corrections ===
   The template sets `line-height: 1` on the sliding button label, so its box is
   exactly font-size tall. Combined with the `overflow: hidden` that masks the
   hover swap, any descender is cut — 16px text needs ~19px. Poppins has taller
   metrics than the face the template was drawn with, so it shows.

   The hover effect is untouched: the label carries `text-shadow: 0 30px 0`
   (a copy 30px below) and slides up 30px. Anything under 30px tall still masks
   correctly, so 1.4 (22.4px) is safe.
   ========================================================================== */

.tj-primary-btn .btn-text span,
.text-btn .btn-text span,
.footer-cta .cta-btn .btn-text span {
  line-height: 1.4;
}

/* Headings were checked and need no equivalent fix: SplitText's line wrappers
   report scrollHeight > clientHeight because that is how the reveal masks the
   characters, but descenders render in full. */

/* ============================================================ footer ========
   The footer sits on Warm Ivory, not a dark ground. The reversed logo and the
   white/steel text below were written for a dark footer and are invisible here.
   ========================================================================== */

.footer-office {
  color: var(--tj-color-text-body);
}
.footer-office strong {
  color: var(--tj-color-heading-primary);
}
.footer-office a {
  color: var(--tj-color-theme-primary);
  font-weight: var(--tj-fw-medium);
}
.footer-office a:hover { color: var(--tj-color-heading-primary); }

/* ============================================================ word-file gaps
   Blocks the content DOCX lists for Home that the first build left out:
   the hero buttons, "How we work" (4 steps) and the closing CTA paragraph.
   ========================================================================== */

.sk-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.sk-hero-btns .tj-primary-btn.transparent-btn {
  border-color: rgba(255, 255, 255, 0.35);
}
.sk-hero-btns .tj-primary-btn.transparent-btn .btn-text {
  color: var(--tj-color-common-white);
}
.sk-hero-btns .tj-primary-btn.transparent-btn:hover {
  border-color: var(--tj-color-common-white);
}

.sk-how .working-process-area {
  margin-top: 40px;
}
.sk-how .process-item {
  flex: 1 1 220px;
  max-width: none;
}

.sk-cta-desc {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-bottom: 26px;
}

/* Copyright on the start side, the "Design by" credit pushed to the end side. */
.copyright-content-area .copyright-text {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 30px;
}
@media (max-width: 767px) {
  .copyright-content-area .copyright-text { justify-content: center; }
}

/* ============================================================ vivid green ===
   Brought up to the brand book's ~10% share, following its website mock-up
   (p.19): green primary buttons, plus green on small marks only — section-label
   icons, card icons, counter "+", process arrows, the active menu item's
   indicator. Green still never sets body text.
   ========================================================================== */

/* Primary buttons (header, hero, form, "View all services", "All sectors", CTA band) */
.tj-primary-btn:not(.transparent-btn),
.tj-primary-btn.btn-dark {
  background-color: var(--sk-green, #009444);
}
.tj-primary-btn.btn-dark .btn-icon {
  background-color: var(--tj-color-theme-dark);
}
.tj-primary-btn.btn-dark .btn-icon i {
  color: var(--tj-color-common-white);
}

/* Marks */
.sec-heading .sub-title i,
.sec-heading-wrap .sub-title i,
.banner-content .sub-title i,
.choose-box .choose-icon,
.count-plus,
.process-item:not(:last-child)::after {
  color: var(--sk-green, #009444);
}
.choose-box:hover .choose-icon {
  color: var(--tj-color-common-white);
}

/* Active / hovered main-menu item: navy text over a short green rule. The
   template toggles opacity on this pseudo-element but never draws it. */
.mainmenu ul > li > a::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 26px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--sk-green, #009444);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}

/* ======================================================= the divider rule ===
   Brand book p.06: the logo's vertical green rule "is the mark's signature
   device … This rule recurs throughout this guide as a structural marker."
   It now recurs here too, in three places:
     1. section labels — the rule replaces the template's generic box icon;
     2. counter strip — the dividers between figures;
     3. cards — a short rule on the leading edge, which grows on hover.
   ========================================================================== */

/* 1. Section labels */
.sec-heading .sub-title > i:first-child,
.banner-content .sub-title > i:first-child {
  display: none;
}
.sec-heading .sub-title::before,
.banner-content .sub-title::before {
  content: "";
  flex: 0 0 auto;
  inline-size: 3px;
  block-size: 1.15em;
  border-radius: 2px;
  background-color: var(--sk-green, #009444);
  margin-inline-end: 6px;
}
.sec-heading .sub-title {
  padding-block: 5px;
}

/* 2. Counter dividers */
.count-separator {
  background-image: none !important;
  background-color: var(--sk-green, #009444);
  inline-size: 3px;
  block-size: 72px;
  border-radius: 2px;
  opacity: 1;
}

/* 3. Cards */
.choose-box::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 50px;
  inline-size: 4px;
  block-size: 46px;
  border-start-end-radius: 2px;
  border-end-end-radius: 2px;
  background-color: var(--sk-green, #009444);
  z-index: 2;
  transition: block-size .4s ease-in-out;
}
.choose-box:hover::before {
  block-size: 88px;
}

/* ============================================================ hero video ====
   Replaces the template's hero photo with a silent looping clip, sized exactly
   like the photo was (cover, same radius).
   ========================================================================== */
.banner-img .sk-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: var(--tj-color-theme-dark);
}
/* On desktop the hero box is portrait (about 0.73:1 at 1440px), so a 16:9 clip
   shows only ~41% of its width. English: favour the consultant and the tablet.
   Arabic: keep the centre, where both faces stay in view. */
@media (min-width: 992px) {
  .banner-img .sk-hero-video { object-position: 42% 50%; }
  [dir="rtl"] .banner-img .sk-hero-video { object-position: 50% 50%; }
}

/* ================================================================== logo ===
   The client's wordmark (traced to SVG from logo.jpeg). Explicit widths: the
   template sized raster logos by percentage inside shrink-to-fit boxes. The
   brand book's digital minimum is 120px wide.
   ========================================================================== */
.site_logo .logo img { width: 136px; height: auto; display: block; }
.hamburger_logo img  { width: 150px; height: auto; display: block; }
.footer-logo img     { width: 170px; height: auto; display: block; }
@media (max-width: 575px) {
  .site_logo .logo img { width: 124px; }
}
