/* Public-site footer: balanced mobile stack in the CuratoriART wine/beige palette. */
@media (max-width: 760px) {
  .site-footer {
    display: block;
    padding: 34px 20px 30px;
    text-align: center;
    overflow: clip;
  }

  .site-footer .footer-top,
  .site-footer .footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .site-footer .footer-top {
    padding-bottom: 25px;
  }

  .site-footer .brand--footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
  }

  .site-footer .brand--footer .brand__image {
    display: block;
    width: auto !important;
    max-width: min(210px, 70vw) !important;
    height: auto !important;
    max-height: 34px !important;
    margin-inline: auto;
    object-fit: contain;
  }

  .site-footer .footer-top p {
    max-width: 34ch;
    margin: 0 auto;
    font-size: 12px;
    line-height: 1.75;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .site-footer .footer-bottom {
    padding-top: 22px;
    gap: 15px;
  }

  .site-footer .footer-bottom > span {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.6;
  }

  .site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  .site-footer .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding: 8px 3px;
    line-height: 1.4;
    text-align: center;
  }

  .site-footer .footer-social-link svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
  }

  .site-footer .footer-link-label {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .site-footer .footer-links__separator {
    height: 18px;
    flex: 0 0 1px;
    margin: 0 1px;
  }

  body.footer-controls-obscured .back-to-top,
  body.footer-controls-obscured .whatsapp-float {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (max-width: 360px) {
  .site-footer { padding-inline: 15px; }
  .site-footer .footer-top p { max-width: 30ch; }
  .site-footer .footer-links { column-gap: 12px; }
  .site-footer .footer-social-link { gap: 6px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .footer-social-link { transition: none !important; }
}

/* Keep the mobile layout centered even when shared responsive sheets are emitted later in the body. */
@media (max-width: 760px) {
  .site-footer .footer-top,
  .site-footer .footer-bottom {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .site-footer .footer-links {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .site-footer .footer-links .footer-social-link--text {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
  }

  .site-footer .footer-links .footer-social-link--text::after { display: none !important; content: none !important; }
  .site-footer .footer-links__separator { flex: 0 0 1px !important; }
}
