:root {
  --footer-bg: #071033;
  --footer-ink: #f8f9fb;
  --footer-muted: rgba(248, 249, 251, 0.72);
  --footer-accent: var(--ch-gold, #f4c542); /* gold accent */
  --footer-accent-2: var(
    --accent,
    #0d6efd
  ); /* site primary as secondary accent */
  --footer-shadow: var(--shadow, 0 8px 24px rgba(3, 7, 18, 0.6));
}

/* base */
.site-footer {
  background: linear-gradient(
      0deg,
      rgba(7, 16, 51, 1) 0%,
      rgba(13, 19, 39, 1) 100%
    ),
    var(--footer-bg);
  color: var(--footer-ink) !important;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

/* brand row */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-desc {
  color: var(--footer-muted);
  margin-bottom: 0;
}

/* headings */
.footer-heading {
  color: var(--footer-ink);
  font-weight: 700;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

/* footer lists */
.footer-list {
  padding-left: 0;
}
.footer-link,
.footer-link-alt {
  color: var(--footer-muted);
  text-decoration: none;
}
.footer-link:hover,
.footer-link:focus,
.footer-link-alt:hover,
.footer-link-alt:focus {
  color: var(--footer-ink);
  text-decoration: underline;
  outline: none;
}

/* social buttons */
.social-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--footer-ink);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, background 0.18s ease;
}
.social-btn:hover,
.social-btn:focus {
  transform: translateY(-3px);
  background: linear-gradient(
    90deg,
    var(--footer-accent),
    var(--footer-accent-2)
  );
  color: #071033;
  outline: none;
}

/* newsletter form */
.footer-input {
  min-width: 0;
  flex: 1 1 220px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--footer-ink);
  padding: 0.5rem 0.75rem;
}
.footer-input::placeholder {
  color: rgba(248, 249, 251, 0.5);
}

.footer-submit {
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  background: linear-gradient(
    90deg,
    var(--footer-accent),
    var(--footer-accent-2)
  );
  color: #071033;
  border: none;
  font-weight: 700;
  box-shadow: var(--footer-shadow);
}
.footer-submit:hover,
.footer-submit:focus {
  transform: translateY(-3px);
  outline: none;
}

/* small separator */
.footer-sep {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* contact links */
.footer-contact a {
  color: var(--footer-muted);
  text-decoration: none;
}
.footer-contact a:hover,
.footer-contact a:focus {
  color: var(--footer-ink);
  text-decoration: underline;
}

/* responsive */
@media (max-width: 767.98px) {
  .footer-submit {
    width: 100%;
    margin-top: 0.5rem;
  }
  .footer-input {
    width: 100%;
  }
  .footer-brand {
    gap: 0.5rem;
  }
}

/* focus ring for keyboard users */
.site-footer a:focus,
.site-footer button:focus,
.site-footer input:focus {
  outline: 3px solid rgba(244, 197, 66, 0.18);
  outline-offset: 2px;
  border-radius: 8px;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .social-btn,
  .footer-submit,
  .social-btn:hover,
  .footer-submit:hover {
    transition: none !important;
    transform: none !important;
  }
}
