/* ===== PREMIUM FOOTER SECTION ===== */
.premium-footer {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  color: var(--off-white-cream);
  padding: 6rem 0 2rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(218, 165, 32, 0.2);
}

/* Animated Background Pattern */
.premium-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(218, 165, 32, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
  animation: backgroundPulse 8s ease-in-out infinite;
  z-index: 0;
}

.premium-footer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    conic-gradient(from 0deg at 50% 50%, 
      transparent 0deg, 
      rgba(218, 165, 32, 0.02) 90deg, 
      transparent 180deg, 
      rgba(255, 215, 0, 0.02) 270deg, 
      transparent 360deg);
  animation: rotateBackground 30s linear infinite;
  z-index: 0;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
  z-index: 5;
}

/* Footer Top Section */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

/* Footer Brand Column */
.footer-brand {
  max-width: 400px;
}

.footer-logo {
  margin-bottom: 1.5rem;
  animation: logoFloat 3s ease-in-out infinite;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(218, 165, 32, 0.3));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo:hover .footer-logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(218, 165, 32, 0.5));
}

.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(253, 253, 245, 0.8);
  margin-bottom: 2rem;
  animation: fadeIn 1s ease-out 0.2s both;
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 1rem;
  animation: fadeIn 1s ease-out 0.4s both;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(253, 253, 245, 0.05);
  border: 1px solid rgba(218, 165, 32, 0.2);
  border-radius: 12px;
  color: var(--off-white-cream);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(218, 165, 32, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover::before {
  width: 100px;
  height: 100px;
}

.social-link:hover {
  background: rgba(218, 165, 32, 0.1);
  border-color: var(--muted-gold);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(218, 165, 32, 0.3);
}

.social-link svg {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.social-link:hover svg {
  color: var(--gold-accent);
  transform: scale(1.1);
}

/* Footer Columns */
.footer-column {
  animation: fadeInUp 0.8s ease-out;
}

.footer-column:nth-child(2) { animation-delay: 0.1s; }
.footer-column:nth-child(3) { animation-delay: 0.2s; }
.footer-column:nth-child(4) { animation-delay: 0.3s; }

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--off-white-cream);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--muted-gold), transparent);
  animation: lineExpand 1s ease-out 0.5s both;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.footer-links li:hover {
  transform: translateX(5px);
}

.footer-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: rgba(253, 253, 245, 0.7);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
}

.footer-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--muted-gold);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: var(--gold-accent);
}

.footer-link:hover::before {
  width: 100%;
}

/* Contact Items */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: rgba(253, 253, 245, 0.7);
  transition: all 0.3s ease;
}

.contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--muted-gold);
  transition: all 0.3s ease;
}

.contact-item:hover {
  color: var(--off-white-cream);
  transform: translateX(5px);
}

.contact-item:hover svg {
  color: var(--gold-accent);
  transform: scale(1.1);
}

/* Footer Divider */
.footer-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(218, 165, 32, 0.3) 20%,
    rgba(218, 165, 32, 0.5) 50%,
    rgba(218, 165, 32, 0.3) 80%,
    transparent 100%
  );
  margin: 1.5rem 0 1rem 0;
  animation: dividerGlow 3s ease-in-out infinite;
}

/* Footer Bottom Section */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0;
  animation: fadeIn 1s ease-out 0.6s both;
}

.copyright {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(253, 253, 245, 0.6);
  margin: 0;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(253, 253, 245, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-legal-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--muted-gold);
  transition: width 0.3s ease;
}

.footer-legal-link:hover {
  color: var(--gold-accent);
}

.footer-legal-link:hover::after {
  width: 100%;
}

.legal-separator {
  color: rgba(253, 253, 245, 0.3);
  font-size: 0.9rem;
}

/* Decorative Elements */
.footer-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.footer-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(218, 165, 32, 0.1) 0%, transparent 70%);
  filter: blur(40px);
  animation: glowPulse 4s ease-in-out infinite;
}

.footer-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--muted-gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

.footer-particle:nth-child(2) {
  left: 20%;
  animation-delay: 1s;
}

.footer-particle:nth-child(3) {
  left: 50%;
  animation-delay: 2s;
}

.footer-particle:nth-child(4) {
  left: 80%;
  animation-delay: 3s;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--muted-gold), var(--gold-accent));
  border: none;
  border-radius: 50%;
  color: var(--deep-green-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(218, 165, 32, 0.4);
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--gold-accent), #f0c814);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.back-to-top:hover::before {
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(218, 165, 32, 0.6);
}

.back-to-top svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes lineExpand {
  from {
    width: 0;
  }
  to {
    width: 40px;
  }
}

@keyframes dividerGlow {
  0%, 100% {
    opacity: 0.5;
    filter: blur(0px);
  }
  50% {
    opacity: 1;
    filter: blur(1px);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.3;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.1);
  }
}

@keyframes particleFloat {
  0% {
    bottom: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    bottom: 100%;
    opacity: 0;
  }
}

@keyframes backgroundPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes rotateBackground {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
  }
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .footer-brand {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .premium-footer {
    padding: 3rem 0 2rem 0;
  }

  .footer-container {
    padding: 0 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .footer-column:last-child {
    text-align: center;
  }

  .footer-column:last-child .footer-heading {
    text-align: center;
  }

  .footer-column:last-child .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    justify-content: center;
    text-align: center;
    margin-bottom: 0.75rem;
  }

  .footer-divider {
    margin: 1rem 0 0.75rem 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 0;
  }

  .footer-bottom-right {
    order: -1;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-right: 0.5rem;
  }

  .footer-legal-link {
    white-space: nowrap;
    font-size: 0.8rem;
  }

  .legal-separator {
    display: inline;
    font-size: 0.8rem;
  }

  .back-to-top {
    width: 48px;
    height: 48px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 0 1.5rem;
  }

  .footer-logo-img {
    height: 48px;
  }

  .footer-heading {
    font-size: 1.1rem;
  }

  .footer-social {
    gap: 0.75rem;
  }

  .social-link {
    width: 44px;
    height: 44px;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 1rem;
    right: 1rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .premium-footer *,
  .premium-footer *::before,
  .premium-footer *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus States */
.footer-link:focus,
.footer-legal-link:focus,
.social-link:focus,
.back-to-top:focus {
  outline: 2px solid var(--muted-gold);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .premium-footer {
    background: #000000;
    border-top: 2px solid var(--muted-gold);
  }

  .footer-link,
  .footer-legal-link,
  .social-link {
    border: 1px solid currentColor;
  }
}
