/* ==================================================================
   fms-3d.css — FMS "3D ring" site style (v8, 2026-11-06)
   Loaded after shared-styles.css / shared-page.css. Adds:
   1) grid + glow behind the header and the page title band
   2) the rotating ring menu (built by fms-3d.js, desktop only)
   3) lion watermark fix: whole lion fits inside the title band
   ================================================================== */
:root{--fms-cyan:#5fd4ff;--fms-grid:rgba(95,212,255,.07)}

/* ---------- grid + glow backgrounds ---------- */
header.site-header,
.page-hero,
.hero,
.service-hero,
.fms-trust-band{
  background-image:
    radial-gradient(ellipse 60% 140% at 50% 120%, rgba(95,212,255,.16), transparent 70%),
    linear-gradient(var(--fms-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--fms-grid) 1px, transparent 1px);
  background-size:auto, 32px 32px, 32px 32px;
  background-color:var(--navy);
}
.page-hero{
  background-image:
    radial-gradient(1100px 480px at 82% -10%, rgba(200,155,60,.18), transparent 60%),
    radial-gradient(ellipse 50% 120% at 75% 130%, rgba(95,212,255,.14), transparent 70%),
    linear-gradient(var(--fms-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--fms-grid) 1px, transparent 1px);
  background-size:auto, auto, 32px 32px, 32px 32px;
}

/* ---------- lion watermark: fit the whole lion in the band ---------- */
.page-hero .navy-watermark,
.service-hero .navy-watermark,
.section-navy .navy-watermark{
  left:auto; right:4%; top:50%;
  height:calc(100% - 14px); max-height:420px; width:auto; max-width:60%;
  aspect-ratio:700/397;
  transform:translateY(-50%);
  background-position:right center;
  opacity:.1;
}

/* ---------- ring menu (desktop) ---------- */
nav.primary-nav.fms-ring{
  position:relative; display:block; flex:1 1 auto;
  width:auto; min-width:520px; max-width:720px; height:64px;
  overflow:visible; outline:none; margin:0 8px;
  -webkit-user-select:none; user-select:none;
}
nav.primary-nav.fms-ring .fms-ring-track{position:absolute; inset:0; transform-style:preserve-3d}
nav.primary-nav.fms-ring a{
  position:absolute; left:50%; top:50%;
  white-space:nowrap; padding:7px 14px; font-weight:700;
  background:#0b1a36; color:var(--on-navy); border:2px solid rgba(95,212,255,.35);
  transition:transform .6s cubic-bezier(.2,.8,.2,1), font-size .6s, opacity .4s, color .3s, background .3s, border-color .3s, box-shadow .3s;
}
nav.primary-nav.fms-ring a.fms-wrap{transition:opacity .3s}
nav.primary-nav.fms-ring a:hover{background:#13305c; border-color:var(--fms-cyan)}
nav.primary-nav.fms-ring a.active{background:#0b1a36; color:var(--on-navy)}
nav.primary-nav.fms-ring a.fms-center{
  opacity:1; background:#ffffff; color:var(--navy-strong); border-color:var(--gold); font-weight:800;
  box-shadow:0 0 18px rgba(232,200,115,.65), 0 0 44px rgba(95,212,255,.35);
}

/* swirling circles behind the centre item */
.fms-swirl{position:absolute; left:50%; top:50%; width:230px; height:84px; transform:translate(-50%,-50%);
  pointer-events:none; overflow:visible; z-index:0}
.fms-swirl ellipse{fill:none; vector-effect:non-scaling-stroke}
.fms-swirl .s1{stroke:rgba(232,200,115,.55); stroke-width:1.5; stroke-dasharray:6 7; animation:fmsDash 14s linear infinite}
.fms-swirl .s2{stroke:var(--fms-cyan); stroke-width:2; stroke-dasharray:90 260; stroke-linecap:round; opacity:.85; animation:fmsDash 3.2s linear infinite reverse}
.fms-swirl .s3{stroke:rgba(95,212,255,.35); stroke-width:1; stroke-dasharray:40 120; animation:fmsDash 6s linear infinite}
.fms-swirl .s4{stroke:rgba(232,200,115,.8); stroke-width:2; filter:drop-shadow(0 0 6px rgba(232,200,115,.8)); animation:fmsPulse 3s ease-in-out infinite}
.fms-swirl .dot-g{fill:#e8c873; filter:drop-shadow(0 0 5px #e8c873)}
.fms-swirl .dot-c{fill:var(--fms-cyan); filter:drop-shadow(0 0 5px var(--fms-cyan))}
@keyframes fmsDash{to{stroke-dashoffset:-700}}
@keyframes fmsPulse{0%,100%{opacity:.35}50%{opacity:.95}}

/* small arrows either side of the ring */
.fms-ring-arrow{position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:26px; height:26px; border-radius:50%; border:1px solid rgba(232,200,115,.6);
  background:rgba(11,26,54,.7); color:#e8c873; font:700 12px/24px system-ui; text-align:center;
  cursor:pointer; padding:0; opacity:.55; transition:opacity .2s, box-shadow .2s}
.fms-ring-arrow:hover{opacity:1; box-shadow:0 0 12px rgba(232,200,115,.7)}
.fms-ring-arrow.l{left:-6px}.fms-ring-arrow.r{right:-6px}

@media (prefers-reduced-motion:reduce){
  .fms-swirl *{animation:none!important}
  nav.primary-nav.fms-ring a{transition:opacity .2s}
}
@media (max-width:640px){
  .page-hero .navy-watermark,.service-hero .navy-watermark,.section-navy .navy-watermark{right:-6%; max-width:80%}
}

/* ==================================================================
   v3: one banner size for every homepage page (BP Center size),
   Leo behind the text, a badge in the same spot on every page
   ================================================================== */
.hero, .service-hero{min-height:368px; box-sizing:border-box}
.hero{padding:56px 0 44px}
.hero .container{max-width:1120px; padding-top:0; padding-bottom:0}
.hero .container > div{max-width:none}
.hero h1{font-size:clamp(1.9rem,3.4vw,2.7rem); max-width:22ch; margin-bottom:.3em}
.hero .hero-ctas{margin-top:14px}
.hero .hero-ctas .btn{padding:10px 20px; font-size:.9rem}

/* Leo: big, behind the headline */
.hero .navy-watermark,
.service-hero .navy-watermark{
  left:max(0px, calc(50% - 560px + 40px)); right:auto; top:50%;
  height:94%; max-height:360px; width:auto; max-width:92%;
  aspect-ratio:700/397; transform:translateY(-50%);
  background-position:left center; opacity:.1;
}

/* badge for pages that had none (same box as BP Center / US Tax Express) */
.brand-wordmark-fms{font-size:clamp(1.5rem,3vw,2.1rem)}
.brand-wordmark-fms .f{color:var(--bp-gold,#F5B921); -webkit-text-stroke:1.8px #000; paint-order:stroke}
.brand-wordmark-fms .w{color:#fff; -webkit-text-stroke:1.8px #000; paint-order:stroke; font-style:italic}

/* home: intro text + trust icons moved to a slim band under the banner */
.fms-trust-band{color:var(--on-navy); border-top:1px solid rgba(95,212,255,.18)}
.fms-trust-band .container{padding-top:22px; padding-bottom:22px; max-width:1120px}
.fms-trust-band p.lead{color:var(--on-navy); opacity:.88; font-size:1.02rem; margin:0 0 14px; max-width:none}
.fms-trust-band .trust-strip{margin-top:0; padding-top:0; border-top:0}

@media (max-width:860px){
  .hero, .service-hero{min-height:0}
  .hero{padding:40px 0 36px}
  .hero .navy-watermark, .service-hero .navy-watermark{left:auto; right:-10%; max-width:110%}
}

/* ---------- v8: phone-size ring (replaces the ☰ menu) ---------- */
@media (max-width:920px){
  header.site-header.fms-has-ring .nav-toggle{display:none}
  header.site-header.fms-has-ring .container{flex-wrap:wrap; row-gap:4px; padding-bottom:6px}
  nav.primary-nav.fms-ring{
    display:block!important; position:relative!important; left:auto; right:auto; top:auto;
    order:3; flex:1 1 100%; width:100%; min-width:0; max-width:none; height:56px;
    margin:0; padding:0; background:transparent; box-shadow:none; flex-direction:row;
  }
  nav.primary-nav.fms-ring a{padding:5px 10px}
  .fms-ring-arrow{z-index:20}
  .fms-swirl{width:190px; height:70px}
  .fms-ring-arrow.l{left:2px}.fms-ring-arrow.r{right:2px}
}
