/*
 * Enhanced Footer Styles
 * Modern design to match the updated homepage
 */

.footer {
  background-color: var(--color-ink);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
  color: var(--color-paper);
}

/* Subtle background pattern */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 90%, rgba(184, 85, 30, 0.18) 0%, transparent 30%),
    linear-gradient(to right, rgba(245, 239, 226, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 239, 226, 0.04) 1px, transparent 1px);
  background-size: auto, 120px 120px, 120px 120px;
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer h3 {
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
  color: var(--color-paper);
  position: relative;
  display: inline-block;
}

/* Underline accent for headings */
.footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background: var(--color-copper);
  border-radius: 1px;
}

.footer p {
  color: rgba(245, 239, 226, 0.72);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.footer a {
  color: rgba(245, 239, 226, 0.72);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  padding: 3px 0;
}

.footer a:hover {
  color: var(--color-copper-soft);
  transform: translateX(3px);
}

.footer .d-flex.flex-column a {
  position: relative;
  padding-left: 5px;
}

.footer .d-flex.flex-column a::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  width: 0;
  height: 1px;
  background-color: var(--color-copper);
  transition: width 0.2s ease;
  transform: translateY(-50%);
}

.footer .d-flex.flex-column a:hover::before {
  width: 8px;
}

/* Contact info with icons */
.footer .contact a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer .contact i {
  color: var(--color-copper-soft);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.footer .contact a:hover i {
  transform: scale(1.2);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg,
    rgba(245, 239, 226, 0.04) 0%,
    rgba(245, 239, 226, 0.16) 50%,
    rgba(245, 239, 226, 0.04) 100%);
  margin: 2rem 0;
  border-radius: 1px;
}

.copyright {
  color: rgba(245, 239, 226, 0.62);
  font-size: 0.9rem;
}

.copyright small {
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-paper);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background-color: rgba(245, 239, 226, 0.06);
  border: 1px solid transparent;
}

.footer-links a:hover {
  color: var(--color-paper);
  background-color: rgba(184, 85, 30, 0.24);
  border-color: rgba(216, 117, 63, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer {
    text-align: center;
  }
  
  .footer .grid.col-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer h3 {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer p {
    text-align: center;
  }
  
  .footer .d-flex.flex-column {
    align-items: center;
  }
  
  .footer .d-flex.flex-column a {
    text-align: center;
    padding-left: 0;
  }
  
  .footer .d-flex.flex-column a::before {
    display: none;
  }
  
  .footer .contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer .contact a {
    justify-content: center;
  }
  
  .footer-links {
    justify-content: center;
    margin-top: 1rem;
    text-align: center;
  }
  
  .copyright {
    text-align: center;
    margin-top: 1rem;
  }
  
  .d-flex.justify-content-between.flex-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
}
