/*
Theme Name: GlobalTek
Theme URI: https://globaltek.ubarum.com
Author: Pearl Fibers LTD
Author URI: https://pearlfibers.com
Description: Custom WordPress theme for GlobalTek, developed by Pearl Fibers LTD.
Version: 1.7.4
Text Domain: globaltek
*/

.navbar-dark .navbar-nav .nav-link:focus {
  color: #d43754;
}

.dropdown-menu {
  background-color: #d43754;
  color: #fff;
}

.navbar-dark .navbar-nav .nav-link {
  color: #fff;
}

@media screen and (max-width: 991px) {
  .navbar .dropdown-menu li a {
    color: #fff;
  }

  .module-consultation .btn {
    border-color: #d43754;
    color: #fff;
  }
}

.heading .heading-subtitle {
    font-size: 20px;
}


/* Language switcher overlay fix: ensure the dropdown overlays (does not push layout) */
#primary-menu .language-switcher { position: relative; }
#primary-menu .language-switcher .dropdown-menu {
	position: absolute !important;
	top: calc(100% + 6px) !important;
	left: 0 !important;
	right: auto !important;
	z-index: 2050 !important;
	transform: none !important;
}
#primary-menu .language-switcher a {
  color: #0b1220;
  padding: 0px 10px;
}
#primary-menu .language-switcher ul li a {
  color: #fff;
}
[dir="rtl"] #primary-menu .language-switcher .dropdown-menu {
	left: auto !important;
	right: 0 !important;
}

@media (max-width: 991.98px) {
	#primary-menu .language-switcher { margin-left: 0.5rem; }
}




.gt-company-structure {
  padding: 3.25rem 0;
}

/* ==========================================================
   Header
   ========================================================== */
.gt-company-structure__header {
  max-width: 980px;
  margin: 0 auto 1.75rem auto;
  padding: 0 1rem;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 100px;

}

.gt-company-structure__title {
  margin: 0 0 .55rem 0;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gt-company-structure__subtitle {
  margin: 0 auto 0.85rem auto;
  max-width: 72ch;
  opacity: .85;
  line-height: 1.5;
}

.gt-company-structure__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .25rem;
  padding: .35rem .7rem;
  font-size: .85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .10);
  background: rgba(0, 0, 0, .02);
}

/* ==========================================================
   Wrapper
   - Centered max-width container for better wide screens
   ========================================================== */
.gt-orgchart {
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;

  /* Design tokens */
  --gt-bg: #ffffff;
  --gt-text: #0b1220;
  --gt-muted: rgba(11, 18, 32, .72);
  --gt-border: rgba(0, 0, 0, .10);
  --gt-shadow: 0 18px 45px rgba(0, 0, 0, .08);

  /* Accent */
  --gt-accent: #d43754;
  --gt-accent-soft: rgba(212, 55, 84, .12);

  /* Layout */
  --gt-gap: 1.1rem;
  --gt-radius: 16px;
  --gt-card-w: 360px;
  --gt-card-w-compact: 330px;

  /* Stepper lane */
  --gt-rail-w: 2px;
  --gt-dot: 10px;
  --gt-dot-ring: 6px;

  /* Stable rail gutter */
  --gt-rail-gutter: 44px;
  /* reserved left gutter for rail + dot */
  --gt-rail-x: 18px;
  /* rail position inside gutter */

  /* New: connector color tokens */
  --gt-connector: color-mix(in srgb, var(--gt-accent) 78%, transparent);
  --gt-connector-soft: color-mix(in srgb, var(--gt-accent) 28%, transparent);
  --gt-connector-stub: color-mix(in srgb, var(--gt-accent) 55%, transparent);

  color: var(--gt-text);
}

.gt-orgchart--theme-slate {
  --gt-bg: #2a0f0f;
  --gt-text: #e5e7eb;
  --gt-muted: rgba(229, 231, 235, .78);
  --gt-border: rgba(255, 255, 255, .12);
  --gt-shadow: 0 22px 60px rgba(0, 0, 0, .35);

  --gt-accent: #d43754;
  --gt-accent-soft: rgba(212, 55, 84, .16);

  --gt-connector: color-mix(in srgb, var(--gt-accent) 82%, transparent);
  --gt-connector-soft: color-mix(in srgb, var(--gt-accent) 32%, transparent);
  --gt-connector-stub: color-mix(in srgb, var(--gt-accent) 62%, transparent);
}

/* Density */
.gt-orgchart--compact {
  --gt-gap: .9rem;
  --gt-card-w: 340px;
  --gt-card-w-compact: 315px;
  --gt-rail-gutter: 40px;
}

.gt-orgchart--comfortable {
  --gt-gap: 1.15rem;
}

/* ==========================================================
   Node container
   ========================================================== */
