@charset "UTF-8";
/* ==========================================================================
   Header / navbar
   ========================================================================== */

/* Fixed wrapper around the header (was the Angular component host) */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
}

.header {
  height: var(--header-h);
  color: var(--c-gray-light);
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, height 0.3s ease-in-out;
}
/* Figma "Navigation Bar / Fixed": 100px tall once the page is scrolled (desktop) */
@media (min-width: 993px) {
  .header--solid {
    height: 100px;
  }
}

/* Current page: orange item (Figma inner pages); inside "من نحن" the current page is bold */
.header__nav a.is-current,
.has-sub.is-current > a {
  color: var(--c-secondary);
}
.sub a.is-current {
  font-weight: 700;
  color: var(--c-primary);
}
.header--solid {
  color: var(--c-primary);
  background: linear-gradient(to right, #fdedeb, #ffffff 48.558%, #fdedeb);
  box-shadow: 0 4px 16px rgba(0, 48, 89, 0.06);
}

.header__inner {
  height: 100%;
  max-width: calc(var(--container) + 48px);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 50px; /* Figma Navigation Bar: 50px between the logo and «الرئيسية» */
  transition: margin 0.35s ease;
}
/* Figma hero (Hero Section - Image Slider 00): over the hero the logo sits 22px closer to
   the edge than in the fixed bar (78px instead of 100px); it slides back once scrolled. */
@media (min-width: 1300px) {
  .header:not(.header--solid) .header__brand {
    margin-inline-start: -22px;
  }
}

.header__logo {
  display: inline-flex;
}

.header__nav ul {
  display: flex;
  align-items: center;
  gap: 16px; /* Figma Navigation Bar: 16px between items */
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__nav a {
  display: inline-block;
  font-size: 16px;
  line-height: 1.35;
  white-space: nowrap;
  position: relative;
  padding-block: 4px;
}
.header__nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  background: var(--c-secondary);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.header__nav a:hover::after, .header__nav a:focus-visible::after {
  transform: scaleX(1);
}

/* "من نحن" dropdown */
.has-sub {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px; /* Figma: 10px between "من نحن" and its 24px chevron */
  /* Figma: «من نحن ⌄» sits closer to its neighbours than the 16px between other items
     (about 12px to «الرئيسية», 2px to «مسارات العمل») */
  margin-inline: -4px -14px;
}
.sub-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
.sub-toggle:focus-visible {
  outline: 2px dashed currentColor;
  outline-offset: 1px;
}
.has-sub .chev {
  transition: transform 0.25s ease;
}
.has-sub.is-open .chev {
  transform: rotate(180deg);
}

/* Figma "قائمة من نحن" (open): white 115px box, 10px #625F5E items, #B0BFCC dividers */
.sub {
  position: absolute;
  top: calc(100% + 4px);
  inset-inline-start: -12px;
  min-width: 115px;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  background: var(--c-white);
  border-top-left-radius: 6px;
  border-bottom-right-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
/* hover bridge: keeps the list open while the mouse moves down to it */
.sub::before {
  content: "";
  position: absolute;
  inset: -8px 0 auto;
  height: 8px;
}
.sub li + li {
  border-top: 1px solid #b0bfcc;
}
.sub a {
  display: block;
  padding: 6px 10px;
  font-size: 10px !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  color: var(--c-gray-dark);
}
.sub a::after {
  display: none;
}
.sub a:hover {
  background: var(--c-primary-light);
}

.has-sub.is-open > a {
  color: var(--c-secondary);
}
/* Desktop: hovering "من نحن" (or tabbing into it) also opens the list */
@media (min-width: 993px) and (hover: hover) {
  .has-sub:hover > a {
    color: var(--c-secondary);
  }
  .has-sub:hover .chev {
    transform: rotate(180deg);
  }
  .has-sub:hover .sub,
  .has-sub:focus-within .sub {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  }
}
.has-sub.is-open .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary-light);
  border-top-left-radius: 8px;
  border-bottom-right-radius: 8px;
  filter: drop-shadow(0 4px 2px rgba(217, 224, 230, 0.1));
  transition: background 0.2s ease, transform 0.2s ease;
}
.action img {
  width: 24px;
  height: 24px;
}
.action:hover {
  background: var(--c-secondary-lighter);
  transform: translateY(-1px);
}
.action[aria-pressed=true] {
  background: var(--c-secondary-light);
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--c-primary-light);
  border-top-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1200px) {
  .header__nav ul {
    gap: 10px;
  }
  .header__nav a {
    font-size: 15px;
  }
}
@media (max-width: 1100px) {
  .header__brand {
    gap: 16px;
  }
  .header__nav ul {
    gap: 8px;
  }
  .header__nav a {
    font-size: 14px;
  }
}
@media (max-width: 992px) {
  .burger {
    display: inline-flex;
  }
  .header__nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--c-white);
    box-shadow: 0 12px 24px rgba(0, 48, 89, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .header__nav.is-open {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .header__nav .has-sub {
    flex-wrap: wrap;
    gap: 0;
  }
  .header__nav .has-sub > a {
    flex: 1 1 auto;
  }
  .header__nav .sub-toggle {
    width: 48px;
    align-self: stretch;
    color: var(--c-primary);
    border-bottom: 1px solid var(--c-primary-light);
  }
  .header__nav .sub {
    flex-basis: 100%;
  }
  .header__nav .sub {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 16px 0 0 !important;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .header__nav .sub::before {
    display: none;
  }
  .header__nav .has-sub.is-open .sub {
    display: flex;
  }
  .header__nav .sub a {
    padding: 12px 0;
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
  .header__nav .sub li + li {
    border-top: 0;
  }
  .header__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .header__nav a {
    display: block;
    padding: 14px 0;
    color: var(--c-primary);
    border-bottom: 1px solid var(--c-primary-light);
  }
  .header__nav a::after {
    display: none;
  }
}
@media (max-width: 576px) {
  .header__actions {
    gap: 8px;
  }
  .action,
  .burger {
    width: 42px;
    height: 42px;
  }
}

/* A menu page that is not built yet (e.g. «لمحة تاريخية»): shown, but not a link */
.sub a.is-soon {
  cursor: default;
}
