.site-footer {
  background: #0d0d1f;
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(32px, 6vw, 56px) clamp(14px, 4vw, 24px)
    clamp(16px, 3vw, 24px);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(20px, 4vw, 36px);
  margin-bottom: clamp(24px, 5vw, 36px);
}

.footer-col-title {
  color: #fff;
  font-weight: 800;
  font-size: clamp(13px, 3.2vw, 15px);
  margin-bottom: clamp(10px, 2.5vw, 14px);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: clamp(12px, 2.5vw, 16px);
  transition: opacity 0.2s ease;
}

.footer-brand:hover,
.footer-brand:focus-visible {
  opacity: 0.85;
}

.footer-brand-img {
  display: block;
  width: auto;
  height: clamp(24px, 4vw, 30px);
  object-fit: contain;
}

.footer-tagline {
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.6;
  margin-bottom: clamp(12px, 3vw, 16px);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2vw, 10px);
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: clamp(12px, 3vw, 14px);
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--badge-yellow, #f4ce54);
}

.footer-social {
  display: flex;
  gap: clamp(8px, 2vw, 12px);
}

.footer-social a {
  width: clamp(36px, 8vw, 42px);
  height: clamp(36px, 8vw, 42px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 3.5vw, 17px);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--badge-yellow, #f4ce54);
  color: var(--text-dark, #0a0a0a);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: clamp(16px, 3vw, 24px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);
  flex-wrap: wrap;
  font-size: clamp(11px, 2.8vw, 13px);
}

/* Page embedded inside the footer popup iframe: hide the page's own sticky
   header and site footer so only the actual content is shown. */
html.is-embedded .sticky-header,
html.is-embedded [data-site-footer] {
  display: none !important;
}

html.is-embedded body {
  padding-top: 0 !important;
}

/* Footer popup modal */
.footer-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.5vw, 28px);
  animation: footerPopupFadeIn 0.18s ease-out;
}

.footer-popup-overlay[hidden] {
  display: none;
}

.footer-popup {
  background: #fff;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  max-height: 94vh;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: footerPopupSlideUp 0.22s ease-out;
}

.footer-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: #1e1e4a;
  color: #fff;
  border-bottom: 2px solid #f4ce54;
  flex-shrink: 0;
}

.footer-popup-title {
  font-size: clamp(14px, 2.6vw, 17px);
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.3px;
  color: #fff;
  min-width: 0;
}

.footer-popup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.footer-popup-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c4453e 0%, #a33830 100%);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 18px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(196, 69, 62, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.footer-popup-home:hover,
.footer-popup-home:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(196, 69, 62, 0.45);
  outline: none;
}

.footer-popup-close {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
  flex-shrink: 0;
}

.footer-popup-close:hover,
.footer-popup-close:focus-visible {
  background: #f4ce54;
  color: #191919;
  transform: scale(1.05);
  outline: none;
}

.footer-popup-body {
  flex: 1;
  min-height: 0;
  background: #fff;
}

.footer-popup-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

@keyframes footerPopupFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes footerPopupSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 680px) {
  .footer-popup {
    max-height: 96vh;
    border-radius: 12px;
  }

  .footer-popup-header {
    padding: 12px 14px;
  }

  .footer-popup-home {
    font-size: 11px;
    padding: 9px 14px;
  }
}
