/* =====================================================================
   CDS & Co.  ·  global.css  —  site-wide layer for the designed pages
   ---------------------------------------------------------------------
   Loaded on every designed page AFTER the page's own file (assets/css/pages/<page>.css),
   so a rule here applies on every page at once and wins over the page designs.
   Put site-wide changes here (nav behaviour, buttons, FAQ, footer …); change one page in its page file.

   [G1] Floating nav (cds.js [J13])
   [G2] Client website frame at laptop width (cds.js [J11])
   [G3] Outcome sections: sticky text column
   [G4] FAQ dropdown motion (cds.js [J14])
   [G5] Smoother scrolling (lighter effects)
   [G6] Astra leftovers hidden on designed pages
   [G7] Phone menu panel is solid (no page text showing through)
   ===================================================================== */
/* [G1] Floating nav: a copy of the nav that slides back in on a small scroll up (cds.js [J13]).
   Translucent glass over the page; over white sections it switches to the light version (dark logo and text). */
.navf{position:fixed!important;top:12px!important;left:0;right:0;margin:0 auto!important;z-index:999;transform:translateY(-160%);opacity:0;pointer-events:none;
  transition:transform .35s cubic-bezier(.2,.7,.2,1),opacity .25s,background-color .3s,border-color .3s;
  background:rgba(13,16,89,.55)!important;border:1px solid rgba(255,255,255,.18)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.3)!important;backdrop-filter:blur(18px) saturate(1.3)!important;box-shadow:0 14px 40px -20px rgba(0,0,0,.45)!important}
.navf.show{transform:none;opacity:1;pointer-events:auto}
.navf.nlt{background:rgba(255,255,255,.7)!important;border-color:rgba(19,24,112,.1)!important;box-shadow:0 14px 40px -24px rgba(19,24,112,.35)!important}
.navf.nlt ul a{color:#5f6075}
.navf.nlt ul a:hover,.navf.nlt ul a[aria-current]{color:#222}
.navf.nlt ul.sub{background:rgba(255,255,255,.98);border-color:rgba(19,24,112,.1)}
.navf.nlt .mb{border-color:rgba(19,24,112,.16);background:rgba(255,255,255,.6);color:#222}
@media(max-width:900px){.navf.nlt #menu,.navf.nlt ul{background:#fff;border-color:rgba(19,24,112,.1)}}
.admin-bar .navf{top:44px!important}
/* [G2] Client website frame: the site is shown at laptop width (1440 px) and scaled to fit, with space on both sides (cds.js [J11]) */
.cds-design .site{width:100%;max-width:1040px;justify-self:center;margin-left:auto;margin-right:auto}
.cds-design .view{height:auto!important;aspect-ratio:16/10;overflow:hidden}
.cds-design .view iframe{inset:auto!important;left:0!important;top:0!important;width:1440px!important;height:900px!important;transform:scale(var(--vs,.72));transform-origin:0 0}
/* [G3] Outcome: the text column stays in view while the screenshots scroll past */
@media(min-width:901px){.cds-design .gr>.pts{position:sticky;top:110px;align-self:start}}
/* [G4] FAQ open and close animate (cds.js [J14]) */
.cds-design details{overflow:hidden}
/* [G5] Smoother scrolling: big blurred glows are drawn once on their own layer; cards no longer blur what is
   behind them (the backgrounds are smooth gradients, so it looks the same); reveal motion is lighter. */
.cds-design .glow{will-change:transform;transform:translateZ(0)}
.cds-design .gl,.cds-design .lg,.cds-design .tile,.cds-design .card,.cds-design details{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.cds-design .rv{transition-duration:.6s!important;transform:translateY(16px)}
.cds-design .rv.in{transform:none}
@media(prefers-reduced-motion:reduce){.cds-design .rv{transform:none;transition:none!important}.navf{transition:none}}
/* [G6] Astra's "Scroll to top" link has no styles on designed pages */
.cds-design #ast-scroll-top{display:none!important}

/* [G7] Phone menu panel: solid background so the page does not show through the open menu */
@media(max-width:900px){
  .nav #menu{background:#0a0c28!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  .nav.lt #menu,.navf.nlt #menu{background:#fff!important}
}

/* [G8] Speed: the first screen (hero) is shown at once instead of fading in after cds.js runs.
   The fade hid the H1 until the script loaded, which made Largest Contentful Paint slow on phones.
   Sections further down still fade in on scroll. Hero wrappers: .hero (most pages), .hw (home), .ah (blog posts). */
.cds-design .hero .rv,.cds-design .hw .rv,.cds-design .ah .rv{opacity:1!important;transform:none!important;transition:none!important}
