/* SunnyFlip footer layer.
   Isolates the expanded footer layout from the base stylesheet. */

.site-footer {
  padding: 0;
}

.footer-main {
  padding: 22px 0;
  background: #181a1c;
}

.footer-legal {
  padding: 8px 0;
  background: #202326;
}

.site-footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 28px;
}

.footer-brand-block {
  display: grid;
  gap: 8px;
}

.site-footer .footer-brand-mark {
  width: clamp(96px, 9vw, 118px);
}

.footer-contact span,
.footer-contact a,
.footer-legal small,
.footer-credit {
  margin: 0;
  color: var(--white);
  line-height: 1.55;
  font-size: 13px;
  font-weight: 360;
}

.footer-contact a {
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--orange);
  text-decoration: none;
}

.footer-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-self: center;
}

.footer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #202326;
  color: var(--white);
  font-size: 16px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.footer-action:hover {
  border-color: rgba(251, 156, 9, 0.32);
  background: #26292c;
  text-decoration: none;
  transform: translateY(-1px);
}

.footer-action-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.footer-action-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-rubro {
  margin: 0;
  color: var(--white);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.20em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-contact {
  display: grid;
  gap: 3px;
  justify-items: end;
  text-align: right;
}

.footer-legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.footer-credit-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.footer-credit-logo {
  display: block;
  width: auto;
  height: 24px;
  max-height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
}

@media (max-width: 820px) {
  .site-footer .footer-inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand contact"
      "actions actions";
    align-items: center;
    gap: 18px 22px;
  }

  .footer-brand-block {
    grid-area: brand;
  }

  .footer-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: 1fr;
    justify-self: stretch;
    width: 100%;
    margin-top: 2px;
  }

  .footer-contact {
    grid-area: contact;
    justify-items: end;
    text-align: right;
  }

  .footer-legal-inner {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-legal {
    display: none;
  }
}
