/* =======================================================
   MODERN LUXURY FOOTER
   Inherits design from "Classic Numismatic" system
   ======================================================= */

.site-footer {
  background-color: var(--deep-navy);
  color: var(--text-light);
  font-family: var(--font-body);
  padding: 100px 0 40px; /* Increased vertical padding for better spacing */
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--accent-gold);
}

/* Watermark styles */
.footer-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-family: var(--font-heading);
  font-size: 20rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  user-select: none;
  pointer-events: none;
  z-index: 0;
  letter-spacing: 2rem;
  white-space: nowrap;
}

/* Subtle pattern overlay */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(45, 156, 219, 0.05) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(212, 175, 55, 0.05) 0%,
      transparent 20%
    );
  pointer-events: none;
  z-index: 1;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  position: relative;
  z-index: 2; /* Content above watermark */
}

.footer-widgets {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 60px; /* Better spacing between columns */
  margin-bottom: 80px;
}

.footer-widget-column {
  flex: 1;
  min-width: 250px;
}

/* Brand Column Styles */
.brand-column .footer-logo img {
  max-width: 180px;
  height: auto;
  margin-bottom: 25px;
  filter: brightness(0) invert(1); /* Ensure logo is white if colorful */
}

.footer-site-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 20px;
}

.footer-brand-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 320px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.contact-item .icon {
  font-size: 18px;
}

.contact-item a {
  color: var(--text-light);
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent-gold);
}

/* Titles */
.footer-widget-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: var(--weight-bold);
  color: var(--bg-white);
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-widget-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.footer-widget-column:hover .footer-widget-title::after {
  width: 100%;
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links a::before {
  content: "→";
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--accent-gold);
}

.footer-links a:hover {
  color: var(--bg-white);
  transform: translateX(10px);
}

.footer-links a:hover::before {
  opacity: 1;
  left: -25px;
}

/* Social Media */
.footer-social-icons {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.social-link:hover {
  color: var(--bg-white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.social-link .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  transition: var(--transition);
}

.social-link:hover .icon {
  transform: scale(1.2);
}

/* Divider */
.footer-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  margin-bottom: 40px;
}

/* Bottom Section */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 30px;
}

.site-highlight {
  color: var(--accent-gold);
  font-weight: 600;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--bg-white);
}

/* Cart Icon in Footer */
.footer-cart-icon a {
  position: relative;
  color: white;
  background: var(--primary-blue);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-cart-icon a:hover {
  transform: scale(1.15) rotate(5deg);
  background: var(--accent-gold);
  color: var(--deep-navy);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-gold);
  color: var(--deep-navy);
  font-size: 10px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--deep-navy);
}

/* --- ANIMATIONS --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger columns */
.footer-widgets.is-visible .footer-widget-column {
  animation: fadeUpIn 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}

.footer-widgets.is-visible .footer-widget-column:nth-child(1) {
  animation-delay: 0.1s;
}
.footer-widgets.is-visible .footer-widget-column:nth-child(2) {
  animation-delay: 0.2s;
}
.footer-widgets.is-visible .footer-widget-column:nth-child(3) {
  animation-delay: 0.3s;
}
.footer-widgets.is-visible .footer-widget-column:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 991px) {
  .footer-widgets {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 60px 0 40px;
  }

  .footer-widgets {
    flex-direction: column;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-right {
    flex-direction: column;
    gap: 20px;
  }

  .footer-watermark {
    font-size: 10rem;
    letter-spacing: 1rem;
  }
}

/* --- NEWSLETTER SECTION --- */
.newsletter-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 25px;
}

.footer-newsletter-form .input-group {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: white;
    font-family: var(--font-body);
    font-size: 14px;
}

.footer-newsletter-form input:focus {
    outline: none;
}

.footer-newsletter-form button {
    background: var(--accent-gold);
    color: var(--deep-navy);
    border: none;
    padding: 0 25px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter-form button:hover {
    background: var(--bg-white);
    transform: scale(1.05);
}

/* Social Row */
.social-row {
    display: flex;
    gap: 15px;
}

.social-link-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link-icon:hover {
    background: var(--accent-gold);
    color: var(--deep-navy);
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}


/* Fix for Layout Wrapping Issue causing 4th column to drop */
@media (min-width: 992px) {
    .footer-widgets {
        gap: 20px; /* Tighter gap to ensure fit */
        flex-wrap: nowrap; /* Force single line on desktop */
    }
    .footer-widget-column {
        flex-shrink: 1; /* Allow shrinking if needed */
        min-width: auto; /* Remove strict constraint */
    }
    .brand-column {
        flex: 2; /* Brand column wider */
    }
    .contact-column {
        flex: 1.5; /* Contact column slightly wider */
        text-align: right;
    }
    /* Align contact details in right column */
    .contact-column .footer-contact-info {
        align-items: flex-end;
    }
    .contact-column .footer-widget-title::after {
        left: auto;
        right: 0;
    }
}

