/* LocalSwarm.ai — chrome: fixed header (top bar + nav), mobile menu dialog, footer. Class prefix: site- */

/* ---------- Local tokens ---------- */
.site-header,
.site-menu,
.site-footer {
  --site-mark: #253662;                    /* logo navy (mark + wordmark) */
  --site-ai-light: #6C9BFF;                /* ".AI" on dark: glow-blue lifted for contrast */
  --site-rule-yellow: rgba(247, 198, 0, .45);
  --site-hairline-dark: rgba(255, 255, 255, .08);
}

/* =========================================================
   Header shell
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}

/* ---------- Top bar (the whole bar is one link) ---------- */
.site-topbar {
  display: flex; align-items: center; justify-content: center;
  height: var(--bar-h); padding: 0 var(--gutter); overflow: hidden;
  background-color: var(--ink); color: var(--on-dark-2);
  border-bottom: 1px solid var(--site-rule-yellow);
  font: 600 13px/1.2 var(--f-label); letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s, color .25s;
}
.site-topbar:hover {
  color: var(--on-dark);
  background-image: linear-gradient(rgba(247, 198, 0, .05), rgba(247, 198, 0, .05));
}
.site-topbar:focus-visible { outline-offset: -4px; }
.site-topbar__inner { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.site-topbar__pill { flex-shrink: 0; gap: 5px; padding: 2px 9px 2px 7px; }
.site-topbar__dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink); flex-shrink: 0;
  animation: dotPulse 2.4s ease-in-out 6;   /* settles after ~15 s: the header is always on screen */
}
.site-topbar__text { min-width: 0; }
.site-topbar__lead { color: var(--on-dark); }
.site-topbar__arrow {
  display: inline-block; margin-left: 8px; color: var(--yellow);
  transition: transform .25s var(--ease-out);
}
.site-topbar:hover .site-topbar__arrow,
.site-topbar:focus-visible .site-topbar__arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.site-nav {
  height: var(--nav-h);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(11, 14, 26, .06), 0 10px 30px -18px rgba(11, 14, 26, .26);
  transition: box-shadow .3s var(--ease-out);
}
.site-header.is-scrolled .site-nav {
  box-shadow: 0 1px 0 rgba(11, 14, 26, .08), 0 16px 36px -18px rgba(11, 14, 26, .38);
}
.site-nav__inner {
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 24px;
}
.site-nav a:focus-visible,
.site-nav button:focus-visible { outline-color: var(--navy); }

/* Logo: hex mosquito mark + stacked Orbitron wordmark */
.site-logo {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--site-mark); text-decoration: none;
}
.site-logo:focus-visible { outline-offset: 6px; }
.site-logo__mark { width: 35px; height: 40px; flex-shrink: 0; }
.site-logo__word { display: flex; flex-direction: column; gap: 5px; }
.site-logo__name {
  font: 800 18px/1 var(--f-code); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  color: var(--site-mark);
}
.site-logo__ai { color: var(--glow-blue); }
.site-logo__swarm { color: var(--yellow); }   /* "Swarm" in the brand yellow */
.site-logo__tag {
  font: 700 8px/1 var(--f-code); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: rgba(37, 54, 98, .45);
}
.site-logo--light,
.site-logo--light .site-logo__name { color: var(--on-dark); }
.site-logo--light .site-logo__ai { color: var(--site-ai-light); }
.site-logo--light .site-logo__tag { color: rgba(255, 255, 255, .45); }

/* Centered links */
.site-nav__links { justify-self: center; display: flex; align-items: center; gap: 34px; }
.site-nav__link,
.site-nav__login {
  position: relative; display: block; padding: 8px 0 7px;
  font: 400 20px/1 var(--f-display-2); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  color: var(--navy); text-decoration: none;
  transition: color .2s;
}
.site-nav__link::after,
.site-nav__login::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--yellow);
  transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform .28s var(--ease-out);
}
.site-nav__link:hover,
.site-nav__link.is-active,
.site-nav__login:hover { color: var(--ink); }
.site-nav__link:hover::after,
.site-nav__link.is-active::after,
.site-nav__login:hover::after { transform: scaleX(1); }

/* Right side: login + full-height yellow block */
.site-nav__actions {
  justify-self: end; align-self: stretch;
  display: flex; align-items: center; gap: 28px;
}
.site-nav__cta {
  align-self: stretch;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 32px;
  background: var(--yellow); color: var(--ink);
  font: 700 18px/1 var(--f-label); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s;
}
.site-nav__cta::after {
  content: '→'; font-size: 1.15em;
  transition: transform .2s var(--ease-out);
}
.site-nav__cta:hover { background: var(--yellow-dark); }
.site-nav__cta:hover::after { transform: translateX(3px); }
.site-nav .site-nav__cta:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; }

