/* Enhanced Footer Formatting - Match Header Structure */

/* Footer container - match header structure but keep footer styling */
.pge-footer {
  background: var(--pg-deep) !important;
  color: var(--pg-ivory) !important;
  padding: 24px 16px !important;
  z-index: 1000 !important;
  border-top: 1px solid rgba(244, 240, 229, 0.25) !important;
}

.pge-footer .container {
  display: grid !important;
  grid-template-columns: 1fr auto auto !important; /* Logo, Nav, Contact */
  gap: 2rem !important;
  align-items: center !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
}

/* Footer logo - match header logo styling */
.pge-footer .footer-logo {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.pge-footer .footer-logo img {
  max-height: 44px !important;
  height: auto !important;
  width: auto !important;
}

/* Footer navigation - match header nav styling */
.pge-footer nav {
  flex: 1 !important;
  display: flex !important;
  justify-content: center !important;
}

.pge-footer nav ul.pge-footer-menu {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 2rem !important;
}

.pge-footer nav ul.pge-footer-menu li {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
}

.pge-footer nav ul.pge-footer-menu li a {
  display: block !important;
  padding: 0.5rem 1rem !important;
  color: var(--pg-ivory) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
}

.pge-footer nav ul.pge-footer-menu li a:hover,
.pge-footer nav ul.pge-footer-menu li a:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-1px) !important;
}

.pge-footer nav ul.pge-footer-menu li.current-menu-item a,
.pge-footer nav ul.pge-footer-menu li.current_page_item a {
  color: var(--pg-gold) !important;
  font-weight: 700 !important;
  background: rgba(217, 151, 17, 0.1) !important;
}

/* Footer contact - match header right styling */
.pge-footer .contact {
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  text-align: right !important;
}

.pge-footer .contact p {
  margin: 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
}

.pge-footer .contact a {
  color: var(--pg-ivory) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.pge-footer .contact a:hover {
  color: var(--pg-gold) !important;
}

/* Footer bottom - keep existing styling */
.pge-footer .pge-footer-bottom {
  border-top: 1px solid rgba(244, 240, 229, 0.25) !important;
  padding: 12px 16px !important;
  text-align: center !important;
  margin-top: 24px !important;
}

.pge-footer .pge-footer-bottom p {
  margin: 0 !important;
  font-size: 0.85rem !important;
  color: rgba(244, 240, 229, 0.8) !important;
}

/* Mobile responsiveness - match header mobile behavior */
@media (max-width: 980px) {
  .pge-footer .container {
    grid-template-columns: 1fr !important; /* Stack vertically on mobile */
    gap: 1.5rem !important;
    text-align: center !important;
  }
  
  .pge-footer nav {
    order: 2 !important; /* Nav second on mobile */
  }
  
  .pge-footer nav ul.pge-footer-menu {
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: center !important;
  }
  
  .pge-footer nav ul.pge-footer-menu li a {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.9rem !important;
  }
  
  .pge-footer .contact {
    order: 3 !important; /* Contact third on mobile */
    align-items: center !important;
    text-align: center !important;
  }
  
  .pge-footer .footer-logo {
    order: 1 !important; /* Logo first on mobile */
    justify-content: center !important;
  }
}

/* Very small screens - stack navigation vertically */
@media (max-width: 480px) {
  .pge-footer nav ul.pge-footer-menu {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .pge-footer nav ul.pge-footer-menu li a {
    padding: 0.6rem 1rem !important;
    font-size: 0.95rem !important;
  }
  
  .pge-footer .contact {
    font-size: 0.85rem !important;
  }
}
