/* sitenav.css - the top bar on the public pages (home and for accountants): stays on screen, and folds into a menu on phones. */

/* The nav stays on screen. style.css sets overflow-x: hidden on html/body,
   which quietly turns body into its own scroll box and stops sticky from
   working - clip does the same job without that side effect. */
html, body { overflow-x: hidden; overflow-x: clip; }
.landing-body .topnav { position: sticky; top: 0; z-index: 60; }
[id] { scroll-margin-top: 72px; }
.nav-cta { margin-left: 6px; }

.navmenu { display: none; position: relative; margin-left: 6px; }
.navmenu summary {
  list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 10px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.navmenu summary::-webkit-details-marker { display: none; }
.navmenu summary span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .18s, opacity .18s; }
.navmenu[open] summary { background: rgba(255, 255, 255, .1); }
.navmenu[open] summary span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navmenu[open] summary span:nth-child(2) { opacity: 0; }
.navmenu[open] summary span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.navmenu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px;
  background: var(--deep, #083f3a); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35); display: flex; flex-direction: column;
}
.navlinks .navmenu-panel a { padding: 12px 14px; font-size: 15px; border-radius: 9px; color: #fff; }

@media (max-width: 900px) {
  .landing-body .navlinks { overflow: visible; -webkit-mask-image: none; mask-image: none; flex: 0 0 auto; margin-left: auto; }
  .landing-body .nav-desk { display: none; }
  .navmenu { display: block; }
  .landing-body .nav-cta { padding: 8px 14px; font-size: 13.5px; }
}

.navmenu-panel hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin: 6px 8px; }

/* ---- Current page only ----------------------------------------------------
   The finder link used to be mint on every page. Now nothing is highlighted
   except the page you're on, marked with aria-current="page". */
.landing-body .navlinks .navlink-tool { color: var(--on-dark); }
.landing-body .navlinks a[aria-current="page"] {
  color: var(--mint, #7ff0dc);
  background: rgba(127, 240, 220, .12);
}
.landing-body .navlinks a.nav-desk { white-space: nowrap; }
.navlinks .navmenu-panel a[aria-current="page"] { background: rgba(127, 240, 220, .12); color: var(--mint, #7ff0dc); }
.landing-body .topnav .brand { text-decoration: none; }

/* Laptops: seven items get tight, so trim the padding before anything wraps. */
@media (min-width: 901px) and (max-width: 1100px) {
  .landing-body .navlinks a.nav-desk { padding-left: 8px; padding-right: 8px; font-size: 13.5px; }
}

/* The wordmark stays next to the icon on phones too (style.css hides it on
   small screens for the app's crowded bar; the public bar has room). */
.landing-body .brand .brand-word { display: inline !important; }

/* ---- Footer ---------------------------------------------------------------- */
.landing-footer .brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; text-decoration: none; }
.landing-footer-links { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; column-gap: 18px; }
.landing-footer-links a { white-space: nowrap; }

@media (max-width: 700px) {
  .landing-footer-inner { display: block; }
  .landing-footer .brand { margin-bottom: 18px; }
  /* Two tidy columns - no link breaks across lines, and none falls off. */
  .landing-footer-links {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px; margin: 0;
  }
  .landing-footer-links a { display: block; padding: 8px 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
  .landing-footer-copy { margin-top: 18px; }
  .landing-footer-legal { text-align: left; margin: 12px 0 0; }
}

/* ---- For accountants: buttons under the opening paragraph ------------------ */
.acct-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0 0; }
@media (max-width: 560px) { .acct-hero-cta .btn { width: 100%; text-align: center; } }
