/* Purpose: Site footer. Ported from the approved WV reference — emerald "stage" with
   optional video, a liquid-glass panel, brand + 3 link columns, and a social bar.
   Mobile-first: columns stack on mobile, expand at md/lg. */

.footer-stage {
  position: relative;
  padding: 80px 4vw 40px;            /* mobile base */
  background: var(--bg-dark-2);
  overflow: hidden;
}
@media (min-width: 768px) {
  .footer-stage { padding: 128px var(--space-section-x) 56px; }
}

.footer-stage__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.9;
}
.footer-stage__overlay {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      var(--cream) 0%,
      rgba(245, 239, 224, 0.95) 14%,
      rgba(245, 239, 224, 0.62) 32%,
      rgba(245, 239, 224, 0.26) 50%,
      rgba(245, 239, 224, 0) 70%),
    radial-gradient(ellipse 100% 82% at 50% 36%,
      rgba(46, 81, 73, 0.30) 0%,
      rgba(20, 30, 26, 0.48) 64%,
      rgba(15, 24, 20, 0.66) 100%);
}

/* The glass surface. */
.site-footer {
  position: relative; z-index: 2;
  max-width: var(--max-wide);
  margin: 0 auto;
  border-radius: 24px;
  padding: 24px;                      /* mobile base */
  color: rgba(255, 255, 255, 0.7);
}
@media (min-width: 768px) { .site-footer { padding: 40px; } }

.site-footer.liquid-glass {
  background: rgba(18, 28, 24, 0.42);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.site-footer.liquid-glass::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ── Top grid: brand (5) | links (7) ── */
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;          /* mobile: stacked */
  gap: 36px;
  margin-bottom: 40px;
  position: relative; z-index: 1;
}
@media (min-width: 1100px) {
  .site-footer__grid { grid-template-columns: 5fr 7fr; gap: 48px; }
}

.site-footer__logo { display: inline-block; margin-bottom: 18px; }
.site-footer__logo-img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.site-footer__logo-text { font-family: var(--font-display); font-size: 22px; color: #fff; }
.site-footer__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  max-width: 38ch;
  margin-bottom: 20px;
}
.site-footer__contact { display: flex; flex-direction: column; gap: 8px; font-style: normal; }
.site-footer__contact li,
.site-footer__contact span,
.site-footer__contact a {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
}
.site-footer__contact a { transition: color var(--dur-default); }
.site-footer__contact a:hover { color: #fff; }

/* Right side — link columns. */
.site-footer__links {
  display: grid;
  grid-template-columns: 1fr;          /* mobile */
  gap: 28px;
}
@media (min-width: 560px) { .site-footer__links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .site-footer__links { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.site-footer__col h5 {
  font-family: var(--font-body);
  font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff; font-weight: 500; margin-bottom: 16px;
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.site-footer__col a {
  font-size: 14px; color: rgba(255, 255, 255, 0.85); line-height: 1.55;
  transition: color var(--dur-default);
}
.site-footer__col a:hover { color: #fff; }

/* ── Bottom bar: copy | socials ── */
.site-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
  position: relative; z-index: 1;
}
@media (max-width: 559px) {
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}
.site-footer__copy {
  font-size: var(--text-sm); letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
}
.site-footer__join { display: flex; align-items: center; gap: 16px; }
.site-footer__join-label {
  font-size: var(--text-sm); letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
}
.site-footer__social { display: flex; gap: 16px; align-items: center; }
.site-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.7); opacity: 0.7;
  transition: color var(--dur-default), opacity var(--dur-default);
}
.site-footer__social a:hover { color: #fff; opacity: 1; }
.site-footer__social svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── Floating WhatsApp ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px;
  z-index: var(--z-modal);
  width: 56px; height: 56px;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(55, 96, 84, 0.32);
  transition: transform var(--dur-snap), box-shadow var(--dur-default);
}
.wa-float:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
