/*
 * Loaded after css/color/color-2.css so home hero nav is transparent on first paint.
 * (custom.css loads before the color skin; late JS alone leaves a visible flash.)
 */
html.js body.page-home:not(.hh-home-nav-fixed) #menu-1:not(:has(.menu-mobile-collapse-trigger.active)) > .menu-list-items,
html.js body.page-home:not(.hh-home-nav-fixed) #menu-1:not(:has(.menu-mobile-collapse-trigger.active)) > .menu-list-items .container-fluid,
html.js body.page-home:not(.hh-home-nav-fixed) #menu-1:not(:has(.menu-mobile-collapse-trigger.active)) > .menu-list-items .container-fluid .row,
html.js body.page-home:not(.hh-home-nav-fixed) #menu-1:not(:has(.menu-mobile-collapse-trigger.active)) > .menu-list-items .container-fluid .col-sm-12 {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.js body.page-home:not(.hh-home-nav-fixed):not(:has(#menu-1 .menu-mobile-collapse-trigger.active)) header.header-01.white-transparent,
html.js body.page-home:not(.hh-home-nav-fixed):not(:has(#menu-1 .menu-mobile-collapse-trigger.active)) #menu-1.mega-menu {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/*
 * Inner pages: color-2.css (loads before this file) paints link :before/:after and hover states
 * teal (#09767c) on .mega-menu — reads as “brand color over white”. Home hides pseudos in custom.css;
 * repeat for non-home and pin an opaque white bar after the skin.
 */
/* Use header.header-01 (not only .white-transparent) so AR pages match too */
html.js body:not(.page-home) header.header-01 .mega-menu > .menu-list-items,
html.js body:not(.page-home) header.header-01 .mega-menu > .menu-list-items .container-fluid,
html.js body:not(.page-home) header.header-01 .mega-menu > .menu-list-items .container-fluid .row,
html.js body:not(.page-home) header.header-01 .mega-menu > .menu-list-items .container-fluid [class*="col-"] {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

html.js body:not(.page-home) header.header-01 .mega-menu .menu-links > li > a:before,
html.js body:not(.page-home) header.header-01 .mega-menu .menu-links > li > a:after {
  display: none !important;
  content: none !important;
  background: transparent !important;
  width: 0 !important;
  height: 0 !important;
}

/* Mobile: color-2 @media max-width 992px — keep bar opaque white */
html.js body:not(.page-home) header.header-01 .mega-menu:not(.desktopTopFixed):not(.mobileTopFixed) > .menu-list-items {
  background: #ffffff !important;
}

/*
 * Inner pages: theme breadcrumb blocks use ~200px+ top padding for a header that overlaps the banner.
 * Our header sits in normal document flow, so that reads as a huge empty strip (often wrong color
 * because .iq-over-black-70:before uses z-index:-1 without a containing stacking context).
 */
body:not(.page-home) section.iq-breadcrumb1,
body:not(.page-home) section.iq-breadcrumb2,
body:not(.page-home) section.iq-breadcrumb3 {
  margin-top: 0 !important;
  position: relative;
  z-index: 0;
  isolation: isolate;
}

body:not(.page-home) section.iq-breadcrumb1 {
  padding-top: 88px !important;
  padding-bottom: 40px !important;
}

body:not(.page-home) section.iq-breadcrumb2 {
  padding-top: 88px !important;
  padding-bottom: 80px !important;
}

body:not(.page-home) section.iq-breadcrumb3 {
  padding-top: 88px !important;
  padding-bottom: 80px !important;
}

@media (max-width: 990px) {
  body:not(.page-home) section.iq-breadcrumb1 {
    padding-top: 144px !important;
  }
  body:not(.page-home) section.iq-breadcrumb2,
  body:not(.page-home) section.iq-breadcrumb3 {
    padding-top: 144px !important;
  }
}

@media (max-width: 767.98px) {
  /*
   * responsive.css sets header { position: relative } here; .hero-social / .search are fixed and
   * do not occupy flow, but the engine still leaves ~8px of body between header and the first
   * in-flow section — reads as a white hairline under the menu.
   */
  body:not(.page-home) section.iq-breadcrumb1,
  body:not(.page-home) section.iq-breadcrumb2,
  body:not(.page-home) section.iq-breadcrumb3 {
    margin-top: -8px !important;
  }
  body:not(.page-home) section.iq-breadcrumb1 {
    padding-top: 132px !important;
  }
  body:not(.page-home) section.iq-breadcrumb2,
  body:not(.page-home) section.iq-breadcrumb3 {
    padding-top: 132px !important;
    padding-bottom: 48px !important;
  }
}

/*
 * Breadcrumb banners: static background layer (no jarallax zoom).
 * Ratios: 1920x600 desktop, 1080x540 mobile.
 */
body:not(.page-home) section.iq-breadcrumb1.iq-over-black-70.jarallax {
  overflow: hidden;
  width: 100%;
  background-image: none !important;
  background-color: #0d2137 !important;
  transform: none !important;
  min-height: max(calc(100vw * 600 / 1920), 240px);
}

body:not(.page-home) section.iq-breadcrumb1 .hh-breadcrumb-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  pointer-events: none;
  transform: none !important;
}

body:not(.page-home) section.iq-breadcrumb1.iq-over-black-70:before {
  z-index: 1 !important;
}

body:not(.page-home) section.iq-breadcrumb1 > .container {
  position: relative;
  z-index: 2;
}

body:not(.page-home) section.iq-breadcrumb1.jarallax img.jarallax-img {
  display: none !important;
}

@media (max-width: 767.98px) {
  body:not(.page-home) section.iq-breadcrumb1.iq-over-black-70.jarallax {
    min-height: max(calc(100vw * 540 / 1080), 220px);
  }

  body:not(.page-home) section.iq-breadcrumb1 {
    padding-top: clamp(80px, 24vw, 112px) !important;
    padding-bottom: 32px !important;
  }
}

/*
 * Larger, readable centered section headings (EN + AR share this file).
 */
.heading-title.text-center .title,
.heading-title.text-center h1.title,
.heading-title.text-center h2.title,
.heading-title.text-center h3.title,
.heading-title.text-center h4.title,
.heading-title.text-center h5.title,
.heading-title.text-center h6.title {
  font-size: clamp(1.95rem, 4.5vw, 2.9rem) !important;
  line-height: 1.28 !important;
}

/* Uppercase kicker lines, e.g. OUR RECENT NEWS, same on inner pages */
.heading-title.text-center p {
  font-size: 1.2rem !important;
  line-height: 1.55 !important;
}

/* Home visiting block kicker from CMS, e.g. OUR SERVICES */
.visiting-header .visiting-subtitle {
  font-size: 1.2rem !important;
  line-height: 1.45 !important;
}
