/* footer.css — Footer Figma + WhatsApp float */

.site-footer {
  --sf-bg: #000;
  --sf-title: #fff;
  --sf-link: rgba(255, 255, 255, 0.55);
  --sf-ico-border: rgba(255, 255, 255, 0.22);
  --sf-ico: rgba(255, 255, 255, 0.7);
  --sf-trust-bg: #121212;
  --sf-trust: rgba(255, 255, 255, 0.7);
  --sf-badge-border: rgba(255, 255, 255, 0.2);
  --sf-badge: rgba(255, 255, 255, 0.55);
  --sf-phone: #fff;

  background: var(--sf-bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  color: var(--ink);
}

[data-theme="light"] .site-footer {
  --sf-bg: var(--bg-soft);
  --sf-title: var(--ink);
  --sf-link: rgba(20, 10, 10, 0.62);
  --sf-ico-border: rgba(20, 10, 10, 0.18);
  --sf-ico: rgba(20, 10, 10, 0.7);
  --sf-trust-bg: var(--bg-card);
  --sf-trust: rgba(20, 10, 10, 0.7);
  --sf-badge-border: rgba(20, 10, 10, 0.16);
  --sf-badge: rgba(20, 10, 10, 0.55);
  --sf-phone: var(--ink);
}

.sf-inner {
  width: min(100%, var(--site-max));
  margin-inline: auto;
  padding-inline: var(--px);
  box-sizing: border-box;
}

.sf-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.sf-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.sf-brand-logo img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-red);
}

.sf-brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-red);
}

.sf-brand-tag {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.sf-brand-meta {
  font-size: 0.78rem;
  color: var(--ink-mute);
}

.sf-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.sf-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--sf-ico-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sf-ico);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.sf-ico:hover {
  color: var(--brand-red);
  border-color: var(--brand-red);
  background: rgba(229, 9, 20, 0.08);
}

.sf-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.sf-col-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sf-title);
  margin-bottom: 1rem;
}

.sf-col-title::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
  flex-shrink: 0;
}

.sf-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sf-col a {
  font-size: 0.9rem;
  color: var(--sf-link);
  transition: color 0.2s ease;
  cursor: pointer;
}

.sf-col a:hover {
  color: var(--brand-red);
  text-decoration: underline;
}

.sf-sublabel {
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.sf-email {
  display: inline-block;
  color: var(--brand-red) !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
}

.sf-email:hover {
  text-decoration: underline !important;
}

.sf-phone {
  display: inline-block;
  color: var(--sf-phone) !important;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
}

.sf-phone:hover {
  color: var(--brand-red) !important;
  text-decoration: underline !important;
}

.sf-trust {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--sf-trust-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1.75rem;
  font-size: 0.82rem;
  color: var(--sf-trust);
}

.sf-trust span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sf-trust i {
  color: var(--brand-red);
  width: 1rem;
  text-align: center;
}

.sf-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.sf-copy {
  font-size: 0.82rem;
  color: var(--ink-mute);
}

.sf-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sf-badges span,
.sf-badges a {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--sf-badge-border);
  border-radius: 4px;
  color: var(--sf-badge);
}

.sf-badges a:hover {
  color: var(--brand-red);
  border-color: var(--brand-red);
  text-decoration: none;
}

.sf-disclaimer {
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--ink-faint);
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}

.wa-float {
  /* Alinha à margem direita do trilho do site (não ao canto da janela) */
  --wa-inset: max(
    var(--px),
    calc((100% - min(100%, var(--site-max))) / 2 + var(--px))
  );
  position: fixed;
  right: var(--wa-inset);
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 950;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, bottom 0.3s ease;
}

@media (min-width: 768px) {
  .wa-float {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

@media (min-width: 768px) {
  .sf-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .sf-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .sf-trust {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }

  .sf-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .sf-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}
