/**
 * Header menu layout, carets, and dropdown panels. Site-owned.
 * License: MIT
 *
 * Sizes below were measured on the live site (corp.evenium.com) at
 * 1440 and 390. On desktop, submenus open on hover or keyboard focus; in the
 * mobile panel, they open on tap.
 * The caret is a 15px (16px in the mobile panel) chevron drawn in the page.
 */

.elementor-nav-menu,
.elementor-nav-menu li,
.elementor-nav-menu ul {
  display: block;
  line-height: normal;
  list-style: none;
  margin: 0;
  padding: 0;
}

.elementor-nav-menu a {
  display: flex;
  align-items: center;
}

.elementor-nav-menu--main .elementor-item {
  position: relative;
}

.elementor-nav-menu--layout-horizontal > .elementor-nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.elementor-nav-menu--layout-horizontal .elementor-nav-menu > li {
  display: flex;
}

.elementor-nav-menu--layout-horizontal .elementor-nav-menu > li > a {
  white-space: nowrap;
}

/* The header CSS sets --e-nav-menu-horizontal-menu-item-margin (15px). */
.elementor-nav-menu--layout-horizontal .elementor-nav-menu > li:not(:last-child) > a {
  margin-inline-end: var(--e-nav-menu-horizontal-menu-item-margin);
}

.elementor-nav-menu--layout-horizontal .elementor-nav-menu > li:not(:first-child) > a {
  margin-inline-start: var(--e-nav-menu-horizontal-menu-item-margin);
}

.elementor-nav-menu .menu-item {
  position: relative;
}

/* Hover and open state. Settled hover colour on live is rgb(242, 163, 65).
   The underline is a 0.5px line, opacity 0 at rest and 1 on hover, focus,
   and the open item. */
.elementor-nav-menu--main .elementor-item:hover,
.elementor-nav-menu--main .elementor-item:focus,
.elementor-nav-menu--main .elementor-item.highlighted {
  color: #f2a341;
}

.elementor-nav-menu--main.e--pointer-underline .elementor-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.5px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background-color: #f3f5f8;
}

.elementor-nav-menu--main.e--pointer-underline .elementor-item:hover::after,
.elementor-nav-menu--main.e--pointer-underline .elementor-item:focus::after,
.elementor-nav-menu--main.e--pointer-underline .elementor-item.highlighted::after,
.elementor-nav-menu--main.e--pointer-underline .elementor-item.elementor-item-active::after {
  opacity: 1;
}

/* Caret. Live desktop box is 25×35 with 10px 0 10px 10px padding and
   -10px 0 margin, around a 15×15 icon. The mobile panel icon is 16×16. */
.elementor-nav-menu .sub-arrow {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: -10px 0;
  padding: 10px 0 10px 10px;
  line-height: 0;
}

.elementor-nav-menu .sub-arrow svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* The desktop widget also renders a dropdown container. It stays
   hidden. The copy inside the off-canvas panel stays visible. */
.elementor-nav-menu--dropdown.elementor-nav-menu__container {
  display: none;
}

.lytbox-navigation .elementor-nav-menu--dropdown.elementor-nav-menu__container {
  display: block;
  margin-top: 10px;
}

/* Horizontal menus drop below the item. Live Solutions panel is 390×276,
   each row 46px (13px 20px padding, 20px line-height), background #f3f5f8. */
.elementor-nav-menu--main.elementor-nav-menu--layout-horizontal .sub-menu {
  display: none;
  position: absolute;
  z-index: 3;
  top: 100%;
  left: 0;
  width: max-content;
  min-width: 130px;
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: #f3f5f8;
}

.elementor-nav-menu--main.elementor-nav-menu--layout-horizontal .menu-item-has-children.is-submenu-open > .sub-menu {
  display: block;
}

.elementor-nav-menu--main.elementor-nav-menu--layout-horizontal .sub-menu > li > a {
  padding: 13px 20px;
  border-left: 8px solid transparent;
  line-height: 20px;
  white-space: nowrap;
  box-sizing: border-box;
}

