/**
 * DomainHost footer + partner logos
 */

.dh-footer {
  margin-top: 3.5rem !important;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #334155;
}

.dh-footer__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.75rem 1.1rem 1.5rem;
}

.dh-footer__top {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 2rem 1.75rem;
}

.dh-footer__logo {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.dh-footer__logo-accent {
  color: #0f766e;
}

.dh-footer__about {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #64748b;
  max-width: 34ch;
}

.dh-footer__about a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
}

.dh-footer__about a:hover {
  text-decoration: underline;
}

.dh-footer__social {
  display: flex;
  gap: 0.45rem;
}

.dh-footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dh-footer__social a:hover {
  background: #ecfdf5;
  border-color: #99f6e4;
}

.dh-footer__heading {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f172a;
}

.dh-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dh-footer__list li + li {
  margin-top: 0.45rem;
}

.dh-footer__list a {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.dh-footer__list a:hover {
  color: #0f766e !important;
}

/* Partners */
.dh-partners {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e2e8f0;
}

.dh-partners__head {
  margin-bottom: 1rem;
}

.dh-partners__head h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.dh-partners__head p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.dh-partners__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dh-partner {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dh-partner:hover {
  border-color: #99f6e4;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.dh-partner__link {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  padding: 1.15rem 1.2rem 1.2rem;
  text-decoration: none !important;
  color: inherit;
}

.dh-partner__logo-wrap {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0.35rem 0;
  background: transparent;
}

.dh-partner__logo {
  display: block !important;
  width: auto !important;
  max-width: 200px !important;
  height: 48px !important;
  object-fit: contain !important;
  object-position: left center;
  visibility: visible !important;
  opacity: 1 !important;
}

.dh-partner__logo--pc {
  max-width: 240px !important;
  height: 44px !important;
}

.dh-partner__body h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.35;
}

.dh-partner__body p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #64748b;
}

.dh-partner__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f766e;
}

.dh-partner:hover .dh-partner__cta {
  color: #0d9488;
}

.dh-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e2e8f0;
}

.dh-footer__bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

@media (max-width: 991.98px) {
  .dh-footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .dh-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .dh-partners__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .dh-footer__top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .dh-footer__about {
    max-width: none;
  }
  .dh-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  .dh-partner__logo {
    max-width: 180px !important;
    height: 42px !important;
  }
}

/* Dark mode */
[data-theme="dark"] .dh-footer {
  background: #0b1220 !important;
  border-color: #1e293b !important;
  color: #cbd5e1;
}

[data-theme="dark"] .dh-footer__logo,
[data-theme="dark"] .dh-footer__heading,
[data-theme="dark"] .dh-partners__head h2,
[data-theme="dark"] .dh-partner__body h3 {
  color: #e2e8f0;
}

[data-theme="dark"] .dh-footer__about,
[data-theme="dark"] .dh-footer__list a,
[data-theme="dark"] .dh-partners__head p,
[data-theme="dark"] .dh-partner__body p,
[data-theme="dark"] .dh-footer__bottom p {
  color: #94a3b8;
}

[data-theme="dark"] .dh-partner,
[data-theme="dark"] .dh-footer__social a {
  background: #0f172a;
  border-color: #334155;
}

[data-theme="dark"] .dh-partner__cta {
  color: #5eead4;
}

[data-theme="dark"] .dh-partners,
[data-theme="dark"] .dh-footer__bottom {
  border-color: #1e293b;
}
