.footer {
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  color: var(--color-text-primary);
  padding: var(--spacing-2xl) var(--spacing-sm) 0;
}

.footer__container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Header do Footer (Título + Linha) */
.footer__header {
  margin-bottom: var(--spacing-xl);
}

.footer__title {
  font-family: 'Montserrat', var(--font-family);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text-primary);
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-sm);
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-text-primary) 0%, transparent 100%);
  border-radius: 2px;
}

/* Grid de Colunas (Mobile: 2 cols lado a lado, Tablet: 2 cols, Desktop: 3 cols) */
.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

/* Coluna */
.footer__column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Coluna Horário ocupa 2 colunas em mobile */
.footer__column:nth-child(3) {
  grid-column: 1 / -1;
}

.footer__column-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Links com Ícones */
.footer__link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--font-size-xs);
  transition: all var(--transition-speed);
  padding: 0.25rem 0;
}

.footer__link:hover {
  color: var(--color-primary);
  padding-left: 0.5rem;
}

.footer__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 2;
}

.footer__link--phone svg,
.footer__link--whatsapp svg {
  color: var(--color-text-secondary);
}

/* Horário de Funcionamento */
.footer__hours {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: var(--color-text-secondary);
}

.footer__hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__hours-day {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.footer__hours-time {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-semibold);
}

/* ================================
     SEÇÃO MAPA
     ================================ */
.footer__map-section {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.footer__map-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__map-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.footer__map-wrapper iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

/* ================================
     BADGES DE SEGURANÇA
     ================================ */
.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  align-items: center;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
  margin-top: var(--spacing-xl);
}

.footer__badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 8px;
  font-size: 0.6875rem;
  color: var(--color-text-secondary);
  transition: all var(--transition-speed);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.footer__badge:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.footer__badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.footer__badges a {
  text-decoration: none;
}

/* ================================
     COPYRIGHT
     ================================ */
.footer__bottom {
  padding: var(--spacing-md) 0;
  text-align: center;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.footer__copyright {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin: 0;
}

/* ================================
   WHATSAPP FLOATING BUTTON
   ================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;

  /* Cores oficiais do WhatsApp */
  background: #25D366;
  color: #FFFFFF;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2);

  z-index: 9999;
  text-decoration: none;

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;

  /* Performance */
  transform: translateZ(0);
  will-change: transform;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Hover Effect */
.whatsapp-float:hover {
  background: #20BA5A;
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.25);
}

.whatsapp-float:active {
  transform: translateY(-2px) scale(1.02);
}

/* Focus Visible */
.whatsapp-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.6);
  outline-offset: 4px;
}

/* Pulse Animation */
.whatsapp-float__pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  z-index: 1;
  animation: whatsappPulse 2s infinite ease-out;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ================================
   RESPONSIVE
   ================================ */
/* TABLET (768px+) */
@media screen and (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
  }

  /* Coluna Horário volta ao grid normal */
  .footer__column:nth-child(3) {
    grid-column: auto;
  }

  .footer__link {
    font-size: var(--font-size-sm);
  }

  .footer__link svg {
    width: 18px;
    height: 18px;
  }

  .footer__hours {
    font-size: var(--font-size-xs);
  }

  .footer__map-wrapper iframe {
    height: 350px;
  }

  .whatsapp-float {
    width: 64px;
    height: 64px;
    bottom: 32px;
    right: 32px;
  }

  .whatsapp-float svg {
    width: 36px;
    height: 36px;
  }

}

@media screen and (min-width: 1024px) {
  .footer {
    padding: var(--spacing-2xl) var(--spacing-lg) 0;
  }

  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1.5fr;
    gap: var(--spacing-2xl);
  }

  .footer__map-wrapper iframe {
    height: 400px;
  }

  .whatsapp-float {
    width: 68px;
    height: 68px;
    bottom: 40px;
    right: 40px;
  }

  .whatsapp-float svg {
    width: 38px;
    height: 38px;
  }
}

/* ================================
   ACESSIBILIDADE
   ================================ */
@media (prefers-reduced-motion: reduce) {

  .footer__link,
  .footer__badge {
    transition: none !important;
  }

  .whatsapp-float,
  .whatsapp-float__pulse {
    animation: none !important;
    transition: none !important;
  }

  .whatsapp-float:hover {
    transform: none;
  }
}

@media (prefers-contrast: high) {

  .footer__link:focus-visible,
  .footer__badge:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }

  .whatsapp-float {
    border: 2px solid #FFFFFF;
  }
}