/* Shared mega-menu header (marketing pages + blogs) */
:root {
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f1f3f7;
  --gray-200: #e2e6ed;
  --gray-300: #d1d9e0;
  --gray-500: #5f7080;
  --gray-600: #3d5166;
  --gray-900: #111c27;
  --navy: #0f2240;
  --navy-mid: #1a3a5c;
  --navy-light: #1e4976;
  --steel: #8899aa;
  --silver: #d4dde6;
}

html,
body {
  margin: 0;
  padding: 0;
}

.topbar {
  background: var(--navy);
  padding: 8px 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .75);
  font-family: Inter, system-ui, sans-serif;
}

.topbar a {
  color: #fff;
  font-weight: 600;
  margin-left: 6px;
  text-decoration: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(15, 34, 64, .1);
  backdrop-filter: blur(12px);
  font-family: Inter, system-ui, sans-serif;
  overflow: visible;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 8px;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 16px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  background: #fff;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.nav {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: visible;
}

.nav-item {
  position: relative;
  z-index: 1;
}

.nav-item:hover {
  z-index: 250;
}

.nav-btn {
  padding: 0 12px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-600);
  white-space: nowrap;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.nav-btn:hover,
.nav-btn.act {
  color: var(--navy-light);
}

.nav-btn svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  transition: transform .2s;
}

.nav-item:hover .nav-btn svg {
  transform: rotate(180deg);
}

.drop {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: #fff;
  border: 1px solid rgba(15, 34, 64, .12);
  border-top: 2.5px solid var(--navy);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 40px rgba(15, 34, 64, .12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s;
  z-index: 300;
}

.nav-item:hover .drop {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-item:nth-child(4) .drop,
.nav-item:nth-child(5) .drop {
  left: auto;
  right: 0;
}

.m-breadcrumb {
  font-size: 12px;
  color: var(--gray-500);
  margin: 0 0 14px;
  font-family: Inter, system-ui, sans-serif;
}

.m-breadcrumb a {
  color: var(--navy-light);
  font-weight: 600;
  text-decoration: none;
}

.m-breadcrumb a:hover {
  text-decoration: underline;
}

.drop-ind {
  min-width: 660px;
  display: grid;
  grid-template-columns: 188px 1fr 1fr;
}

.drop-ind-side {
  background: var(--navy);
  padding: 22px 18px;
  border-radius: 0 0 0 10px;
}

.drop-ind-side h4 {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 10px;
}

.drop-ind-side p {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.65;
  margin-bottom: 14px;
}

.drop-ind-side a {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
}

.drop-ind-side a:hover {
  color: #fff;
}

.drop-col {
  padding: 14px 10px;
}

.drop-col-lbl,
.drop-sol-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 0 8px 8px;
  display: block;
}

a.di {
  text-decoration: none;
  color: inherit;
}

.di {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 7px;
  border: 1px solid transparent;
}

.di:hover {
  background: rgba(15, 34, 64, .04);
  border-color: rgba(15, 34, 64, .08);
}

.di-ic {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 34, 64, .1);
  background: #f8f9fb;
}

.di strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.di span {
  font-size: 10.5px;
  color: var(--steel);
}

.drop-feat {
  min-width: 560px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

a.drop-feat-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
}

.drop-feat-card:hover {
  background: rgba(15, 34, 64, .04);
  border-color: rgba(15, 34, 64, .1);
}

.dfc-ic {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dfc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
  line-height: 1.25;
}

.dfc-desc {
  font-size: 11.5px;
  color: var(--steel);
  line-height: 1.4;
}

.drop-feat-footer {
  grid-column: 1 / -1;
  background: rgba(15, 34, 64, .03);
  border: 1px solid rgba(15, 34, 64, .08);
  border-radius: 7px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.drop-feat-footer span {
  font-size: 11.5px;
  color: var(--steel);
}

.drop-feat-footer a {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy-light);
  text-decoration: none;
}

.drop-sol {
  min-width: 480px;
  padding: 12px;
}

a.sol-di {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 3px;
  border: 1px solid transparent;
}

.sol-di:hover {
  background: rgba(15, 34, 64, .04);
  border-color: rgba(15, 34, 64, .09);
}

