/* =========================================================
   Free But Not Free LLC — motion layer
   Loaded after styles.css. Everything degrades safely and is
   fully disabled under prefers-reduced-motion.
   ========================================================= */

/* ---------------------------------------------------------
   KEYFRAMES
   --------------------------------------------------------- */
@keyframes fbnf-aurora {
  0%   { transform: translate3d(-6%, -4%, 0) scale(1);    opacity: .55; }
  50%  { transform: translate3d(6%, 5%, 0)  scale(1.14);  opacity: .85; }
  100% { transform: translate3d(-6%, -4%, 0) scale(1);    opacity: .55; }
}
@keyframes fbnf-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes fbnf-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(.6deg); }
}
@keyframes fbnf-pulse-ring {
  0%   { transform: scale(.65); opacity: .75; }
  80%  { opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}
@keyframes fbnf-sheen {
  0%   { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(320%)  skewX(-18deg); }
}
@keyframes fbnf-gradient-pan {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
@keyframes fbnf-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}
@keyframes fbnf-spin-slow { to { transform: rotate(360deg); } }
@keyframes fbnf-spin-rev  { to { transform: rotate(-360deg); } }

/* ---- brand showcase ---- */
@keyframes fbnf-badge-in {
  0%   { opacity: 0; transform: scale(.9) translateY(22px); filter: blur(8px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
/* settles into a slow, weightless drift once it has landed */
@keyframes fbnf-badge-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-11px) rotate(.5deg); }
}
@keyframes fbnf-halo-turn {
  0%   { transform: rotate(0deg)   scale(1);    opacity: .70; }
  50%  { transform: rotate(180deg) scale(1.06); opacity: 1; }
  100% { transform: rotate(360deg) scale(1);    opacity: .70; }
}
/* radar sweep outward — echoes what the business does */
@keyframes fbnf-radar {
  0%   { transform: scale(.52); opacity: 0; }
  12%  { opacity: .85; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes fbnf-gold-sweep {
  0%   { transform: translateX(-140%) rotate(12deg); opacity: 0; }
  18%  { opacity: 1; }
  55%  { opacity: 1; }
  100% { transform: translateX(240%) rotate(12deg); opacity: 0; }
}

/* ---------------------------------------------------------
   SCROLL PROGRESS BAR
   --------------------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 200; pointer-events: none;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--gold-light));
  box-shadow: 0 0 10px rgba(192, 145, 63, .55);
  transition: width .12s linear;
}

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled {
  box-shadow: 0 6px 26px rgba(17, 41, 77, .10);
  background: rgba(255, 255, 255, .98);
}
.site-header.scrolled .nav-wrap { padding-top: 6px; padding-bottom: 6px; }
.nav-wrap { transition: padding .3s ease; }

.nav a { position: relative; }
.nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.brand-logo { transition: height .3s ease, transform .3s ease; }
.brand:hover .brand-logo { transform: scale(1.03); }

/* ---------------------------------------------------------
   AURORA BACKDROP
   --------------------------------------------------------- */
.aurora { position: absolute; inset: -20%; pointer-events: none; z-index: 0; overflow: hidden; }
.aurora span {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(90px); will-change: transform, opacity;
}
.aurora span:nth-child(1) {
  width: 46vw; height: 46vw; top: -8%; left: 52%;
  background: radial-gradient(circle, rgba(192, 145, 63, .26), transparent 68%);
  animation: fbnf-aurora 18s ease-in-out infinite;
}
.aurora span:nth-child(2) {
  width: 38vw; height: 38vw; top: 34%; left: -6%;
  background: radial-gradient(circle, rgba(27, 63, 115, .16), transparent 68%);
  animation: fbnf-aurora 24s ease-in-out infinite reverse;
}
.aurora span:nth-child(3) {
  width: 30vw; height: 30vw; bottom: -14%; left: 34%;
  background: radial-gradient(circle, rgba(216, 174, 99, .22), transparent 68%);
  animation: fbnf-aurora 21s ease-in-out infinite 2s;
}
.cta-strip .aurora span:nth-child(1) { background: radial-gradient(circle, rgba(216, 174, 99, .30), transparent 68%); }
.cta-strip .aurora span:nth-child(2) { background: radial-gradient(circle, rgba(160, 190, 235, .16), transparent 68%); }
.cta-strip .aurora span:nth-child(3) { background: radial-gradient(circle, rgba(239, 224, 196, .20), transparent 68%); }

.hero .container, .cta-strip .container { position: relative; z-index: 3; }

/* ---------------------------------------------------------
   BRAND SHOWCASE ANIMATION
   The badge lands once, then breathes. Everything else is a
   slow, continuous loop — no repeated attention-grabbing.
   --------------------------------------------------------- */

/* the badge itself: entrance, then an endless weightless drift */
.brand-badge { opacity: 0; }
.brand-showcase.visible .brand-badge {
  animation:
    fbnf-badge-in 1.25s cubic-bezier(.16, 1, .3, 1) forwards,
    fbnf-badge-drift 9s ease-in-out 1.25s infinite;
}

/* gold light turning slowly behind the mark */
.brand-showcase.visible .brand-halo {
  animation: fbnf-halo-turn 26s linear .5s infinite;
}

/* three radar rings, evenly offset so one is always mid-flight */
.brand-showcase.visible .brand-radar i {
  animation: fbnf-radar 5.4s cubic-bezier(.2, .6, .3, 1) infinite;
}
.brand-showcase.visible .brand-radar i:nth-child(1) { animation-delay: 1.3s; }
.brand-showcase.visible .brand-radar i:nth-child(2) { animation-delay: 3.1s; }
.brand-showcase.visible .brand-radar i:nth-child(3) { animation-delay: 4.9s; }

/* dashed dial with a travelling marker */
.brand-dial { transition: opacity 1s ease .55s; }
.brand-showcase.visible .brand-dial {
  opacity: 1;
  animation: fbnf-spin-slow 42s linear infinite;
}

/* single gold light sweep across the badge as it settles */
.brand-stage::after {
  content: ''; position: absolute; top: -8%; left: 0; width: 32%; height: 116%;
  z-index: 5; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
}
.brand-showcase.visible .brand-stage::after {
  animation: fbnf-gold-sweep 2.2s ease-out 1.1s;
}

/* ---------------------------------------------------------
   REVEAL VARIANTS + STAGGER
   --------------------------------------------------------- */
.reveal            { transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal-left       { opacity: 0; transform: translateX(-34px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal-right      { opacity: 0; transform: translateX(34px);  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal-scale      { opacity: 0; transform: scale(.94);        transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal-left.visible, .reveal-right.visible, .reveal-scale.visible { opacity: 1; transform: none; }

.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.stagger.visible > * { opacity: 1; transform: none; }
.stagger.visible > *:nth-child(1)  { transition-delay: .00s; }
.stagger.visible > *:nth-child(2)  { transition-delay: .06s; }
.stagger.visible > *:nth-child(3)  { transition-delay: .12s; }
.stagger.visible > *:nth-child(4)  { transition-delay: .18s; }
.stagger.visible > *:nth-child(5)  { transition-delay: .24s; }
.stagger.visible > *:nth-child(6)  { transition-delay: .30s; }
.stagger.visible > *:nth-child(7)  { transition-delay: .36s; }
.stagger.visible > *:nth-child(8)  { transition-delay: .42s; }
.stagger.visible > *:nth-child(n+9){ transition-delay: .48s; }

/* ---------------------------------------------------------
   CARDS
   --------------------------------------------------------- */
.card { position: relative; overflow: hidden; isolation: isolate; }
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(192, 145, 63, .85), rgba(17, 41, 77, .35), transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease; pointer-events: none; z-index: 1;
}
.card:hover::before { opacity: 1; }

.card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(192, 145, 63, .10), transparent);
  transform: translateX(-120%) skewX(-18deg); pointer-events: none; z-index: 0;
}
.card:hover::after { animation: fbnf-sheen .9s ease forwards; }

.card-icon { transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s ease, border-color .3s ease; }
.card:hover .card-icon { transform: translateY(-3px) rotate(-6deg) scale(1.06); background: var(--gold-pale); border-color: var(--gold); }

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */
.btn { position: relative; overflow: hidden; }
.btn > * { position: relative; z-index: 1; }
.btn-primary::after, .btn-gold::after {
  content: ''; position: absolute; top: 0; left: 0; width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-120%) skewX(-18deg);
}
.btn-primary:hover::after, .btn-gold:hover::after { animation: fbnf-sheen .75s ease forwards; }

.btn-primary {
  background: linear-gradient(115deg, var(--navy), var(--navy-mid), #24528F, var(--navy-mid));
  background-size: 300% 100%;
  animation: fbnf-gradient-pan 10s ease infinite;
}
.btn-gold {
  background: linear-gradient(115deg, var(--gold), var(--gold-light), #E9CE9A, var(--gold));
  background-size: 300% 100%;
  animation: fbnf-gradient-pan 9s ease infinite;
}
.cta-strip .btn-primary { animation: fbnf-gradient-pan 9s ease infinite; }

.float-refer { animation: fbnf-bob 4.5s ease-in-out infinite; }
.float-refer::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--gold); animation: fbnf-pulse-ring 2.8s ease-out infinite;
  pointer-events: none;
}

/* ---------------------------------------------------------
   HERO STATS
   --------------------------------------------------------- */
.hero-stat .n { font-variant-numeric: tabular-nums; }
.hero-stat { position: relative; padding-left: 16px; }
.hero-stat::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

/* ---------------------------------------------------------
   FIGURES / IMAGERY
   --------------------------------------------------------- */
.figure {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow);
}
.figure img { width: 100%; height: auto; display: block; }
.figure-float { animation: fbnf-float 7s ease-in-out infinite; }

.figure-glow { position: relative; }
.figure-glow::before {
  content: ''; position: absolute; inset: -18%;
  background: radial-gradient(closest-side, rgba(192, 145, 63, .22), transparent 72%);
  filter: blur(28px); z-index: -1; pointer-events: none;
}

figcaption { font-size: .84rem; color: var(--text-dim); text-align: center; margin-top: 12px; }

.hero-visual { display: block; }
.hero-visual .figure { padding: 14px; background: linear-gradient(165deg, #ffffff, var(--bg-alt)); border-top: 3px solid var(--gold); }
.hero-visual .hero-card { margin-top: 4px; }

@media (max-width: 900px) {
  .hero-visual .figure { margin-bottom: 24px !important; }
}

.map-frame {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); border-top: 3px solid var(--gold);
  background: linear-gradient(165deg, #ffffff, var(--bg-alt));
  padding: 18px; box-shadow: var(--shadow);
}
.map-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 240px at 70% 0%, rgba(192, 145, 63, .10), transparent 70%);
}
.map-frame img { width: 100%; height: auto; position: relative; z-index: 1; }

/* ---------------------------------------------------------
   LIVE STATUS CHIP
   --------------------------------------------------------- */
.live-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(31, 122, 77, .08); border: 1px solid rgba(31, 122, 77, .28);
  font-size: .8rem; font-weight: 800; letter-spacing: .08em; color: var(--ok);
  text-transform: uppercase;
}
.live-chip i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  animation: fbnf-blink 1.8s ease-in-out infinite; flex-shrink: 0;
}

/* ---------------------------------------------------------
   TRUST BANNER / STEPS / TILES
   --------------------------------------------------------- */
.trust-banner { overflow: hidden; }
.trust-list li { transition: color .25s ease, transform .25s ease; }
.trust-list li:hover { color: var(--navy); transform: translateY(-2px); }

.steps::before {
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
  background-size: 200% 100%;
  animation: fbnf-gradient-pan 8s linear infinite;
  opacity: .6;
}
.step { transition: transform .3s ease; }
.step:hover { transform: translateY(-6px); }
.step-num { transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease; position: relative; }
.step:hover .step-num { transform: scale(1.1); }
.step-num::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--gold); opacity: 0;
}
.step:hover .step-num::after { animation: fbnf-pulse-ring 1.4s ease-out; }

