/* Shared site header (mega menu) and footer used by the Angular app and the static pages. */
.dx-head, .dx-foot {
  --dx-navy: #00548B; --dx-navy-d: #003a61; --dx-sky: #22A8E0; --dx-ink: #0f2942;
  --dx-muted: #5a6b7d; --dx-line: #e3ecf3; --dx-soft: #f4f8fb;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
.dx-head *, .dx-foot * { box-sizing: border-box }
.dx-head ul, .dx-foot ul { list-style: none; margin: 0; padding: 0 }
.dx-head a, .dx-foot a { text-decoration: none }
.dx-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem }

/* Hide the Angular app's legacy navbar and footer; this shared chrome replaces them. */
app-navbar, app-footer { display: none !important }

/* ---------- Header ---------- */
.dx-head { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--dx-line) }
/* Blur lives on a pseudo-element so it doesn't become the containing block of the fixed mobile drawer. */
.dx-head:before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.95); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px) }
.dx-head.is-menu:before { background: #fff }
.dx-head__bar { display: flex; align-items: center; gap: 1.5rem; height: 72px }
.dx-logo { display: inline-flex; flex: 0 0 auto }
.dx-logo img { display: block; height: 40px; width: auto }

.dx-nav { display: none; flex: 1 1 auto }
.dx-nav__list { display: flex; align-items: center; gap: .25rem }
.dx-nav__item { position: relative }
.dx-nav__link {
  display: inline-flex; align-items: center; gap: .375rem; height: 40px; padding: 0 .75rem; border: 0; border-radius: 8px;
  background: none; color: var(--dx-ink); font: inherit; font-size: .9375rem; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.dx-nav__link:hover, .dx-nav__item.is-open > .dx-nav__link { background: var(--dx-soft); color: var(--dx-navy) }
.dx-nav__link[aria-current="page"] { color: var(--dx-navy) }
.dx-nav__link:focus-visible, .dx-btn:focus-visible, .dx-mega a:focus-visible, .dx-burger:focus-visible { outline: 2px solid var(--dx-sky); outline-offset: 2px }
.dx-caret { font-size: .625rem; transition: transform .2s ease; opacity: .7 }
.dx-nav__item.is-open .dx-caret { transform: rotate(180deg) }

/* Mega panel (small) */
.dx-mega {
  position: absolute; top: calc(100% + 10px); left: -.5rem; width: max-content; max-width: min(720px, 92vw);
  padding: 1.25rem; border: 1px solid var(--dx-line); border-radius: 16px; background: #fff;
  box-shadow: 0 24px 48px -20px rgba(15,41,66,.28), 0 2px 6px rgba(15,41,66,.05);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.dx-mega:before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px }
.dx-nav__item.is-open > .dx-mega { opacity: 1; visibility: visible; transform: none }
.dx-mega__grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: .25rem 1rem }
.dx-mega__grid--feature { grid-template-columns: minmax(220px,1fr) minmax(220px,1fr) 220px; column-gap: 1rem }
.dx-mega__grid--feature .dx-mega__label { grid-column: 1 / 3; grid-row: 1 }
.dx-mega__label { grid-column: 1 / -1; margin: 0 0 .25rem; padding: 0 .75rem; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dx-muted) }
.dx-mlink { display: flex; gap: .75rem; padding: .625rem .75rem; border-radius: 10px; color: var(--dx-ink) }
.dx-mlink:hover { background: var(--dx-soft) }
.dx-mlink__icon { flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, rgba(34,168,224,.16), rgba(0,84,139,.1)); color: var(--dx-navy); font-size: .875rem }
.dx-mlink__title { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.3 }
.dx-mlink__desc { display: block; margin-top: .125rem; font-size: .8125rem; line-height: 1.45; color: var(--dx-muted) }
.dx-mega__feature { grid-row: 1 / span 4; grid-column: 3; margin-left: .5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 1.125rem; border-radius: 12px; background: linear-gradient(160deg, var(--dx-navy) 0%, var(--dx-navy-d) 100%); color: #fff }
.dx-mega__feature p { margin: 0 }
.dx-mega__feature-k { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9fdcf6 }
.dx-mega__feature-t { margin-top: .375rem !important; font-size: 1.0625rem; font-weight: 700; line-height: 1.3 }
.dx-mega__feature-d { margin-top: .375rem !important; font-size: .8125rem; line-height: 1.5; color: rgba(255,255,255,.8) }
.dx-mega__feature a { color: #fff; font-size: .875rem; font-weight: 600 }
.dx-mega__feature a:hover { text-decoration: underline }
.dx-mega__foot { grid-column: 1 / 3; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: .5rem; padding: .75rem .75rem 0; border-top: 1px solid var(--dx-line); font-size: .8125rem }
.dx-mega__foot a { color: var(--dx-navy); font-weight: 600 }
.dx-mega__foot a:hover { text-decoration: underline }
.dx-mega--narrow .dx-mega__grid { grid-template-columns: minmax(250px, 1fr) }
.dx-mega--narrow .dx-mega__foot { grid-column: 1 / -1 }

/* Actions */
.dx-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto }
.dx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 40px; padding: 0 1rem; border-radius: 10px;
  border: 1px solid transparent; font-size: .9375rem; font-weight: 600; white-space: nowrap; line-height: 1; transition: background .15s, color .15s, border-color .15s;
}
.dx-btn--text { color: var(--dx-ink) }
.dx-btn--text:hover { color: var(--dx-navy); background: var(--dx-soft) }
.dx-btn--ghost { border-color: #c9d8e4; color: var(--dx-navy); background: #fff }
.dx-btn--ghost:hover { border-color: var(--dx-navy) }
.dx-btn--primary { background: var(--dx-navy); color: #fff }
.dx-btn--primary:hover { background: var(--dx-navy-d); color: #fff }
/* Sign In / Sign Up / Contact Us: original placement and style (top right, teal buttons, always visible) */
.dx-auth { display: flex; align-items: center; gap: .375rem }
.dx-btn--orig { height: 38px; padding: 0 .875rem; border: 0; border-radius: 4px; background: linear-gradient(270deg, #01acc0, #70d0db); color: #fff; font-size: .875rem; box-shadow: 0 3px 8px rgba(32,58,78,.16) }
.dx-btn--orig:hover { background: linear-gradient(270deg, #0199ab, #4fc3d0); color: #fff; box-shadow: 0 6px 14px rgba(32,58,78,.2) }
.dx-btn--orig:focus-visible { outline: 2px solid var(--dx-navy); outline-offset: 2px }

.dx-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -.5rem; border: 0; border-radius: 10px; background: none; color: var(--dx-ink); cursor: pointer }
.dx-burger:hover { background: var(--dx-soft) }
.dx-burger:focus:not(:focus-visible), .dx-nav__link:focus:not(:focus-visible) { outline: none }
.dx-burger span, .dx-burger span:before, .dx-burger span:after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, background .2s ease }
.dx-burger span { position: relative }
.dx-burger span:before, .dx-burger span:after { content: ""; position: absolute; left: 0 }
.dx-burger span:before { top: -6px } .dx-burger span:after { top: 6px }
.dx-head.is-menu .dx-burger span { background: transparent }
.dx-head.is-menu .dx-burger span:before { transform: translateY(6px) rotate(45deg) }
.dx-head.is-menu .dx-burger span:after { transform: translateY(-6px) rotate(-45deg) }

/* Mobile drawer */
.dx-drawer { display: none; position: fixed; inset: 72px 0 0 0; z-index: 999; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fff; border-top: 1px solid var(--dx-line) }
.dx-head.is-menu .dx-drawer { display: flex; flex-direction: column }
.dx-drawer__body { flex: 1 0 auto; padding: .5rem 1.25rem 1.5rem }
.dx-acc { border-bottom: 1px solid var(--dx-line) }
.dx-acc__btn, .dx-drawer__link { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 1rem .25rem; border: 0; background: none; color: var(--dx-ink); font: inherit; font-size: 1.0625rem; font-weight: 600; text-align: left; cursor: pointer }
.dx-drawer__link { border-bottom: 1px solid var(--dx-line) }
.dx-acc__btn:focus:not(:focus-visible) { outline: none }
.dx-acc__btn:focus-visible, .dx-drawer__link:focus-visible { outline: 2px solid var(--dx-sky); outline-offset: -2px; border-radius: 6px }
.dx-acc__panel { display: none; padding: 0 0 .75rem }
.dx-acc.is-open .dx-acc__panel { display: block }
.dx-acc.is-open .dx-caret { transform: rotate(180deg) }
.dx-acc__panel .dx-mlink { padding: .625rem .25rem }
.dx-drawer__cta { position: sticky; bottom: 0; display: grid; gap: .625rem; padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--dx-line); background: #fff }
.dx-drawer__cta .dx-btn { height: 48px; width: 100% }
.dx-drawer__cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem }
.dx-drawer__contact { margin: 1.25rem 0 0; font-size: .875rem; color: var(--dx-muted) }
.dx-drawer__contact a { color: var(--dx-navy); font-weight: 600 }
html.dx-lock, html.dx-lock body { overflow: hidden }

@media (max-width: 1079px) {
  .dx-head__bar { flex-wrap: wrap; height: auto; row-gap: 0; padding-top: .625rem; padding-bottom: .625rem }
  .dx-head__bar .dx-logo { order: 1 }
  .dx-actions { display: contents }
  .dx-burger { order: 2; margin-left: auto }
  .dx-auth { order: 3; flex: 1 0 100%; justify-content: flex-end; padding-top: .5rem }
  .dx-drawer { top: var(--dx-h, 112px) }
}
@media (max-width: 560px) {
  .dx-auth { display: grid; grid-template-columns: repeat(3, 1fr) }
  .dx-auth .dx-btn--orig { padding: 0 .5rem }
}
@media (min-width: 1080px) {
  .dx-nav { display: block }
  .dx-burger, .dx-drawer, .dx-head.is-menu .dx-drawer { display: none }
  .dx-head__bar { gap: 2rem }
}
@media (max-width: 420px) {
  .dx-logo img { height: 34px }
  .dx-btn { padding: 0 .75rem }
}

/* ---------- Footer ---------- */
.dx-foot { margin-top: 0; background: #0b2238; color: #c3d2df; font-size: .9375rem }
.dx-foot a { color: #c3d2df }
.dx-foot a:hover { color: #fff }
.dx-foot__cta { border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(120deg, #00548B 0%, #0a6fae 55%, #1a95cf 100%) }
.dx-foot__cta-inner { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 2.25rem; padding-bottom: 2.25rem }
.dx-foot__cta-t { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.625rem); font-weight: 700; line-height: 1.25; color: #fff; letter-spacing: -.01em }
.dx-foot__cta-d { margin: .375rem 0 0; color: rgba(255,255,255,.85); font-size: .9375rem }
.dx-foot__cta-btns { display: flex; flex-wrap: wrap; gap: .625rem }
.dx-foot__cta .dx-btn--white { background: #fff; color: var(--dx-navy) }
.dx-foot__cta .dx-btn--white:hover { background: #eaf5fc; color: var(--dx-navy) }
.dx-foot__cta .dx-btn--outline { border-color: rgba(255,255,255,.55); color: #fff }
.dx-foot__cta .dx-btn--outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08) }

.dx-foot__main { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0,1fr)); padding-top: 3rem; padding-bottom: 2.5rem }
.dx-foot__brand { grid-column: 1 / -1 }
.dx-foot__logo { display: inline-flex; padding: .5rem .75rem; border-radius: 10px; background: #fff }
.dx-foot__logo img { display: block; height: 32px; width: auto }
.dx-foot__about { margin: 1rem 0 0; max-width: 22rem; line-height: 1.7; color: #9fb3c5; font-size: .875rem }
.dx-foot__reach { display: grid; gap: .5rem; margin-top: 1.125rem !important; font-size: .9375rem }
.dx-foot__reach a { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 500 }
.dx-foot__reach i { width: 1rem; color: var(--dx-sky) }
.dx-foot__title { margin: 0 0 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff }
.dx-foot__col ul { display: grid; gap: .625rem; font-size: .875rem }
.dx-foot__notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: 1rem 1.25rem; border-radius: 12px; background: rgba(255,255,255,.05); font-size: .875rem }
.dx-foot__notice strong { color: #fff; font-weight: 600 }
.dx-foot__notice a { color: #7fd0f3; font-weight: 600 }
.dx-foot__base { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; padding: 1.5rem 0 2rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .8125rem; color: #8aa0b4 }
.dx-foot__base ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem }
.dx-foot__base a { color: #8aa0b4 }

@media (min-width: 720px) {
  .dx-foot__cta-inner { flex-direction: row; align-items: center; justify-content: space-between }
  .dx-foot__main { grid-template-columns: repeat(4, minmax(0,1fr)) }
  .dx-foot__base { flex-direction: row; justify-content: space-between; align-items: center }
}
@media (min-width: 1024px) {
  .dx-foot__main { grid-template-columns: 1.5fr repeat(4, minmax(0,1fr)) }
  .dx-foot__brand { grid-column: auto }
}
@media (prefers-reduced-motion: reduce) {
  .dx-mega, .dx-caret, .dx-burger span, .dx-burger span:before, .dx-burger span:after { transition: none }
}
