/*
  The MyAssetsConsolidation.com -> Fouress Finserv rename:
  - "Formerly MyAssetsConsolidation.com" under the header logo (header.php)
  - the one-time intro played by assets/js/fouress-intro.js
  Delete the line in header.php when the old name is no longer needed.
*/

/* Under the logo: the same width as the logo, so the two read as one unit */
.header-main .navbar-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.fs-formerly {
  display: block;
  font: 500 10.8px/1 var(--rv-body-font, "Poppins"), sans-serif;
  color: #5f6866;
  white-space: nowrap;
}
.fs-formerly b { font-weight: 600; color: #1d2b26; }
/* The logo is 200px on phones (brand-fouress-3.css) and 160px on mid-size laptops (topbar.php) */
@media (max-width: 575.98px) {
  .fs-formerly { font-size: 10.3px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .fs-formerly { font-size: 8.3px; }
}

/* Footer brand block: left-aligned under the logo, one line each for the
   name, the old name and the AMFI registration */
.footer-brand-note {
  margin-top: 4px;
  text-align: left;
  line-height: 1.55;
}
.footer-brand-note span { display: block; }
.footer-brand-note .footer-brand-formerly {
  font-size: 12px;
  font-weight: 500;
  color: #5f6866;
}
.footer-brand-note .footer-brand-amfi {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #414942;
}

/* Intro (fouress-intro.js), a reveal in three beats, about 4.9 s:
     1. the old MyAssets Consolidation logo fades in
     2. "IS NOW" appears beneath it
     3. both lift away, and the Fouress Finserv logo is revealed by a
        left-to-right wipe led by a logo-teal line
   then the overlay fades to the page. Any click or key skips it. */
#fs-intro {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  background: #fff;
  cursor: pointer;
  font-family: var(--rv-body-font, "Poppins"), sans-serif;
  animation: fs-intro-out 0.5s ease 4.4s forwards;
}
/* Both beats share one spot */
#fs-intro .fs-intro-stage {
  display: grid;
  place-items: center;
  width: 320px;
  max-width: 80vw;
}
#fs-intro .fs-intro-before,
#fs-intro .fs-intro-after { grid-area: 1 / 1; }

/* Beats 1 and 2: old logo, then "is now" */
#fs-intro .fs-intro-before {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fs-intro-lift 0.6s cubic-bezier(0.6, 0, 0.4, 1) 2.15s forwards;
}
#fs-intro .fs-intro-oldlogo {
  width: 250px;
  max-width: 70vw;
  opacity: 0;
  transform: translateY(8px);
  animation: fs-intro-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards;
}
#fs-intro .fs-intro-now {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #019488;
  opacity: 0;
  transform: translateY(6px);
  animation: fs-intro-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 1.15s forwards;
}

/* Beat 3: Fouress logo wiped in from the left */
#fs-intro .fs-intro-after {
  position: relative;
  clip-path: inset(0 100% 0 0);
  animation: fs-intro-wipe 0.9s cubic-bezier(0.65, 0, 0.35, 1) 2.55s forwards;
}
#fs-intro .fs-intro-newlogo { display: block; width: 280px; max-width: 74vw; }
#fs-intro .fs-intro-after::after {
  /* the teal edge that leads the wipe */
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: #01a595;
  box-shadow: 0 0 14px rgba(1, 165, 149, 0.6);
  opacity: 0;
  animation: fs-intro-edge 0.9s cubic-bezier(0.65, 0, 0.35, 1) 2.55s forwards;
}

#fs-intro .fs-intro-skip {
  position: absolute;
  right: 20px;
  bottom: 18px;
  font-size: 12px;
  color: #8a9391;
}
#fs-intro.is-leaving { animation: fs-intro-out 0.3s ease forwards; }
@keyframes fs-intro-rise { to { opacity: 1; transform: none; } }
@keyframes fs-intro-lift {
  to { opacity: 0; transform: translateY(-18px); filter: blur(4px); }
}
@keyframes fs-intro-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes fs-intro-edge {
  0% { left: 0; opacity: 1; }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes fs-intro-out { to { opacity: 0; visibility: hidden; } }
@media (max-width: 420px) {
  #fs-intro .fs-intro-oldlogo { width: 210px; }
  #fs-intro .fs-intro-newlogo { width: 240px; }
}
