/* ═══════════════════════════════════════════════════════════════════════════
 * Footer Souvenir Brasil — painel editorial escuro, responsivo e acessível
 * ═══════════════════════════════════════════════════════════════════════════ */

.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  padding: 22px 20px 0;
  overflow: hidden;
  color: #f8fbfa;
  background:
    radial-gradient(circle at 12% 10%, rgba(29, 141, 106, 0.20), transparent 36%),
    radial-gradient(circle at 88% 82%, rgba(210, 166, 81, 0.11), transparent 32%),
    #061c21;
  font-family: var(--font-body, 'Manrope', system-ui, sans-serif);
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.footer-shell {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4.5vw, 58px) 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: rgba(4, 22, 27, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-footer .footer-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, .72fr) minmax(230px, .9fr);
  gap: clamp(36px, 6vw, 76px);
  text-align: left;
}

.footer-brand {
  max-width: 480px;
}

.footer-brandmark {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.footer-brandmark img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.footer-brandmark span {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-eyebrow {
  display: block;
  margin-top: 26px;
  color: #9fd6c3;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer .footer-brand h2 {
  max-width: 520px;
  margin: 10px 0 12px;
  color: #fff;
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.site-footer .footer-brand p {
  max-width: 52ch;
  margin: 0;
  color: #bfd0cd;
  font-size: 0.94rem;
  line-height: 1.72;
}

.footer-primary-link {
  width: fit-content;
  min-height: 44px;
  margin-top: 22px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(159, 214, 195, 0.24);
  border-radius: 999px;
  background: rgba(29, 141, 106, 0.14);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.footer-primary-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-primary-link:hover {
  color: #fff;
  background: rgba(29, 141, 106, 0.25);
  border-color: rgba(159, 214, 195, 0.42);
  transform: translateY(-2px);
}

.site-footer h3 {
  margin: 4px 0 20px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-nav {
  position: static;
  margin-left: 0;
}

.site-footer .footer-nav .footer-links {
  position: static;
  inset: auto;
  width: auto;
  min-width: 0;
  display: grid;
  gap: 5px;
  align-items: initial;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.footer-links a {
  width: fit-content;
  min-height: 44px;
  padding: 7px 0;
  display: inline-flex;
  align-items: center;
  color: #c5d2d0;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-links a::after {
  content: '↗';
  margin-left: 7px;
  color: #77bda5;
  font-size: 0.76rem;
  opacity: 0;
  transform: translate(-4px, 2px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-links a:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

.footer-contact-list {
  display: grid;
  gap: 12px;
}

.footer-contact-list a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  color: #c5d2d0;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-contact-list a:hover {
  color: #fff;
}

.footer-contact-icon,
.footer-social-link,
.footer-socials a {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: #9fd6c3;
}

.footer-contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.footer-contact-icon svg,
.footer-social-link svg,
.footer-socials a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-copy {
  min-width: 0;
}

.footer-contact-copy small {
  display: block;
  margin-bottom: 2px;
  color: #7f9b96;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-contact-copy strong {
  display: block;
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-socials {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-link,
.footer-socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.footer-social-link:hover,
.footer-socials a:hover {
  color: #fff;
  background: rgba(29, 141, 106, 0.20);
  border-color: rgba(159, 214, 195, 0.30);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: clamp(34px, 5vw, 58px);
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer .footer-copy {
  margin: 0;
  padding: 0;
  color: #839b97;
  font-size: 0.78rem;
  text-align: left;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-bottom-links a {
  min-height: 44px;
  min-width: 44px;
  padding-inline: 4px;
  display: inline-flex;
  align-items: center;
  color: #aebfbc;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-bottom-links a:hover {
  color: #fff;
}

.site-footer a:focus-visible {
  outline: 3px solid rgba(210, 166, 81, 0.82);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .site-footer .footer-content {
    grid-template-columns: minmax(0, 1.25fr) minmax(180px, .75fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 56px;
    padding: 12px 10px calc(104px + var(--safe-bottom, 0px));
  }

  .footer-shell {
    padding: 28px 22px 0;
    border-radius: 22px 22px 0 0;
  }

  .site-footer .footer-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .site-footer .footer-brand h2 {
    font-size: clamp(1.72rem, 9vw, 2.25rem);
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .footer-bottom-links {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer *,
  .site-footer *::before,
  .site-footer *::after {
    transition: none !important;
  }
}
