.template-footer-redesign {
  --footer-bg: #0d0d12;
  --footer-panel: rgba(255, 255, 255, 0.035);
  --footer-panel-hover: rgba(255, 255, 255, 0.06);
  --footer-line: rgba(255, 255, 255, 0.11);
  --footer-copy: rgba(255, 255, 255, 0.68);
  --footer-muted: rgba(255, 255, 255, 0.48);
  --footer-text: #fff9fb;
  --footer-accent: #f2bd7b;
  --footer-pink: #ef7599;
  position: relative;
  overflow: hidden;
  padding: 0;
  border-top: 1px solid var(--footer-line);
  background: var(--footer-bg);
  color: var(--footer-text);
}

.template-footer-redesign::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 189, 123, 0.7), rgba(239, 117, 153, 0.68), transparent);
  pointer-events: none;
}

.template-footer-shell {
  width: min(100% - 48px, 1480px);
  margin: 0 auto;
  padding: 68px 0 30px;
}

.template-footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.55fr) repeat(3, minmax(150px, 0.85fr)) minmax(240px, 1.15fr);
  gap: 20px;
  align-items: stretch;
}

.template-footer-brand,
.template-footer-bucket,
.template-footer-connect {
  min-width: 0;
  border: 1px solid var(--footer-line);
  border-radius: 24px;
  background: var(--footer-panel);
}

.template-footer-brand {
  display: flex;
  min-height: 278px;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
}

.template-footer-logo {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
}

.template-footer-logo img {
  display: block;
  width: auto;
  height: 64px;
}

.template-footer-eyebrow {
  margin: 28px 0 12px;
  color: var(--footer-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.template-footer-brand-copy {
  max-width: 38ch;
  margin: 0;
  color: var(--footer-copy);
  font-size: 0.98rem;
  line-height: 1.75;
}

.template-footer-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 0 18px;
  border: 1px solid rgba(242, 189, 123, 0.42);
  border-radius: 999px;
  color: #fff7ec;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.template-footer-primary-link:hover,
.template-footer-primary-link:focus-visible {
  border-color: rgba(242, 189, 123, 0.82);
  background: rgba(242, 189, 123, 0.09);
  transform: translateY(-1px);
}

.template-footer-bucket,
.template-footer-connect {
  padding: 28px 24px;
}

.template-footer-bucket h2,
.template-footer-connect h2 {
  margin: 0 0 22px;
  color: var(--footer-text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.template-footer-bucket h2::after,
.template-footer-connect h2::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 12px;
  background: var(--footer-pink);
}

.template-footer-bucket nav {
  display: grid;
  gap: 5px;
}

.template-footer-bucket a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 0;
  color: var(--footer-copy);
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.template-footer-bucket a:hover,
.template-footer-bucket a:focus-visible {
  color: var(--footer-text);
  transform: translateX(3px);
}

.template-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.template-footer-social {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--footer-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: var(--footer-copy);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.template-footer-social svg {
  width: 20px;
  height: 20px;
}

.template-footer-social:hover,
.template-footer-social:focus-visible {
  border-color: rgba(239, 117, 153, 0.55);
  background: rgba(239, 117, 153, 0.09);
  color: #fff;
  transform: translateY(-2px);
}

.template-footer-contact-label {
  margin: 28px 0 7px;
  color: var(--footer-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.template-footer-email {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--footer-text);
  font-size: 0.92rem;
  line-height: 1.45;
  text-decoration: none;
}

.template-footer-email:hover,
.template-footer-email:focus-visible {
  color: var(--footer-accent);
}

.template-footer-note {
  margin: 20px 0 0;
  color: var(--footer-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.template-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--footer-line);
}

.template-footer-copyright {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.82rem;
}

.template-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.template-footer-legal a {
  color: var(--footer-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.template-footer-legal a:hover,
.template-footer-legal a:focus-visible {
  color: var(--footer-text);
}

.template-footer-redesign a:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 4px;
}

@media (max-width: 1180px) {
  .template-footer-main {
    grid-template-columns: minmax(280px, 1.4fr) repeat(2, minmax(160px, 1fr));
  }

  .template-footer-brand {
    grid-row: span 2;
  }

  .template-footer-connect {
    grid-column: span 2;
  }
}

@media (max-width: 780px) {
  .template-footer-shell {
    width: min(100% - 28px, 680px);
    padding: 44px 0 24px;
  }

  .template-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .template-footer-brand,
  .template-footer-connect {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .template-footer-brand {
    min-height: 0;
    padding: 24px;
  }

  .template-footer-primary-link {
    margin-top: 24px;
  }

  .template-footer-bucket,
  .template-footer-connect {
    padding: 22px 20px;
    border-radius: 20px;
  }

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

  .template-footer-legal {
    justify-content: flex-start;
  }
}

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

  .template-footer-brand,
  .template-footer-connect {
    grid-column: auto;
  }

  .template-footer-logo img {
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .template-footer-redesign a {
    transition: none;
  }
}
