/* ═══════════════════════════════════════════
   NextMetro — Footer Component
   Bottom of every page
═══════════════════════════════════════════ */

.nm-footer {
  background: var(--nm-black);
  border-top: 1px solid var(--nm-border);
  position: relative;
}

/* 3px amber bar at the very bottom — mirrors nav top bar */
.nm-footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--nm-amber);
}

/* 5px horizontal strip of 6 line colors — top edge of footer */
.nm-footer__strip {
  display: flex;
  height: 5px;
  width: 100%;
}
.nm-footer__strip span {
  flex: 1;
  display: block;
}
.nm-footer__strip span:nth-child(1) { background: var(--line-red); }
.nm-footer__strip span:nth-child(2) { background: var(--line-orange); }
.nm-footer__strip span:nth-child(3) { background: var(--line-silver); }
.nm-footer__strip span:nth-child(4) { background: var(--line-blue); }
.nm-footer__strip span:nth-child(5) { background: var(--line-yellow); }
.nm-footer__strip span:nth-child(6) { background: var(--line-green); }

/* 4-column body grid */
.nm-footer__body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 40px 0 52px;
  border-bottom: 1px solid var(--nm-border);
}

.nm-footer__col {
  padding: 0 36px;
  border-right: 1px solid var(--nm-border);
}
.nm-footer__col:first-child {
  padding-left: 32px;
}
.nm-footer__col:last-child {
  border-right: none;
}
.nm-footer__col--logo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
}

/* Column headings */
.nm-footer__heading {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--nm-amber);
  margin-bottom: 16px;
}

/* Link lists */
.nm-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nm-footer__link {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--nm-gray);
  text-decoration: none;
  transition: color 0.12s ease;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 0;
}
.nm-footer__link:hover {
  color: var(--nm-white);
}
.nm-footer__link:focus-visible {
  outline: 2px solid var(--nm-amber);
  outline-offset: 2px;
}

/* Line links — dot + label */
.nm-footer__link--line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 4px 0;
}
.nm-footer__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nm-footer__dot--red    { background: var(--line-red); }
.nm-footer__dot--orange { background: var(--line-orange); }
.nm-footer__dot--silver { background: var(--line-silver); }
.nm-footer__dot--blue   { background: var(--line-blue); }
.nm-footer__dot--yellow { background: var(--line-yellow); }
.nm-footer__dot--green  { background: var(--line-green); }

/* Lines block — sits under Explore column, mirrors data-block pattern */
.nm-footer__lines-block {
  margin-top: 28px;
}
.nm-footer__lines-block .nm-footer__line-chips {
  margin-top: 0;
}

/* Line chips — compact horizontal row of colored line links */
.nm-footer__line-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.nm-footer__line-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nm-gray);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid var(--nm-border);
  transition: color 0.12s ease, border-color 0.12s ease;
}
.nm-footer__line-chip:hover {
  color: var(--nm-white);
  border-color: var(--nm-border-strong, #444);
}
.nm-footer__line-chip:focus-visible {
  outline: 2px solid var(--nm-amber);
  outline-offset: 2px;
}
.nm-footer__chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nm-footer__chip-dot--red    { background: var(--line-red); }
.nm-footer__chip-dot--orange { background: var(--line-orange); }
.nm-footer__chip-dot--silver { background: var(--line-silver); }
.nm-footer__chip-dot--blue   { background: var(--line-blue); }
.nm-footer__chip-dot--yellow { background: var(--line-yellow); }
.nm-footer__chip-dot--green  { background: var(--line-green); }

/* Data disclaimer block */
.nm-footer__data-block {
  margin-top: 28px;
}
.nm-footer__body-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  color: var(--nm-gray);
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Footer logo — NM amber square + line strip + NEXT/METRO wordmark */
.nm-footer__logo {
  display: flex;
  align-items: center;
}

.nm-footer__logo-mark {
  width: 80px;
  height: 80px;
  background: var(--nm-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nm-footer__logo-mark b {
  font-family: 'Rajdhani', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--nm-black);
  letter-spacing: 0.04em;
}

.nm-footer__logo-strip {
  display: flex;
  flex-direction: column;
  width: 4px;
  height: 80px;
  flex-shrink: 0;
}
.nm-footer__logo-strip span {
  flex: 1;
  display: block;
}
.nm-footer__logo-strip span:nth-child(1) { background: var(--line-red); }
.nm-footer__logo-strip span:nth-child(2) { background: var(--line-orange); }
.nm-footer__logo-strip span:nth-child(3) { background: var(--line-silver); }
.nm-footer__logo-strip span:nth-child(4) { background: var(--line-blue); }
.nm-footer__logo-strip span:nth-child(5) { background: var(--line-yellow); }
.nm-footer__logo-strip span:nth-child(6) { background: var(--line-green); }

.nm-footer__logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 14px;
}
.nm-footer__logo-next {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--nm-amber);
  line-height: 1;
  margin-bottom: 2px;
}
.nm-footer__logo-metro {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nm-white);
  line-height: 0.9;
}

/* Bottom bar — copyright left, legal links right */
.nm-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px 22px;
}
.nm-footer__copy {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  color: var(--nm-gray);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}
.nm-footer__legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.nm-footer__legal-link {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  color: var(--nm-gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.12s ease;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nm-footer__legal-link:hover {
  color: var(--nm-white);
}
.nm-footer__legal-link:focus-visible {
  outline: 2px solid var(--nm-amber);
  outline-offset: 2px;
}

/* Responsive — 900px: 2 columns */
@media (max-width: 900px) {
  .nm-footer__body {
    grid-template-columns: 1fr 1fr;
  }
  .nm-footer__col {
    padding: 24px 28px;
    border-bottom: 1px solid var(--nm-border);
    border-right: none;
  }
  .nm-footer__col:nth-child(odd) {
    border-right: 1px solid var(--nm-border);
  }
  .nm-footer__col--logo {
    align-items: flex-start;
  }
}

/* Responsive — 600px: 1 column, stacked bottom bar */
@media (max-width: 600px) {
  .nm-footer__body {
    grid-template-columns: 1fr;
  }
  .nm-footer__col:nth-child(odd) {
    border-right: none;
  }
  .nm-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 26px;
  }
}
