:root {
  --tkf-primary: #293545;
  --tkf-gold: #AE8F50;
  --tkf-gold-light: #C6BEAE;
  --tkf-bg: #F1ECE2;
  --tkf-text: #727982;
  --tkf-radius: 14px;
}

body.has-site-nav {
  padding-top: 98px;
}

.tkf-site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1400;
  pointer-events: none;
}

.tkf-site-nav {
  width: 100%;
  min-height: 82px;
  margin: 0 auto;
  border: 0;
  border-bottom: 1px solid rgba(198, 190, 174, 0.28);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(31, 47, 63, 0.98), rgba(42, 57, 74, 0.96)),
    #1f2f3f;
  box-shadow: 0 18px 40px -30px rgba(10, 19, 31, 0.95);
  backdrop-filter: blur(16px);
  pointer-events: auto;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  overflow: visible;
}

.tkf-site-nav.is-scrolled {
  border-color: rgba(174, 143, 80, 0.46);
  box-shadow: 0 18px 42px -28px rgba(10, 19, 31, 0.98);
  transform: none;
}

.tkf-nav-shell {
  width: min(1320px, calc(100% - 1.5rem));
  margin: 0 auto;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem 0;
}

.tkf-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
  margin-inline-end: 0.35rem;
  padding: 0.46rem 0.7rem;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(135deg, rgba(174, 143, 80, 0.24), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(198, 190, 174, 0.22);
  flex-shrink: 0;
}

.tkf-brand img {
  width: 118px;
  height: auto;
  display: block;
}

.tkf-brand-title {
  display: none;
}

.tkf-main-menu {
  display: none;
  justify-content: center;
  justify-self: center;
  margin-inline: 0;
  align-items: center;
  gap: 0.22rem;
  padding: 0.24rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.tkf-nav-item {
  position: relative;
}

.tkf-nav-link,
.tkf-nav-trigger {
  color: #ffffff !important;
  text-decoration: none;
  border: 0;
  background: transparent;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.54rem 0.72rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.tkf-nav-trigger .tkf-chevron,
.tkf-mobile-trigger span:last-child {
  color: rgba(255, 255, 255, 0.9) !important;
}

.tkf-nav-trigger .tkf-chevron {
  transition: transform 0.2s ease;
}

.tkf-nav-trigger[aria-expanded="true"] .tkf-chevron {
  transform: rotate(180deg);
}

.tkf-nav-link:hover,
.tkf-nav-link:focus-visible,
.tkf-nav-trigger:hover,
.tkf-nav-trigger:focus-visible,
.tkf-nav-link.is-active,
.tkf-nav-item.open > .tkf-nav-trigger {
  color: #ffffff !important;
  background: rgba(174, 143, 80, 0.38);
  box-shadow: inset 0 0 0 1px rgba(198, 190, 174, 0.28);
}

.tkf-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 236px;
  border: 1px solid rgba(198, 190, 174, 0.34);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 48px -28px rgba(0, 0, 0, 0.86);
  padding: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.tkf-nav-item.open .tkf-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tkf-dropdown a {
  display: block;
  color: #111;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.58rem 0.64rem;
  font-weight: 700;
}

.tkf-dropdown a:hover,
.tkf-dropdown a:focus-visible {
  background: rgba(41, 53, 69, 0.1);
  color: #111;
}

.tkf-dropdown a.tkf-featured-link,
.tkf-mobile-submenu a.tkf-featured-link {
  background: linear-gradient(135deg, rgba(174, 143, 80, 0.2), rgba(198, 190, 174, 0.14));
  border: 1px solid rgba(174, 143, 80, 0.5);
  color: #1f2c3c;
  font-weight: 800;
}

.tkf-dropdown a.tkf-featured-link:hover,
.tkf-dropdown a.tkf-featured-link:focus-visible,
.tkf-mobile-submenu a.tkf-featured-link:hover,
.tkf-mobile-submenu a.tkf-featured-link:focus-visible {
  background: linear-gradient(135deg, rgba(174, 143, 80, 0.3), rgba(198, 190, 174, 0.2));
  color: #111;
}

.tkf-nav-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
  flex-shrink: 0;
}

.tkf-quote-btn {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: linear-gradient(135deg, #AE8F50, #c09b57);
  text-decoration: none;
  font-weight: 800;
  padding: 0.62rem 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tkf-assistant-btn {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(198, 190, 174, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-weight: 800;
  padding: 0.62rem 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.tkf-sidebar-btn {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(198, 190, 174, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-weight: 800;
  padding: 0.62rem 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.tkf-sidebar-btn:hover,
.tkf-sidebar-btn:focus-visible {
  color: #ffffff;
  background: rgba(174, 143, 80, 0.22);
  transform: translateY(-1px);
}

.tkf-assistant-btn:hover,
.tkf-assistant-btn:focus-visible {
  color: #ffffff;
  background: rgba(174, 143, 80, 0.22);
  transform: translateY(-1px);
}

.tkf-quote-btn:hover,
.tkf-quote-btn:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -14px rgba(174, 143, 80, 0.95);
}

.tkf-menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(198, 190, 174, 0.38);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tkf-mobile-sidebar {
  position: fixed;
  inset: 0;
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.tkf-mobile-sidebar.open {
  opacity: 1;
  pointer-events: auto;
}

.tkf-mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 20, 0.52);
  backdrop-filter: blur(6px);
}

.tkf-mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(390px, 92vw);
  height: 100%;
  background: linear-gradient(165deg, #223347, #1b2a3b);
  transform: translateX(104%);
  transition: transform 0.28s ease;
  padding: 1rem 0.9rem 1.1rem;
  overflow-y: auto;
}

.tkf-mobile-sidebar.open .tkf-mobile-panel {
  transform: translateX(0);
}

.tkf-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.tkf-mobile-title {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0;
}

.tkf-mobile-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(198, 190, 174, 0.42);
  background: transparent;
  color: #fff;
}

.tkf-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.36rem;
}

.tkf-mobile-link,
.tkf-mobile-trigger {
  width: 100%;
  border: 0;
  border-radius: 12px;
  color: #edf3fb;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.72rem 0.68rem;
}

.tkf-mobile-link.active {
  background: rgba(198, 190, 174, 0.2);
}

.tkf-mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  margin: 0.1rem 0 0.25rem;
  padding: 0 0.35rem;
}

.tkf-mobile-item.open .tkf-mobile-submenu {
  max-height: 320px;
}

.tkf-mobile-submenu a {
  display: block;
  color: #dce6f3;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.58rem 0.46rem;
}

.tkf-mobile-submenu a:hover,
.tkf-mobile-submenu a:focus-visible {
  background: rgba(198, 190, 174, 0.12);
  color: #fff;
}

.tkf-ai-fab {
  position: fixed;
  right: 14px;
  bottom: 88px;
  z-index: 1320;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(41, 53, 69, 0.92), rgba(54, 71, 92, 0.88));
  border: 1px solid rgba(198, 190, 174, 0.46);
  color: #fff;
  text-decoration: none;
  padding: 0.64rem 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  font-weight: 800;
  box-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.86);
  animation: tkfPulse 2s ease-in-out infinite;
}