.audience { position: relative; overflow: hidden; }
.audience svg { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.audience:hover svg { transform: translateY(-4px) scale(1.12); }
.audience::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(200px 100px at 50% 0%, rgba(192, 145, 63, .14), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
}
.audience:hover::before { opacity: 1; }

.county { transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.county:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq-item { transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.faq-item:hover { transform: translateX(3px); }
.faq-item.open { background: linear-gradient(160deg, var(--gold-tint), #ffffff); }
.faq-a { transition: max-height .38s cubic-bezier(.4, 0, .2, 1); }

/* ---------------------------------------------------------
   FORMS
   --------------------------------------------------------- */
.field input, .field select, .field textarea { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { transform: translateY(-1px); }
.form-card { position: relative; overflow: hidden; }
.form-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--gold-light), var(--navy));
  background-size: 200% 100%; animation: fbnf-gradient-pan 7s linear infinite;
}

/* ---------------------------------------------------------
   PAGE HEADER DECOR
   --------------------------------------------------------- */
.page-header { position: relative; overflow: hidden; }
.page-header .header-orb {
  position: absolute; right: -80px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(192, 145, 63, .22), transparent 66%);
  filter: blur(40px); animation: fbnf-aurora 20s ease-in-out infinite;
}
.page-header .header-rings {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  width: 260px; height: 260px; pointer-events: none; opacity: .7;
  animation: fbnf-spin-slow 60s linear infinite;
}
.page-header .header-rings circle { fill: none; stroke: var(--border-lit); stroke-width: 1; }
.page-header .header-rings circle:nth-child(odd) { stroke: rgba(192, 145, 63, .40); }
.page-header .container { position: relative; z-index: 2; }

/* ---------------------------------------------------------
   DIVIDER
   --------------------------------------------------------- */
.divider-glow {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--gold), var(--navy-mid), var(--gold), transparent);
  background-size: 200% 100%; opacity: .45;
  animation: fbnf-gradient-pan 10s linear infinite;
}

