/**
 * Footer — GeneratePress Luxe
 *
 * Dark espresso luxury footer matching the mockup:
 * deep brown background, cream text, thin gold-beige dividers,
 * multi-column layout, refined serif typography.
 *
 * @package GP_Luxe
 */

/* =========================================================================
   1. Footer wrapper — override GP's default footer
   ========================================================================= */

.site-info {
  background: var(--luxe-black);
  color: var(--luxe-off-white);
  border-top: 1px solid rgba(194, 171, 144, 0.15);
  padding: 0;
  margin: 0;
}

.inside-site-info {
  max-width: var(--luxe-max-width);
  margin: 0 auto;
  padding: 0 var(--luxe-space-6);
  display: block;
}

/* =========================================================================
   2. Footer main columns area (injected via hook)
   ========================================================================= */

.luxe-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--luxe-space-8);
  padding: var(--luxe-space-12) 0 var(--luxe-space-10);
  border-bottom: 1px solid rgba(194, 171, 144, 0.12);
}

@media (max-width: 900px) {
  .luxe-footer {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--luxe-space-6);
    padding: var(--luxe-space-8) 0 var(--luxe-space-6);
  }
}

@media (max-width: 580px) {
  .luxe-footer {
    grid-template-columns: 1fr;
    gap: var(--luxe-space-5);
    text-align: center;
  }
}

/* =========================================================================
   3. Footer column headings
   ========================================================================= */

.luxe-footer__heading {
  font-family: var(--luxe-font-serif);
  font-size: var(--luxe-text-base);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--luxe-off-white);
  margin-bottom: var(--luxe-space-4);
  padding-bottom: var(--luxe-space-3);
  border-bottom: 1px solid rgba(194, 171, 144, 0.15);
}

/* =========================================================================
   4. Footer links
   ========================================================================= */

.luxe-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.luxe-footer__links li {
  margin-bottom: var(--luxe-space-2);
}

.luxe-footer__links a {
  font-family: var(--luxe-font-serif);
  font-size: var(--luxe-text-sm);
  font-weight: 300;
  color: rgba(240, 233, 223, 0.70);
  text-decoration: none;
  transition: color var(--luxe-duration-fast) var(--luxe-ease-out);
  letter-spacing: 0.01em;
}

.luxe-footer__links a:hover {
  color: var(--luxe-off-white);
  opacity: 1;
}

/* =========================================================================
   5. Footer social icons
   ========================================================================= */

.luxe-footer__social {
  display: inline-flex;
  gap: var(--luxe-space-3);
  margin-top: var(--luxe-space-2);
}

@media (max-width: 580px) {
  .luxe-footer__social {
    justify-content: center;
  }
}

.luxe-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(240, 233, 223, 0.65);
  border: 1px solid rgba(194, 171, 144, 0.18);
  transition: color var(--luxe-duration-fast) var(--luxe-ease-out),
              border-color var(--luxe-duration-fast) var(--luxe-ease-out);
}

.luxe-footer__social a:hover {
  color: var(--luxe-off-white);
  border-color: rgba(194, 171, 144, 0.40);
  opacity: 1;
}

.luxe-footer__social svg {
  width: 16px;
  height: 16px;
}

/* =========================================================================
   6. Footer language switcher — styled as a normal link list
   ========================================================================= */

.luxe-footer__lang .luxe-lang {
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.luxe-footer__lang .luxe-lang__sep {
  display: none;
}

/* In the footer: hide the short code, show the full name */
.luxe-footer__lang .luxe-lang__code {
  display: none;
}

.luxe-footer__lang .luxe-lang__name {
  display: inline;
}

.luxe-footer__lang .luxe-lang__link {
  display: block;
  font-family: var(--luxe-font-serif);
  font-size: var(--luxe-text-sm);
  font-weight: 300;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(240, 233, 223, 0.70);
  padding: var(--luxe-space-1) 0;
  transition: color var(--luxe-duration-fast) var(--luxe-ease-out);
}

.luxe-footer__lang .luxe-lang__link:hover {
  color: var(--luxe-off-white);
  opacity: 1;
}

.luxe-footer__lang .luxe-lang__link.is-active {
  color: var(--luxe-off-white);
  font-weight: 500;
}

/* =========================================================================
   7. Copyright bar (bottom row)
   ========================================================================= */

.copyright-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--luxe-space-3);
  padding: var(--luxe-space-5) 0;
  border-top: 1px solid rgba(194, 171, 144, 0.12);
  font-family: var(--luxe-font-serif);
  font-size: var(--luxe-text-xs);
  font-weight: 300;
  color: rgba(240, 233, 223, 0.45);
  letter-spacing: 0.02em;
  clear: both; /* ensure it clears any floated elements */
}

.copyright-bar a {
  color: rgba(240, 233, 223, 0.55);
  text-decoration: none;
  transition: color var(--luxe-duration-fast) var(--luxe-ease-out);
}

.copyright-bar a:hover {
  color: var(--luxe-off-white);
  opacity: 1;
}

.copyright-bar .copyright {
  color: rgba(240, 233, 223, 0.55);
}

@media (max-width: 580px) {
  .copyright-bar {
    justify-content: center;
    text-align: center;
  }
}

/* =========================================================================
   8. GP footer widget area override — remove if not using widgets
   ========================================================================= */

.footer-bar {
  display: none; /* Hide GP's default footer bar — we use our own structure */
}

/* =========================================================================
   9. Footer decorative separator
   ========================================================================= */

.luxe-footer__divider {
  width: 60px;
  height: 1px;
  background: rgba(194, 171, 144, 0.25);
  margin: var(--luxe-space-4) 0;
}

@media (max-width: 580px) {
  .luxe-footer__divider {
    margin-left: auto;
    margin-right: auto;
  }
}