.tkf-ai-fab:hover,
.tkf-ai-fab:focus-visible {
  color: #fff;
}

.tkf-ai-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.tkf-ai-fab .tkf-ai-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  border-radius: 10px;
  background: #1f2c3c;
  color: #fff;
  padding: 0.38rem 0.52rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.tkf-ai-fab:hover .tkf-ai-tooltip,
.tkf-ai-fab:focus-visible .tkf-ai-tooltip {
  opacity: 1;
  visibility: visible;
}

body.insurance-application-page .tkf-ai-fab {
  display: none;
}

@keyframes tkfPulse {
  0%, 100% { box-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.86); }
  50% { box-shadow: 0 18px 32px -18px rgba(174, 143, 80, 0.86); }
}

@media (min-width: 992px) {
  .tkf-main-menu,
  .tkf-nav-actions {
    display: flex;
  }

  .tkf-sidebar-btn {
    display: none;
  }

  .tkf-menu-btn {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  .tkf-nav-shell {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .tkf-brand-title {
    display: none;
  }

  .tkf-brand img {
    width: 108px;
  }

  .tkf-nav-link,
  .tkf-nav-trigger {
    font-size: 0.9rem;
    padding-inline: 0.62rem;
  }

  .tkf-assistant-btn {
    display: none;
  }
}

@media (max-width: 991.98px) {
  body.has-site-nav {
    padding-top: 78px;
  }

  .tkf-site-header {
    top: 0;
  }

  .tkf-site-nav {
    min-height: 68px;
    width: 100%;
    border-radius: 0;
    background: rgba(31, 47, 63, 0.98);
    box-shadow: 0 12px 30px -24px rgba(10, 19, 31, 0.95);
  }

  .tkf-nav-shell {
    width: min(100% - 0.9rem, 720px);
    min-height: 68px;
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.42rem 0;
  }

  .tkf-brand-title {
    display: none;
  }

  .tkf-brand {
    min-width: 0;
    margin: 0;
    padding: 0.28rem 0.46rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
  }

  .tkf-brand img {
    width: clamp(92px, 28vw, 112px);
    max-height: 42px;
  }

  .tkf-menu-btn {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-color: rgba(198, 190, 174, 0.48);
    background: linear-gradient(135deg, rgba(174, 143, 80, 0.95), rgba(192, 155, 87, 0.94));
    color: #142236;
    font-size: 0;
    font-weight: 900;
    box-shadow: 0 12px 24px -18px rgba(174, 143, 80, 0.9);
  }

  .tkf-menu-btn::before {
    content: "\2630";
    font-size: 1.32rem;
    line-height: 1;
  }

  .tkf-mobile-overlay {
    background: rgba(5, 11, 20, 0.62);
    backdrop-filter: blur(8px);
  }

  .tkf-mobile-panel {
    width: min(420px, 88vw);
    max-width: calc(100vw - 34px);
    height: 100dvh;
    padding: calc(0.9rem + env(safe-area-inset-top)) 0.85rem calc(1rem + env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, rgba(174, 143, 80, 0.16), transparent 26%),
      linear-gradient(165deg, #223347, #172536);
    box-shadow: -24px 0 48px -34px rgba(0, 0, 0, 0.95);
  }

  .tkf-mobile-head {
    position: sticky;
    top: 0;
    z-index: 1;
    padding-bottom: 0.72rem;
    margin-bottom: 0.72rem;
    border-bottom: 1px solid rgba(198, 190, 174, 0.18);
    background: linear-gradient(180deg, #223347 0%, rgba(34, 51, 71, 0.94) 100%);
  }

  .tkf-mobile-title {
    font-size: 1.08rem;
  }

  .tkf-mobile-close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0;
  }

  .tkf-mobile-close::before {
    content: "\00d7";
    font-size: 1.35rem;
    line-height: 1;
  }

  .tkf-mobile-links {
    gap: 0.48rem;
    padding-bottom: 0.5rem;
  }

  .tkf-mobile-link,
  .tkf-mobile-trigger {
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 0.98rem;
    line-height: 1.35;
    padding: 0.78rem 0.76rem;
  }

  .tkf-mobile-link.active,
  .tkf-mobile-item.open > .tkf-mobile-trigger {
    border-color: rgba(174, 143, 80, 0.55);
    background: rgba(174, 143, 80, 0.22);
  }

  .tkf-mobile-submenu {
    padding: 0 0.45rem;
  }

  .tkf-mobile-item.open .tkf-mobile-submenu {
    max-height: 520px;
  }

  .tkf-mobile-submenu a {
    min-height: 42px;
    margin-top: 0.28rem;
    padding: 0.62rem 0.66rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    overflow-wrap: anywhere;
  }

  .tkf-mobile-links > .tkf-assistant-btn,
  .tkf-mobile-links > .tkf-quote-btn {
    width: 100%;
    min-height: 50px;
    margin-top: 0.2rem;
    border-radius: 14px;
  }

  .tkf-mobile-links > .tkf-assistant-btn {
    display: inline-flex;
  }

  .tkf-ai-fab {
    right: 12px;
    bottom: 18px;
    padding: 0.62rem;
    border-radius: 50%;
  }

  .tkf-ai-fab > span:not(.tkf-ai-tooltip) {
    display: none;
  }
}

@media (max-width: 575.98px) {
  body.has-site-nav {
    padding-top: 72px;
  }

  .tkf-site-nav,
  .tkf-nav-shell {
    min-height: 64px;
  }

  .tkf-nav-shell {
    width: calc(100% - 0.75rem);
  }

  .tkf-brand {
    padding: 0.22rem 0.38rem;
  }

  .tkf-brand img {
    width: clamp(82px, 30vw, 96px);
  }

  .tkf-menu-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .tkf-mobile-panel {
    width: min(360px, 90vw);
    max-width: calc(100vw - 22px);
    padding-inline: 0.72rem;
  }

  .tkf-mobile-link,
  .tkf-mobile-trigger {
    min-height: 48px;
    font-size: 0.94rem;
  }
}
