/* ═══════════════════════════════════════════════════════════════
   FOOTER.CSS — MergerDomo
   Fully mobile-responsive
   Breakpoints: 1100px | 900px | 640px | 480px | 360px
═══════════════════════════════════════════════════════════════ */

:root {
  --ann-h: 38px;
  --nav-h: 64px;
}

.md-footer {
  background: var(--md-navy);
  font-family: 'Roboto', sans-serif;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

/* ─────────────────────────
   MAIN GRID BODY
───────────────────────── */
.md-footer__body {
  padding: 44px 0 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.md-footer__grid {
  display: grid;
  grid-template-columns: 220px repeat(5, 1fr);
  gap: 0 28px;
  align-items: start;
}

/* ─────────────────────────
   BRAND COLUMN
───────────────────────── */
.md-footer__brand {
  display: flex;
  flex-direction: column;
}

.md-footer__logo {
  display: block;
  margin-bottom: 22px;
}

.md-footer__logo img {
  height: 28px;
  width: auto;
}

.md-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.md-footer__contact-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .52);
  line-height: 1.5;
}

.md-footer__contact-row i {
  font-size: 13px;
  color: var(--md-yellow);
  flex-shrink: 0;
  margin-top: 2px;
  width: 14px;
  text-align: center;
}

.md-footer__contact-row a {
  color: rgba(255, 255, 255, .52);
  text-decoration: none;
  transition: color .18s ease;
  word-break: break-word;
}

.md-footer__contact-row a:hover {
  color: #fff;
}

.md-footer__addr {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .45);
  line-height: 1.5;
}

.md-footer__addr strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 1px;
}

.md-footer__addresses {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.md-footer__social-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255, 255, 255, .28);
  margin-bottom: 8px;
}

.md-footer__social-icons {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.md-footer__social-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
  text-decoration: none;
  flex-shrink: 0;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.md-footer__social-icon:hover {
  background: var(--md-blue);
  border-color: var(--md-blue);
  color: #fff;
}

/* ─────────────────────────
   NAV COLUMNS
───────────────────────── */
.md-footer__nav-col {
  min-width: 0;    /* prevent grid blowout */
}

.md-footer__nav-heading {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: var(--md-yellow);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  white-space: nowrap;
}

.md-footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.md-footer__nav-list a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  padding: 4px 0;
  transition: color .18s ease, padding-left .18s ease;
  word-break: break-word;
}

.md-footer__nav-list a:hover {
  color: #fff;
  padding-left: 5px;
}

.md-footer__badge {
  font-size: 9px;
  font-weight: 700;
  background: rgba(45, 108, 223, .3);
  color: #7eb5ff;
  border-radius: 3px;
  padding: 1px 4px;
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}

/* ─────────────────────────
   BOTTOM BAR
───────────────────────── */
.md-footer__bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.md-footer__copy {
  font-size: 11px;
  color: rgba(255, 255, 255, .25);
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.5;
}

.md-footer__legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.md-footer__legal a {
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  text-decoration: none;
  padding: 2px 11px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  transition: color .18s ease;
  line-height: 1;
  white-space: nowrap;
}

.md-footer__legal a:last-child {
  border-right: none;
  padding-right: 0;
}

.md-footer__legal a:first-child {
  padding-left: 0;
}

.md-footer__legal a:hover {
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   ≤ 1100px  —  Tighten columns
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .md-footer__grid {
    grid-template-columns: 200px repeat(5, 1fr);
    gap: 0 16px;
  }

  .md-footer__nav-list a {
    font-size: 12px;
  }

  .md-footer__nav-heading {
    font-size: 9.5px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ≤ 900px  —  3-column layout, brand spans full width
═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .md-footer__body {
    padding: 36px 0 28px;
  }

  .md-footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 20px;
  }

  /* Brand spans full width on its own row */
  .md-footer__brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    align-items: start;
  }

  .md-footer__logo {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  /* Contact and social side-by-side */
  .md-footer__contact {
    margin-bottom: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ≤ 640px  —  2-column nav, single-column brand
═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .md-footer__body {
    padding: 28px 0 24px;
  }

  .md-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  /* Brand reverts to single column */
  .md-footer__brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .md-footer__logo {
    margin-bottom: 0;
  }

  .md-footer__logo img {
    height: 26px;
  }

  .md-footer__contact {
    margin-bottom: 0;
    gap: 12px;
  }

  .md-footer__contact-row {
    font-size: 12px;
  }

  /* Social row */
  .md-footer__social-icons {
    gap: 8px;
  }

  .md-footer__social-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  /* Nav headings */
  .md-footer__nav-heading {
    font-size: 10px;
    letter-spacing: .7px;
  }

  .md-footer__nav-list a {
    font-size: 12.5px;
    padding: 5px 0;
  }

  /* Bottom bar stacks */
  .md-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0;
  }

  .md-footer__copy {
    font-size: 10.5px;
  }

  .md-footer__legal {
    flex-wrap: wrap;
    gap: 4px 0;
  }

  .md-footer__legal a {
    font-size: 11.5px;
    padding: 3px 9px;
  }

  .md-footer__legal a:first-child {
    padding-left: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ≤ 480px  —  Full-width single-column nav on small phones
═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .md-footer__body {
    padding: 24px 0 20px;
  }

  .md-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px;
  }

  /* M&A Tools + Resources span full width to avoid cramping */
  .md-footer__nav-col:nth-child(5),
  .md-footer__nav-col:nth-child(6) {
    grid-column: span 1;
  }

  .md-footer__logo img {
    height: 24px;
  }

  .md-footer__contact-row {
    font-size: 11.5px;
  }

  .md-footer__addr {
    font-size: 11px;
  }

  .md-footer__nav-list a {
    font-size: 12px;
    padding: 4px 0;
  }

  .md-footer__badge {
    font-size: 8.5px;
  }

  .md-footer__legal a {
    font-size: 11px;
    padding: 3px 7px;
  }

  .md-footer__copy {
    font-size: 10px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ≤ 360px  —  Very small phones
═══════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .md-footer__grid {
    grid-template-columns: 1fr;
    gap: 20px 0;
  }

  .md-footer__brand {
    gap: 14px;
  }

  .md-footer__nav-heading {
    font-size: 9px;
    letter-spacing: .5px;
  }

  .md-footer__logo img {
    height: 22px;
  }

  .md-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .md-footer__legal a {
    border-right: none;
    padding: 2px 0;
    font-size: 11px;
  }
}