/*
 * Sabor Damasco - Footer Styles
 * Footer completo com informações e links
 */

/* Footer Container */
.footer {
  background: var(--cor-primaria);
  color: var(--cor-contraste);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.05) 2px, transparent 2px),
    radial-gradient(circle at 70% 70%, rgba(212, 175, 55, 0.05) 2px, transparent 2px);
  background-size: 150px 150px;
  background-position: 0 0, 75px 75px;
  opacity: 0.05;
  z-index: 1;
  animation: footerPattern 30s linear infinite;
}

@keyframes footerPattern {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-150px) translateY(-150px); }
}

/* Conteúdo do Footer */
.footer-content {
  position: relative;
  z-index: 2;
  padding: var(--espacamento-xl) 0;
}

.footer-main {
  position: relative;
  z-index: 2;
  padding: var(--espacamento-xl) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr; /* 4 colunas iguais */
  gap: var(--espacamento-lg);
  margin-bottom: var(--espacamento-xl);
  align-items: flex-start;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--espacamento-sm);
  text-align: left;
}

.footer-logo {
  max-width: 120px; /* Logo menor */
  height: auto;
  margin-bottom: var(--espacamento-sm);
}

.footer-tagline {
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  color: var(--cor-secundaria);
  direction: rtl;
  opacity: 0.9;
  margin-bottom: var(--espacamento-sm);
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--espacamento-md);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: var(--espacamento-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cor-contraste);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.footer-social a:hover::before {
  left: 100%;
}

.footer-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.footer-social .social-instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social .social-facebook:hover {
  background: #1877f2;
}

.footer-social .social-whatsapp:hover {
  background: #25d366;
}

/* Seções do Footer */
.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cor-contraste);
  margin-bottom: var(--espacamento-sm);
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--cor-secundaria);
  border-radius: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--cor-secundaria);
}

.footer-links a:hover::before {
  opacity: 1;
  left: -15px;
}

.footer-links a:hover {
  color: var(--cor-contraste);
  padding-left: 5px;
}

/* Informações de Contato */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.contact-item:hover {
  color: var(--cor-contraste);
  transform: translateX(5px);
}

.contact-item i {
  color: var(--cor-secundaria);
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--cor-secundaria);
}

.contact-item p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--espacamento-md);
  position: relative;
  z-index: 2;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--espacamento-md);
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: var(--espacamento-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-legal a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cor-secundaria);
  transition: width 0.3s ease;
}

.footer-legal a:hover::after {
  width: 100%;
}

.footer-legal a:hover {
  color: var(--cor-contraste);
}

/* Responsividade */
@media (max-width: 1400px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--espacamento-lg);
  }
}

@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--espacamento-lg);
  }
  
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: var(--espacamento-lg);
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--espacamento-lg);
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--espacamento-lg);
  }
  
  .footer-section:first-child {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .footer-main {
    gap: var(--espacamento-md);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr; /* 2 colunas em tablets */
    gap: var(--espacamento-md);
  }
  
  .footer-brand {
    text-align: left;
  }
  
  .footer-description {
    font-size: 0.85rem;
  }
  
  .footer-heading {
    font-size: 1rem;
  }
  
  .footer-heading::after {
    width: 25px;
  }
  
  .footer-links a {
    font-size: 0.9rem;
  }
  
  .footer-links a:hover {
    padding-left: 0;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .contact-item {
    justify-content: center;
    text-align: center;
  }
  
  .contact-item:hover {
    transform: none;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: var(--espacamento-sm);
  }
  
  .footer-legal {
    justify-content: center;
    gap: var(--espacamento-md);
  }
}

@media (max-width: 480px) {
  .footer-main {
    gap: var(--espacamento-sm);
  }
  
  .footer-grid {
    grid-template-columns: 1fr; /* 1 coluna em mobile */
    gap: var(--espacamento-md);
    text-align: center;
  }
  
  .footer-logo {
    max-width: 100px;
    margin: 0 auto var(--espacamento-sm);
  }
  
  .footer-brand {
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-social a {
    width: 35px;
    height: 35px;
  }
  
  .footer-heading {
    font-size: 1rem;
    text-align: center;
  }
  
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .contact-item {
    font-size: 0.85rem;
    justify-content: center;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: var(--espacamento-sm);
  }
}

@media print {
  .footer {
    background: var(--cor-primaria);
  }
  
  .footer::before {
    display: none;
  }
  
  .footer-social,
  .footer-legal {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    border-top: 1px solid var(--cor-texto);
  }
}
