/*
 * Giveaway Guru — Global Footer Styles
 * Loaded on every page. Styles the parent theme widget footer (#site-footer.ncs-site-footer)
 * with dark/gold brand UI; tokens resolve outside .gg-template via child-brand.css.
 */

/* ── Utility wrap (needed on non-homepage pages) ─────────────────────────── */
.gg-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Shared footer tokens (parent widget footer + legacy gg-footer partial) ─ */
#site-footer.ncs-site-footer,
footer.gg-footer {
  --gg-gold: var(--color-primary);
  --gg-gold-bright: var(--color-accent);
  --gg-gold-deep: var(--color-primary-dark);
  --gg-gold-line: rgba(212, 164, 55, 0.35);
  --gg-sunk: #08080a;
  --gg-line: rgba(255, 255, 255, 0.06);
  --gg-line-strong: rgba(255, 255, 255, 0.12);
  --gg-fg: var(--color-text-primary);
  --gg-fg-muted: var(--color-text-secondary);
  --gg-fg-faint: #6b6862;
  --gg-fg-on-gold: #0a0a0a;
  --gg-font-sans: var(--font-body, 'Space Grotesk', -apple-system, sans-serif);
  --gg-font-serif: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
  --gg-font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Parent theme footer: .ncs-site-footer + footer-1 … footer-4 widgets
   ═══════════════════════════════════════════════════════════════════════════ */

#site-footer.ncs-site-footer {
  background: var(--gg-sunk);
  border-top: 1px solid var(--gg-line);
  color: var(--gg-fg);
  font-family: var(--gg-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

#site-footer.ncs-site-footer * {
  box-sizing: border-box;
}

/* Override parent Tailwind surface/light-border utilities */
#site-footer.ncs-site-footer.bg-surface {
  background: var(--gg-sunk);
}

#site-footer.ncs-site-footer.border-gray-200 {
  border-color: var(--gg-line);
}

/* Main content strip */
#site-footer.ncs-site-footer > div.max-w-7xl:first-of-type {
  max-width: 1320px;
  padding-top: 80px;
  padding-bottom: 56px;
}

#site-footer.ncs-site-footer .text-text-secondary {
  color: var(--gg-fg-muted);
}

/* Widget columns */
#site-footer.ncs-site-footer .footer-widget {
  margin-bottom: 0;
}

#site-footer.ncs-site-footer .footer-widget + .footer-widget {
  margin-top: 1.25rem;
}

/* Widget / block titles — match GG column labels */
#site-footer.ncs-site-footer .footer-widget .widget-title,
#site-footer.ncs-site-footer .footer-widget h4,
#site-footer.ncs-site-footer .footer-widget .wp-block-heading {
  font-family: var(--gg-font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gg-fg-muted);
  margin: 0 0 18px;
  font-weight: 500;
}

#site-footer.ncs-site-footer .footer-widget h4 a {
  color: inherit;
  text-decoration: none;
}

/* Body copy inside widgets */
#site-footer.ncs-site-footer .footer-widget p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gg-fg-muted);
  margin: 0 0 12px;
  max-width: 360px;
}

#site-footer.ncs-site-footer .footer-widget p:last-child {
  margin-bottom: 0;
}

/* Links & nav menus */
#site-footer.ncs-site-footer .footer-widget a {
  color: var(--gg-fg);
  text-decoration: none;
  transition: color 200ms;
}

#site-footer.ncs-site-footer .footer-widget a:hover {
  color: var(--gg-gold);
}

#site-footer.ncs-site-footer .footer-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-footer.ncs-site-footer .footer-widget ul li {
  margin: 0;
}

#site-footer.ncs-site-footer .footer-widget ul li a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
}

#site-footer.ncs-site-footer .footer-widget .wp-block-navigation a {
  padding: 6px 0;
}

/* Lists & separators between widget blocks */
#site-footer.ncs-site-footer .footer-widget ul.menu li {
  border-bottom: none;
}

/* Social-style icon rows (common patterns) */
#site-footer.ncs-site-footer .footer-widget .wp-block-social-links {
  gap: 8px;
}

#site-footer.ncs-site-footer .footer-widget .wp-block-social-links .wp-social-link {
  border: 1px solid var(--gg-line-strong);
  border-radius: 10px;
}

