@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600&family=Sora:wght@600&display=swap");

/* Header is in normal flow (sticky), so the old fixed-nav offset is removed. */
html {
  scroll-padding-top: 88px;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  padding-top: 0 !important;
  max-width: 100%;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 76px;
  background: #08080B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.site-header-inner {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  padding: 8px 0;
}

.esnap-logo {
  display: block;
  height: 32px;
  width: auto;
}

.site-header .esnap-logo {
  height: 38px;
}

.footer-brand a {
  display: inline-flex;
  align-items: center;
}

.pod-hub .esnap-logo {
  height: 40px;
  margin: 0 auto;
}

footer .esnap-logo {
  margin-inline: auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

footer .footer-brand > a {
  flex: 0 0 auto;
  line-height: 0;
}

footer .footer-brand .esnap-logo {
  height: 32px;
  width: auto;
  max-width: 168px;
  margin: 0;
}

footer a.footer-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #0A66C2;
  text-decoration: none;
  line-height: 0;
  flex: 0 0 auto;
}

footer a.footer-linkedin:hover,
footer a.footer-linkedin:focus-visible {
  color: #ffffff;
}

footer a.footer-linkedin:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-radius: 4px;
}

footer a.footer-linkedin svg {
  display: block;
  width: 28px;
  height: 28px;
}

@media (max-width: 900px) {
  footer .footer-brand {
    display: contents;
  }

  footer .footer-top,
  footer .footer-inner,
  footer .login-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  footer .footer-brand > a:not(.footer-linkedin) {
    order: 1;
  }

  footer .footer-col,
  footer .footer-links,
  footer .login-footer-actions {
    order: 2;
  }

  footer a.footer-linkedin {
    order: 3;
    align-self: flex-start;
    margin-top: 6px;
  }

  footer .footer-copy,
  footer .login-footer .copy {
    order: 4;
    width: 100%;
  }

  footer .container:has(> p > a.footer-linkedin) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  footer .container:has(> p > a.footer-linkedin) > p {
    order: 2;
    margin: 0;
  }

  footer .container:has(> p > a.footer-linkedin) > p:first-child {
    order: 1;
  }

  footer .container:has(> p > a.footer-linkedin) > p:has(> a.footer-linkedin) {
    order: 4;
    margin-top: 12px;
  }
}

/* Reset the old skewed nav rules that target every nav element. */
.site-header nav {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a,
.site-action-link,
.site-menu a {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #D4D4D8;
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  transition: color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-action-link:hover,
.site-action-link:focus-visible,
.site-menu a:hover,
.site-menu a:focus-visible {
  color: #ffffff;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  box-shadow: inset 0 -2px 0 #7C3AED;
}

.site-nav a.is-active {
  color: #ffffff;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.site-login {
  display: none;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: transparent;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 200ms ease, border-color 200ms ease;
}

.site-login:hover,
.site-login:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
}

.site-login.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.site-action-link {
  white-space: nowrap;
}

.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  background: #7C3AED;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 12px;
  border: 0;
  white-space: nowrap;
  box-shadow: none;
  transition: background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.site-cta:hover,
.site-cta:focus-visible {
  background: #8B5CF6;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28);
}

.site-header a:focus-visible,
.site-menu-toggle:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 3px;
}

.site-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.site-menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.site-menu-toggle[aria-expanded="true"] .site-menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-menu-toggle[aria-expanded="true"] .site-menu-bar:nth-child(2) {
  opacity: 0;
}
.site-menu-toggle[aria-expanded="true"] .site-menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-menu {
  display: none;
  background: #08080B;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 24px 28px;
}

.site-menu nav {
  display: flex;
  flex-direction: column;
}

.site-menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-menu a.site-login,
.site-header a.site-login {
  display: none;
}

.site-menu a.is-active {
  color: #ffffff;
  box-shadow: inset 3px 0 0 #7C3AED;
  padding-left: 12px;
}

.site-menu .site-login,
.site-menu .site-cta {
  align-self: flex-start;
  border-bottom: 0;
  width: auto;
}

.site-menu .site-login {
  margin-top: 18px;
  padding: 0 18px;
}

.site-menu .site-cta {
  margin-top: 12px;
}

a.footer-login {
  display: none !important;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: fit-content;
  margin: 0 0 12px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: transparent;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

a.footer-login:hover,
a.footer-login:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

@media (max-width: 1180px) {
  .site-header { height: 64px; }
  .site-header-inner { padding: 0 20px; gap: 16px; }
  .site-header .esnap-logo { height: 32px; }
  .site-nav,
  .site-header-actions { display: none; }
  .site-menu-toggle { display: inline-flex; }
  .site-menu:not([hidden]) { display: block; }
  .site-menu .site-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: auto;
    height: 46px;
    margin-top: 18px;
    padding: 0 20px;
    border-bottom: 0;
    border-radius: 12px;
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a,
  .site-action-link,
  .site-menu a,
  .site-login,
  .site-cta,
  .site-menu-bar,
  a.footer-login {
    transition: none;
  }
}