.sol-ic {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.sol-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.sol-text span {
  font-size: 11.5px;
  color: var(--steel);
  line-height: 1.4;
}

.drop-res {
  min-width: 300px;
  padding: 10px;
}

a.res-di {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 7px;
  text-decoration: none;
  color: inherit;
}

.res-di:hover {
  background: rgba(15, 34, 64, .04);
}

.res-ic {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f8f9fb;
  border: 1px solid rgba(15, 34, 64, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.res-di strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}

.res-di span {
  font-size: 11px;
  color: var(--steel);
}

.drop-res-footer {
  margin-top: 8px;
  padding: 9px 11px;
  background: rgba(15, 34, 64, .03);
  border: 1px solid rgba(15, 34, 64, .08);
  border-radius: 7px;
}

.drop-res-footer p {
  font-size: 11.5px;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

.drop-res-footer a {
  color: var(--navy-light);
  font-weight: 600;
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-ghost,
.btn-outline,
.btn-primary {
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-ghost {
  padding: 6px 14px;
  color: var(--gray-600);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.btn-outline {
  padding: 6px 14px;
  color: var(--navy);
  border: 1px solid var(--navy-mid);
  background: #fff;
}

.btn-primary {
  padding: 7px 16px;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-mid);
}

/* Page hero */
.m-hero {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .drop-ind {
    min-width: min(660px, 92vw);
    grid-template-columns: 1fr;
  }

  .drop-feat,
  .drop-sol {
    min-width: min(560px, 92vw);
  }

  .nav-item:nth-child(4) .drop,
  .nav-item:nth-child(5) .drop {
    left: 0;
    right: auto;
  }
}

/* Mobile nav + accordion submenus (matches index.html) */
@media (max-width: 768px) {
  .topbar {
    font-size: 11.5px;
    padding: 8px 12px;
  }

  .header-inner {
    height: auto;
    min-height: 60px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 0;
    background: #fff;
  }

  .logo {
    margin-right: 0;
    grid-column: 1;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    grid-column: 2;
  }

  .header-inner.menu-open .mobile-menu-toggle svg.menu-ic-open {
    display: none;
  }

  .header-inner:not(.menu-open) .mobile-menu-toggle svg.menu-ic-close {
    display: none;
  }

  .nav {
    grid-column: 1 / -1;
    width: 100%;
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 4px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height .28s ease, opacity .22s ease, transform .22s ease;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item:hover {
    z-index: 1;
  }

  .nav-btn {
    height: 44px;
    width: 100%;
    justify-content: space-between;
    padding: 0 14px;
    font-size: 12.5px;
    border-radius: 10px;
  }

  .nav-item + .nav-item {
    margin-top: 2px;
  }

  .nav-right {
    grid-column: 1 / -1;
    width: 100%;
    order: 4;
    display: flex;
    margin-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    gap: 10px;
    justify-content: stretch;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height .28s ease, opacity .22s ease, transform .22s ease;
  }

  .btn-ghost,
  .btn-outline,
  .btn-primary {
    padding: 6px 10px;
    font-size: 12px;
    width: 100%;
    min-height: 42px;
    justify-content: center;
  }

  .header-inner.menu-open .nav,
  .header-inner.menu-open .nav-right {
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header-inner.menu-open {
    padding-bottom: 14px;
  }

  .header-inner.menu-open .nav-btn:hover,
  .header-inner.menu-open .nav-btn.act {
    background: var(--gray-50);
  }

  /* Disable desktop hover flyouts on mobile */
  .nav-item:hover .drop {
    opacity: 1;
    pointer-events: none;
    transform: none;
  }

  .drop {
    display: none;
  }

  .nav-item .drop {
    display: block;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: none;
    margin-top: -1px;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height .24s ease;
  }

  .nav-item.mobile-sub-open .drop {
    display: block;
    max-height: 2000px;
    padding: 0;
    pointer-events: auto;
  }

  .nav-item.mobile-sub-open .nav-btn svg {
    transform: rotate(180deg);
  }

  .drop-ind,
  .drop-feat,
  .drop-sol,
  .drop-res {
    min-width: 0 !important;
    width: 100%;
  }

  .drop-ind {
    display: block;
    grid-template-columns: 1fr;
  }

  .drop-ind-side {
    border-radius: 0;
    padding: 14px;
  }

  .drop-col {
    padding: 10px 8px;
  }

  .drop-feat {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px;
  }

  .drop-sol,
  .drop-res {
    padding: 8px;
  }

  .drop-feat-footer,
  .drop-res-footer {
    margin: 4px 8px 8px;
  }

  .sol-di,
  a.sol-di {
    display: flex;
    padding: 10px 8px;
  }
}
