/* Digital Coach — unified footer (brand card + link grid, CTA band) */

footer.dc-footer.dc-footer--unified {
  --dc-ft-bg: #0f1419;
  --dc-ft-bg-soft: #1a2230;
  --dc-ft-card: rgba(255, 255, 255, 0.04);
  --dc-ft-text: #cbd5e1;
  --dc-ft-muted: #94a3b8;
  --dc-ft-heading: #f8fafc;
  --dc-ft-accent: #3b82f6;
  --dc-ft-brand: #0067b6;
  --dc-ft-border: rgba(148, 163, 184, 0.14);
  --dc-ft-hover: #ffffff;
  position: relative;
  margin-top: auto;
  overflow: hidden;
  padding-bottom: var(--dc-safe-bottom);
  color: var(--dc-ft-text);
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(0, 103, 182, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 100% 100%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #1e293b 0%, var(--dc-ft-bg-soft) 38%, var(--dc-ft-bg) 100%);
}

footer.dc-footer.dc-footer--unified::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 8%),
    radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.05) 0%, transparent 10%);
  pointer-events: none;
}

footer.dc-footer.dc-footer--unified > * {
  position: relative;
  z-index: 1;
}

footer.dc-footer.dc-footer--unified .dc-footer__accent {
  height: 4px;
  background: linear-gradient(90deg, #0067b6 0%, #3b82f6 42%, #22d3ee 78%, #0067b6 100%);
  background-size: 200% 100%;
  opacity: 1;
}

/* ——— CTA band ——— */
.dc-footer__cta {
  border-bottom: 1px solid var(--dc-ft-border);
  background: linear-gradient(135deg, rgba(0, 103, 182, 0.28) 0%, rgba(59, 130, 246, 0.12) 50%, rgba(15, 23, 42, 0.4) 100%);
}

.dc-footer__cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(20px, 3.5vw, 28px) clamp(16px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.dc-footer__cta-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.dc-footer__cta-title {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--dc-ft-heading);
}

.dc-footer__cta-desc {
  margin: 6px 0 0;
  max-width: 36rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--dc-ft-muted);
}

.dc-footer__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #0067b6 0%, #3b82f6 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 28px rgba(0, 103, 182, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dc-footer__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 103, 182, 0.55);
  background: linear-gradient(135deg, #005092 0%, #2563eb 100%);
}

.dc-footer__cta-btn:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.9);
  outline-offset: 3px;
}

/* ——— Main layout ——— */
.dc-footer__main {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 52px) clamp(16px, 4vw, 40px) clamp(28px, 4vw, 40px);
}

.dc-footer__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
}

.dc-footer__links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2.5vw, 16px);
}

/* Brand card */
.dc-footer__col--brand {
  text-align: center;
}

.dc-footer__brand-card {
  padding: clamp(18px, 3vw, 24px);
  border-radius: 18px;
  border: 1px solid var(--dc-ft-border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 16px 48px rgba(0, 0, 0, 0.28);
}

.dc-footer__brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dc-footer__brand-logo:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.dc-footer__brand-logo:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.85);
  outline-offset: 4px;
}

.dc-footer__brand-logo img {
  width: min(168px, 52vw);
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

.dc-footer__about {
  margin: 16px 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--dc-ft-muted);
}

.dc-footer__social-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--dc-ft-border);
}

.dc-footer__social-label {
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dc-ft-heading);
}

.dc-footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.dc-footer__contact-mini {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--dc-ft-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  font-size: 0.84rem;
}

.dc-footer__contact-mini a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--dc-ft-text) !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.dc-footer__contact-mini a:hover {
  color: var(--dc-ft-hover) !important;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(96, 165, 250, 0.25);
}

.dc-footer__contact-mini a i {
  color: #7dd3fc;
  font-size: 0.9rem;
}

.dc-footer__social-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--dc-ft-border);
  background: rgba(15, 23, 42, 0.35);
  color: var(--dc-ft-text) !important;
  text-decoration: none !important;
  font-size: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dc-footer__social-link:hover {
  color: #fff !important;
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 103, 182, 0.35);
}

.dc-footer__social-link:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.85);
  outline-offset: 2px;
}

/* Link columns */
.dc-footer__heading {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dc-ft-heading);
}

.dc-footer__panel-summary .dc-footer__heading::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dc-ft-brand), #22d3ee);
}

