/*
 * Divenire Footer.
 * Data comes from samasti-core when configured; structure remains in the theme.
 */

.site-footer {
  background: var(--divenire-color-dark);
  box-shadow: 0 -0.75rem 1.875rem rgba(0, 0, 0, 0.05);
  color: var(--divenire-color-light);
  font-family: var(--divenire-font-body);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.site-footer a:not(.footer-powered) {
  color: var(--divenire-color-light);
}

.site-footer a:not(.footer-powered):not(.footer-socials__link):hover {
  color: var(--divenire-color-primary);
}

.footer-content {
  padding-block: clamp(3rem, 5.5vw, 4.5rem);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.footer-section {
  min-width: 0;
}

.footer-section__title {
  margin-bottom: 1.25rem;
  color: var(--divenire-color-light);
  font-family: var(--divenire-font-body);
  font-size: var(--wp--preset--font-size--lead);
  font-weight: 400;
}

.footer-section__title--screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.footer-identity__logo {
  margin-bottom: 1.25rem;
}

.footer-logo {
  display: block;
  width: auto;
  max-width: 9rem;
  max-height: 7rem;
  object-fit: contain;
}

.footer-identity__description {
  max-width: 34ch;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-identity .footer-socials__list {
  margin-top: 1.5rem;
}

.footer-contact-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  color: var(--divenire-color-light);
  font-style: normal;
}

.footer-contact-list__item {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.625rem;
  align-items: start;
}

.footer-contact-list__item > i {
  margin-top: 0.35em;
  color: var(--divenire-color-primary);
  text-align: center;
}

.site-footer:not(.site-footer--has-icons) .footer-contact-list__item {
  grid-template-columns: minmax(0, 1fr);
}

.footer-contact-list a {
  width: fit-content;
  max-width: 100%;
}

.footer-contacts__additional {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contacts__additional :last-child {
  margin-bottom: 0;
}

.footer-nav,
.footer-socials__list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-nav {
  display: grid;
  gap: 0.75rem;
}

.footer-nav a {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  text-decoration-color: rgba(255, 255, 255, 0.6);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration-color: currentcolor;
}

.footer-socials__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-socials__link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  gap: 0.625rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--divenire-radius-pill);
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.site-footer .footer-socials__link:hover,
.site-footer .footer-socials__link:focus-visible {
  border-color: transparent;
  color: #fff;
}

.footer-socials__link > i {
  color: inherit;
}

.site-footer .footer-socials__link:hover > i,
.site-footer .footer-socials__link:focus-visible > i {
  color: #fff;
}

.footer-socials__link--facebook:hover,
.footer-socials__link--facebook:focus-visible {
  background-color: #1877f2;
}

.footer-socials__link--instagram:hover,
.footer-socials__link--instagram:focus-visible {
  background: linear-gradient(135deg, #feda75 0%, #d62976 50%, #4f5bd5 100%);
}

.footer-socials__link--youtube:hover,
.footer-socials__link--youtube:focus-visible {
  background-color: #f00;
}

.footer-socials__link--linkedin:hover,
.footer-socials__link--linkedin:focus-visible {
  background-color: #0a66c2;
}

.footer-socials__link--tiktok:hover,
.footer-socials__link--tiktok:focus-visible {
  background: linear-gradient(135deg, #25f4ee 0%, #111 45%, #fe2c55 100%);
}

.footer-socials__link--whatsapp:hover,
.footer-socials__link--whatsapp:focus-visible {
  background-color: #128c7e;
}

.footer-socials__link--x-twitter:hover,
.footer-socials__link--x-twitter:focus-visible {
  background-color: #000;
  border-color: rgba(255, 255, 255, 0.5);
}

.footer-socials__link--pinterest:hover,
.footer-socials__link--pinterest:focus-visible {
  background-color: #e60023;
}

.site-footer--has-icons .footer-socials__link {
  width: 44px;
  padding: 0;
}

.site-footer--has-icons .footer-socials__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.footer-legal {
  position: relative;
  padding: 1.25rem 0;
  color: #fff;
  font-size: 0.75rem;
  text-align: center;
}

.footer-legal::before {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  content: "";
}

.footer-legal__summary {
  margin-bottom: 0.25rem;
}

.footer-legal__divider {
  margin: 0 0.375rem;
}

.footer-legal__powered {
  white-space: nowrap;
}

.footer-powered {
  color: var(--samasti-beige);
  font-weight: 700;
  text-decoration: none;
}

.footer-powered:hover,
.footer-powered:focus {
  color: var(--samasti-powered-primary);
}

.footer-legal__notice {
  display: block;
  max-width: 65rem;
  margin: 0 auto;
  color: inherit;
  font-size: 0.625rem;
}

@media (max-width: 991px) {
  .footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .footer-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .footer-legal__divider {
    display: block;
    margin: 0.25rem auto;
  }

  .footer-section,
  .footer-section__title,
  .footer-identity__description,
  .footer-contact-list,
  .footer-contacts__additional,
  .footer-legal {
    text-align: center;
  }

  .footer-identity__description,
  .footer-logo,
  .footer-nav a,
  .footer-contact-list a {
    margin-inline: auto;
  }

  .footer-contact-list__item {
    grid-template-columns: auto minmax(0, auto);
    justify-content: center;
    justify-items: center;
  }

  .footer-contact-list__item > i {
    margin-top: 0;
  }

  .footer-nav,
  .footer-socials__list {
    justify-items: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-socials__link {
    transition-duration: 0.01ms;
  }
}
