/* ═══════════════════════════════════════════════════════════════
   Customer Velocity 360 — Footer 2026 Enterprise Edition
   Extracted from Footer.webtemplate.source.html (Phase 7C)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --atq-ftr-bg: #0a0f1e;
  --atq-ftr-surface: rgba(255, 255, 255, 0.04);
  --atq-ftr-text: rgba(255, 255, 255, 0.70);
  --atq-ftr-text-muted: rgba(255, 255, 255, 0.38);
  --atq-ftr-heading: rgba(255, 255, 255, 0.50);
  --atq-ftr-link: rgba(255, 255, 255, 0.60);
  --atq-ftr-link-hover: #ffffff;
  --atq-ftr-primary: #2563eb;
  --atq-ftr-border: rgba(255, 255, 255, 0.08);
  --atq-ftr-font: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --atq-ftr-ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Phase 5: --cv-ftr-* forward aliases (new code should use these) */
  --cv-ftr-bg:         var(--atq-ftr-bg);
  --cv-ftr-surface:    var(--atq-ftr-surface);
  --cv-ftr-text:       var(--atq-ftr-text);
  --cv-ftr-text-muted: var(--atq-ftr-text-muted);
  --cv-ftr-heading:    var(--atq-ftr-heading);
  --cv-ftr-link:       var(--atq-ftr-link);
  --cv-ftr-link-hover: var(--atq-ftr-link-hover);
  --cv-ftr-primary:    var(--atq-ftr-primary);
  --cv-ftr-border:     var(--atq-ftr-border);
  --cv-ftr-font:       var(--atq-ftr-font);
  --cv-ftr-ease:       var(--atq-ftr-ease);
}

/* ── Shell ── */
.atq2-footer {
  background: var(--atq-ftr-bg);
  color: var(--atq-ftr-text);
  padding: 0;
  font-family: var(--atq-ftr-font);
  position: relative;
}

/* ── Top accent gradient line ── */
.atq2-footer-accent {
  height: 3px;
  background: linear-gradient(90deg,
    #2563eb 0%,
    #7c3aed 35%,
    #06b6d4 65%,
    #10b981 100%
  );
  opacity: 0.8;
}

/* ── 4-column Grid ── */
.atq2-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 48px;
  padding: 56px 0 0;
}

/* ── Brand ── */
.atq2-footer-brand {
  display: flex;
  flex-direction: column;
}

.atq2-footer-logo-link {
  display: inline-block;
  margin-bottom: 20px;
  transition: opacity 0.2s var(--atq-ftr-ease);
}

.atq2-footer-logo-link:hover {
  opacity: 0.8;
}

.atq2-footer-logo {
  width: 90px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.atq2-footer-tagline {
  font-size: 14px;
  color: var(--atq-ftr-text-muted);
  margin: 0 0 28px;
  line-height: 1.7;
  max-width: 280px;
}

/* ── Social Icons ── */
.atq2-footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.atq2-footer-social > div,
.atq2-footer-social [class*="col-"] {
  width: auto !important;
  float: none !important;
  padding: 0 !important;
  display: inline-flex !important;
  flex-direction: row !important;
  flex-grow: 0 !important;
  min-width: 0 !important;
}

.atq2-footer-social .socialimage {
  width: 32px !important;
  height: 32px !important;
  opacity: 0.4;
  filter: brightness(0) invert(1);
  border-radius: 8px;
  padding: 4px;
  transition: opacity 0.2s var(--atq-ftr-ease),
              transform 0.2s var(--atq-ftr-ease),
              background 0.2s var(--atq-ftr-ease);
}

.atq2-footer-social .socialimage:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.atq2-footer-social .socialmargin {
  margin-right: 8px !important;
}

/* ── Nav Columns ── */
.atq2-footer-nav {
  display: flex;
  flex-direction: column;
}

.atq2-footer-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--atq-ftr-heading);
  margin: 0 0 20px;
  padding: 0;
}