.gt-orgunit {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ==========================================================
   Card
   ========================================================== */
.gt-orgunit__card {
  width: min(var(--gt-card-w), 92vw);
  border-radius: var(--gt-radius);
  background: var(--gt-bg);
  border: 1px solid var(--gt-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  overflow: hidden;
  position: relative;
  padding: 1rem 1rem 1rem 1.05rem;

  /* prevent hover outline shift & establish stacking */
  outline: 2px solid transparent;
  outline-offset: -2px;
  z-index: 2;

  /* isolate pseudo-elements so connectors never get clipped */
  isolation: isolate;

  transition: transform .18s ease, box-shadow .18s ease, outline-color .18s ease;
}

/* modern accent strip */
.gt-orgunit__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--gt-accent);
  opacity: .95;
}

.gt-orgchart--compact .gt-orgunit__card {
  padding: .85rem .9rem .9rem .95rem;
}

.gt-orgunit__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--gt-shadow);
  outline-color: var(--gt-accent);
}

/* highlighted */
.gt-orgunit.is-highlighted .gt-orgunit__card {
  box-shadow: 0 26px 70px rgba(0, 0, 0, .14);
  outline-color: var(--gt-accent);
  background: var(--gt-accent-soft);
}

/* Typography */
.gt-orgunit__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gt-orgunit__subtitle {
  margin-top: .25rem;
  font-size: .92rem;
  color: var(--gt-muted);
}

.gt-orgunit__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  margin-top: .7rem;
}

/* Use tokens, not hardcoded rgba */
.gt-orgunit__lead {
  font-weight: 700;
  color: color-mix(in srgb, var(--gt-text) 90%, transparent);
}

.gt-orgunit__pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .18rem .55rem;
  font-size: .8rem;
  border-radius: 999px;
  border: 1px solid var(--gt-border);
  background: rgba(0, 0, 0, .02);
  color: var(--gt-muted);
}

.gt-orgchart--theme-slate .gt-orgunit__pill {
  background: rgba(255, 255, 255, .04);
}

.gt-orgunit__desc {
  margin: .75rem 0 0 0;
  font-size: .93rem;
  line-height: 1.5;
  color: var(--gt-muted);
}

/* ==========================================================
   Children base
   - Ensure gap always works (define layout)
   - Provide a reasonable fallback even without gt-depth-* classes
   ========================================================== */
.gt-orgunit__children {
  width: 100%;
  margin-top: 1.25rem;

  display: flex;
  flex-direction: column;

  gap: var(--gt-gap);
}

/* ==========================================================
   Org Explorer Lanes
   Odd depth  -> Stepper (Vertical)
   Even depth -> Grid (Horizontal responsive)
   ========================================================== */

/* ========== ODD DEPTH: Stepper lane ========== */

/* IMPORTANT FIX (v2):
   Your cards use `overflow: hidden;` (needed for clean corners),
   but the indicator (dot + stub) sits in the left gutter (outside the card box).
   If we anchor the indicator to the card, it WILL be clipped unless we allow
   overflow for those stepper cards only.
*/
.gt-orgunit.gt-depth-1>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card,
.gt-orgunit.gt-depth-3>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card,
.gt-orgunit.gt-depth-5>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card,
.gt-orgunit.gt-depth-7>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card {
  overflow: visible;
}

/* keep inner clipping clean by re-applying radius (some browsers need this) */
.gt-orgunit.gt-depth-1>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card,
.gt-orgunit.gt-depth-3>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card,
.gt-orgunit.gt-depth-5>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card,
.gt-orgunit.gt-depth-7>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card {
  border-radius: var(--gt-radius);
}


.gt-orgunit.gt-depth-1>.gt-orgunit__children,
.gt-orgunit.gt-depth-3>.gt-orgunit__children,
.gt-orgunit.gt-depth-5>.gt-orgunit__children,
.gt-orgunit.gt-depth-7>.gt-orgunit__children {
  display: flex;
  flex-direction: column;

  position: relative;

  /* reserve a consistent gutter so the rail is always aligned */
  padding-left: var(--gt-rail-gutter);
  padding-top: .35rem;
}

/* Stepper rail (REFINED) */
.gt-orgunit.gt-depth-1>.gt-orgunit__children::before,
.gt-orgunit.gt-depth-3>.gt-orgunit__children::before,
.gt-orgunit.gt-depth-5>.gt-orgunit__children::before,
.gt-orgunit.gt-depth-7>.gt-orgunit__children::before {
  content: "";
  position: absolute;

  left: var(--gt-rail-x);
  top: .35rem;
  bottom: .35rem;

  width: var(--gt-rail-w);
  /* professional fade at ends */
  background: var(--gt-connector);
  z-index: 1;
}

/* Each child item */
.gt-orgunit.gt-depth-1>.gt-orgunit__children>.gt-orgunit,
.gt-orgunit.gt-depth-3>.gt-orgunit__children>.gt-orgunit,
.gt-orgunit.gt-depth-5>.gt-orgunit__children>.gt-orgunit,
.gt-orgunit.gt-depth-7>.gt-orgunit__children>.gt-orgunit {
  position: relative;
}

