.ceh-header,
.ceh-header * { box-sizing: border-box; }

.ceh-header {
  --ceh-bg: #474747;
  --ceh-text: #fff;
  --ceh-accent: #e10600;
  position: relative;
  width: 100%;
  z-index: 999;
  background: var(--ceh-bg);
  color: var(--ceh-text);
  font-family: inherit;
}

.ceh-header.ceh-is-sticky { position: sticky; top: 0; }

.ceh-inner {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.ceh-layout-reverse .ceh-inner { flex-direction: row-reverse; }

.ceh-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.ceh-logo img {
  display: block;
  width: 150px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

.ceh-logo-fallback { font-weight: 800; white-space: nowrap; }

.ceh-nav { flex: 1 1 auto; min-width: 0; }

.ceh-menu,
.ceh-menu ul,
.ceh-mobile-menu,
.ceh-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ceh-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.ceh-menu > li { position: relative; }

.ceh-menu a {
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.ceh-menu > li > a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 0 15px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.ceh-menu > li > a::after {
  content: '';
  position: absolute;
  right: 15px;
  left: 15px;
  bottom: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.ceh-menu > li.current-menu-item > a::after,
.ceh-menu > li.current-menu-ancestor > a::after,
.ceh-menu > li:hover > a::after,
.ceh-menu > li:focus-within > a::after { transform: scaleX(1); }

.ceh-menu .menu-item-has-children > a { padding-inline-end: 30px; }
.ceh-menu .menu-item-has-children > a::before {
  content: '';
  position: absolute;
  inset-inline-end: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-inline-end: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform .2s ease;
  opacity: .9;
}

.ceh-menu > li.menu-item-has-children:hover > a::before,
.ceh-menu > li.menu-item-has-children:focus-within > a::before { transform: translateY(-35%) rotate(225deg); }

.ceh-menu .sub-menu {
  position: absolute;
  top: calc(100% - 1px);
  inset-inline-start: 0;
  min-width: 230px;
  max-width: 330px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 8px 0;
  background: #fff;
  border-top: 2px solid #e10600;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 20;
}

.ceh-menu li:hover > .sub-menu,
.ceh-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.ceh-menu .sub-menu .sub-menu {
  top: -10px;
  inset-inline-start: 100%;
  border-radius: 8px;
}

.ceh-menu .sub-menu li { position: relative; }
.ceh-menu .sub-menu a {
  display: block;
  padding: 11px 16px;
  color: #222;
  font-size: 14px;
  line-height: 1.65;
  white-space: nowrap;
}
.ceh-menu .sub-menu a:hover,
.ceh-menu .sub-menu a:focus { background: #f6f6f6; outline: none; }

.ceh-menu .sub-menu .menu-item-has-children > a::before {
  transform: translateY(-50%) rotate(135deg);
}

.ceh-phone {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  padding: 7px 0;
}
.ceh-phone-icon { display: inline-flex; }
.ceh-phone-text { display: grid; gap: 1px; direction: rtl; }
.ceh-phone-text small { opacity: .72; font-size: 11px; font-weight: 500; }
.ceh-phone-text strong { font-size: 14px; font-weight: 700; letter-spacing: .2px; }

.ceh-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 9px;
  border-radius: 6px;
}
.ceh-menu-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ceh-menu-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.ceh-header.ceh-mobile-open .ceh-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ceh-header.ceh-mobile-open .ceh-menu-toggle span:nth-child(2) { opacity: 0; }
.ceh-header.ceh-mobile-open .ceh-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ceh-mobile-panel {
  display: none;
  background: #fff;
  color: #222;
  box-shadow: 0 18px 32px rgba(0,0,0,.14);
  border-top: 1px solid rgba(0,0,0,.06);
}
.ceh-mobile-panel[hidden] { display: none !important; }
.ceh-mobile-menu > li { border-bottom: 1px solid #ececec; }
.ceh-mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  color: #222;
  text-decoration: none;
  font-weight: 650;
}
.ceh-mobile-menu .sub-menu { display: none; background: #fafafa; }
.ceh-mobile-menu .sub-menu .sub-menu { background: #f4f4f4; }
.ceh-mobile-menu .sub-menu a { padding-inline-start: 34px; font-size: 14px; font-weight: 550; }
.ceh-mobile-menu .sub-menu .sub-menu a { padding-inline-start: 50px; }

.ceh-mobile-menu .menu-item-has-children { position: relative; }
.ceh-submenu-toggle {
  position: absolute;
  inset-inline-end: 8px;
  top: 5px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
}
.ceh-submenu-toggle::before,
.ceh-submenu-toggle::after {
  content: '';
  position: absolute;
  background: #444;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}
.ceh-submenu-toggle::before { width: 12px; height: 1.5px; }
.ceh-submenu-toggle::after { width: 1.5px; height: 12px; transition: transform .2s ease; }
.ceh-submenu-toggle[aria-expanded="true"]::after { transform: translate(-50%,-50%) rotate(90deg); }
.ceh-submenu-toggle:focus-visible { outline: 2px solid #333; }

.ceh-mobile-phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: #222;
  text-decoration: none;
  background: #f7f7f7;
}
.ceh-mobile-phone span { opacity: .7; font-size: 12px; }
.ceh-mobile-phone strong { font-size: 15px; }

@media (max-width: 1024px) {
  .ceh-inner { width: min(100% - 28px, 1200px); gap: 14px; }
  .ceh-nav { display: none; }
  .ceh-menu-toggle { display: inline-block; margin-inline-start: auto; }
  .ceh-phone { margin-inline-start: auto; }
  .ceh-mobile-panel { display: block; }
  .ceh-layout-reverse .ceh-inner { flex-direction: row; }
}

@media (max-width: 640px) {
  .ceh-inner { width: min(100% - 22px, 1200px); min-height: 62px; }
  .ceh-logo img { max-height: 44px; }
  .ceh-phone-text small { display: none; }
  .ceh-phone-text strong { font-size: 13px; }
  .ceh-phone { gap: 5px; }
  .ceh-header[data-mobile-phone="0"] .ceh-phone { display: none; }
}

@media (max-width: 430px) {
  .ceh-phone .ceh-phone-text { display: none; }
  .ceh-phone { width: 38px; height: 38px; justify-content: center; border-radius: 50%; }
}
