/* ==========================================================================
   IEC Dakotas Footer
   ========================================================================== */

.iec-footer {
  --iec-footer-bg: #061a33;
  --iec-footer-bg-bar: #051528;
  --iec-footer-text: #8a96a8;
  --iec-footer-heading: #ffffff;
  --iec-footer-red: #c8102e;
  --iec-footer-gold: #f5b800;
  --iec-footer-border: rgba(255, 255, 255, 0.08);
  --iec-footer-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  background: var(--iec-footer-bg);
  color: var(--iec-footer-text);
  font-family: var(--iec-footer-font);
  line-height: 1.6;
  margin-top: 0;
}

.iec-footer *,
.iec-footer *::before,
.iec-footer *::after {
  box-sizing: border-box;
}

/* Main four-column area */
.iec-footer__main {
  padding: 56px 24px 48px;
}

.iec-footer__inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 40px 32px;
  max-width: 1140px;
  margin: 0 auto;
}

/* Brand column */
.iec-footer__logo {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.iec-footer__logo-iec {
  color: var(--iec-footer-heading);
}

.iec-footer__logo-dakotas {
  color: var(--iec-footer-red);
}

.iec-footer__about {
  margin: 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--iec-footer-text);
}

/* Column headings */
.iec-footer__heading {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--iec-footer-heading);
}

/* Link lists */
.iec-footer__links,
.iec-footer__contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.iec-footer__links li,
.iec-footer__contact li {
  margin: 0 0 10px;
}

.iec-footer__links li:last-child,
.iec-footer__contact li:last-child {
  margin-bottom: 0;
}

.iec-footer__links a,
.iec-footer__contact a {
  color: var(--iec-footer-text);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.iec-footer__links a:hover,
.iec-footer__contact a:hover {
  color: var(--iec-footer-heading);
}

/* Contact list with icons */
.iec-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.iec-footer__contact .fa {
  flex-shrink: 0;
  width: 16px;
  margin-top: 3px;
  color: var(--iec-footer-gold);
  font-size: 14px;
  text-align: center;
}

.iec-footer__contact a {
  word-break: break-word;
}

/* Bottom bar */
.iec-footer__bar {
  border-top: 1px solid var(--iec-footer-border);
  background: var(--iec-footer-bg-bar);
  padding: 18px 24px;
}

.iec-footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.iec-footer__copyright {
  margin: 0;
  font-size: 13px;
  color: var(--iec-footer-text);
}

.iec-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 0;
}

.iec-footer__nav a {
  color: var(--iec-footer-text);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.iec-footer__nav a:hover {
  color: var(--iec-footer-heading);
}

.iec-footer__sep {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  user-select: none;
}

/* Hide legacy theme footer if it somehow renders */
#bottom-sidebar,
footer.dark-div.main-color-2-bg {
  display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
  .iec-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }

  .iec-footer__brand {
    grid-column: 1 / -1;
  }

  .iec-footer__about {
    max-width: none;
  }
}

@media (max-width: 575px) {
  .iec-footer__main {
    padding: 40px 20px 36px;
  }

  .iec-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .iec-footer__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .iec-footer__nav {
    justify-content: flex-start;
  }
}
