/**
 * 4K IPTV UK – Premium footer
 * CTA strip → 4-column grid → payments → bottom bar
 */

:root {
  --sf-float-lift: 104px;
}

@media (max-width: 639.98px) {
  :root {
    --sf-float-lift: 92px;
  }
}

/* ── Reset legacy main.css footer rules ───────────── */
.site-footer__main,
.site-footer__grid {
  background: transparent !important;
  padding: 0 !important;
  color: inherit;
}

.site-footer__col {
  height: auto;
  margin-bottom: 0;
}

.site-footer__trust,
.site-footer__trust-strip,
.site-footer__utility,
.site-footer__company,
.site-footer__brand-contact,
.site-footer__contact-card,
.site-footer__col--contact {
  display: none;
}

/* ── Shell ───────────────────────────────────────── */
.site-footer {
  --sf-accent: var(--brand-accent, #ffb302);
  --sf-blue: var(--brand-blue, #0b2b6f);
  --sf-navy: var(--brand-navy, #071a42);
  --sf-navy-deep: var(--brand-navy-deep, #050f28);
  --sf-glass-border: rgba(255, 255, 255, 0.1);
  --sf-text: rgba(255, 255, 255, 0.78);
  --sf-text-muted: rgba(255, 255, 255, 0.55);
  --sf-link: rgba(186, 215, 255, 0.92);

  position: relative;
  margin-top: 0;
  overflow-x: clip;
  color: var(--sf-text);
  color-scheme: dark;
  scroll-margin-bottom: var(--sf-float-lift, 96px);
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(95, 145, 255, 0.16) 0%, transparent 58%),
    radial-gradient(ellipse 45% 35% at 100% 80%, rgba(255, 179, 2, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 0% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 55%),
    linear-gradient(170deg, #050f28 0%, #061633 38%, var(--sf-navy) 72%, var(--sf-navy-deep) 100%) !important;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.22) 18%,
    rgba(147, 197, 253, 0.5) 50%,
    rgba(59, 130, 246, 0.22) 82%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  padding: clamp(16px, 2vw, 24px) 0 clamp(6px, 0.8vw, 10px);
}

/* ── CTA strip ───────────────────────────────────── */
.site-footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: clamp(12px, 1.6vw, 18px);
  padding: clamp(14px, 1.8vw, 18px) clamp(16px, 2.2vw, 24px);
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: linear-gradient(135deg, rgba(15, 45, 100, 0.72) 0%, rgba(8, 28, 68, 0.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-footer__cta-copy {
  flex: 1 1 260px;
  min-width: 0;
}

.site-footer__cta-title {
  margin: 0 0 6px;
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #fff;
}

.site-footer__cta-text {
  margin: 0;
  font-size: clamp(0.8125rem, 1.4vw, 0.875rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.76);
  max-width: 48ch;
}

.site-footer__cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 1 auto;
}

.site-footer__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.site-footer__cta-btn--trial {
  background: linear-gradient(135deg, #ffd055 0%, var(--sf-accent) 55%, #f5a800 100%);
  color: var(--sf-navy);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(255, 179, 2, 0.28);
}

.site-footer__cta-btn--trial:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 8px 22px rgba(255, 179, 2, 0.34);
}

.site-footer__cta-btn--wa {
  background: rgba(7, 94, 84, 0.5);
  border: 1px solid rgba(37, 211, 102, 0.42);
  color: #fff;
}

.site-footer__cta-btn--wa:hover {
  background: rgba(7, 94, 84, 0.68);
  border-color: rgba(37, 211, 102, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.22);
}

.site-footer__cta-btn:focus-visible {
  outline: 2px solid var(--sf-accent);
  outline-offset: 3px;
}

/* ── Main panel ──────────────────────────────────── */
.site-footer__panel {
  padding: clamp(16px, 2vw, 22px) clamp(16px, 2vw, 22px) clamp(14px, 1.8vw, 18px);
  border-radius: 16px;
  border: 1px solid var(--sf-glass-border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── 4-column grid ───────────────────────────────── */
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.2vw, 24px);
  align-items: start;
}

@media (min-width: 640px) and (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1025px) {
  .site-footer__grid {
    grid-template-columns:
      minmax(240px, 1.35fr)
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(0, 1fr);
    gap: clamp(16px, 2vw, 28px);
  }
}

/* ── Brand column ────────────────────────────────── */
.site-footer__brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-footer__logo {
  display: inline-block;
  margin-bottom: 10px;
  line-height: 0;
}

.site-footer__logo img {
  max-height: 42px;
  width: auto;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.site-footer__tagline {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 42ch;
}

.site-footer__brand-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer__brand-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.site-footer__brand-badges li svg {
  color: var(--sf-accent);
  flex-shrink: 0;
}

/* ── Link columns ────────────────────────────────── */
.site-footer__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-footer__heading {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.3;
}

.site-footer__heading::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin-top: 6px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--sf-accent) 0%, rgba(255, 179, 2, 0.3) 100%);
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links li {
  margin: 0;
}

.site-footer .site-footer__links a {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 1px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sf-text);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease, padding-left 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: #fff;
  transform: translateX(3px);
  padding-left: 2px;
}

.site-footer__links a:focus-visible {
  outline: 2px solid var(--sf-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── Accepted payments row ───────────────────────── */
.site-footer .site-footer__payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-top: clamp(14px, 1.8vw, 20px);
  padding-top: clamp(14px, 1.6vw, 18px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__payments-label {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-footer__pay-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 0;
}

.site-footer__pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  height: 30px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer__pay-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.site-footer__pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  line-height: 0;
}

.site-footer__pay-icon svg {
  display: block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ── Legal notice (below payments) ───────────────── */
.site-footer__legal-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(850px, 100%);
  width: 100%;
  margin: clamp(12px, 1.6vw, 16px) auto 0;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.site-footer__legal-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 0;
  border-radius: 7px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: rgba(147, 197, 253, 0.95);
}

.site-footer__legal-notice-text {
  margin: 0;
  font-size: clamp(12px, 1vw, 13px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.56);
  text-align: left;
  min-width: 0;
}

@media (min-width: 1200px) {
  .site-footer__legal-notice {
    max-width: 820px;
  }

  .site-footer__legal-notice-text {
    white-space: nowrap;
    font-size: 12.5px;
  }
}

/* ── Bottom bar ──────────────────────────────────── */
.site-footer__bottom {
  margin-top: clamp(10px, 1.2vw, 14px);
  background: rgba(0, 0, 0, 0.32);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer__bottom-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__bottom-inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px 20px;
    text-align: left;
  }

  .site-footer__copyright {
    justify-self: start;
  }

  .site-footer__bottom-email {
    justify-self: center;
    text-align: center;
  }

  .site-footer__legal-links {
    justify-self: end;
  }
}

.site-footer__copyright {
  margin: 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.52);
}

.site-footer__bottom-email {
  margin: 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.48);
}

.site-footer__bottom-email a {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__bottom-email a:hover,
.site-footer__bottom-email a:focus-visible {
  color: var(--sf-link);
  text-decoration: underline;
}

.site-footer__bottom-email a:focus-visible {
  outline: 2px solid var(--sf-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.site-footer__legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 6px;
}

.site-footer__legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-footer__legal-links a:hover,
.site-footer__legal-links a:focus-visible {
  color: var(--sf-accent);
  background: rgba(59, 130, 246, 0.14);
}

.site-footer__legal-links a:focus-visible {
  outline: 2px solid var(--sf-accent);
  outline-offset: 2px;
}

.site-footer__legal-links span {
  color: rgba(255, 255, 255, 0.22);
  font-size: 11px;
  line-height: 1;
  user-select: none;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 639.98px) {
  .site-footer__cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .site-footer__cta-text {
    max-width: none;
    margin-inline: auto;
  }

  .site-footer__cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .site-footer__cta-btn {
    width: 100%;
  }

  .site-footer__panel {
    padding: 14px 14px 12px;
  }

  .site-footer__tagline {
    max-width: none;
  }

  .site-footer .site-footer__payments {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .site-footer__pay-badges {
    width: 100%;
    justify-content: center;
    gap: 6px;
  }

  .site-footer__pay-badge {
    font-size: 11px;
    padding: 0 10px;
    min-height: 28px;
    height: 28px;
  }

  .site-footer__legal-notice {
    flex-direction: row;
    align-items: center;
    padding: 9px 14px;
    margin-top: 12px;
  }

  .site-footer__legal-notice-text {
    white-space: normal;
    font-size: 12px;
    line-height: 1.45;
  }

  .site-footer__bottom-inner {
    gap: 6px;
    padding: 2px 0;
  }

  .site-footer__copyright {
    order: 1;
  }

  .site-footer__bottom-email {
    order: 2;
  }

  .site-footer__legal-links {
    order: 3;
    margin-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__links a,
  .site-footer__pay-badge,
  .site-footer__legal-links a,
  .site-footer__cta-btn,
  .site-footer__bottom-email a {
    transition: none;
  }

  .site-footer__links a:hover,
  .site-footer__links a:focus-visible,
  .site-footer__pay-badge:hover,
  .site-footer__legal-links a:hover,
  .site-footer__cta-btn:hover {
    transform: none;
  }

  .site-footer__cta-btn--trial:hover {
    filter: none;
  }
}
