/* Web/Navigation/Desktop (58:5), Web/Navigation/Mobile (59:8) */

.aht-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--aht-color-background-web-canvas);
}

.aht-skip-link {
  position: absolute;
  left: var(--aht-spacing-20);
  top: -100px;
  z-index: 50;
  padding: var(--aht-spacing-12) var(--aht-spacing-16);
  background: var(--aht-color-background-brand);
  color: var(--aht-color-text-on-brand);
  border-radius: var(--aht-radius-4);
  font-size: var(--aht-type-utility-size);
  font-weight: var(--aht-font-weight-semibold);
}

.aht-skip-link:focus {
  top: var(--aht-spacing-12);
}

.aht-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--aht-spacing-24);
  height: var(--aht-layout-header-height);
}

/* ---- Brand --------------------------------------------------------- */

/* `al-hilal-lockup.svg` is the master artwork cropped by viewBox to the band
   the design shows (56px tall in a 220px window). It scales by height, so the
   wordmark is never clipped on a narrow viewport. */
/* The logo crop sets the visual height; the anchor keeps the 44px target
   the QA sweep enforces, which matters at 479 where the crop drops to 40. */
.aht-header__brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--aht-target-min);
}

.aht-header__logo-window {
  display: block;
  height: 56px;
}

.aht-header__logo-window img {
  width: auto;
  height: 100%;
}

/* ---- Links --------------------------------------------------------- */

.aht-header__links {
  display: flex;
  align-items: center;
  gap: var(--aht-spacing-64);
  height: 44px;
}

.aht-header__link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  font-size: var(--aht-type-body-size);
  line-height: var(--aht-type-body-line);
  color: var(--aht-color-text-primary);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.aht-header__link:hover {
  color: var(--aht-color-text-brand);
}

.aht-header__link--current {
  color: var(--aht-color-text-brand);
  border-bottom-color: var(--aht-color-line-brand);
}

/* ---- Actions ------------------------------------------------------- */

.aht-header__actions {
  display: flex;
  align-items: center;
  gap: var(--aht-spacing-12);
}

.aht-header__whatsapp {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--aht-color-line-brand);
  border-radius: var(--aht-radius-6);
  color: var(--aht-color-text-brand);
  font-size: var(--aht-type-utility-size);
  line-height: var(--aht-type-utility-line);
  font-weight: var(--aht-font-weight-semibold);
  white-space: nowrap;
  transition: background-color var(--aht-duration-fast) var(--aht-ease-standard);
}

.aht-header__whatsapp:hover {
  background: var(--aht-color-action-secondary-hover);
}

.aht-header__whatsapp-short {
  display: none;
}

/* ---- Menu trigger -------------------------------------------------- */

.aht-header__menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.aht-header__menu-glyph {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 14px;
}

.aht-header__menu-glyph span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--aht-color-line-brand);
}

/* ---- Expanded mobile menu ------------------------------------------ */

.aht-header__panel {
  display: none;
  border-top: 1px solid var(--aht-color-border-default);
  background: var(--aht-color-background-web-canvas);
}

.aht-header__panel--open {
  display: block;
}

.aht-header__panel nav {
  display: flex;
  flex-direction: column;
  padding-block: var(--aht-spacing-8) var(--aht-spacing-24);
}

.aht-header__panel-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--aht-color-border-default);
  font-size: var(--aht-type-body-large-size);
  line-height: var(--aht-type-body-large-line);
  color: var(--aht-color-text-primary);
}

.aht-header__panel-link--whatsapp {
  border-bottom: 0;
  color: var(--aht-color-text-brand);
  font-weight: var(--aht-font-weight-semibold);
}

/* ---- Breakpoints --------------------------------------------------- */

@media (max-width: 1023px) {
  .aht-header__bar {
    height: var(--aht-layout-header-height-mobile);
  }

  .aht-header__links {
    display: none;
  }

  .aht-header__menu {
    display: inline-flex;
  }

  .aht-header__logo-window {
    height: 50px;
  }
}

@media (max-width: 479px) {
  .aht-header__whatsapp {
    padding-inline: 14px;
  }

  .aht-header__whatsapp-full {
    display: none;
  }

  .aht-header__whatsapp-short {
    display: inline;
  }

  .aht-header__logo-window {
    height: 40px;
  }
}
