/* Luxury Footer Layouts and Elements Styling -- Organic Apothecary Estate */

.footer {
  background-color: var(--color-bg-footer); /* Rich Deep Apothecary Green #0c2611 */
  color: var(--color-text-inverse);
  padding: var(--space-4xl) 0 0 0;
  border-top: 4px solid var(--color-gold); /* Gold header separator line */
  position: relative;
  overflow: hidden;
}

/* Subtle corner plant watermark inside footer background */
.footer::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 250px;
  height: 250px;
  background-image: url('../assets/prickly-pear-artwork.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.03; /* Extremely faint watermark */
  filter: grayscale(1) invert(1) brightness(1.5);
  pointer-events: none;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  }
}

.footer__title {
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  position: relative;
}

.footer__title::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--color-gold); /* Gold decorative underline */
  margin-top: var(--space-xs);
}

.footer__brand img {
  filter: brightness(0) invert(1); /* Pure white brand logo */
}

.footer__brand-text {
  font-size: var(--text-xs);
  color: #d0caba; /* Soft warm ivory text color */
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

/* Social icons list */
.social-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-inverse);
  transition: all var(--transition-normal);
}

.social-link:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  transform: translateY(-3px);
  color: #ffffff;
}

.social-link ion-icon {
  font-size: 1.15rem;
}

/* Links widget list */
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links-list a {
  font-size: var(--text-xs);
  color: #d0caba;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-normal);
}

.footer-links-list a:hover {
  color: var(--color-gold);
}

/* Contact info widget */
.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__contact-item {
  display: flex;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: #d0caba;
  line-height: 1.5;
}

.footer__contact-item ion-icon {
  font-size: 1.1rem;
  color: var(--color-gold); /* Gold contact icons */
  flex-shrink: 0;
}

/* Lang switcher and payment option info */
.footer__lang {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer__payment-methods {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer__payment-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(197, 168, 106, 0.35); /* Elegant gold outline badge */
  background-color: rgba(197, 168, 106, 0.05);
  border-radius: var(--radius-sm);
  color: var(--color-gold);
}

/* Bottom footer bar */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 2;
}

.footer__bottom-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer__bottom-container {
    flex-direction: row;
  }
}

.footer__copyright {
  font-size: 11px;
  color: #8e8777; /* Warm dark gray copyright text */
  letter-spacing: 0.5px;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  background-color: var(--color-gold);
  color: #ffffff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 99;
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-3px);
}

.back-to-top ion-icon {
  font-size: 1.5rem;
}
