/* ==================== */
/* [[[ BASE FOOTER ]]] */
/* ==================== */

footer {
  background-color: var(--color-accent-lightest);
  padding-top: 3rem;
  padding-bottom: 0;
  font-size: 1rem;
}

/* ================== */
/* [[[ LAYOUT ]]]     */
/* ================== */

/* --- Grid Container --- */
.footer-content {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: end;
}

/* --- Left Column --- */
.footer-left-column {
  grid-column: 1 / span 8;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}


/* ==================== */
/* [[[ NAVIGATION ]]]  */
/* ==================== */

/* --- Row 1: Contact Links --- */
.contact-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.contact-link {
  color: #2B3D50;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
  /* Custom Underline Style */
  border-bottom: 1px solid #2B3D50;
  padding-bottom: 2px;
}

.contact-link:hover {
  text-decoration: none;
  opacity: 0.8;
}

.footer-text {
  cursor: default;
}


/* ==================== */
/* [[[ FOOTER BOTTOM ]]] */
/* ==================== */

.footer-bottom {
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid var(--color-accent-dark);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-badge {
  grid-column: 1 / span 8;
  display: flex;
  min-width: 150px;
}

#wcb.wcb-d #wcb_2 {
  color: #2B3D50 !important;
}


/* =================== */
/* [[[ LEGAL LINKS ]]] */
/* =================== */

.legal-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0;
}

.legal-link {
  color: #2B3D50;
  text-decoration: none;
  transition: opacity 0.2s ease;
  /* Custom Underline Style */
  border-bottom: 1px solid #2B3D50;
  padding-bottom: 2px;
}

.legal-link:hover {
  text-decoration: none;
  opacity: 0.8;
}

.legal-separator {
  color: #2B3D50;
  margin: 0 0.5rem;
  /* Spacing around the pipe | */
  opacity: 0.5;
  /* Makes the separator slightly subtle */
}


/* ==================== */
/* [[[ RESPONSIVE ]]]  */
/* ==================== */


/* --- TABLET (Breakpoint: 1200px) --- */
/* This restores the 8-column layout for smaller desktops/tablets */
@media (max-width: 1200px) {

  .footer-content {
    grid-template-columns: repeat(8, 1fr);
    column-gap: 1.5rem;
  }

  .footer-left-column {
    grid-column: 1 / span 6;
  }

}


/* ==== MOBILE (Breakpoint: 800px) ==== */

@media (max-width: 800px) {

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .footer-left-column {
    grid-column: 1 / -1;
  }

  .footer-badge {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  /* STACK LINKS VERTICALLY ON MOBILE */
  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

}