/* Hamburger (mobile only) */
.site-burger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -11px;
  color: var(--navy);
}
.site-burger__bars { position: relative; display: block; width: 22px; height: 14px; }
.site-burger__bars span {
  position: absolute; right: 0; width: 22px; height: 2px; background: currentColor;
  transition: width .25s var(--ease-out);
}
.site-burger__bars span:nth-child(1) { top: 0; }
.site-burger__bars span:nth-child(2) { top: 6px; width: 14px; }
.site-burger__bars span:nth-child(3) { top: 12px; }
.site-burger:hover .site-burger__bars span:nth-child(2) { width: 22px; }

/* Tight desktop widths: keep the three groups on one row without crowding */
@media (max-width: 1140px) {
  .site-nav__links { gap: 24px; }
  .site-nav__link,
  .site-nav__login { font-size: 19px; letter-spacing: .04em; }
  .site-nav__actions { gap: 20px; }
  .site-nav__cta { padding: 0 24px; }
}
@media (max-width: 1024px) {
  .site-nav__links { gap: 18px; }
  .site-nav__link,
  .site-nav__login { font-size: 18px; }
  .site-nav__actions { gap: 16px; }
  .site-nav__cta { padding: 0 20px; }
  .site-nav__cta::after { display: none; }
}

/* =========================================================
   Mobile header (≤900px): 44px bar (two lines allowed) + 54px nav
   ========================================================= */
@media (max-width: 900px) {
  .site-topbar { font-size: 12px; line-height: 1.25; letter-spacing: .04em; }
  .site-topbar__inner { gap: 10px; }

  .site-nav__inner { grid-template-columns: 1fr auto; column-gap: 12px; }
  .site-nav__links,
  .site-nav__login { display: none; }
  .site-nav__actions { align-self: center; gap: 8px; }
  .site-nav__cta {
    align-self: center; height: 36px; padding: 0 14px;
    font-size: 15px; letter-spacing: .08em;
  }
  .site-nav__cta::after,
  .site-nav__cta-long { display: none; }
  .site-nav .site-nav__cta:focus-visible { outline-offset: 3px; outline-color: var(--navy); }
  .site-burger { display: inline-flex; }

  .site-nav .site-logo,
  .site-menu__head .site-logo { gap: 9px; }
  .site-nav .site-logo__mark,
  .site-menu__head .site-logo__mark { width: 26px; height: 30px; }
  .site-nav .site-logo__word,
  .site-menu__head .site-logo__word { gap: 4px; }
  .site-nav .site-logo__name,
  .site-menu__head .site-logo__name { font-size: 15px; }
  .site-nav .site-logo__tag,
  .site-menu__head .site-logo__tag { font-size: 7px; letter-spacing: .1em; }
}
@media (max-width: 379px) {
  .site-nav .site-logo__tag,
  .site-menu__head .site-logo__tag { display: none; }
}
/* The wordmark is 13 letters: one step smaller at the two tightest widths, so it clears the first
   nav link just above the breakpoint and the Book button on the smallest phones. */
@media (min-width: 901px) and (max-width: 960px) {
  .site-nav .site-logo__name { font-size: 16px; }
}
@media (max-width: 359px) {
  .site-nav .site-logo__name,
  .site-menu__head .site-logo__name { font-size: 13px; }
}

/* =========================================================
   Mobile menu dialog
   ========================================================= */
html.site-scroll-lock { overflow: hidden; }

.site-menu {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  background: var(--navy-3); color: var(--on-dark);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  opacity: 0; pointer-events: none;
  transition: opacity .24s var(--ease-out);
}
.site-menu[hidden] { display: none; }
.site-menu.is-open { opacity: 1; pointer-events: auto; }
.site-menu > .bp-grid { position: fixed; }     /* the paper stays put if the menu scrolls */
.site-menu__strip,
.site-menu__head,
.site-menu__nav,
.site-menu__foot { position: relative; z-index: 1; }

/* Mirrors the header geometry so the close button lands exactly where the hamburger was */
.site-menu__strip {
  flex-shrink: 0; display: flex; align-items: center;
  min-height: var(--bar-h); padding: 0 var(--gutter);
  background: var(--ink); border-bottom: 1px solid var(--site-rule-yellow);
}
.site-menu__code { color: rgba(255, 255, 255, .5); font-size: 10px; letter-spacing: .26em; }
.site-menu__head {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--nav-h); padding: 0 var(--gutter);
  border-bottom: 1px solid var(--site-hairline-dark);
}
.site-menu__close {
  position: relative; flex-shrink: 0;
  width: 44px; height: 44px; margin-right: -11px;
  color: var(--on-dark);
  transition: color .2s;
}
.site-menu__close:hover { color: var(--yellow); }
.site-menu__x::before,
.site-menu__x::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 22px; height: 2px; margin: -1px 0 0 -11px;
  background: currentColor;
}
.site-menu__x::before { transform: rotate(45deg); }
.site-menu__x::after { transform: rotate(-45deg); }

