:root {
  --site-footer-bg: #071a4b;
  --site-footer-bg-2: #0a1e5c;
  --site-footer-text: rgba(255,255,255,.82);
  --site-footer-muted: rgba(255,255,255,.62);
  --site-footer-line: rgba(255,255,255,.13);
}
body[data-theme="blue"] { --site-footer-bg: #111f58; --site-footer-bg-2: #172b70; }
body[data-theme="dark"], html.dark { --site-footer-bg: #07101f; --site-footer-bg-2: #0b1728; }

.site-footer {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: var(--site-footer-text);
  background:
    radial-gradient(circle at 10% -15%, rgba(56,189,248,.18), transparent 33%),
    radial-gradient(circle at 92% 105%, rgba(251,191,36,.11), transparent 30%),
    linear-gradient(145deg, var(--site-footer-bg-2), var(--site-footer-bg));
  border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 -18px 45px rgba(2,8,23,.13);
  font-family: Poppins, sans-serif;
}
.site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 60px 60px; mask-image: linear-gradient(to bottom, #000, transparent 60%); }
.site-footer-glow { position: absolute; width: 20rem; height: 20rem; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: .18; }
.site-footer-glow-left { left: -10rem; top: 2rem; background: #38bdf8; }
.site-footer-glow-right { right: -10rem; bottom: -8rem; background: #fbbf24; }
.site-footer-container { position: relative; z-index: 1; width: min(1220px, calc(100% - 2rem)); margin: 0 auto; padding: 4.5rem 0 1.5rem; }

.site-footer-cta { margin-bottom: 3.5rem; padding: 1.35rem; display: grid; grid-template-columns: 1.2fr .9fr; align-items: center; gap: 2rem; border: 1px solid rgba(255,255,255,.14); border-radius: 1.4rem; background: rgba(255,255,255,.065); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 55px rgba(2,8,23,.18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-footer-eyebrow { display: inline-flex; align-items: center; gap: .4rem; color: #7dd3fc; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.site-footer-cta h2 { margin: .45rem 0 .35rem; color: #fff; font-size: clamp(1.2rem, 2.3vw, 1.75rem); line-height: 1.3; letter-spacing: -.025em; }
.site-footer-cta p { margin: 0; max-width: 38rem; color: var(--site-footer-text); font-size: .78rem; line-height: 1.7; }
.site-footer-form label { display: block; margin-bottom: .45rem; color: rgba(255,255,255,.76); font-size: .66rem; font-weight: 700; }
.site-footer-form > div { padding: .28rem; display: grid; grid-template-columns: 1fr auto; gap: .3rem; border: 1px solid rgba(255,255,255,.13); border-radius: .9rem; background: rgba(255,255,255,.95); box-shadow: 0 14px 34px rgba(2,8,23,.18); }
.site-footer-form input { min-width: 0; min-height: 44px; padding: .65rem .75rem; border: 0; outline: 0; color: #0f172a; background: transparent; font: 550 .76rem/1.2 Poppins, sans-serif; }
.site-footer-form input::placeholder { color: #64748b; }
.site-footer-form button { min-height: 44px; padding: .65rem .9rem; display: inline-flex; align-items: center; gap: .45rem; border: 0; border-radius: .68rem; color: #fff; background: linear-gradient(135deg, #0284c7, #2563eb); box-shadow: 0 7px 18px rgba(37,99,235,.28); font: 750 .7rem/1 Poppins, sans-serif; cursor: pointer; }
.site-footer-form button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,.35); }
.site-footer-form button:disabled { opacity: .65; cursor: wait; }
.site-footer-form-message { min-height: 1.1rem; margin: .45rem 0 0 !important; color: rgba(255,255,255,.72) !important; font-size: .62rem !important; }
.site-footer-form-message.success { color: #a7f3d0 !important; }
.site-footer-form-message.error { color: #fecaca !important; }

.site-footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3, .8fr) 1.2fr; gap: 2rem; }
.site-footer-grid h3 { position: relative; margin: 0 0 1rem; padding-bottom: .7rem; color: #fff; font-size: .8rem; letter-spacing: .03em; }
.site-footer-grid h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; border-radius: 9px; background: linear-gradient(90deg, #38bdf8, #fbbf24); }
.site-footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer-grid nav > a { margin: .18rem 0; padding: .25rem 0; color: var(--site-footer-text); font-size: .7rem; line-height: 1.45; text-decoration: none; }
.site-footer-grid nav > a:hover { color: #fff; transform: translateX(3px); }
.site-footer-brand { display: inline-flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.site-footer-brand img { width: 56px; height: 56px; object-fit: contain; border-radius: .9rem; background: rgba(255,255,255,.08); }
.site-footer-brand span { display: grid; }
.site-footer-brand strong { color: #fff; font-size: .8rem; }
.site-footer-brand small { margin-top: .2rem; color: var(--site-footer-muted); font-size: .62rem; }
.site-footer-about > p { margin: 1rem 0; max-width: 24rem; color: var(--site-footer-text); font-size: .72rem; line-height: 1.75; }
.site-footer-trust { display: flex; flex-wrap: wrap; gap: .45rem; }
.site-footer-trust span { padding: .38rem .52rem; display: inline-flex; align-items: center; gap: .32rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: rgba(255,255,255,.73); background: rgba(255,255,255,.05); font-size: .57rem; font-weight: 650; }
.site-footer-trust i { color: #7dd3fc; }
.site-footer-contact > a, .site-footer-contact > p { margin: .35rem 0; padding: 0; display: flex; align-items: flex-start; gap: .55rem; color: var(--site-footer-text); font-size: .68rem; line-height: 1.55; text-decoration: none; }
.site-footer-contact > a:hover { color: #fff; }
.site-footer-contact > a i, .site-footer-contact > p i { width: 1rem; margin-top: .15rem; color: #7dd3fc; text-align: center; }
.site-footer-contact span { overflow-wrap: anywhere; }
.site-footer-social { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .48rem; }
.site-footer-social a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: .72rem; color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.site-footer-social a:hover { color: #0a1e5c; background: #fff; transform: translateY(-2px); }
.site-footer-bottom { margin-top: 3rem; padding-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--site-footer-line); }
.site-footer-bottom p { margin: 0; color: var(--site-footer-muted); font-size: .62rem; }
.site-footer-bottom nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .85rem; }
.site-footer-bottom a { color: var(--site-footer-muted); font-size: .62rem; text-decoration: none; }
.site-footer-bottom a:hover { color: #fff; }
.site-footer a:focus-visible, .site-footer button:focus-visible, .site-footer input:focus-visible { outline: 3px solid rgba(56,189,248,.75); outline-offset: 3px; }
.site-footer a, .site-footer button { transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }

@media (max-width: 1080px) {
  .site-footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .site-footer-contact { grid-column: span 2; }
}
@media (max-width: 760px) {
  .site-footer-container { padding-top: 3rem; }
  .site-footer-cta { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .site-footer-about, .site-footer-contact { grid-column: 1 / -1; }
  .site-footer-bottom { align-items: flex-start; flex-direction: column; }
  .site-footer-bottom nav { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .site-footer-grid { grid-template-columns: 1fr; }
  .site-footer-about, .site-footer-contact { grid-column: auto; }
  .site-footer-form > div { grid-template-columns: 1fr; background: transparent; border: 0; padding: 0; box-shadow: none; }
  .site-footer-form input { border-radius: .7rem; background: #fff; }
  .site-footer-form button { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer a, .site-footer button { transition: none !important; }
}


/* V3.2 premium motion and back-to-top */
.site-footer-glow-left { animation: footer-float-left 10s ease-in-out infinite alternate; }
.site-footer-glow-right { animation: footer-float-right 12s ease-in-out infinite alternate; }
.site-footer .shell-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.72,.18,1); }
.site-footer .shell-reveal.is-visible { opacity: 1; transform: translateY(0); }
.site-back-to-top { position: absolute; right: max(1rem, calc((100vw - 1220px)/2)); bottom: 1.1rem; z-index: 3; min-width: 48px; height: 44px; padding: 0 .7rem; display: inline-flex; align-items: center; justify-content: center; gap: .38rem; border: 1px solid rgba(255,255,255,.18); border-radius: .8rem; color: #fff; background: rgba(255,255,255,.09); box-shadow: 0 10px 26px rgba(2,8,23,.22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 750 .62rem/1 Poppins,sans-serif; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease; }
.site-back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.site-back-to-top:hover { background: rgba(255,255,255,.17); transform: translateY(-2px); }
@keyframes footer-float-left { to { transform: translate(2rem, -1rem) scale(1.08); } }
@keyframes footer-float-right { to { transform: translate(-2rem, 1rem) scale(.94); } }
@media (max-width:760px) { .site-back-to-top { right: 1rem; bottom: .85rem; } }
@media (prefers-reduced-motion: reduce) { .site-footer-glow-left,.site-footer-glow-right { animation: none !important; } .site-footer .shell-reveal { opacity: 1; transform: none; } }
