/* ==========================================================================
   Unified header + footer — identical to the blog pages.
   Loaded AFTER bundle.min.css so it overrides the legacy nav/footer rules.
   ========================================================================== */

:root {
  --u-navy: #0b1f3a;
  --u-blue: #0066f5;
  --u-tx: #1f2d3d;
  --u-mut: #5f7085;
  --u-dim: #8b99ab;
  --u-line: #e4e9f0;
  --u-wash: #f6f8fb;
}

/* ---------------- HEADER ---------------- */
#header {
  border-bottom: 1px solid var(--u-line);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  z-index: 9500;
  box-shadow: none;
}

#header .wrap {
  max-width: 1080px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 24px;
  width: 100%;
}

#header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: auto;
  padding: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}

#header .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

#header .logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* nav links row */
#header .nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  position: static;
  width: auto;
  height: auto;
  max-height: none;
  background: none;
  box-shadow: none;
  border: 0;
  padding: 0;
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  overflow: visible;
  flex-direction: row;
  justify-content: flex-start;
}

#header .nav-links a {
  color: var(--u-mut);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0;
}

#header .nav-links a:hover {
  color: var(--u-blue);
  background: none;
}

#header .nav-links a::after { display: none; }

/* the CTA, styled as a button exactly like the blog */
#header .nav-links .nav-cta {
  background: var(--u-blue);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 7px;
  font-weight: 600;
  margin: 0;
}

#header .nav-links .nav-cta:hover {
  background: #0052c9;
  color: #fff !important;
}

/* the old duplicate CTA + any stray header actions are gone */
#header .header-actions {
  display: none;
}

@media (max-width: 700px) {
  #header .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

#header .header-actions .btn,
#header .header-actions > a {
  display: none;
}

/* hamburger */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--u-navy);
  border-radius: 2px;
  transition: .22s;
  margin: 0 auto;
}

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

@media (max-width: 700px) {
  #header .logo img { height: 38px; }
  .menu-btn { display: flex; }

  #header .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--u-line);
    box-shadow: 0 12px 28px rgba(11, 31, 58, .10);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .22s ease;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    height: auto;
    width: 100%;
    z-index: 9000;
    visibility: visible;
  }

  #header .nav-links.open,
  body.menu-locked #header .nav-links {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  #header .nav-links a {
    padding: 14px 24px;
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  #header .nav-links .nav-cta {
    margin: 10px 24px 0;
    justify-content: center;
    border-radius: 8px;
  }

  /* no scrim, no body lock — matches blog behaviour */
  body.menu-locked::after { display: none; }
  body.menu-locked { overflow: auto; }
}

/* ---------------- FOOTER ---------------- */
footer {
  border-top: 1px solid var(--u-line);
  margin-top: 20px;
  background: var(--u-navy);
  color: #c6d4e4;
  padding: 0;
}

footer .wrap {
  max-width: 1080px;
  margin: 0 auto;
}

footer .f-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  padding: 48px 24px 36px;
  max-width: 1080px;
  margin: 0 auto;
}

footer .f-about .f-logo {
  display: inline-flex;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

footer .f-about .f-logo img {
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
}

footer .f-about p {
  font-size: 14.5px;
  color: #9fb3cc;
  max-width: 34ch;
  line-height: 1.65;
  margin: 0;
}

footer .f-col h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}

footer .f-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer .f-col li {
  margin-bottom: 10px;
  font-size: 14.5px;
  color: #9fb3cc;
  line-height: 1.55;
}

footer .f-col a {
  color: #c6d4e4;
  text-decoration: none;
}

footer .f-col a:hover { color: #fff; }

footer .f-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  padding: 20px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13.5px;
  color: #8ba2bf;
  max-width: 1080px;
  margin: 0 auto;
}

footer .f-bottom a {
  color: #c6d4e4;
  text-decoration: none;
}

footer .f-bottom a:hover { color: #fff; }

@media (max-width: 700px) {
  footer .f-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 34px 24px 26px;
  }
}


/* ---------- footer alignment corrections ---------- */
/* divider must share the content container's edges, not the footer's */
footer .f-bottom {
  padding-left: 24px;
  padding-right: 24px;
}

footer .f-grid,
footer .f-bottom {
  box-sizing: border-box;
}

/* "Hey We Market" was inheriting an accent style; match its siblings */
footer .f-col a.hwm {
  color: #c6d4e4;
  font-weight: inherit;
}
footer .f-col a.hwm:hover { color: #fff; }

/* uniform vertical rhythm across every column */
footer .f-col li,
footer .f-about p {
  margin-bottom: 10px;
}

/* contact items are links, make that visible */
footer .f-col a:hover { text-decoration: underline; }

/* a little more breathing room at the very bottom */
footer .f-bottom { padding-bottom: 40px; }


/* ---------- mobile drawer: full height, no page bleed ---------- */
@media (max-width: 700px) {
  #header .nav-links {
    height: calc(100dvh - 64px);
    max-height: calc(100dvh - 64px);
    padding: 8px 0 32px;
    justify-content: flex-start;
  }
  #header .nav-links .nav-cta {
    margin: auto 24px 8px;
  }
}