#site-footer.ncs-site-footer .footer-widget .wp-block-social-links .wp-social-link a {
  padding: 10px;
}

/* Bottom bar */
#site-footer.ncs-site-footer .bg-background-dark {
  background: var(--color-background-dark);
  border-top: 1px solid var(--gg-line);
}

#site-footer.ncs-site-footer .bg-background-dark .max-w-7xl {
  max-width: 1320px;
}

#site-footer.ncs-site-footer .bg-background-dark .text-text-secondary,
#site-footer.ncs-site-footer .bg-background-dark .text-sm {
  font-family: var(--gg-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gg-fg-faint);
}

#site-footer.ncs-site-footer .bg-background-dark .text-gray-500 {
  color: var(--gg-fg-faint);
}

#site-footer.ncs-site-footer .bg-background-dark .text-gray-400 {
  color: var(--gg-fg-muted);
}

#site-footer.ncs-site-footer .bg-background-dark a {
  color: var(--gg-fg-faint);
  text-decoration: none;
  transition: color 200ms;
}

#site-footer.ncs-site-footer .bg-background-dark a:hover {
  color: var(--gg-gold);
}

/* Scroll-to-top — brand gold accents */
#site-footer.ncs-site-footer #nera-scroll-top {
  background: var(--color-surface);
  color: var(--gg-fg);
  border: 1px solid var(--gg-line-strong);
}

#site-footer.ncs-site-footer #nera-scroll-top:hover {
  background: var(--color-gray-50);
  border-color: var(--gg-gold-line);
  color: var(--gg-gold);
}

@media (max-width: 860px) {
  #site-footer.ncs-site-footer > div.max-w-7xl {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Legacy: template-parts/homepage/footer.php (.gg-footer) — optional partial
   ═══════════════════════════════════════════════════════════════════════════ */

.gg-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--gg-font-sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.gg-logo__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--gg-gold-bright), var(--gg-gold) 55%, var(--gg-gold-deep));
  display: grid;
  place-items: center;
  font-family: var(--gg-font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: var(--gg-fg-on-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 14px rgba(212, 164, 55, 0.25);
  flex-shrink: 0;
}

.gg-logo__white {
  color: var(--gg-fg);
}

.gg-logo__gold {
  color: var(--gg-gold);
  font-family: var(--gg-font-serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 22px;
  margin-left: -2px;
}

footer.gg-footer {
  background: var(--gg-sunk);
  padding: 80px 0 32px;
  border-top: 1px solid var(--gg-line);
  color: var(--gg-fg);
  font-family: var(--gg-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

footer.gg-footer * {
  box-sizing: border-box;
}

footer.gg-footer a {
  color: inherit;
  text-decoration: none;
}

.gg-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--gg-line);
}

.gg-footer__brand-blurb {
  color: var(--gg-fg-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 360px;
  margin: 20px 0 24px;
}

.gg-footer__socials {
  display: flex;
  gap: 8px;
}

.gg-footer__socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gg-line-strong);
  border-radius: 10px;
  color: var(--gg-fg-muted);
  transition: all 200ms;
  text-decoration: none;
}

.gg-footer__socials a:hover {
  color: var(--gg-gold);
  border-color: var(--gg-gold-line);
}

.gg-footer__socials svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

.gg-footer__col h5 {
  font-family: var(--gg-font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gg-fg-muted);
  margin: 0 0 18px;
  font-weight: 500;
}

.gg-footer__col a {
  display: block;
  font-size: 14px;
  color: var(--gg-fg);
  padding: 6px 0;
  transition: color 200ms;
  text-decoration: none;
}

.gg-footer__col a:hover {
  color: var(--gg-gold);
}

.gg-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.gg-footer__bottom span,
.gg-footer__bottom a {
  font-family: var(--gg-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gg-fg-faint);
  text-decoration: none;
}

.gg-footer__legal {
  display: flex;
  gap: 24px;
}

.gg-footer__legal a:hover {
  color: var(--gg-gold);
}

@media (max-width: 860px) {
  footer.gg-footer .gg-wrap {
    padding: 0 20px;
  }

  .gg-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 540px) {
  .gg-footer__top {
    grid-template-columns: 1fr;
  }

  .gg-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .gg-footer__legal {
    flex-wrap: wrap;
    gap: 16px;
  }
}
