/* RC2.1 FIX — Real Header Component */

:root {
  --mo-header-navy: #071423;
  --mo-header-blue: #10213a;
  --mo-header-red: #d71920;
  --mo-header-red-dark: #bd141b;
  --mo-header-border: #e5e7eb;
}

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

.mo-site-header {
  position: relative;
  z-index: 80;
  width: 100%;
  font-family: Inter, Arial, sans-serif;
}

.mo-site-header .container {
  width: min(1220px, calc(100% - 64px));
  margin: 0 auto;
}

.mo-site-topbar {
  background: var(--mo-header-navy);
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
}

.mo-site-topbar-inner {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}

.mo-site-topbar-highlight,
.mo-site-topbar-contact,
.mo-site-topbar-service {
  display: flex;
  align-items: center;
  min-width: 0;
}

.mo-site-topbar-highlight {
  gap: 8px;
  white-space: nowrap;
}

.mo-site-topbar-contact {
  justify-content: center;
  gap: 28px;
}

.mo-site-topbar-contact a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  white-space: nowrap;
}

.mo-site-topbar-service {
  justify-content: flex-end;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
}

.mo-site-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--mo-header-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
}

.mo-site-navbar {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .10);
  border-bottom: 1px solid rgba(226,232,240,.85);
}

.mo-site-navbar-inner {
  min-height: 116px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 42px;
}

.mo-site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.mo-site-brand img {
  width: 330px;
  max-height: 86px;
  object-fit: contain;
  display: block;
}

.mo-site-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.mo-site-menu > li {
  position: relative;
  margin: 0;
  padding: 0;
}

.mo-site-menu > li > a {
  position: relative;
  min-height: 116px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mo-header-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .045em;
  white-space: nowrap;
  transition: color .2s ease;
}

.mo-site-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--mo-header-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.mo-site-menu > li > a:hover,
.mo-site-menu > li > a.is-active {
  color: var(--mo-header-red);
}

.mo-site-menu > li > a:hover::after,
.mo-site-menu > li > a.is-active::after {
  transform: scaleX(1);
}

.mo-site-chevron {
  font-size: 13px;
  line-height: 1;
}

.mo-site-dropdown {
  position: absolute;
  top: calc(100% - 18px);
  left: 50%;
  width: 320px;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #ffffff;
  border: 1px solid var(--mo-header-border);
  border-radius: 20px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, .18);
  padding: 12px;
  transition: .2s ease;
}

.mo-site-menu-has-children:hover .mo-site-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mo-site-category-item {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 13px;
  padding: 8px 10px;
  color: var(--mo-header-blue);
  text-decoration: none;
  font-weight: 850;
}

.mo-site-category-item:hover {
  background: #f8fafc;
}

.mo-site-category-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.mo-site-cta {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 16px;
  padding: 0 26px;
  background: var(--mo-header-red);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .045em;
  white-space: nowrap;
  box-shadow: 0 16px 34px rgba(215, 25, 32, .28);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.mo-site-cta:hover {
  background: var(--mo-header-red-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(215, 25, 32, .34);
}

.mo-site-cta-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--mo-header-red);
  font-size: 17px;
  line-height: 1;
}

.mo-site-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--mo-header-border);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  padding: 0;
}

.mo-site-menu-toggle span {
  width: 21px;
  height: 2px;
  display: block;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--mo-header-blue);
  transition: .2s ease;
}

.mo-site-header.is-menu-open .mo-site-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mo-site-header.is-menu-open .mo-site-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.mo-site-header.is-menu-open .mo-site-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1180px) {
  .mo-site-navbar-inner {
    grid-template-columns: auto 48px auto;
    gap: 18px;
  }

  .mo-site-menu-toggle {
    display: block;
    order: 2;
  }

  .mo-site-brand {
    order: 1;
  }

  .mo-site-cta {
    order: 3;
  }

  .mo-site-menu {
    position: absolute;
    left: 24px;
    right: 24px;
    top: calc(42px + 116px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--mo-header-border);
    box-shadow: 0 24px 54px rgba(15, 23, 42, .18);
  }

  .mo-site-header.is-menu-open .mo-site-menu {
    display: flex;
  }

  .mo-site-menu > li > a {
    min-height: 48px;
    justify-content: flex-start;
    padding: 0 14px;
    border-radius: 12px;
  }

  .mo-site-menu > li > a::after {
    left: 14px;
    right: auto;
    bottom: 7px;
    width: 42px;
  }

  .mo-site-dropdown {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border-radius: 14px;
    margin: 6px 0 12px;
    display: none;
  }

  .mo-site-menu-has-children:hover .mo-site-dropdown {
    display: block;
    transform: none;
  }
}

@media (max-width: 900px) {
  .mo-site-header .container {
    width: min(100% - 32px, 1220px);
  }

  .mo-site-topbar-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0;
  }

  .mo-site-topbar-contact,
  .mo-site-topbar-service {
    display: none;
  }

  .mo-site-navbar-inner {
    min-height: 90px;
    grid-template-columns: auto 48px;
  }

  .mo-site-brand img {
    width: min(260px, 68vw);
    max-height: 70px;
  }

  .mo-site-cta {
    display: none;
  }

  .mo-site-menu {
    top: calc(42px + 90px);
  }
}
