.footer {
  background: #0c1120;
  padding: 72px 24px 32px;
  border-top: 1px solid rgba(148, 163, 184, .06);
}

.footer__wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* brand */
.footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-logo {
  height: 120px;
  width: auto;
  display: block;
}

/* theme toggles */
.footer-logo--light {
  display: none;
}

.footer-logo--dark {
  display: block;
}

html[data-theme="light"] .footer-logo--light {
  display: block;
}

html[data-theme="light"] .footer-logo--dark {
  display: none;
}

.footer__logo:hover {
  opacity: .85;
  transform: translateY(-1px);
  transition: opacity .25s ease, transform .25s ease;
}

@media (max-width: 768px) {
  .footer-logo {
    height: 100px;
  }
}

.footer__desc {
  margin-top: 16px;
  color: rgba(226, 232, 240, .45);
  font-size: 14px;
  line-height: 1.65;
  max-width: 300px;
}

/* titles */
.footer__title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(226, 232, 240, .85);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

/* lists */
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__list a {
  color: rgba(226, 232, 240, .45);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: color .2s ease;
}

.footer__list a:hover {
  color: var(--accent-light);
}

/* contact */
.footer__contact p {
  color: rgba(226, 232, 240, .45);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 12px;
  max-width: 340px;
}

.footer__link {
  display: block;
  color: rgba(226, 232, 240, .45);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color .2s ease;
}

.footer__link:hover {
  color: var(--accent-light);
}

/* social icons */
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.soc {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: rgba(226, 232, 240, .55);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(148, 163, 184, .08);
  transition: all .25s ease;
}

.soc:hover {
  transform: translateY(-2px);
  color: var(--accent-light);
  border-color: rgba(29, 78, 216, .30);
  background: rgba(29, 78, 216, .08);
}

/* bottom */
.footer__bottom {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, .06);
}

.footer__copy {
  text-align: center;
  color: rgba(226, 232, 240, .30);
  font-size: 13px;
}

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 980px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__desc,
  .footer__contact p {
    max-width: 100%;
  }
}

/* ═══════════════════════════════
   LIGHT THEME
═══════════════════════════════ */
html[data-theme="light"] .footer {
  background: #f3f5f8;
  border-top-color: rgba(148, 163, 184, .12);
}

html[data-theme="light"] .footer__title {
  color: #0f172a;
}

html[data-theme="light"] .footer__desc,
html[data-theme="light"] .footer__contact p,
html[data-theme="light"] .footer__copy,
html[data-theme="light"] .footer__list a,
html[data-theme="light"] .footer__link {
  color: rgba(51, 65, 85, .55);
}

html[data-theme="light"] .footer__list a:hover,
html[data-theme="light"] .footer__link:hover {
  color: var(--accent);
}

html[data-theme="light"] .soc {
  color: rgba(51, 65, 85, .60);
  background: #fff;
  border-color: rgba(148, 163, 184, .15);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

html[data-theme="light"] .soc:hover {
  color: var(--accent);
  border-color: rgba(29, 78, 216, .25);
}

html[data-theme="light"] .footer__bottom {
  border-top-color: rgba(148, 163, 184, .12);
}