/* =========================
   footer premium refresh
   ========================= */

.site-footer{
  position:relative;
  z-index:2;
  margin-top:28px;
  padding:24px 0 34px;
}

.site-footer::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  width:min(86vw, 900px);
  height:120px;
  transform:translateX(-50%);
  background:radial-gradient(circle, rgba(255,70,70,.10), transparent 68%);
  filter:blur(24px);
  pointer-events:none;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.15fr .95fr .95fr .95fr;
  gap:16px;
  padding:16px;
  border-radius:32px;
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.01)),
    rgba(8,8,8,.90);
  box-shadow:
    0 28px 72px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.footer-grid > .footer-col{
  position:relative;
  padding:18px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.07);
  background:
    linear-gradient(155deg, rgba(255,255,255,.03), rgba(255,255,255,.008)),
    rgba(12,12,12,.86);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 14px 34px rgba(0,0,0,.22);
}

.footer-grid > .footer-col::before{
  content:"";
  position:absolute;
  top:0;
  left:16px;
  right:16px;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  pointer-events:none;
}

.footer-brand{
  background:
    radial-gradient(circle at 10% 10%, rgba(255,70,70,.08), transparent 26%),
    linear-gradient(155deg, rgba(255,255,255,.03), rgba(255,255,255,.008)),
    rgba(12,12,12,.86) !important;
}

.footer-brand-link{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}

.footer-brand .brand-text small,
.footer-brand .brand-text strong{
  white-space:normal;
}

.footer-brand p{
  margin:0;
  color:#c8cfda;
  line-height:1.72;
  font-size:.98rem;
}

.footer-col h3{
  margin:0 0 14px;
  color:#fff;
  font-size:.9rem;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.footer-links{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}

.footer-links li{
  margin:0;
  color:#f1f3f8;
  line-height:1.5;
  text-transform:none;
}

.footer-links a,
.footer-links span{
  display:flex;
  align-items:center;
  min-height:46px;
  padding:0 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,.024), rgba(255,255,255,.008)),
    rgba(255,255,255,.014);
  color:#eef2f8;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.footer-links a:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.012)),
    rgba(255,255,255,.018);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 10px 20px rgba(0,0,0,.14);
}

.footer-bottom{
  margin-top:14px;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.07);
  background:
    linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.008)),
    rgba(9,9,9,.84);
  color:#bcc4d0;
  font-size:.88rem;
  text-transform:lowercase;
}

.footer-bottom a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.016);
  color:#fff;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.footer-bottom a:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
}

@media (max-width: 1180px){
  .footer-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 820px){
  .footer-grid{
    grid-template-columns:1fr;
    gap:14px;
    padding:14px;
    border-radius:26px;
  }

  .footer-grid > .footer-col{
    padding:16px;
    border-radius:20px;
  }

  .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 640px){
  .footer-brand-link{
    gap:12px !important;
  }

  .footer-brand-link .brand-logo.small{
    width:54px !important;
    height:54px !important;
    min-width:54px !important;
    flex:0 0 54px !important;
    border-radius:16px !important;
  }

  .footer-brand-link .brand-wordmark{
    display:block !important;
    width:auto !important;
    height:47px !important;
    max-width:250px !important;
    transform:scale(1.7) !important;
    transform-origin:center center !important;
    margin:0 auto !important;
    display:block !important;
    object-fit:contain !important;
    filter:drop-shadow(0 2px 8px rgba(0,0,0,.16)) !important;
    background:none !important;
    outline:none !important;
  }
}

/* footer wordmark final clean */
.footer-brand-link{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:14px !important;
  width:100%;
  min-width:0;
}

.footer-brand-link .brand-logo.small{
  width:58px !important;
  height:58px !important;
  min-width:58px !important;
  border-radius:18px !important;
  flex:0 0 58px !important;
}

.footer-brand-link .brand-text{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  position:static !important;
  transform:none !important;
  left:auto !important;
  top:auto !important;
  min-width:0 !important;
  flex:1 1 auto !important;
  pointer-events:auto !important;
}

.footer-brand-link .brand-wordmark{
  display:block !important;
  width:auto !important;
  height:52px !important;
  transform:scale(1.6) !important;
  max-width:300px !important;
  transform:none !important;
  transform-origin:center center !important;
    margin:0 auto !important;
    display:block !important;
  object-fit:contain !important;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.16)) !important;
  background:none !important;
  outline:none !important;
}

@media (max-width: 640px){
  .footer-brand-link{
    gap:12px !important;
  }

  .footer-brand-link .brand-logo.small{
    width:54px !important;
    height:54px !important;
    min-width:54px !important;
    flex:0 0 54px !important;
    border-radius:16px !important;
  }

  .footer-brand-link .brand-wordmark{
    height:44px !important;
    transform:scale(1.5) !important;
    max-width:250px !important;
    transform:none !important;
    background:none !important;
    outline:none !important;
  }
}

/* mobile footer wordmark final force */
@media (max-width: 640px){
  .footer-brand-link .brand-wordmark{
    display:block !important;
    width:auto !important;
    height:60px !important;
    max-width:none !important;
    transform:scale(2.0) !important;
    transform-origin:center center !important;
    margin:0 auto !important;
    display:block !important;
    object-fit:contain !important;
    background:none !important;
    outline:none !important;
    filter:drop-shadow(0 2px 8px rgba(0,0,0,.16)) !important;
  }
}
