@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets-brand/fonts/libre-baskerville-400.ttf") format("truetype");
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(23, 23, 23, 0.09);
  background: rgba(255, 249, 241, 0.96);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  transition: box-shadow 180ms ease;
  backdrop-filter: blur(14px);
}

.topbar.scrolled {
  box-shadow: 0 12px 32px rgba(45, 35, 25, 0.09);
}

.site-nav {
  position: relative;
  display: flex;
  min-height: 106px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand-link {
  flex: none;
}

.mobile-brand-lockup {
  display: none;
}

@media (min-width: 721px) {
  .brand-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    color: #21304b;
    line-height: 1;
    text-decoration: none;
  }

  .brand-link img {
    display: none !important;
  }

  .brand-link::before {
    content: "Jake Song";
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.08;
  }

  .brand-link::after {
    margin-top: 5px;
    color: #6b6963;
    content: "Financial Advisor";
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
  }
}

.brand-link img {
  display: block;
  width: 287px;
  height: 91px;
  max-width: none;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.topbar .navlink,
.topbar .service-menu > summary {
  color: #302f2b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.topbar .navlink:hover,
.topbar .service-menu > summary:hover {
  color: #b95b2b;
}

.topbar .navlink.current,
.topbar .service-menu.current > summary {
  text-decoration: underline;
  text-decoration-color: #b95b2b;
  text-decoration-thickness: 2px;
  text-underline-offset: 9px;
}

.topbar .navcta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b95b2b;
  border-radius: 999px;
  padding: 13px 22px;
  background: #b95b2b;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.topbar .navcta:hover {
  border-color: #171717;
  background: #171717;
  color: #fff;
  transform: translateY(-1px);
}

.service-menu,
.mobile-menu {
  position: relative;
}

.service-menu > summary,
.mobile-menu > summary {
  list-style: none;
  cursor: pointer;
}

.service-menu > summary::-webkit-details-marker,
.mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.service-menu > summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-menu > summary::after {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 150ms ease;
}

.service-menu[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}

.topbar .navmenu {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  width: min(690px, calc(100vw - 32px));
  transform: translateX(-48%);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(45, 35, 25, 0.14);
  padding: 22px;
  z-index: 1100;
}

.topbar .navmenu::before {
  position: absolute;
  top: -24px;
  left: 0;
  width: 100%;
  height: 26px;
  content: "";
}

.topbar .menu-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
}

.topbar .menu-col {
  padding: 8px;
}

.topbar .menu-col + .menu-col {
  border-left: 1px solid rgba(23, 23, 23, 0.13);
  padding-left: 20px;
}

.topbar .menu-label {
  margin: 0 0 9px;
  color: #77736d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar .menu-link {
  display: block;
  border-radius: 10px;
  padding: 10px 11px;
  color: #171717;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.topbar .menu-link small {
  display: block;
  margin-top: 3px;
  color: #77736d;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
}

.topbar .menu-link:hover,
.topbar .menu-link:focus-visible {
  background: #fff9f1;
  color: #94431d;
}

.topbar .menu-overview {
  display: flex;
  margin-top: 12px;
  border-top: 1px solid rgba(23, 23, 23, 0.13);
  padding: 15px 10px 2px;
  align-items: center;
  justify-content: space-between;
  color: #1b2541;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.topbar .menu-overview:hover {
  color: #b95b2b;
}

.mobile-menu {
  display: none;
}

.mobile-menu > summary {
  border: 1px solid #1b2541;
  border-radius: 999px;
  padding: 11px 16px;
  color: #1b2541;
  font-size: 14px;
  font-weight: 700;
}

.topbar .mobile-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  border: 1px solid rgba(23, 23, 23, 0.09);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(45, 35, 25, 0.14);
  padding: 20px;
  z-index: 1100;
}

.topbar .mobile-panel .menu-col {
  padding: 0;
}

.topbar .mobile-panel .menu-col + .menu-col {
  margin-top: 18px;
  border-top: 1px solid rgba(23, 23, 23, 0.13);
  border-left: 0;
  padding: 18px 0 0;
}

.topbar .mobile-plain-links {
  display: grid;
  margin-top: 18px;
  border-top: 1px solid rgba(23, 23, 23, 0.13);
  padding-top: 15px;
  gap: 3px;
}

.topbar .mobile-plain-links a {
  border-radius: 9px;
  padding: 10px;
  color: #171717;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.topbar .mobile-plain-links a:hover,
.topbar .mobile-plain-links a:focus-visible {
  background: #fff9f1;
}

.topbar .mobile-panel .navcta {
  width: 100%;
  margin-top: 16px;
}

@media (max-width: 1040px) {
  .desktop-nav {
    gap: 20px;
  }

  .topbar .navlink,
  .topbar .service-menu > summary {
    font-size: 14px;
  }

  .topbar .navcta {
    padding-inline: 17px;
  }
}

@media (max-width: 920px) {
  .site-nav {
    min-height: 86px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}

@media (max-width: 720px) {
  .topbar {
    background: #fff !important;
  }

  .site-nav {
    box-sizing: border-box;
    height: 70px;
    min-height: 70px;
    padding: 13px 20px;
  }

  .brand-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    color: #21304b;
    line-height: 1;
    text-decoration: none;
  }

  .brand-link img {
    display: none !important;
  }

  .brand-link .mobile-brand-lockup {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .brand-link .mobile-brand-name {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.15;
  }

  .brand-link .mobile-brand-role {
    color: #6b6963;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-menu > summary {
    display: flex;
    box-sizing: border-box;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 0;
    padding: 8px;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #1b2541;
    font-size: 0;
  }

  .mobile-menu > summary::before {
    display: block;
    width: 28px;
    height: 3px;
    background: currentColor;
    box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor;
    content: "";
  }

  .topbar .mobile-panel,
  .topbar .mobile-panel * {
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar,
  .topbar * {
    transition: none !important;
  }
}