/* === Parent → Child Indicator (DOT + STUB) – REPLACEMENT ===
   Anchored to the CARD center so it never shifts with wrapping text.
   Single pseudo-element draws BOTH:
   - short horizontal stub into the card
   - dot with soft ring
*/
.gt-orgunit.gt-depth-1>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card,
.gt-orgunit.gt-depth-3>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card,
.gt-orgunit.gt-depth-5>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card,
.gt-orgunit.gt-depth-7>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card {
  position: relative;
}

.gt-orgunit.gt-depth-1>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card::after,
.gt-orgunit.gt-depth-3>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card::after,
.gt-orgunit.gt-depth-5>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card::after,
.gt-orgunit.gt-depth-7>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card::after {
  content: "";
  position: absolute;

  /* occupy the reserved gutter next to the card */
  left: -25px;
  top: 50%;
  transform: translateY(-50%);

  width: 25px;
  height: 1px;

  background: var(--gt-accent);

  z-index: 4;
  pointer-events: none;
}

/* Hover: make indicator feel crisp */
.gt-orgunit.gt-depth-1>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card:hover::after,
.gt-orgunit.gt-depth-3>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card:hover::after,
.gt-orgunit.gt-depth-5>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card:hover::after,
.gt-orgunit.gt-depth-7>.gt-orgunit__children>.gt-orgunit>.gt-orgunit__card:hover::after {
  background:
    linear-gradient(to right,
      transparent,
      var(--gt-connector) calc(var(--gt-rail-x) + 1px),
      var(--gt-connector) calc(100% - (var(--gt-dot) / 1.2)),
      transparent),
    radial-gradient(circle at calc(100% - (var(--gt-dot) / 2)) 50%,
      color-mix(in srgb, var(--gt-accent) 42%, transparent) 0 calc((var(--gt-dot) / 2) + var(--gt-dot-ring) + 2px),
      transparent calc((var(--gt-dot) / 2) + var(--gt-dot-ring) + 3px)),
    radial-gradient(circle at calc(100% - (var(--gt-dot) / 2)) 50%,
      var(--gt-accent) 0 calc(var(--gt-dot) / 2),
      transparent calc((var(--gt-dot) / 2) + 1px));
}

/* ========== EVEN DEPTH: Grid lane ========== */
.gt-orgunit.gt-depth-2>.gt-orgunit__children,
.gt-orgunit.gt-depth-4>.gt-orgunit__children,
.gt-orgunit.gt-depth-6>.gt-orgunit__children,
.gt-orgunit.gt-depth-8>.gt-orgunit__children {
  display: grid;

  /* more predictable than 92vw-in-minmax on ultra-wide + nested padding */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: var(--gt-gap);
  align-items: start;
  justify-items: center;

  padding-top: .85rem;
}

/* make grid cards a touch narrower in even layers */
.gt-orgunit.gt-depth-2 .gt-orgunit__card,
.gt-orgunit.gt-depth-4 .gt-orgunit__card,
.gt-orgunit.gt-depth-6 .gt-orgunit__card,
.gt-orgunit.gt-depth-8 .gt-orgunit__card {
  width: min(var(--gt-card-w-compact), 92vw);
}

/* ==========================================================
   Responsive polish
   ========================================================== */

/* Phones */
@media (max-width: 640px) {
  .gt-company-structure {
    padding: 2.5rem 0;
  }

  .gt-orgchart {
    --gt-rail-x: 16px;
    --gt-gap: .95rem;
    --gt-rail-gutter: 38px;
    max-width: 100%;

  }
}

/* iPad / tablets */
@media (min-width: 768px) and (max-width: 1180px) {
  .gt-company-structure__header {
    max-width: 920px;
  }

  .gt-company-structure__title {
    font-size: 2rem;
  }

  .gt-orgchart {
    --gt-gap: 1.05rem;
    --gt-card-w: 340px;
    --gt-card-w-compact: 310px;
  }

  .gt-orgunit.gt-depth-2>.gt-orgunit__children,
  .gt-orgunit.gt-depth-4>.gt-orgunit__children,
  .gt-orgunit.gt-depth-6>.gt-orgunit__children,
  .gt-orgunit.gt-depth-8>.gt-orgunit__children {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Laptops */
@media (min-width: 1181px) and (max-width: 1366px) {
  .gt-company-structure__header {
    max-width: 1040px;
  }

  .gt-orgchart {
    --gt-gap: 1.15rem;
    --gt-card-w: 360px;
    --gt-card-w-compact: 320px;
    max-width: 1200px;
  }

  .gt-orgunit.gt-depth-2>.gt-orgunit__children,
  .gt-orgunit.gt-depth-4>.gt-orgunit__children,
  .gt-orgunit.gt-depth-6>.gt-orgunit__children,
  .gt-orgunit.gt-depth-8>.gt-orgunit__children {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

/* Large screens */
@media (min-width: 1367px) {
  .gt-company-structure__header {
    max-width: 1100px;
  }

  .gt-orgchart {
    max-width: 1280px;
    --gt-card-w: 380px;
    --gt-card-w-compact: 340px;
    --gt-rail-gutter: 48px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .gt-orgunit__card {
    transition: none;
  }

  .gt-orgunit__card:hover {
    transform: none;
  }
}