.dc-footer__panel {
  border: 1px solid var(--dc-ft-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dc-footer__panel:hover {
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(255, 255, 255, 0.045);
}

.dc-footer__panel-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 18px;
  margin: 0;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dc-footer__panel-summary::-webkit-details-marker {
  display: none;
}

.dc-footer__panel-summary::marker {
  content: "";
}

.dc-footer__panel-summary::after {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--dc-ft-muted);
  border-bottom: 2px solid var(--dc-ft-muted);
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.22s ease;
}

.dc-footer__panel[open] > .dc-footer__panel-summary::after {
  transform: rotate(225deg);
  margin-top: 3px;
}

.dc-footer__panel-summary:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.75);
  outline-offset: -2px;
}

.dc-footer__panel-body {
  padding: 2px 18px 18px;
}

.dc-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dc-footer__links li {
  margin: 0 0 2px;
}

.dc-footer__links li:last-child {
  margin-bottom: 0;
}

.dc-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dc-ft-muted) !important;
  text-decoration: none !important;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.dc-footer__links a::before {
  content: "";
  width: 0;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
  flex-shrink: 0;
  transition: width 0.2s ease;
}

.dc-footer__links a:hover {
  color: var(--dc-ft-hover) !important;
  padding-left: 4px;
}

.dc-footer__links a:hover::before {
  width: 6px;
}

.dc-footer__links a:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

.dc-footer__links a.is-active,
.dc-footer__links a.dc-footer__link--ctx {
  color: #93c5fd !important;
  font-weight: 600;
}

.dc-footer__links a.dc-footer__link--ctx::before {
  width: 6px;
}

/* Bottom bar */
footer.dc-footer.dc-footer--unified .dc-footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 40px) calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--dc-ft-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  background: rgba(0, 0, 0, 0.22);
}

footer.dc-footer.dc-footer--unified .dc-footer__copyright {
  margin: 0;
  font-size: 0.82rem;
  color: var(--dc-ft-muted);
}

footer.dc-footer.dc-footer--unified .dc-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.dc-footer.dc-footer--unified .dc-footer__legal a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dc-ft-muted) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

footer.dc-footer.dc-footer--unified .dc-footer__legal a:hover {
  color: var(--dc-ft-hover) !important;
}

footer.dc-footer.dc-footer--unified .dc-footer__legal a:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Tablet */
@media (min-width: 640px) {
  .dc-footer__col--brand {
    text-align: left;
  }

  .dc-footer__social {
    justify-content: flex-start;
  }

  .dc-footer__contact-mini {
    align-items: flex-start;
  }

  .dc-footer__links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .dc-footer__layout {
    grid-template-columns: minmax(280px, 320px) 1fr;
    gap: 48px;
    align-items: start;
  }

  .dc-footer__links-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 28px;
  }

  .dc-footer__panel {
    border: none;
    background: transparent;
    border-radius: 0;
    height: 100%;
  }

  .dc-footer__panel:hover {
    background: transparent;
    border-color: transparent;
  }

  .dc-footer__panel-summary {
    cursor: default;
    min-height: auto;
    padding: 0 0 16px;
    pointer-events: none;
  }

  .dc-footer__panel-summary::after {
    display: none;
  }

  .dc-footer__panel-body {
    padding: 0;
  }

  .dc-footer__panel[open] .dc-footer__panel-body,
  .dc-footer__panel .dc-footer__panel-body {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  footer.dc-footer.dc-footer--unified .dc-footer__accent {
    background-size: 100% 100%;
  }

  .dc-footer__links a:hover,
  .dc-footer__brand-logo:hover,
  .dc-footer__social-link:hover,
  .dc-footer__cta-btn:hover {
    transform: none;
  }

  .dc-footer__panel-summary::after {
    transition: none;
  }
}

@media print {
  .dc-footer__cta,
  footer.dc-footer.dc-footer--unified .dc-footer__panel {
    border: none;
  }

  .dc-footer__panel-summary::after {
    display: none;
  }
}

body.dc-nav-ctx--home footer.dc-footer.dc-footer--unified .dc-footer__cta-inner,
body.dc-nav-ctx--home footer.dc-footer.dc-footer--unified .dc-footer__main,
body.dc-nav-ctx--home footer.dc-footer.dc-footer--unified .dc-footer__bottom {
  max-width: none;
  padding-left: clamp(16px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}

@media (max-width: 900px) {
  body.dc-site {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  footer.dc-footer.dc-footer--unified {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .dc-footer__cta-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .dc-footer__cta-btn {
    width: 100%;
  }
}