/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */
.contact-method { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.contact-method:hover { transform: translateY(-3px); border-color: var(--gold-pale); box-shadow: var(--shadow); }
.contact-method .ci { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.contact-method:hover .ci { transform: scale(1.08) rotate(-5deg); }

.map-embed {
  width: 100%; height: 420px; border: 0; display: block;
  border-radius: var(--radius); filter: grayscale(.12) contrast(1.02);
}
.map-embed-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); border-top: 3px solid var(--gold); box-shadow: var(--shadow);
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.footer-col a { position: relative; }
.footer-col a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold-light); transition: width .25s ease;
}
.footer-col a:hover::after { width: 100%; }
.footer-logo-plate { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.footer-brand-link:hover .footer-logo-plate {
  transform: translateY(-3px);
  border-color: var(--gold-light);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .45), 0 0 26px rgba(192, 145, 63, .30);
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .page-header .header-rings { display: none; }
  .aurora span:nth-child(1) { width: 90vw; height: 90vw; }
  .aurora span:nth-child(2), .aurora span:nth-child(3) { width: 70vw; height: 70vw; }
  .map-embed { height: 320px; }
}

@media (max-width: 640px) {
  .float-refer { animation: none; }
  .float-refer::before { display: none; }
  .brand-dial { display: none; }
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .stagger > *, .brand-badge, .brand-halo, .brand-dial {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .brand-halo, .brand-dial { translate: -50% -50% !important; }
  .aurora span, .float-refer, .btn-primary, .btn-gold, .steps::before,
  .form-card::before, .divider-glow, .page-header .header-orb,
  .page-header .header-rings, .live-chip i, .figure-float,
  .brand-badge, .brand-halo, .brand-dial, .brand-radar i {
    animation: none !important;
  }
  .brand-radar i { opacity: .28; }
  .card::after, .btn-primary::after, .btn-gold::after, .brand-stage::after { display: none; }
  .scroll-progress { display: none; }
}
