/* =========================================================
   FOOTER FINAL — RUMOA TURISMO E EXPEDIÇÕES
   Fidelidade visual absoluta ao mockup aprovado.
   Estética editorial, sofisticada e minimalista.
   Todas as regras estritamente escopadas em .rumoa-footer.
   ========================================================= */

.rumoa-footer {
  position: relative;
  width: 100%;
  margin-top: -3px; /* Sobreposição técnica para eliminar qualquer gap subpixel */
  background: #1f3524;
  color: #f7f4ed;
  overflow: hidden;
  z-index: 5;
  scroll-margin-top: 96px;
}

/* ---------------------------------------------------------
   1. CONECTOR ORGÂNICO SUPERIOR (ONDA + CONTOURS)
   --------------------------------------------------------- */
.rumoa-footer .footer-top-wave-area {
  position: relative;
  width: 100%;
  height: 102px;
  background: var(--cream, #f6f0e7);
  overflow: hidden;
  line-height: 0;
}

/* Linhas topográficas sutis na parte creme superior */
.rumoa-footer .footer-cream-topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.rumoa-footer .footer-cream-topo-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Curva orgânica verde floresta fluindo suavemente */
.rumoa-footer .footer-wave-shape {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: calc(100% + 4px);
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

.rumoa-footer .footer-wave-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------------------------------------------------------
   2. CORPO PRINCIPAL DO FOOTER (VERDE FLORESTA)
   --------------------------------------------------------- */
.rumoa-footer .footer-body {
  position: relative;
  background: #1f3524;
  padding: 28px 0 40px;
  margin-top: -3px; /* Sobreposição técnica contínua para eliminar qualquer gap subpixel */
  z-index: 3;
}

/* Fundo com curvas topográficas discretas (4% a 8% opacidade) */
.rumoa-footer .footer-topo-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.rumoa-footer .footer-topo-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rumoa-footer .footer-container {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 5.4vw;
}

/* ---------------------------------------------------------
   3. GRID PRINCIPAL (3 COLUNAS: 42% / 22% / 36%)
   --------------------------------------------------------- */
.rumoa-footer .footer-main-grid {
  display: grid;
  grid-template-columns: 42% 21% 37%;
  gap: clamp(24px, 3.6vw, 54px);
  align-items: flex-start;
  margin-bottom: 40px;
}

.rumoa-footer .footer-col {
  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------------------
   COLUNA 1: MARCA E POSICIONAMENTO
   --------------------------------------------------------- */
.rumoa-footer .footer-logo-link {
  display: inline-block;
  margin-bottom: 12px;
  text-decoration: none;
  width: fit-content;
}

.rumoa-footer .footer-logo {
  width: 155px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(0.98);
}

.rumoa-footer .footer-terracotta-line {
  display: block;
  width: 50px;
  height: 2.5px;
  background: var(--terracotta, #b9532f);
  border-radius: 2px;
  margin-bottom: 16px;
}

.rumoa-footer .footer-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #f7f4ed;
  margin: 0 0 12px;
}

.rumoa-footer .footer-institutional-text {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.56;
  color: rgba(247, 244, 237, 0.82);
  max-width: 440px;
  margin: 0;
}

.rumoa-footer .footer-local-service {
  margin: 8px 0 0;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(247, 244, 237, 0.7);
}

/* ---------------------------------------------------------
   COLUNA 2: NAVEGAÇÃO (DESTINOS, SOBRE, FAQ, CONTATO)
   --------------------------------------------------------- */
.rumoa-footer .footer-col-header {
  margin-bottom: 16px;
}

.rumoa-footer .footer-col-title {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: #f7f4ed;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.rumoa-footer .footer-col-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--terracotta, #b9532f);
  border-radius: 1px;
}

.rumoa-footer .footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rumoa-footer .footer-nav-link {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: rgba(247, 244, 237, 0.88);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  width: fit-content;
}

.rumoa-footer .footer-nav-link:hover {
  color: var(--terracotta, #b9532f);
  transform: translateX(3px);
}

.rumoa-footer .footer-nav-link:focus-visible {
  outline: 2px solid var(--terracotta, #b9532f);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------
   COLUNA 3: CONTATO E REDES SOCIAIS
   --------------------------------------------------------- */
.rumoa-footer .footer-contact-desc {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(247, 244, 237, 0.82);
  max-width: 380px;
  margin: 0 0 18px;
}

/* Botão principal de WhatsApp em formato Pill */
.rumoa-footer .footer-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #274029;
  color: #f7f4ed;
  border: 1.2px solid rgba(247, 244, 237, 0.28);
  border-radius: 999px;
  height: 56px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  margin-bottom: 26px;
  width: fit-content;
}

.rumoa-footer .footer-btn-whatsapp:hover {
  background: #315134;
  border-color: rgba(247, 244, 237, 0.52);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.rumoa-footer .footer-btn-whatsapp:focus-visible {
  outline: 2px solid var(--terracotta, #b9532f);
  outline-offset: 3px;
}

.rumoa-footer .footer-btn-whats-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.rumoa-footer .footer-icon-arrow {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.rumoa-footer .footer-btn-whatsapp:hover .footer-icon-arrow {
  transform: translateX(3px);
}

/* ---------------------------------------------------------
   BOTÕES SOCIAIS COM EFEITO UIVERSE ADAPTADO
   --------------------------------------------------------- */
.rumoa-footer .footer-social-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rumoa-footer .footer-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rumoa-footer .footer-social-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rumoa-footer .social-item {
  position: relative;
  list-style: none;
}

.rumoa-footer .social-link {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f7f4ed;
  color: #1f3524;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid rgba(247, 244, 237, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rumoa-footer .social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.rumoa-footer .social-link:focus-visible {
  outline: 2px solid var(--terracotta, #b9532f);
  outline-offset: 3px;
}

/* Efeito preenchimento de baixo para cima do Uiverse */
.rumoa-footer .social-filled {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  transition: height 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.rumoa-footer .social-link:hover .social-filled,
.rumoa-footer .social-link:focus .social-filled {
  height: 100%;
}

/* Cores de preenchimento exclusivas da Rumoa */
.rumoa-footer .social-whatsapp .social-filled {
  background: #667a4f; /* Verde oliva da Rumoa */
}

.rumoa-footer .social-instagram .social-filled {
  background: linear-gradient(135deg, var(--terracotta, #b9532f) 0%, #a95a3a 50%, #667a4f 100%);
}

.rumoa-footer .social-svg {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  transition: color 0.25s ease;
}

.rumoa-footer .social-link:hover .social-svg,
.rumoa-footer .social-link:focus .social-svg {
  color: #ffffff;
}

/* Tooltips do Uiverse adaptados com Rumoa */
.rumoa-footer .social-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  color: #ffffff;
  z-index: 10;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.rumoa-footer .social-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
}

.rumoa-footer .social-whatsapp .social-tooltip {
  background: #667a4f;
}

.rumoa-footer .social-whatsapp .social-tooltip::after {
  border-top-color: #667a4f;
}

.rumoa-footer .social-instagram .social-tooltip {
  background: #a95a3a;
}

.rumoa-footer .social-instagram .social-tooltip::after {
  border-top-color: #a95a3a;
}

@media (hover: hover) and (pointer: fine) {
  .rumoa-footer .social-link:hover .social-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Perfil Instagram oficial */
.rumoa-footer .footer-instagram-handle {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(247, 244, 237, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rumoa-footer .footer-instagram-handle:hover {
  color: var(--terracotta, #b9532f);
}

.rumoa-footer .footer-instagram-handle:focus-visible {
  outline: 2px solid var(--terracotta, #b9532f);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Linha e texto editorial de apoio */
.rumoa-footer .footer-editorial-support {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.rumoa-footer .footer-support-line {
  display: block;
  width: 34px;
  height: 2px;
  background: var(--terracotta, #b9532f);
  border-radius: 1px;
}

.rumoa-footer .footer-support-text {
  display: flex;
  flex-direction: column;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  line-height: 1.45;
  color: rgba(247, 244, 237, 0.68);
}

/* ---------------------------------------------------------
   4. BARRA INFERIOR (COPYRIGHT, MANUSCRITO, BÚSSOLA)
   --------------------------------------------------------- */
.rumoa-footer .footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(246, 240, 231, 0.2);
  padding-top: 24px;
  gap: 24px;
  flex-wrap: wrap;
}

.rumoa-footer .footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rumoa-footer .footer-copyright-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(247, 244, 237, 0.65);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.rumoa-footer .footer-copyright {
  margin: 0;
}

.rumoa-footer .footer-copyright-divider {
  opacity: 0.45;
  user-select: none;
}

.rumoa-footer .footer-dev-credit {
  margin: 0;
  color: rgba(247, 244, 237, 0.65);
}

.rumoa-footer .footer-dev-link {
  color: rgba(247, 244, 237, 0.85);
  font-weight: 500;
  text-decoration: none;
  transition: color 220ms ease, opacity 220ms ease;
}

.rumoa-footer .footer-dev-link:hover {
  color: #ffffff;
  opacity: 1;
}

.rumoa-footer .footer-dev-link:focus-visible {
  outline: 2px solid var(--terracotta, #b9532f);
  outline-offset: 3px;
  border-radius: 2px;
}

.rumoa-footer .footer-legal-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(247, 244, 237, 0.55);
}

.rumoa-footer .footer-legal-link {
  color: rgba(247, 244, 237, 0.65);
  text-decoration: none;
  transition: color 200ms ease;
}

.rumoa-footer .footer-legal-link:hover {
  color: #ffffff;
}

.rumoa-footer .footer-legal-divider {
  opacity: 0.4;
  user-select: none;
}

.rumoa-footer .footer-legal-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  color: rgba(247, 244, 237, 0.65);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 200ms ease;
}

.rumoa-footer .footer-legal-btn:hover {
  color: #ffffff;
}

.rumoa-footer .footer-legal-btn:focus-visible,
.rumoa-footer .footer-legal-link:focus-visible {
  outline: 2px solid var(--terracotta, #b9532f);
  outline-offset: 3px;
  border-radius: 2px;
}

.rumoa-footer .footer-bottom-signature {
  display: flex;
  align-items: center;
  gap: 28px;
}

.rumoa-footer .footer-script-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
}

.rumoa-footer .footer-script-text {
  font-family: 'Allura', cursive;
  font-size: clamp(30px, 2.5vw, 38px);
  line-height: 0.95;
  color: #f7f4ed;
  transform: rotate(-3deg);
  white-space: nowrap;
}

.rumoa-footer .footer-script-underline {
  width: 130px;
  height: 12px;
  margin-top: -3px;
  transform: rotate(-3deg);
}

/* Rosa dos Ventos / Bússola em português */
.rumoa-footer .footer-compass-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rumoa-footer .footer-compass-svg {
  width: 38px;
  height: 38px;
}

.rumoa-footer .compass-point {
  position: absolute;
  font-size: 9px;
  font-weight: 700;
  color: var(--terracotta, #b9532f);
  font-family: Montserrat, system-ui, sans-serif;
  line-height: 1;
  pointer-events: none;
}

.rumoa-footer .compass-n {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.rumoa-footer .compass-s {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.rumoa-footer .compass-l {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.rumoa-footer .compass-o {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------------------------------------------------------
   5. RESPONSIVIDADE (Tablets e Mobile)
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .rumoa-footer .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 34px;
  }

  .rumoa-footer .footer-col-brand {
    grid-column: 1 / -1;
    margin-bottom: 6px;
  }

  .rumoa-footer .footer-top-wave-area {
    height: 88px;
  }

}

@media (max-width: 768px) {
  .rumoa-footer {
    margin-top: -3px;
  }

  .rumoa-footer .footer-top-wave-area {
    height: 64px;
  }


  .rumoa-footer .footer-body {
    padding: 18px 0 32px;
    margin-top: -3px;
  }

  .rumoa-footer .footer-container {
    padding: 0 20px;
  }

  .rumoa-footer .footer-main-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
  }

  .rumoa-footer .footer-col-brand,
  .rumoa-footer .footer-col-nav,
  .rumoa-footer .footer-col-contact {
    width: 100%;
    align-items: flex-start;
  }

  .rumoa-footer .footer-logo {
    width: 135px;
  }

  .rumoa-footer .footer-headline {
    font-size: 30px;
    margin-bottom: 10px;
  }

  .rumoa-footer .footer-institutional-text {
    font-size: 13.5px;
  }

  .rumoa-footer .social-tooltip {
    display: none !important;
  }

  .rumoa-footer .footer-bottom-bar {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 18px;
    padding-top: 18px;
  }

  .rumoa-footer .footer-copyright-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 12.5px;
  }

  .rumoa-footer .footer-copyright-divider {
    display: none;
  }

  .rumoa-footer .footer-bottom-signature {
    align-self: flex-start;
    gap: 18px;
  }

  .rumoa-footer .footer-script-wrap {
    align-items: flex-start;
  }

  .rumoa-footer .footer-script-text {
    font-size: 28px;
  }
}

/* Acessibilidade: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .rumoa-footer .footer-nav-link,
  .rumoa-footer .footer-btn-whatsapp,
  .rumoa-footer .social-link,
  .rumoa-footer .social-filled,
  .rumoa-footer .social-tooltip,
  .rumoa-footer .footer-instagram-handle,
  .rumoa-footer .footer-icon-arrow,
  .rumoa-footer .footer-dev-link {
    transition: none !important;
    animation: none !important;
  }
}