.site-menu__nav { flex: 1 0 auto; padding: 28px var(--gutter) 12px; }
.site-menu__link {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 0 13px;
  border-bottom: 1px solid var(--site-hairline-dark);
  font: 400 32px/1 var(--f-display-2); letter-spacing: .03em; text-transform: uppercase;
  color: var(--on-dark); text-decoration: none;
  transition: color .2s;
}
.site-menu__item:first-child .site-menu__link { border-top: 1px solid var(--site-hairline-dark); }
.site-menu__num { flex: 0 0 30px; color: rgba(247, 198, 0, .8); font-size: 10px; letter-spacing: .16em; }
.site-menu__label { flex: 1 1 auto; min-width: 0; }
.site-menu__arrow {
  flex-shrink: 0; color: var(--yellow);
  font: 600 22px/1 var(--f-label);
  opacity: .55; transition: transform .25s var(--ease-out), opacity .2s;
}
.site-menu__link:hover .site-menu__arrow,
.site-menu__link.is-active .site-menu__arrow { opacity: 1; transform: translateX(4px); }
.site-menu__link:hover,
.site-menu__link.is-active { color: var(--yellow); }

.site-menu__foot { flex-shrink: 0; padding: 16px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); }
.site-menu__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
  margin-top: 22px;
}
.site-menu__note {
  font: 600 12px/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-2);
}

/* Entrance: rows settle in sequence; on close everything fades together */
.site-menu__item {
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-out);
}
.site-menu.is-open .site-menu__item {
  opacity: 1; transform: none;
  transition-delay: calc(70ms + var(--i, 0) * 40ms);
}

@media (min-width: 601px) {
  .site-menu__nav { padding-top: 40px; }
  .site-menu__link { padding: 18px 0 16px; }
  .site-menu__foot .btn { max-width: 420px; }
}
@media (min-width: 901px) {
  .site-menu { display: none !important; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--ink-2); color: var(--on-dark-2);
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding-top: 88px;
}
.site-footer__bp {   /* the grid fades in toward the bottom of the sheet */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .15) 0%, #000 75%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .15) 0%, #000 75%);
}
.site-footer__inner { position: relative; z-index: 1; }

.site-footer__top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.7fr); gap: 56px;
  padding-bottom: 64px;
}
.site-footer__brand .site-logo { display: flex; width: -moz-fit-content; width: fit-content; margin-bottom: 22px; }
.site-footer__pitch { max-width: 330px; font-size: 15px; line-height: 1.7; color: var(--on-dark-3); }

.site-footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.site-footer__title {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font: 700 11px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-3);
}
.site-footer__title::before { content: ''; width: 16px; height: 2px; background: var(--yellow); flex-shrink: 0; }
.site-footer__list { display: grid; gap: 13px; }
.site-footer__link {
  font-size: 15px; line-height: 1.35; color: rgba(255, 255, 255, .72); text-decoration: none;
  transition: color .2s;
}
.site-footer__link:hover { color: var(--yellow); }
.site-footer__cta { margin-top: 26px; }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.site-footer__copy,
.site-footer__legal-link {
  font: 600 13px/1.4 var(--f-label); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5);   /* the reference's 30% fails contrast; 50% clears 4.5:1 on --ink-2 */
}
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; }
.site-footer__legal li + li::before { content: '·'; margin: 0 12px; color: rgba(255, 255, 255, .3); }
.site-footer__legal-link { text-decoration: none; transition: color .2s; }
.site-footer__legal-link:hover { color: var(--yellow); }

/* The ghost wordmark was retired (it rendered as clipped hairlines). Kept hidden in case an
   index.html assembled before the change still carries the element. */
.site-footer__wordmark { display: none !important; }

@media (max-width: 1179px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .site-footer__brand {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px;
  }
  .site-footer__brand .site-logo { margin-bottom: 0; }
  .site-footer__pitch { max-width: 520px; }
}
@media (max-width: 900px) {
  .site-footer { padding-top: 64px; }
  .site-footer__brand { display: block; }
  .site-footer__brand .site-logo { margin-bottom: 18px; }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .site-footer { padding-top: 56px; }
  .site-footer__top { gap: 40px; padding-bottom: 48px; }
  .site-footer__nav { gap: 36px 20px; }
  .site-footer__col--account { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Reduced motion, forced colors, print
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .site-menu__item { transform: none; }
  .site-menu.is-open .site-menu__item { transition-delay: 0s; }
}

@media (forced-colors: active) {
  .site-topbar { border-bottom-color: CanvasText; }
  .site-nav { border-bottom: 1px solid CanvasText; }
  .site-nav__cta { border: 1px solid ButtonText; }
  .site-nav__link::after,
  .site-nav__login::after,
  .site-footer__title::before { forced-color-adjust: none; background: Highlight; }
}

@media print {
  .site-header { position: static; }
  .site-topbar, .site-burger, .site-menu, .site-footer__bp { display: none !important; }
}
