/* Shared navigation refresh, loaded after redesign.css */
.site-redesign .td-header--refreshed {
  height: 76px;
  background: rgba(247, 248, 246, .94);
  border-bottom-color: rgba(11, 18, 32, .1);
  box-shadow: 0 8px 28px rgba(11, 18, 32, .055);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.site-redesign .td-header--refreshed.is-scrolled,
.site-redesign .td-header--refreshed.menu-open {
  height: 76px;
  background: rgba(247, 248, 246, .97);
  border-bottom-color: rgba(11, 18, 32, .13);
  box-shadow: 0 12px 34px rgba(11, 18, 32, .085);
}

.td-header--refreshed .td-header__inner { gap: 22px; }
.td-header--refreshed .td-brand__mark { width: 40px; height: 40px; border-radius: 11px; }
.td-header--refreshed .td-brand__mark-image { width: 44px; height: 44px; flex-basis: 44px; }
.td-header--refreshed .td-brand__logo { height: 42px; }
.td-header--refreshed .td-nav { gap: 3px; }

.td-header--refreshed .td-nav__link {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  color: #4b5666;
  font-size: .82rem;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}

.td-header--refreshed .td-nav__link:hover { color: var(--td-ink); background: rgba(11, 18, 32, .05); }
.td-header--refreshed .td-nav__link.is-active { color: var(--td-blue); background: rgba(36, 87, 255, .085); }
.td-header--refreshed .td-nav__link.is-active::before { display: none; }

.td-header--refreshed .td-nav__menu {
  top: calc(100% + 13px);
  padding: 12px;
  border-color: rgba(255, 255, 255, .1);
  border-radius: 20px;
  box-shadow: 0 28px 75px rgba(11, 18, 32, .28);
}

.td-header--refreshed .td-nav__menu--mega { width: min(640px, calc(100vw - 40px)); }
.td-header--refreshed .td-nav__menu-heading { padding: 10px 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.td-header--refreshed .td-nav__menu-heading > span { display: block; color: #fff; font: 700 .82rem/1.2 "Momo Trust Sans", sans-serif; }
.td-header--refreshed .td-nav__menu-heading > small { display: block; margin-top: 6px; color: #929daf; font-size: .7rem; line-height: 1.45; }
.td-header--refreshed .td-nav__menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding-top: 7px; }

.td-header--refreshed .td-nav__menu a {
  min-width: 0;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid transparent;
}

.td-header--refreshed .td-nav__menu a:hover,
.td-header--refreshed .td-nav__menu a[aria-current="page"] {
  border-color: rgba(200, 255, 61, .14);
  background: rgba(255, 255, 255, .07);
}

.td-header--refreshed .td-nav__menu a span:last-child { min-width: 0; }
.td-header--refreshed .td-nav__menu strong { font-size: .88rem; }
.td-header--refreshed .td-nav__menu small { max-width: 220px; line-height: 1.45; }
.td-header--refreshed .td-nav__menu--compact { width: 300px; }
.td-header--refreshed .td-nav__menu--compact a + a { margin-top: 3px; }

.td-header--refreshed .td-nav__group:hover .td-nav__menu,
.td-header--refreshed .td-nav__group:focus-within .td-nav__menu {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
}

.td-header--refreshed .td-nav__trigger[aria-expanded="true"] + .td-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.td-header--refreshed .td-header__cta { min-height: 42px; padding-inline: 17px; }

.td-header--refreshed :is(a, button):focus-visible,
.td-mobile-menu :is(a, button):focus-visible,
.td-footer--refreshed a:focus-visible {
  outline: 3px solid var(--td-blue);
  outline-offset: 3px;
}

/* Mobile navigation */
.td-mobile-menu {
  inset: 76px 0 0;
  padding: 30px 22px 42px;
  color: var(--td-ink);
  background: #f4f5f2;
  border-top: 1px solid var(--td-line);
}

.td-mobile-menu__inner { width: min(760px, 100%); gap: 30px; }
.td-mobile-menu__section { margin: 0; }
.td-mobile-menu__label { display: block; margin: 0 0 13px; color: #6b7584; font-weight: 700; }
.td-mobile-menu__services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.td-mobile-menu__services a {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(11, 18, 32, .1);
  border-radius: 14px;
  background: #fff;
  color: var(--td-ink);
}

.td-mobile-menu__services a > .material-symbols-outlined {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--td-blue);
  background: rgba(36, 87, 255, .09);
  font-size: 20px;
}

.td-mobile-menu__services a > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.td-mobile-menu__services strong { font: 700 .91rem/1.2 "Momo Trust Sans", sans-serif; }
.td-mobile-menu__services small { overflow: hidden; color: #717b89; font-size: .64rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.td-mobile-menu__services a[aria-current="page"] { border-color: rgba(36, 87, 255, .35); background: #eef1ff; }

.td-mobile-menu__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.td-mobile-menu__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  border-bottom: 1px solid rgba(11, 18, 32, .12);
  color: var(--td-ink);
  font: 700 1.05rem/1.2 "Momo Trust Sans", sans-serif;
}

.td-mobile-menu__links a .material-symbols-outlined { color: #8b94a1; font-size: 18px; }
.td-mobile-menu__links a[aria-current="page"] { color: var(--td-blue); }
.td-mobile-menu__inner > .td-mobile-menu__cta {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0 21px;
  border: 0;
  border-radius: 999px;
  color: var(--td-ink);
  background: var(--td-lime);
  font: 750 .92rem/1 "Momo Trust Sans", sans-serif;
}

.td-mobile-menu__inner > .td-mobile-menu__cta .material-symbols-outlined { color: var(--td-ink); font-size: 20px; }

/* Footer */
.td-footer--refreshed .td-footer__cta { align-items: center; padding: 96px 0 72px; }
.td-footer--refreshed .td-footer__cta h2 {
  max-width: 18ch;
  font-size: clamp(2.55rem, 4.7vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.td-footer--refreshed .td-footer__cta p { max-width: 650px; margin: 24px 0 0; color: #9aa6b7; font-size: .9rem; line-height: 1.75; }
.td-footer--refreshed .td-footer__cta-link {
  width: auto;
  height: 58px;
  display: inline-flex;
  gap: 14px;
  padding: 0 22px;
  border-radius: 999px;
  white-space: nowrap;
  font: 750 .82rem/1 "Momo Trust Sans", sans-serif;
}

.td-footer--refreshed .td-footer__cta-link .material-symbols-outlined { font-size: 21px; }
.td-footer--refreshed .td-footer__grid { grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); gap: clamp(34px, 5vw, 66px); }
.td-footer--refreshed .td-footer__col h3 { color: #909caf; }
.td-footer--refreshed .td-footer__col a { font-size: .86rem; line-height: 1.45; }
.td-footer--refreshed .td-footer__contact a { gap: 18px; }

@media (max-width: 1080px) {
  .site-redesign .td-header--refreshed,
  .site-redesign .td-header--refreshed.is-scrolled,
  .site-redesign .td-header--refreshed.menu-open { height: 72px; }
  .td-mobile-menu { top: 72px; }
  .td-footer--refreshed .td-footer__grid { grid-template-columns: 1.35fr repeat(2, minmax(0, 1fr)); }
  .td-footer--refreshed .td-footer__contact { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  .td-header--refreshed .td-header__cta { display: none; }
  .td-mobile-menu__services, .td-mobile-menu__links { grid-template-columns: 1fr; }
  .td-footer--refreshed .td-footer__cta { grid-template-columns: 1fr; gap: 34px; padding: 78px 0 58px; }
  .td-footer--refreshed .td-footer__cta h2 { max-width: 15ch; font-size: clamp(2.25rem, 10vw, 3.25rem); line-height: 1.06; letter-spacing: -.035em; }
  .td-footer--refreshed .td-footer__cta-link { justify-self: start; }
  .td-footer--refreshed .td-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 28px; }
  .td-footer--refreshed .td-footer__brand { grid-column: 1 / -1; }
  .td-footer--refreshed .td-footer__contact { grid-column: auto; }
}

@media (max-width: 520px) {
  .td-mobile-menu { padding: 24px 15px 34px; }
  .td-mobile-menu__inner { gap: 26px; }
  .td-mobile-menu__services a { padding: 12px; }
  .td-footer--refreshed .td-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .td-footer--refreshed .td-footer__brand,
  .td-footer--refreshed .td-footer__contact { grid-column: auto; }
  .td-footer--refreshed .td-footer__bottom { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .td-header--refreshed *,
  .td-mobile-menu *,
  .td-footer--refreshed * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