/* The 15px gap between header labels is a margin on the anchor, so a
   panel at left:0 sits 15px left of every label after the first. The
   French and US panels use the same offset. */
.elementor-nav-menu--main.elementor-nav-menu--layout-horizontal .elementor-nav-menu > li.menu-item-has-children:not(:first-child) > .sub-menu {
  left: var(--e-nav-menu-horizontal-menu-item-margin);
}

/* US dropdown rows stay Titillium Web, as on the live site; French and UK rows
   are Poppins. Each language keeps its own face. */

/* The language item is a vertical menu. Its panel opens underneath the
   label and shares the label's left edge. Two rows, 46px each. */
.elementor-nav-menu--main.elementor-nav-menu--layout-vertical .sub-menu {
  display: none;
  position: absolute;
  z-index: 3;
  top: 100%;
  left: 0;
  width: max-content;
  min-width: 130px;
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: #f3f5f8;
}

.elementor-nav-menu--main.elementor-nav-menu--layout-vertical .menu-item-has-children.is-submenu-open > .sub-menu {
  display: block;
}

.elementor-nav-menu--main.elementor-nav-menu--layout-vertical .sub-menu > li > a {
  padding: 13px 20px;
  border-left: 8px solid transparent;
  line-height: 20px;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Mobile panel. Items are 40px (10px 0 padding). The open parent is a
   #f2a341 bar with white text. Children stay in normal flow, white,
   transparent. The same rules apply to the US, French, and UK headers
   (elementor-location-header), not only the US header template. */
.elementor-location-header .lytbox-navigation .elementor-widget-nav-menu .elementor-nav-menu--dropdown a {
  color: #fff;
  padding: 10px 0;
  line-height: 20px;
  background-color: transparent;
}

/* Live submenu rows keep an 8px transparent border, so the text starts
   8px in from the row (x 28 when the row starts at x 20). */
.elementor-location-header .lytbox-navigation .elementor-nav-menu .sub-menu > li > a {
  border-left: 8px solid transparent;
  box-sizing: border-box;
}

.elementor-location-header .lytbox-navigation .elementor-widget-nav-menu .elementor-nav-menu--dropdown > .elementor-nav-menu > li > a.highlighted {
  background-color: #f2a341;
  color: #fff;
}

/* The panel is position:fixed and height:100vh, with its content centered as on
   the live site. On a short viewport the open Solutions list is taller than the
   screen: "safe" then starts the content at the top, so the panel scrolls
   instead of cutting the first rows. */
.lytbox-nav_control:checked ~ .lytbox-navigation {
  overflow-x: hidden;
  overflow-y: auto;
  align-items: safe center;
  justify-content: safe center;
}

.lytbox-navigation .elementor-nav-menu .sub-menu {
  display: none;
  position: static;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}

.lytbox-navigation .elementor-nav-menu .menu-item-has-children.is-submenu-open > .sub-menu {
  display: block;
}

.lytbox-navigation .sub-arrow svg {
  width: 16px;
  height: 16px;
}

/*
 * Quotation blockquotes. Measured on the rendered case-study pages:
 * the blockquote margin is 0 (the browser default is 18px), and the
 * opening mark is a 60px Times glyph, weight 900, color #F2A341, in a
 * 36px-tall block. Without those, each quote is 25px shorter.
 */
.elementor-widget-blockquote blockquote.elementor-blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  quotes: none;
  color: #3f444b;
}

.elementor-blockquote--align-center .elementor-blockquote {
  text-align: center;
}

.elementor-blockquote--skin-clean .elementor-blockquote__author {
  display: block;
}

.elementor-blockquote--skin-quotation .elementor-blockquote__content,
.elementor-blockquote--skin-quotation .elementor-blockquote__author {
  font-style: normal;
}

.elementor-blockquote--skin-quotation .e-q-footer {
  display: flex;
  justify-content: space-between;
}

.elementor-blockquote--skin-quotation blockquote.elementor-blockquote::before {
  content: "“";
  display: block;
  box-sizing: border-box;
  height: 36px;
  margin: 0;
  padding: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 60px;
  font-weight: 900;
  line-height: 60px;
  color: #F2A341;
}
