/* ==========================================================================
   PayHouse shared navigation: the liquid glass bar used on every page.
   Self-contained so it looks the same on top of any page's own stylesheet.
   ========================================================================== */
.lg-nav {
  --ink: #121d19; --text: #121d19; --text-on-dark: #eef4f1;
  --accent: #2ba484; --accent-hover: #35b893;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  font-family: "Inter", system-ui, -apple-system, sans-serif; line-height: 1.4;
}
.lg-nav, .lg-nav *, .lg-nav *::before, .lg-nav *::after { box-sizing: border-box; }
.lg-nav a { color: inherit; text-decoration: none; }
.lg-nav button { cursor: pointer; }
.lg-logo img { display: block; max-width: none; }
.lg-cta { border: 0; }

.lg-nav {
  position: fixed; top: 14px; left: 50%; z-index: 50; translate: -50% 0;
  width: min(1120px, calc(100% - 24px)); height: 64px; padding: 0 8px 0 22px;
  display: flex; align-items: center; gap: 18px; border-radius: 999px; isolation: isolate;
  color: var(--text-on-dark);
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03));
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -1px 1px rgba(255, 255, 255, .08),
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    inset 0 -14px 24px -16px rgba(127, 240, 200, .25),
    0 18px 50px -18px rgba(0, 0, 0, .55);
  transition: color .35s ease, background .35s ease, box-shadow .35s ease, height .3s ease, top .3s ease;
}
/* refraction layer: bends what's behind the glass where the browser allows it */
.lg-nav::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
html.lg-refract .lg-nav { backdrop-filter: url(#lg-refract) blur(14px) saturate(180%); }
/* specular highlight that follows the pointer */
.lg-nav::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px 80px at var(--mx, 30%) 0%, rgba(255, 255, 255, .28), transparent 70%);
  mix-blend-mode: soft-light; opacity: .9;
}
.lg-nav.scrolled { top: 10px; height: 58px; }
.lg-nav.on-light {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .34));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 1px rgba(18, 29, 25, .06),
    inset 0 0 0 1px rgba(18, 29, 25, .08),
    inset 0 -14px 24px -16px rgba(43, 164, 132, .22),
    0 18px 50px -20px rgba(18, 29, 25, .35);
}
.lg-logo { display: grid; }
.lg-logo img { grid-area: 1 / 1; height: 28px; width: auto; transition: opacity .35s ease; }
.lg-logo .logo-light, .lg-nav.on-light .logo-dark { opacity: 0; }
.lg-nav.on-light .logo-light { opacity: 1; }

.lg-links { position: relative; display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.lg-links a { position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; opacity: .86; transition: opacity .2s ease; }
.lg-links a:hover, .lg-links a.on { opacity: 1; }
/* the lens: a droplet of glass that slides to the hovered link */
.lg-lens {
  position: absolute; top: 50%; left: 0; height: 40px; width: 0; translate: var(--lx, 0) -50%; border-radius: 999px; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 -6px 12px -6px rgba(127, 240, 200, .45), 0 6px 18px -8px rgba(0, 0, 0, .5);
  transition: translate .55s cubic-bezier(.3, 1.45, .45, 1), width .55s cubic-bezier(.3, 1.45, .45, 1), opacity .25s ease, scale .3s ease;
}
.lg-lens.show { opacity: 1; }
.lg-lens.squish { scale: 1.12 .86; }
.lg-nav.on-light .lg-lens { background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .55)); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(18, 29, 25, .08), inset 0 -6px 12px -6px rgba(43, 164, 132, .35), 0 6px 16px -8px rgba(18, 29, 25, .3); }

.lg-cta { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: var(--ink); font-family: var(--font-display); font-stretch: 112%; font-weight: 650; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 20px -8px rgba(43, 164, 132, .8); transition: background .2s ease; }
.lg-cta:hover { background: var(--accent-hover); }
.lg-menu, .lg-sheet { display: none; }

@media (max-width: 1000px) {
  .lg-links { display: none; }
  .lg-cta { margin-left: auto; }
  .lg-menu { display: grid; place-items: center; gap: 5px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); align-content: center; }
  .lg-nav.on-light .lg-menu { background: rgba(18, 29, 25, .06); }
  .lg-menu i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s ease; }
  .lg-menu[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .lg-menu[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .lg-sheet { position: absolute; left: 0; right: 0; top: calc(100% + 10px); display: grid; gap: 2px; padding: 10px; border-radius: 26px; color: var(--text-on-dark); background: rgba(18, 29, 25, .82); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -20px rgba(0, 0, 0, .6); opacity: 0; translate: 0 -8px; pointer-events: none; transition: opacity .25s ease, translate .3s cubic-bezier(.2, .8, .2, 1); }
  .lg-nav.open .lg-sheet { opacity: 1; translate: 0 0; pointer-events: auto; }
  .lg-sheet a { padding: 14px 16px; border-radius: 16px; font-size: 17px; font-weight: 500; }
  .lg-sheet a:hover { background: rgba(255, 255, 255, .07); }
  .lg-sheet .lg-sheet-cta { margin-top: 6px; text-align: center; background: var(--accent); color: var(--ink); font-weight: 650; }
  .lg-sheet button.lg-sheet-cta { border: 0; width: 100%; padding: 14px 16px; border-radius: 16px; font-family: inherit; font-size: 17px; }
}
@media (max-width: 640px) {
  .lg-nav { height: 58px; padding-left: 16px; gap: 8px; top: 10px; }
  .lg-logo img { height: 24px; }
  .lg-cta { height: 42px; padding: 0 14px; font-size: 12.5px; }
  .lg-cta svg { display: none; }
  .lg-menu { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .lg-lens { transition: none; } }
