/**
 * Footer — AllinPro
 * Self-contained styles so footer works on all pages (with or without Tailwind)
 */

.site-footer {
  padding: 4rem 1.5rem 3rem;
  background: var(--color-bg-deep, #07060b);
  border-top: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.06));
  font-family: var(--font-display, 'Inter', system-ui, sans-serif);
}

@media (min-width: 768px) {
  .site-footer { padding: 5rem 2rem 4rem; }
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .site-footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .site-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
  }
}

.site-footer-brand img {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 1024px) {
  .site-footer-brand img { height: 3rem; }
}

.site-footer-brand a {
  display: inline-block;
  transition: opacity 0.2s;
}

.site-footer-brand a:hover {
  opacity: 0.9;
}

.site-footer-desc {
  color: var(--color-text-muted, #9ca3af);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 360px;
  margin: 1rem 0 1.25rem;
}

.site-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 100px;
}

.site-footer-badge.encrypted {
  color: rgba(52, 211, 153, 0.9);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.site-footer-badge.direct {
  color: rgba(165, 180, 252, 0.9);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.site-footer-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer-links li {
  margin-bottom: 0.75rem;
}

.site-footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-muted, #9ca3af);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer-links a:hover {
  color: #fff;
}

.site-footer-help-note {
  font-size: 0.75rem;
  color: var(--color-text-faint, #6b7280);
  line-height: 1.5;
  margin-top: 0.5rem;
}

.site-footer-divider {
  border: none;
  border-top: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.06));
  margin: 0 0 1.5rem;
}

.site-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-faint, #6b7280);
}

@media (min-width: 640px) {
  .site-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.site-footer-bottom p {
  margin: 0;
}

.site-footer-tagline {
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .site-footer-tagline { font-size: 0.875rem; }
}

/* --------------------------------------------------------------------------
   Support strip (layers/support.php) — all pages that include footer/header
   -------------------------------------------------------------------------- */

.home-support-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.06));
  background:
    radial-gradient(900px 320px at 50% -10%, rgba(99, 102, 241, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(10, 9, 16, 0.4) 0%, transparent 100%);
}

.home-support-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.25rem;
  background: linear-gradient(165deg, rgba(22, 20, 34, 0.95) 0%, rgba(12, 11, 20, 0.98) 100%);
  border: 1px solid rgba(129, 140, 248, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 48px -24px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.home-support-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(165, 180, 252, 0.95);
}

.home-support-title {
  margin: 0 0 0.625rem;
  font-size: clamp(1.375rem, 2.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
}

.home-support-slogan {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.72);
}

.home-support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: left;
}

@media (min-width: 640px) {
  .home-support-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.125rem;
  }
}

.home-support-tile {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.125rem 1.125rem 1.125rem 1.25rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 14, 24, 0.75);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.home-support-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 12px 32px -12px rgba(79, 70, 229, 0.35);
}

.home-support-tile:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.8);
  outline-offset: 2px;
}

.home-support-tile--primary:hover {
  background: rgba(79, 70, 229, 0.12);
}

.home-support-tile--discord:hover {
  background: rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.35);
}

.home-support-tile-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.45) 0%, rgba(79, 70, 229, 0.25) 100%);
  border: 1px solid rgba(165, 180, 252, 0.25);
}

.home-support-tile--discord .home-support-tile-icon {
  background: linear-gradient(145deg, rgba(88, 101, 242, 0.5) 0%, rgba(59, 89, 152, 0.35) 100%);
  border-color: rgba(129, 140, 248, 0.3);
}

.home-support-tile-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.home-support-tile-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.home-support-tile-hint {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.95);
}

.home-support-tile-arrow {
  flex-shrink: 0;
  align-self: center;
  font-size: 1.125rem;
  color: rgba(165, 180, 252, 0.75);
  transition: transform 0.2s ease, color 0.2s ease;
}

.home-support-tile:hover .home-support-tile-arrow {
  transform: translate(2px, -2px);
  color: #c7d2fe;
}

@media (max-width: 639px) {
  .home-support-shell {
    padding: 1.5rem 1.125rem;
  }
  .home-support-tile {
    padding: 1rem 1rem 1rem 1.125rem;
  }
}
