/* Miracle Innovation Solutions — shared public-site header */
.mis-site-header,
.mis-site-header * { box-sizing: border-box; }

.mis-site-header {
  --mis-header-cyan: #00d4ff;
  --mis-header-green: #64cf31;
  --mis-header-bg: rgba(3, 12, 25, .96);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(0, 212, 255, .18);
  color: #fff;
  background: var(--mis-header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.mis-site-header__inner {
  width: min(1200px, calc(100% - 40px));
  min-height: 78px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  gap: 24px;
}

.mis-site-header a { color: inherit; text-decoration: none; }
.mis-site-header__brand {
  min-width: 0;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mis-site-header__brand img {
  display: block;
  width: 68px;
  height: 45px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
}
.mis-site-header__brand-copy { line-height: 1.05; white-space: nowrap; }
.mis-site-header__brand-copy strong {
  display: block;
  color: #fff;
  font-family: Orbitron, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.mis-site-header__brand-copy span {
  display: block;
  margin-top: 5px;
  color: var(--mis-header-cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: .59rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mis-site-header__nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mis-site-header__nav a {
  padding: 10px 13px;
  border: 1px solid transparent;
  color: #a9bfd4;
  font-family: Orbitron, sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .18s, border-color .18s, background .18s;
}
.mis-site-header__nav a:hover,
.mis-site-header__nav a:focus-visible {
  border-color: #1d4467;
  color: #fff;
  background: #0a213a;
  outline: none;
}
.mis-site-header__nav a[aria-current="page"] {
  border-color: rgba(0, 212, 255, .38);
  color: var(--mis-header-cyan);
  background: rgba(0, 212, 255, .07);
}

.mis-site-header__action-wrap { justify-self: end; }
.mis-site-header__action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--mis-header-cyan);
  color: #00111c !important;
  background: var(--mis-header-cyan);
  font-family: Orbitron, sans-serif;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .18s, background .18s;
}
.mis-site-header__action:hover,
.mis-site-header__action:focus-visible {
  background: #55e5ff;
  transform: translateY(-1px);
  outline: none;
}
.mis-site-header__action--portal {
  border-color: var(--mis-header-green);
  background: var(--mis-header-green);
}
.mis-site-header__action--portal:hover,
.mis-site-header__action--portal:focus-visible { background: #78da3f; }

.mis-site-header__toggle {
  display: none;
  width: 44px;
  height: 42px;
  padding: 0;
  border: 1px solid #28506f;
  color: #fff;
  background: transparent;
  font: 1.25rem/1 sans-serif;
  cursor: pointer;
}

@media (max-width: 1040px) {
  .mis-site-header__inner {
    min-height: 70px;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-block: 12px;
  }
  .mis-site-header__toggle { display: block; justify-self: end; }
  .mis-site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 14px max(20px, calc((100% - 1200px) / 2)) 20px;
    border-bottom: 1px solid #1b4767;
    background: #04101f;
  }
  .mis-site-header__nav.is-open { display: grid; }
  .mis-site-header__nav a { display: block; padding: 14px; }
  .mis-site-header__action-wrap { display: none; }
}

@media (max-width: 620px) {
  .mis-site-header__inner { width: calc(100% - 26px); }
  .mis-site-header__brand-copy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mis-site-header *, .mis-site-header *::before, .mis-site-header *::after {
    transition-duration: .001ms !important;
  }
}