/* Styled links list (Resources column) */
.atq2-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.atq2-footer-links li {
  margin-bottom: 14px;
}

.atq2-footer-links a {
  color: var(--atq-ftr-link) !important;
  font-size: 14px !important;
  font-weight: 400;
  text-decoration: none !important;
  transition: color 0.2s var(--atq-ftr-ease),
              padding-left 0.2s var(--atq-ftr-ease);
  display: inline-block;
}

.atq2-footer-links a:hover {
  color: var(--atq-ftr-link-hover) !important;
  padding-left: 4px;
}

/* Reset Bootstrap col divs from snippet */
.atq2-footer-nav > div,
.atq2-footer-nav [class*="col-"] {
  width: auto !important;
  float: none !important;
  padding: 0 !important;
  display: block !important;
  flex-grow: 0 !important;
  min-width: 0 !important;
}

/* Footer button snippet items */
.atq2-footer-nav .footerbtn {
  display: block !important;
  width: auto !important;
  font-family: var(--atq-ftr-font) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  color: var(--atq-ftr-link) !important;
  background: transparent !important;
  border: none !important;
  padding: 0 0 14px !important;
  margin: 0 !important;
  white-space: nowrap;
  cursor: pointer;
  text-align: left !important;
  transition: color 0.2s var(--atq-ftr-ease),
              padding-left 0.2s var(--atq-ftr-ease);
}

.atq2-footer-nav .footerbtn:hover {
  color: var(--atq-ftr-link-hover) !important;
  padding-left: 4px !important;
}

/* ── CTA Column ── */
.atq2-footer-cta {
  display: flex;
  flex-direction: column;
}

.atq2-footer-cta-desc {
  font-size: 14px;
  color: var(--atq-ftr-text-muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

.atq2-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--atq-ftr-primary);
  color: #ffffff !important;
  font-family: var(--atq-ftr-font);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.30);
  transition: background 0.2s var(--atq-ftr-ease),
              transform 0.2s var(--atq-ftr-ease),
              box-shadow 0.2s var(--atq-ftr-ease);
  width: fit-content;
}

.atq2-footer-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.40);
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Dark mode: scoped override against global anchor color rules */
[data-theme="dark"] .atq2-footer-cta a.atq2-footer-btn,
[data-theme="dark"] .atq2-footer-cta a.atq2-footer-btn:visited,
[data-theme="dark"] .atq2-footer-cta a.atq2-footer-btn:hover,
[data-theme="dark"] .atq2-footer-cta a.atq2-footer-btn:focus,
[data-theme="dark"] .atq2-footer-cta a.atq2-footer-btn:active {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

[data-theme="dark"] .atq2-footer-cta a.atq2-footer-btn svg {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ── Bottom Bar ── */
.atq2-footer-bottom {
  border-top: 1px solid var(--atq-ftr-border);
  margin-top: 48px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.atq2-footer-copy {
  font-size: 12px;
  color: var(--atq-ftr-text-muted);
  margin: 0;
}

.atq2-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.atq2-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--atq-ftr-text-muted);
  background: var(--atq-ftr-surface);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--atq-ftr-border);
}

.atq2-footer-badge svg {
  opacity: 0.6;
}

/* ── Neutralise global footer-bottom ── */
.footer-bottom {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* ── Responsive ── */
@media screen and (max-width: 1024px) {
  .atq2-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media screen and (max-width: 768px) {
  .atq2-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0 0;
  }

  .atq2-footer-tagline {
    max-width: 100%;
  }

  .atq2-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 36px;
  }
}

@media screen and (max-width: 480px) {
  .atq2-footer-grid {
    padding: 32px 0 0;
    gap: 28px;
  }

  .atq2-footer-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .atq2-footer-social .socialimage,
  .atq2-footer-links a,
  .atq2-footer-nav .footerbtn,
  .atq2-footer-btn,
  .atq2-footer-logo-link {
    transition: none !important;
  }
}
