/* ==========================================================================
   SURFLIX APP — SITE CHROME  (shared nav + dropdown + page frame)
   Loaded on every page AFTER style.css. Gives the whole site one clean,
   modern navigation bar (dark navy, Wealth-Post-style dropdowns) and a
   consistent framed page shell. Namespaced `sx-` so nothing collides.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1 · NAVIGATION  — clean, sticky, dark navy with dropdown menus
   --------------------------------------------------------------------------- */

.sx-nav {
  position: sticky; top: 0; z-index: 300;
  background: rgba(10,17,32,.92);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sx-nav__in {
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 22px; height: 72px;
}

/* logo */
.sx-logo {
  display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0;
  color: #fff; font-family: var(--font-display,"Poppins",sans-serif);
  font-size: 1.2rem; font-weight: 800; letter-spacing: -.022em;
}
.sx-logo:hover { text-decoration: none; }
.sx-logo em {
  font-style: normal;
  background: linear-gradient(96deg,#7fe3ff,#22bdf1);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sx-logo svg { width: 38px; height: 38px; flex-shrink: 0; }

/* menu — pushed to the far right of the bar */
.sx-menu {
  display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0;
}
.sx-menu > li { position: relative; }
.sx-menu > li > a,
.sx-menu > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-body,"Plus Jakarta Sans",sans-serif);
  font-size: .96rem; font-weight: 700; letter-spacing: -.005em;
  color: #ffffff; border-radius: 10px;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.sx-menu > li > a:hover,
.sx-menu > li > button:hover,
.sx-menu > li.sx-open > button { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.sx-menu > li > a.sx-active { color: #fff; }
.sx-menu > li > a.sx-active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px;
  background: linear-gradient(90deg,#7fe3ff,#22bdf1); border-radius: 2px;
}
.sx-caret { width: 14px; height: 14px; transition: transform .2s var(--ease); opacity: .8; }
.sx-menu > li.sx-open .sx-caret { transform: rotate(180deg); }

/* dropdown */
.sx-drop {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 244px; padding: 8px; margin: 0; list-style: none;
  background: #0f1c30; border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; box-shadow: 0 24px 50px -18px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.sx-drop::before {
  content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.sx-menu > li:hover .sx-drop,
.sx-menu > li.sx-open .sx-drop {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.sx-drop a {
  display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 11px;
  color: rgba(233,241,250,.9); transition: background .14s var(--ease);
}
.sx-drop a:hover { background: rgba(34,189,241,.14); text-decoration: none; }
.sx-drop a b { font-size: .92rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.sx-drop a span { font-size: .78rem; color: rgba(233,241,250,.55); line-height: 1.4; }
.sx-drop__all { margin-top: 4px; border-top: 1px solid rgba(255,255,255,.1); }
.sx-drop__all b { color: #7fe3ff !important; }

/* cta + burger */
.sx-nav__cta {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--r-pill,999px);
  background: linear-gradient(103deg,#7fe3ff,#22bdf1 55%,#0fa2d8);
  color: #052232; font-family: var(--font-display,"Poppins",sans-serif);
  font-size: .92rem; font-weight: 700;
  box-shadow: 0 10px 24px -10px rgba(34,189,241,.6);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.sx-nav__cta:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 16px 30px -12px rgba(34,189,241,.8); }

.sx-burger {
  display: none; flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05);
  cursor: pointer; padding: 0; place-items: center;
}
.sx-burger svg { width: 22px; height: 22px; stroke: #fff; }

/* ---------------------------------------------------------------------------
   2 · MOBILE
   --------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .sx-nav__cta { display: none; }
  .sx-burger { display: grid; margin-left: auto; }
  .sx-menu {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; margin: 0; padding: 14px 20px 22px;
    background: #0b1424; border-bottom: 1px solid rgba(255,255,255,.1);
    max-height: calc(100vh - 72px); overflow-y: auto;
    transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .sx-nav.sx-nav--open .sx-menu { transform: none; opacity: 1; visibility: visible; }
  .sx-menu > li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.07); }
  .sx-menu > li > a, .sx-menu > li > button { width: 100%; justify-content: space-between; padding: 15px 6px; border-radius: 0; font-size: 1.02rem; }
  .sx-drop {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; background: none; border: 0; box-shadow: none; padding: 0 0 10px 10px;
    max-height: 0; overflow: hidden; transition: max-height .26s var(--ease);
  }
  .sx-menu > li.sx-open .sx-drop { max-height: 520px; }
  .sx-drop::before { display: none; }
  .sx-drop a { padding: 10px 12px; }
}

/* ---------------------------------------------------------------------------
   3 · PAGE FRAME  — the floating framed shell (the look from the contact page)
   Applies a soft dark-edged white sheet on the grey ground, consistently.
   --------------------------------------------------------------------------- */

.sx-pagehero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% -20%, rgba(34,189,241,.16), transparent 60%),
    linear-gradient(180deg,#0b1424,#0a1120);
  color: #eaf2f9; padding: 70px 0 118px; text-align: center;
}
.sx-pagehero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent);
}
.sx-pagehero > * { position: relative; z-index: 2; }
.sx-pagehero .sx-eyebrow { justify-content: center; color: #7fe3ff; }
.sx-pagehero h1 {
  font-family: var(--font-display,"Poppins",sans-serif); font-weight: 800;
  font-size: clamp(2.2rem,4.6vw,3.4rem); letter-spacing: -.03em; line-height: 1.08;
  margin: 14px auto 0; max-width: 18ch; color: #fff;
}
.sx-pagehero h1 .sx-grad { background: linear-gradient(100deg,#9deaff,#22bdf1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sx-pagehero p { margin: 18px auto 0; max-width: 60ch; font-size: 1.06rem; line-height: 1.66; color: rgba(220,234,246,.76); }

.sx-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan-deep,#0a7095);
}
.sx-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg,#7fe3ff,#22bdf1); }

/* framed sheet that overlaps the hero */
.sx-frame {
  position: relative; z-index: 5;
  width: 100%; max-width: 1120px; margin: -72px auto 40px; padding: 0 24px;
}
.sx-sheet {
  background: #fff; border: 1px solid var(--hair,#dde5ee);
  border-radius: 24px; box-shadow: 0 2px 6px rgba(13,21,36,.05), 0 30px 60px -30px rgba(13,21,36,.35);
  padding: 52px clamp(24px,5vw,60px);
}
.sx-sheet--pad0 { padding: 0; overflow: hidden; }

/* ---------------------------------------------------------------------------
   4 · FOOTER refinements (keeps existing .footer, tightens links)
   --------------------------------------------------------------------------- */
.footer .footer-legal-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
