/* ==========================================================================
   CloudV24 — Premium footer (shared by every page via includes/site-footer.php)
   Tokens fall back to the sitewide :root variables from styles.css.
   ========================================================================== */
.cvf {
  --cvf-bg:      #060a1a;
  --cvf-border:  #252d42;
  --cvf-text:    #cbd5e1;
  --cvf-muted:   #8b9ab6;
  --cvf-orange:  var(--primary, #ff5a3c);
  --cvf-orange-2:var(--secondary, #ff7a18);
  --cvf-violet:  #a78bfa;
  --cvf-cyan:    #20c9e8;
  --cvf-ease:    cubic-bezier(.22, .8, .24, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: 0;
  color: var(--cvf-text);
  background:
    linear-gradient(180deg, #080d1f 0%, #060a1a 45%, #050816 100%);
  border: 0;
}

/* gradient divider between page content and footer */
.cvf__divider {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent 0%, rgba(79, 124, 255, .7) 22%, rgba(167, 139, 250, .8) 50%, rgba(255, 90, 60, .75) 78%, transparent 100%);
  box-shadow: 0 0 24px rgba(139, 92, 246, .45);
}

/* ───────── Background layers (all low-contrast) ───────── */
.cvf__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cvf__glow { position: absolute; border-radius: 50%; will-change: transform; }
.cvf__glow--top   { left: 50%; top: -260px; width: 900px; height: 420px; margin-left: -450px; background: radial-gradient(ellipse at center, rgba(99, 102, 241, .28), transparent 68%); animation: cvfGlow 12s ease-in-out infinite alternate; }
.cvf__glow--left  { left: -180px; bottom: -220px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(255, 90, 60, .14), transparent 66%); animation: cvfDrift 26s ease-in-out infinite alternate; }
.cvf__glow--right { right: -200px; top: 10%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(124, 58, 237, .2), transparent 66%); animation: cvfDrift 32s ease-in-out -10s infinite alternate-reverse; }
.cvf__dots {
  position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(130, 160, 255, .22) 1px, transparent 1.5px) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 30%, rgba(0, 0, 0, .7) 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 75% 70% at 70% 30%, rgba(0, 0, 0, .7) 0%, transparent 70%);
}
.cvf__waves { position: absolute; left: 0; bottom: 0; width: 100%; height: min(62%, 360px); opacity: .75; }
.cvf__wave { transform-box: view-box; will-change: transform; }
.cvf__wave--a { animation: cvfWave 26s ease-in-out infinite alternate; }
.cvf__wave--b { animation: cvfWave 34s ease-in-out -12s infinite alternate-reverse; }

/* ───────── Layout ───────── */
.cvf__inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: clamp(3.5rem, 6vw, 5rem) 1.5rem 2.5rem; }
.cvf__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3.5rem);
}

/* brand column */
.cvf__logo { display: inline-block; margin-bottom: 1.15rem; }
.cvf__logo img { display: block; height: 54px; width: auto; max-width: 100%; }
.cvf__about { max-width: 340px; margin: 0 0 1.4rem; font-size: .95rem; line-height: 1.7; color: var(--cvf-muted); }

.cvf__social { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.cvf__social-link {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  color: #cbd5e1;
  font-size: 1rem;
  background: rgba(20, 26, 48, .7);
  border: 1px solid var(--cvf-border);
  border-radius: 12px;
  text-decoration: none;
  transition: transform .3s var(--cvf-ease), color .25s, border-color .25s, background .25s, box-shadow .3s;
}
.cvf__social-link:hover { transform: translateY(-3px); color: #fff; border-color: rgba(255, 90, 60, .6); background: rgba(255, 90, 60, .12); box-shadow: 0 10px 24px -10px rgba(255, 90, 60, .55); }

.cvf__trust { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.cvf__trust li {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .75rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .01em;
  color: #b9c6df;
  background: rgba(32, 201, 232, .07);
  border: 1px solid rgba(32, 201, 232, .2);
  border-radius: 999px;
}
.cvf__trust svg, .cvf__trust i { width: 13px; height: 13px; color: var(--cvf-cyan); }

.cvf__contact { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.cvf__contact li { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; line-height: 1.5; color: var(--cvf-muted); }
.cvf__contact svg, .cvf__contact i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--cvf-orange); }
.cvf__contact a { color: var(--cvf-text); text-decoration: none; transition: color .2s; }
.cvf__contact a:hover { color: #fff; }

/* link columns */
.cvf__col h4 {
  position: relative;
  margin: 0 0 1.25rem;
  padding-bottom: .75rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
}
.cvf__col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cvf-orange), var(--cvf-violet)); }
.cvf__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .15rem; }
.cvf__col a {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 34px;
  font-size: .93rem;
  color: var(--cvf-muted);
  text-decoration: none;
  transition: color .25s, transform .3s var(--cvf-ease);
}
.cvf__col a::before {
  content: "";
  width: 0; height: 2px; margin-right: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cvf-orange), var(--cvf-violet));
  transition: width .3s var(--cvf-ease), margin-right .3s var(--cvf-ease);
}
.cvf__col a:hover { color: #fff; }
.cvf__col a:hover::before { width: 12px; margin-right: .5rem; }
.cvf a:focus-visible { outline: 2px solid var(--cvf-violet); outline-offset: 3px; border-radius: 6px; }

/* ───────── Bottom bar ───────── */
.cvf__bottom { position: relative; z-index: 2; border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(4, 7, 18, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cvf__bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .9rem 2rem;
  font-size: .85rem;
}
.cvf__copy { color: var(--cvf-muted); }
.cvf__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.cvf__legal a { display: inline-flex; align-items: center; min-height: 32px; color: var(--cvf-muted); text-decoration: none; transition: color .2s; }
.cvf__legal a:hover { color: #fff; }
.cvf__pay { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.cvf__pay-label { margin-right: .25rem; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cvf-muted); }
.cvf__pay-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .7rem;
  font-size: .75rem; font-weight: 600; color: #dbe4f5;
  background: rgba(20, 26, 48, .8);
  border: 1px solid var(--cvf-border);
  border-radius: 8px;
}
.cvf__pay-badge svg, .cvf__pay-badge i { width: 14px; height: 14px; color: var(--cvf-violet); }

/* pause background motion when the footer is off-screen (js/network.js) */
.cvf.is-paused .cvf__bg * { animation-play-state: paused !important; }

@keyframes cvfGlow  { from { opacity: .65; transform: scale(1); } to { opacity: 1; transform: scale(1.1); } }
@keyframes cvfDrift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(8%, -6%, 0); } }
@keyframes cvfWave  { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(3%, -14px, 0); } }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .cvf__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cvf__brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 3rem; align-items: start; }
  .cvf__brand > * { grid-column: 1; }
  .cvf__brand .cvf__contact { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
}
@media (max-width: 760px) {
  .cvf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .cvf__brand { display: block; }
  .cvf__inner { padding: 3rem 1.25rem 2rem; }
  .cvf__bottom-inner { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
}
@media (max-width: 480px) {
  .cvf__grid { grid-template-columns: 1fr 1fr; }
  .cvf__social-link { width: 46px; height: 46px; }
  .cvf__col a, .cvf__legal a { min-height: 40px; }
  .cvf__legal { gap: .25rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cvf__bg *, .cvf a, .cvf__social-link { animation: none !important; transition: none !important; }
}
